blob: f5759f56d11b090ccbf4eb48fe18140723f63c72 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristyf6fcb5d2010-09-24 01:19:13 +00003# Generated by GNU Autoconf 2.65 for ImageMagick 6.6.4.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristyf6fcb5d2010-09-24 01:19:13 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
cristycd4c5312009-11-22 01:19:08 +000011#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000094case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
cristy3ed852e2009-09-05 21:47:34 +0000103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000114 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000115fi
116
cristy8b350f62009-11-15 23:12:43 +0000117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
cristy8b350f62009-11-15 23:12:43 +0000135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristyd0bd44a2010-09-24 12:38:11 +0000176test \$(( 1 + 1 )) = 2 || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: http://www.imagemagick.org about your system, including
235$0: any error possibly output before this message. Then
236$0: install a modern shell, or manually run the script
237$0: under such a shell if you do have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristyf6fcb5d2010-09-24 01:19:13 +0000322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
cristyf6fcb5d2010-09-24 01:19:13 +0000362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
cristy8b350f62009-11-15 23:12:43 +0000364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristyf6fcb5d2010-09-24 01:19:13 +0000366# script with status $?, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000367as_fn_error ()
368{
cristyf6fcb5d2010-09-24 01:19:13 +0000369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
cristy8b350f62009-11-15 23:12:43 +0000373 fi
cristyf6fcb5d2010-09-24 01:19:13 +0000374 $as_echo "$as_me: error: $1" >&2
cristy8b350f62009-11-15 23:12:43 +0000375 as_fn_exit $as_status
376} # as_fn_error
377
cristy3ed852e2009-09-05 21:47:34 +0000378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
cristy8b350f62009-11-15 23:12:43 +0000391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
cristy3ed852e2009-09-05 21:47:34 +0000396
cristy3ed852e2009-09-05 21:47:34 +0000397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
cristy8b350f62009-11-15 23:12:43 +0000416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000422
423
cristy8b350f62009-11-15 23:12:43 +0000424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453}
454
cristy3ed852e2009-09-05 21:47:34 +0000455ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000456case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000457-n*)
cristy8b350f62009-11-15 23:12:43 +0000458 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000463 esac;;
464*)
465 ECHO_N='-n';;
466esac
cristy3ed852e2009-09-05 21:47:34 +0000467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489else
490 as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000496 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
cristy8b350f62009-11-15 23:12:43 +0000515 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000516 -*)set "./$1";;
517 esac;
cristy8b350f62009-11-15 23:12:43 +0000518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
cristyd0bd44a2010-09-24 12:38:11 +0000531
cristy73bd4a52010-10-05 11:24:23 +0000532
533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536case X$lt_ECHO in
537X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540 ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
552 :
553else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
561 cat <<_LT_EOF
562$*
563_LT_EOF
564 exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578 then
579 break
580 fi
581 done
582 fi
583
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
587 :
588 else
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
592 #
593 # So, first we look for a working echo in the user's PATH.
594
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
597 IFS="$lt_save_ifs"
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
602 ECHO="$dir/echo"
603 break
604 fi
605 done
606 IFS="$lt_save_ifs"
607
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
614 ECHO='print -r'
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
621 export CONFIG_SHELL
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 else
624 # Try using printf.
625 ECHO='printf %s\n'
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # Cool, printf works
630 :
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 export CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
638 export SHELL
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 else
646 # maybe with a smaller string...
647 prev=:
648
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651 then
652 break
653 fi
654 prev="$cmd"
655 done
656
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 else
662 # Oops. We lost completely, so just stick with echo.
663 ECHO=echo
664 fi
665 fi
666 fi
667 fi
668 fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
680
681lt_ltdl_dir='ltdl'
682
683lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
684
cristycd4c5312009-11-22 01:19:08 +0000685test -n "$DJDIR" || exec 7<&0 </dev/null
686exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000687
688# Name of the host.
cristyf6fcb5d2010-09-24 01:19:13 +0000689# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000690# so uname gets run too.
691ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692
693#
694# Initializations.
695#
696ac_default_prefix=/usr/local
697ac_clean_files=
698ac_config_libobj_dir=.
699LIBOBJS=
700cross_compiling=no
701subdirs=
702MFLAGS=
703MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000704
705# Identity of this package.
706PACKAGE_NAME='ImageMagick'
707PACKAGE_TARNAME='ImageMagick'
cristy56225732010-09-04 23:44:25 +0000708PACKAGE_VERSION='6.6.4'
709PACKAGE_STRING='ImageMagick 6.6.4'
cristy3ed852e2009-09-05 21:47:34 +0000710PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000711PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000712
713ac_unique_file="magick/MagickCore.h"
714ac_config_libobj_dir=ltdl
715# Factoring default headers for most tests.
716ac_includes_default="\
717#include <stdio.h>
718#ifdef HAVE_SYS_TYPES_H
719# include <sys/types.h>
720#endif
721#ifdef HAVE_SYS_STAT_H
722# include <sys/stat.h>
723#endif
724#ifdef STDC_HEADERS
725# include <stdlib.h>
726# include <stddef.h>
727#else
728# ifdef HAVE_STDLIB_H
729# include <stdlib.h>
730# endif
731#endif
732#ifdef HAVE_STRING_H
733# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734# include <memory.h>
735# endif
736# include <string.h>
737#endif
738#ifdef HAVE_STRINGS_H
739# include <strings.h>
740#endif
741#ifdef HAVE_INTTYPES_H
742# include <inttypes.h>
743#endif
744#ifdef HAVE_STDINT_H
745# include <stdint.h>
746#endif
747#ifdef HAVE_UNISTD_H
748# include <unistd.h>
749#endif"
750
cristycd4c5312009-11-22 01:19:08 +0000751ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000752ac_subst_vars='ltdl_LTLIBOBJS
753ltdl_LIBOBJS
754am__EXEEXT_FALSE
755am__EXEEXT_TRUE
756LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000757MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000758MAGICK_LIBS
759MAGICK_LDFLAGS
760MAGICK_PCFLAGS
761MAGICK_CPPFLAGS
762MAGICK_CXXFLAGS
763MAGICK_CFLAGS
764MAGICK_DEP_LIBS
765MAGICK_LTDLDEPS
766MAGICK_LIBLTDL
767OSX_GCOV_LDFLAG
768DELEGATES
769MAGICKCORE_PATH
770PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000771WITH_PERL_DYNAMIC_FALSE
772WITH_PERL_DYNAMIC_TRUE
773WITH_PERL_STATIC_FALSE
774WITH_PERL_STATIC_TRUE
775WITH_PERL_FALSE
776WITH_PERL_TRUE
777PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000778GSVersion
779GSPSDevice
780GSPDFDevice
781GSMonoDevice
782GSEPSDevice
783GSColorDevice
784GSCMYKDevice
785GSAlphaDevice
786XPSVersion
787XPSCMYKDevice
788XPSColorDevice
789XPSMonoDevice
790PCLVersion
791PCLCMYKDevice
792PCLColorDevice
793PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000794ZIP_DELEGATE_FALSE
795ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000796ZIP
cristy73bd4a52010-10-05 11:24:23 +0000797P7ZIP_DELEGATE_FALSE
798P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000799P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000800RPM_DELEGATE_FALSE
801RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000802RPM
803PERL
804TAR
805ShowImageDelegate
806type_include_files
807ghostscript_font_dir
808windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000809dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000810PrintDelegate
811ZipDelegate
812XPSDelegate
813WWWDecodeDelegate
814WMFDecodeDelegate
cristy23f7a922010-10-11 00:27:48 +0000815WEBPDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000816UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000817TXTDelegate
818SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000819RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000820RMDelegate
821RLEEncodeDelegate
822PSDelegate
823POVDelegate
824PGPDecodeDelegate
825PCLDelegate
826MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000827MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000828MPEGEncodeDelegate
829MPEGDecodeDelegate
830MANDelegate
831LaunchDelegate
832LZWEncodeDelegate
833LZWDecodeDelegate
834LPRDelegate
835LPDelegate
836ILBMEncodeDelegate
837ILBMDecodeDelegate
838HTMLDecodeDelegate
839HPGLDecodeDelegate
840HDRDecodeDelegate
841GnuplotDecodeDelegate
842MogrifyDelegate
843DisplayDelegate
844ConvertDelegate
845FIGDecodeDelegate
846EditorDelegate
847EchoDelegate
848DVIDecodeDelegate
849GVCDecodeDelegate
850DNGDecodeDelegate
851CatDelegate
852CGMDecodeDelegate
853BrowseDelegate
854BZIPDelegate
855BlenderDecodeDelegate
856AVIDecodeDelegate
857AutotraceDecodeDelegate
858SHARE_CONFIGURE_PATH
859SHARE_PATH
860DOCUMENTATION_PATH
861FILTER_PATH
862CODER_PATH
863CONFIGURE_PATH
864LIBRARY_PATH
865EXECUTABLE_PATH
866PERLMAINCC
867XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000868XML_DELEGATE_FALSE
869XML_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000870xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000871WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000872WMF_DELEGATE_FALSE
873WMF_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000874TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000875TIFF_DELEGATE_FALSE
876TIFF_DELEGATE_TRUE
877CAIRO_DELEGATE_FALSE
878CAIRO_DELEGATE_TRUE
879RSVG_DELEGATE_FALSE
880RSVG_DELEGATE_TRUE
881CAIRO_SVG_LIBS
882CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000883RSVG_LIBS
884RSVG_CFLAGS
885PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000886PNG_DELEGATE_FALSE
887PNG_DELEGATE_TRUE
888OPENEXR_DELEGATE_FALSE
889OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000890OPENEXR_LIBS
891OPENEXR_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000892LQR_DELEGATE_FALSE
893LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000894LQR_LIBS
895LQR_CFLAGS
896LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000897LCMS_DELEGATE_FALSE
898LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000899JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000900JP2_DELEGATE_FALSE
901JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000902JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000903JPEG_DELEGATE_FALSE
904JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000905JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000906JBIG_DELEGATE_FALSE
907JBIG_DELEGATE_TRUE
908GVC_DELEGATE_FALSE
909GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000910GVC_LIBS
911GVC_CFLAGS
912GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000913GS_DELEGATE_FALSE
914GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000915FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000916FREETYPE_DELEGATE_FALSE
917FREETYPE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000918freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000919FONTCONFIG_DELEGATE_FALSE
920FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000921FONTCONFIG_LIBS
922FONTCONFIG_CFLAGS
923FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000924FPX_DELEGATE_FALSE
925FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000926FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000927FFTW_DELEGATE_FALSE
928FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000929DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000930DJVU_DELEGATE_FALSE
931DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000932DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000933DPS_DELEGATE_FALSE
934DPS_DELEGATE_TRUE
935AUTOTRACE_DELEGATE_FALSE
936AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000937AUTOTRACE_LIBS
938AUTOTRACE_CFLAGS
939LIB_DL
940ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000941ZLIB_DELEGATE_FALSE
942ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000943XEXT_LIBS
944X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000945X11_DELEGATE_FALSE
946X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000947X_EXTRA_LIBS
948X_LIBS
949X_PRE_LIBS
950X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000951XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000952BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000953BZLIB_DELEGATE_FALSE
954BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000955CCMALLOCDelegate
956UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000957HasUMEM_FALSE
958HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000959THREAD_LIBS
960GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000961WITH_MAGICK_PLUS_PLUS_FALSE
962WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000963OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000964MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000965POW_LIB
966LIBOBJS
967UINTPTR_T
968UINTMAX_T
969UINT64_T
970INT64_T
971UINT32_T
972INT32_T
973UINT16_T
974INT16_T
975UINT8_T
976INT8_T
977LIBRARY_EXTRA_CPPFLAGS
978MODULE_EXTRA_CPPFLAGS
979LIBSTDCLDFLAGS
980PERL_MAKE_OPTIONS
981QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000982MAINT
983MAINTAINER_MODE_FALSE
984MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000985MAGICK_HDRI
986DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000987WITH_LTDL_FALSE
988WITH_LTDL_TRUE
989WITH_MODULES_FALSE
990WITH_MODULES_TRUE
991WITH_SHARED_LIBS_FALSE
992WITH_SHARED_LIBS_TRUE
993LTDLOPEN
994LT_CONFIG_H
995CONVENIENCE_LTDL_FALSE
996CONVENIENCE_LTDL_TRUE
997INSTALL_LTDL_FALSE
998INSTALL_LTDL_TRUE
999ARGZ_H
1000sys_symbol_underscore
1001LIBADD_DL
1002LT_DLPREOPEN
1003LIBADD_DLD_LINK
1004LIBADD_SHL_LOAD
1005LIBADD_DLOPEN
1006LT_DLLOADERS
1007INCLTDL
1008LTDLINCL
1009LTDLDEPS
1010LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +00001011LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +00001012CXXCPP
1013OTOOL64
1014OTOOL
1015LIPO
1016NMEDIT
1017DSYMUTIL
1018lt_ECHO
1019RANLIB
1020AR
1021NM
1022ac_ct_DUMPBIN
1023DUMPBIN
1024LIBTOOL
1025OBJDUMP
1026DLLTOOL
1027AS
cristy3ed852e2009-09-05 21:47:34 +00001028LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +00001029CL_LIBS
cristy736173a2009-09-20 21:18:22 +00001030CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +00001031OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +00001032PTHREAD_CFLAGS
1033PTHREAD_LIBS
1034PTHREAD_CC
1035ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +00001036WinPathScript
cristy73bd4a52010-10-05 11:24:23 +00001037USING_CL_FALSE
1038USING_CL_TRUE
1039CYGWIN_BUILD_FALSE
1040CYGWIN_BUILD_TRUE
1041WIN32_NATIVE_BUILD_FALSE
1042WIN32_NATIVE_BUILD_TRUE
1043WINGDI32_DELEGATE_FALSE
1044WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +00001045GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001046PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +00001047LN_S
cristy3ed852e2009-09-05 21:47:34 +00001048LD
cristy73bd4a52010-10-05 11:24:23 +00001049FGREP
1050SED
1051am__fastdepCXX_FALSE
1052am__fastdepCXX_TRUE
1053CXXDEPMODE
cristy95646052009-11-28 23:05:30 +00001054ac_ct_CXX
1055CXXFLAGS
1056CXX
cristya0b81c32010-01-22 02:54:33 +00001057EGREP
1058GREP
1059CPP
cristy73bd4a52010-10-05 11:24:23 +00001060am__fastdepCC_FALSE
1061am__fastdepCC_TRUE
1062CCDEPMODE
1063AMDEPBACKSLASH
1064AMDEP_FALSE
1065AMDEP_TRUE
1066am__quote
1067am__include
1068DEPDIR
cristy3ed852e2009-09-05 21:47:34 +00001069OBJEXT
1070EXEEXT
1071ac_ct_CC
1072CPPFLAGS
1073LDFLAGS
1074CFLAGS
1075CC
1076DIRSEP
1077MAGICK_FILTER_MODULE_PATH
1078MAGICK_CONFIGURE_BUILD_PATH
1079MAGICK_CONFIGURE_SRC_PATH
1080MAGICK_CODER_MODULE_PATH
1081MAN_DIR
1082INFO_DIR
1083PERSISTINCLUDE_DIR
1084INCLUDE_DIR
1085LIB_DIR
1086LOCALSTATE_DIR
1087SHAREDSTATE_DIR
1088SYSCONF_DIR
1089DATA_DIR
1090LIBEXEC_DIR
1091SBIN_DIR
1092BIN_DIR
1093EXEC_PREFIX_DIR
1094PREFIX_DIR
1095CONFIG_STATUS_DEPENDENCIES
1096MAGICK_LIB_VERSION_NUMBER
1097MAGICK_LIB_VERSION_TEXT
1098MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001099AM_BACKSLASH
1100AM_DEFAULT_VERBOSITY
1101am__untar
1102am__tar
1103AMTAR
1104am__leading_dot
1105SET_MAKE
1106AWK
1107mkdir_p
1108MKDIR_P
1109INSTALL_STRIP_PROGRAM
1110STRIP
1111install_sh
1112MAKEINFO
1113AUTOHEADER
1114AUTOMAKE
1115AUTOCONF
1116ACLOCAL
1117VERSION
1118PACKAGE
1119CYGPATH_W
1120am__isrc
1121INSTALL_DATA
1122INSTALL_SCRIPT
1123INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001124PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001125PACKAGE_RELEASE_DATE
1126PACKAGE_LIB_VERSION_NUMBER
1127PACKAGE_LIB_VERSION
1128PACKAGE_CHANGE_DATE
1129PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +00001130MAGICK_LIBRARY_VERSION_INFO
1131MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001132MAGICK_LIBRARY_AGE
1133MAGICK_LIBRARY_REVISION
1134MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001135MAGICK_TARGET_OS
1136MAGICK_TARGET_VENDOR
1137MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001138target_os
1139target_vendor
1140target_cpu
1141target
1142host_os
1143host_vendor
1144host_cpu
1145host
1146build_os
1147build_vendor
1148build_cpu
1149build
1150CONFIGURE_ARGS
1151DISTCHECK_CONFIG_FLAGS
1152target_alias
1153host_alias
1154build_alias
1155LIBS
1156ECHO_T
1157ECHO_N
1158ECHO_C
1159DEFS
1160mandir
1161localedir
1162libdir
1163psdir
1164pdfdir
1165dvidir
1166htmldir
1167infodir
1168docdir
1169oldincludedir
1170includedir
1171localstatedir
1172sharedstatedir
1173sysconfdir
1174datadir
1175datarootdir
1176libexecdir
1177sbindir
1178bindir
1179program_transform_name
1180prefix
1181exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001182PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001183PACKAGE_BUGREPORT
1184PACKAGE_STRING
1185PACKAGE_VERSION
1186PACKAGE_TARNAME
1187PACKAGE_NAME
1188PATH_SEPARATOR
1189SHELL'
1190ac_subst_files=''
1191ac_user_opts='
1192enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001193enable_silent_rules
1194enable_dependency_tracking
1195with_gnu_ld
1196with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001197enable_bounds_checking
1198enable_osx_universal_binary
1199with_threads
1200enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001201enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001202enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001203enable_shared
1204enable_static
1205with_pic
1206enable_fast_install
1207enable_libtool_lock
1208with_included_ltdl
1209with_ltdl_include
1210with_ltdl_lib
1211enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001212with_modules
1213enable_delegate_build
1214enable_deprecated
1215enable_installed
1216enable_cipher
1217enable_embeddable
1218enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001219enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001220enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001221enable_ccmalloc
1222enable_efence
1223enable_prof
1224enable_gprof
1225enable_gcov
1226with_method_prefix
1227with_quantum_depth
1228with_cache
1229with_frozenpaths
1230with_magick_plus_plus
1231with_perl
1232with_perl_options
1233with_umem
1234with_libstdc
1235with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001236with_x
cristy3ed852e2009-09-05 21:47:34 +00001237with_zlib
1238with_autotrace
1239with_dps
1240with_djvu
cristy430a7312010-01-21 20:44:04 +00001241with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001242with_fftw
1243with_fpx
1244with_fontconfig
1245with_freetype
1246with_gslib
1247with_fontpath
1248with_gs_font_dir
1249with_gvc
1250with_jbig
1251with_jpeg
1252with_jp2
1253with_lcms
cristy71203402010-06-18 13:12:03 +00001254with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001255with_lqr
1256with_openexr
1257with_png
1258with_rsvg
1259with_tiff
1260with_windows_font_dir
1261with_wmf
1262with_xml
1263'
1264 ac_precious_vars='build_alias
1265host_alias
1266target_alias
1267CC
1268CFLAGS
1269LDFLAGS
1270LIBS
1271CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001272CPP
cristy3ed852e2009-09-05 21:47:34 +00001273CXX
1274CXXFLAGS
1275CCC
cristy73bd4a52010-10-05 11:24:23 +00001276PKG_CONFIG
1277CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001278XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001279AUTOTRACE_CFLAGS
1280AUTOTRACE_LIBS
1281FONTCONFIG_CFLAGS
1282FONTCONFIG_LIBS
1283GVC_CFLAGS
1284GVC_LIBS
1285LQR_CFLAGS
1286LQR_LIBS
1287OPENEXR_CFLAGS
1288OPENEXR_LIBS
1289RSVG_CFLAGS
1290RSVG_LIBS
1291CAIRO_SVG_CFLAGS
1292CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001293
1294
1295# Initialize some variables set by options.
1296ac_init_help=
1297ac_init_version=false
1298ac_unrecognized_opts=
1299ac_unrecognized_sep=
1300# The variables have the same names as the options, with
1301# dashes changed to underlines.
1302cache_file=/dev/null
1303exec_prefix=NONE
1304no_create=
1305no_recursion=
1306prefix=NONE
1307program_prefix=NONE
1308program_suffix=NONE
1309program_transform_name=s,x,x,
1310silent=
1311site=
1312srcdir=
1313verbose=
1314x_includes=NONE
1315x_libraries=NONE
1316
1317# Installation directory options.
1318# These are left unexpanded so users can "make install exec_prefix=/foo"
1319# and all the variables that are supposed to be based on exec_prefix
1320# by default will actually change.
1321# Use braces instead of parens because sh, perl, etc. also accept them.
1322# (The list follows the same order as the GNU Coding Standards.)
1323bindir='${exec_prefix}/bin'
1324sbindir='${exec_prefix}/sbin'
1325libexecdir='${exec_prefix}/libexec'
1326datarootdir='${prefix}/share'
1327datadir='${datarootdir}'
1328sysconfdir='${prefix}/etc'
1329sharedstatedir='${prefix}/com'
1330localstatedir='${prefix}/var'
1331includedir='${prefix}/include'
1332oldincludedir='/usr/include'
1333docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1334infodir='${datarootdir}/info'
1335htmldir='${docdir}'
1336dvidir='${docdir}'
1337pdfdir='${docdir}'
1338psdir='${docdir}'
1339libdir='${exec_prefix}/lib'
1340localedir='${datarootdir}/locale'
1341mandir='${datarootdir}/man'
1342
1343ac_prev=
1344ac_dashdash=
1345for ac_option
1346do
1347 # If the previous option needs an argument, assign it.
1348 if test -n "$ac_prev"; then
1349 eval $ac_prev=\$ac_option
1350 ac_prev=
1351 continue
1352 fi
1353
1354 case $ac_option in
1355 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1356 *) ac_optarg=yes ;;
1357 esac
1358
1359 # Accept the important Cygnus configure options, so we can diagnose typos.
1360
1361 case $ac_dashdash$ac_option in
1362 --)
1363 ac_dashdash=yes ;;
1364
1365 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1366 ac_prev=bindir ;;
1367 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1368 bindir=$ac_optarg ;;
1369
1370 -build | --build | --buil | --bui | --bu)
1371 ac_prev=build_alias ;;
1372 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1373 build_alias=$ac_optarg ;;
1374
1375 -cache-file | --cache-file | --cache-fil | --cache-fi \
1376 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1377 ac_prev=cache_file ;;
1378 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1379 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1380 cache_file=$ac_optarg ;;
1381
1382 --config-cache | -C)
1383 cache_file=config.cache ;;
1384
1385 -datadir | --datadir | --datadi | --datad)
1386 ac_prev=datadir ;;
1387 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1388 datadir=$ac_optarg ;;
1389
1390 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1391 | --dataroo | --dataro | --datar)
1392 ac_prev=datarootdir ;;
1393 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1394 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1395 datarootdir=$ac_optarg ;;
1396
1397 -disable-* | --disable-*)
1398 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1399 # Reject names that are not valid shell variable names.
1400 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyf6fcb5d2010-09-24 01:19:13 +00001401 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001402 ac_useropt_orig=$ac_useropt
1403 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1404 case $ac_user_opts in
1405 *"
1406"enable_$ac_useropt"
1407"*) ;;
1408 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1409 ac_unrecognized_sep=', ';;
1410 esac
1411 eval enable_$ac_useropt=no ;;
1412
1413 -docdir | --docdir | --docdi | --doc | --do)
1414 ac_prev=docdir ;;
1415 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1416 docdir=$ac_optarg ;;
1417
1418 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1419 ac_prev=dvidir ;;
1420 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1421 dvidir=$ac_optarg ;;
1422
1423 -enable-* | --enable-*)
1424 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1425 # Reject names that are not valid shell variable names.
1426 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyf6fcb5d2010-09-24 01:19:13 +00001427 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001428 ac_useropt_orig=$ac_useropt
1429 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1430 case $ac_user_opts in
1431 *"
1432"enable_$ac_useropt"
1433"*) ;;
1434 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1435 ac_unrecognized_sep=', ';;
1436 esac
1437 eval enable_$ac_useropt=\$ac_optarg ;;
1438
1439 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1440 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1441 | --exec | --exe | --ex)
1442 ac_prev=exec_prefix ;;
1443 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1444 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1445 | --exec=* | --exe=* | --ex=*)
1446 exec_prefix=$ac_optarg ;;
1447
1448 -gas | --gas | --ga | --g)
1449 # Obsolete; use --with-gas.
1450 with_gas=yes ;;
1451
1452 -help | --help | --hel | --he | -h)
1453 ac_init_help=long ;;
1454 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1455 ac_init_help=recursive ;;
1456 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1457 ac_init_help=short ;;
1458
1459 -host | --host | --hos | --ho)
1460 ac_prev=host_alias ;;
1461 -host=* | --host=* | --hos=* | --ho=*)
1462 host_alias=$ac_optarg ;;
1463
1464 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1465 ac_prev=htmldir ;;
1466 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1467 | --ht=*)
1468 htmldir=$ac_optarg ;;
1469
1470 -includedir | --includedir | --includedi | --included | --include \
1471 | --includ | --inclu | --incl | --inc)
1472 ac_prev=includedir ;;
1473 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1474 | --includ=* | --inclu=* | --incl=* | --inc=*)
1475 includedir=$ac_optarg ;;
1476
1477 -infodir | --infodir | --infodi | --infod | --info | --inf)
1478 ac_prev=infodir ;;
1479 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1480 infodir=$ac_optarg ;;
1481
1482 -libdir | --libdir | --libdi | --libd)
1483 ac_prev=libdir ;;
1484 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1485 libdir=$ac_optarg ;;
1486
1487 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1488 | --libexe | --libex | --libe)
1489 ac_prev=libexecdir ;;
1490 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1491 | --libexe=* | --libex=* | --libe=*)
1492 libexecdir=$ac_optarg ;;
1493
1494 -localedir | --localedir | --localedi | --localed | --locale)
1495 ac_prev=localedir ;;
1496 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1497 localedir=$ac_optarg ;;
1498
1499 -localstatedir | --localstatedir | --localstatedi | --localstated \
1500 | --localstate | --localstat | --localsta | --localst | --locals)
1501 ac_prev=localstatedir ;;
1502 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1503 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1504 localstatedir=$ac_optarg ;;
1505
1506 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1507 ac_prev=mandir ;;
1508 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1509 mandir=$ac_optarg ;;
1510
1511 -nfp | --nfp | --nf)
1512 # Obsolete; use --without-fp.
1513 with_fp=no ;;
1514
1515 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1516 | --no-cr | --no-c | -n)
1517 no_create=yes ;;
1518
1519 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1520 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1521 no_recursion=yes ;;
1522
1523 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1524 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1525 | --oldin | --oldi | --old | --ol | --o)
1526 ac_prev=oldincludedir ;;
1527 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1528 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1529 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1530 oldincludedir=$ac_optarg ;;
1531
1532 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1533 ac_prev=prefix ;;
1534 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1535 prefix=$ac_optarg ;;
1536
1537 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1538 | --program-pre | --program-pr | --program-p)
1539 ac_prev=program_prefix ;;
1540 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1541 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1542 program_prefix=$ac_optarg ;;
1543
1544 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1545 | --program-suf | --program-su | --program-s)
1546 ac_prev=program_suffix ;;
1547 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1548 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1549 program_suffix=$ac_optarg ;;
1550
1551 -program-transform-name | --program-transform-name \
1552 | --program-transform-nam | --program-transform-na \
1553 | --program-transform-n | --program-transform- \
1554 | --program-transform | --program-transfor \
1555 | --program-transfo | --program-transf \
1556 | --program-trans | --program-tran \
1557 | --progr-tra | --program-tr | --program-t)
1558 ac_prev=program_transform_name ;;
1559 -program-transform-name=* | --program-transform-name=* \
1560 | --program-transform-nam=* | --program-transform-na=* \
1561 | --program-transform-n=* | --program-transform-=* \
1562 | --program-transform=* | --program-transfor=* \
1563 | --program-transfo=* | --program-transf=* \
1564 | --program-trans=* | --program-tran=* \
1565 | --progr-tra=* | --program-tr=* | --program-t=*)
1566 program_transform_name=$ac_optarg ;;
1567
1568 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1569 ac_prev=pdfdir ;;
1570 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1571 pdfdir=$ac_optarg ;;
1572
1573 -psdir | --psdir | --psdi | --psd | --ps)
1574 ac_prev=psdir ;;
1575 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1576 psdir=$ac_optarg ;;
1577
1578 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1579 | -silent | --silent | --silen | --sile | --sil)
1580 silent=yes ;;
1581
1582 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1583 ac_prev=sbindir ;;
1584 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1585 | --sbi=* | --sb=*)
1586 sbindir=$ac_optarg ;;
1587
1588 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1589 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1590 | --sharedst | --shareds | --shared | --share | --shar \
1591 | --sha | --sh)
1592 ac_prev=sharedstatedir ;;
1593 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1594 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1595 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1596 | --sha=* | --sh=*)
1597 sharedstatedir=$ac_optarg ;;
1598
1599 -site | --site | --sit)
1600 ac_prev=site ;;
1601 -site=* | --site=* | --sit=*)
1602 site=$ac_optarg ;;
1603
1604 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1605 ac_prev=srcdir ;;
1606 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1607 srcdir=$ac_optarg ;;
1608
1609 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1610 | --syscon | --sysco | --sysc | --sys | --sy)
1611 ac_prev=sysconfdir ;;
1612 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1613 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1614 sysconfdir=$ac_optarg ;;
1615
1616 -target | --target | --targe | --targ | --tar | --ta | --t)
1617 ac_prev=target_alias ;;
1618 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1619 target_alias=$ac_optarg ;;
1620
1621 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1622 verbose=yes ;;
1623
1624 -version | --version | --versio | --versi | --vers | -V)
1625 ac_init_version=: ;;
1626
1627 -with-* | --with-*)
1628 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1629 # Reject names that are not valid shell variable names.
1630 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyf6fcb5d2010-09-24 01:19:13 +00001631 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001632 ac_useropt_orig=$ac_useropt
1633 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1634 case $ac_user_opts in
1635 *"
1636"with_$ac_useropt"
1637"*) ;;
1638 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1639 ac_unrecognized_sep=', ';;
1640 esac
1641 eval with_$ac_useropt=\$ac_optarg ;;
1642
1643 -without-* | --without-*)
1644 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1645 # Reject names that are not valid shell variable names.
1646 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyf6fcb5d2010-09-24 01:19:13 +00001647 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001648 ac_useropt_orig=$ac_useropt
1649 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1650 case $ac_user_opts in
1651 *"
1652"with_$ac_useropt"
1653"*) ;;
1654 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1655 ac_unrecognized_sep=', ';;
1656 esac
1657 eval with_$ac_useropt=no ;;
1658
1659 --x)
1660 # Obsolete; use --with-x.
1661 with_x=yes ;;
1662
1663 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1664 | --x-incl | --x-inc | --x-in | --x-i)
1665 ac_prev=x_includes ;;
1666 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1667 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1668 x_includes=$ac_optarg ;;
1669
1670 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1671 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1672 ac_prev=x_libraries ;;
1673 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1674 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1675 x_libraries=$ac_optarg ;;
1676
cristyf6fcb5d2010-09-24 01:19:13 +00001677 -*) as_fn_error "unrecognized option: \`$ac_option'
1678Try \`$0 --help' for more information."
cristy3ed852e2009-09-05 21:47:34 +00001679 ;;
1680
1681 *=*)
1682 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1683 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001684 case $ac_envvar in #(
1685 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristyf6fcb5d2010-09-24 01:19:13 +00001686 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001687 esac
cristy3ed852e2009-09-05 21:47:34 +00001688 eval $ac_envvar=\$ac_optarg
1689 export $ac_envvar ;;
1690
1691 *)
1692 # FIXME: should be removed in autoconf 3.0.
1693 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1694 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1695 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1696 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1697 ;;
1698
1699 esac
1700done
1701
1702if test -n "$ac_prev"; then
1703 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristyf6fcb5d2010-09-24 01:19:13 +00001704 as_fn_error "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001705fi
1706
1707if test -n "$ac_unrecognized_opts"; then
1708 case $enable_option_checking in
1709 no) ;;
cristyf6fcb5d2010-09-24 01:19:13 +00001710 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001711 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1712 esac
1713fi
1714
1715# Check all directory arguments for consistency.
1716for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1717 datadir sysconfdir sharedstatedir localstatedir includedir \
1718 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1719 libdir localedir mandir
1720do
1721 eval ac_val=\$$ac_var
1722 # Remove trailing slashes.
1723 case $ac_val in
1724 */ )
1725 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1726 eval $ac_var=\$ac_val;;
1727 esac
1728 # Be sure to have absolute directory names.
1729 case $ac_val in
1730 [\\/$]* | ?:[\\/]* ) continue;;
1731 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1732 esac
cristyf6fcb5d2010-09-24 01:19:13 +00001733 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001734done
1735
1736# There might be people who depend on the old broken behavior: `$host'
1737# used to hold the argument of --host etc.
1738# FIXME: To remove some day.
1739build=$build_alias
1740host=$host_alias
1741target=$target_alias
1742
1743# FIXME: To remove some day.
1744if test "x$host_alias" != x; then
1745 if test "x$build_alias" = x; then
1746 cross_compiling=maybe
cristyf6fcb5d2010-09-24 01:19:13 +00001747 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1748 If a cross compiler is detected then cross compile mode will be used." >&2
cristy3ed852e2009-09-05 21:47:34 +00001749 elif test "x$build_alias" != "x$host_alias"; then
1750 cross_compiling=yes
1751 fi
1752fi
1753
1754ac_tool_prefix=
1755test -n "$host_alias" && ac_tool_prefix=$host_alias-
1756
1757test "$silent" = yes && exec 6>/dev/null
1758
1759
1760ac_pwd=`pwd` && test -n "$ac_pwd" &&
1761ac_ls_di=`ls -di .` &&
1762ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristyf6fcb5d2010-09-24 01:19:13 +00001763 as_fn_error "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001764test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristyf6fcb5d2010-09-24 01:19:13 +00001765 as_fn_error "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001766
1767
1768# Find the source files, if location was not specified.
1769if test -z "$srcdir"; then
1770 ac_srcdir_defaulted=yes
1771 # Try the directory containing this script, then the parent directory.
1772 ac_confdir=`$as_dirname -- "$as_myself" ||
1773$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1774 X"$as_myself" : 'X\(//\)[^/]' \| \
1775 X"$as_myself" : 'X\(//\)$' \| \
1776 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1777$as_echo X"$as_myself" |
1778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1779 s//\1/
1780 q
1781 }
1782 /^X\(\/\/\)[^/].*/{
1783 s//\1/
1784 q
1785 }
1786 /^X\(\/\/\)$/{
1787 s//\1/
1788 q
1789 }
1790 /^X\(\/\).*/{
1791 s//\1/
1792 q
1793 }
1794 s/.*/./; q'`
1795 srcdir=$ac_confdir
1796 if test ! -r "$srcdir/$ac_unique_file"; then
1797 srcdir=..
1798 fi
1799else
1800 ac_srcdir_defaulted=no
1801fi
1802if test ! -r "$srcdir/$ac_unique_file"; then
1803 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristyf6fcb5d2010-09-24 01:19:13 +00001804 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001805fi
1806ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1807ac_abs_confdir=`(
cristyf6fcb5d2010-09-24 01:19:13 +00001808 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001809 pwd)`
1810# When building in place, set srcdir=.
1811if test "$ac_abs_confdir" = "$ac_pwd"; then
1812 srcdir=.
1813fi
1814# Remove unnecessary trailing slashes from srcdir.
1815# Double slashes in file names in object file debugging info
1816# mess up M-x gdb in Emacs.
1817case $srcdir in
1818*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1819esac
1820for ac_var in $ac_precious_vars; do
1821 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1822 eval ac_env_${ac_var}_value=\$${ac_var}
1823 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1824 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1825done
1826
1827#
1828# Report the --help message.
1829#
1830if test "$ac_init_help" = "long"; then
1831 # Omit some internal or obsolete options to make the list less imposing.
1832 # This message is too long to be a string in the A/UX 3.1 sh.
1833 cat <<_ACEOF
cristy56225732010-09-04 23:44:25 +00001834\`configure' configures ImageMagick 6.6.4 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001835
1836Usage: $0 [OPTION]... [VAR=VALUE]...
1837
1838To assign environment variables (e.g., CC, CFLAGS...), specify them as
1839VAR=VALUE. See below for descriptions of some of the useful variables.
1840
1841Defaults for the options are specified in brackets.
1842
1843Configuration:
1844 -h, --help display this help and exit
1845 --help=short display options specific to this package
1846 --help=recursive display the short help of all the included packages
1847 -V, --version display version information and exit
cristyf6fcb5d2010-09-24 01:19:13 +00001848 -q, --quiet, --silent do not print \`checking...' messages
cristy3ed852e2009-09-05 21:47:34 +00001849 --cache-file=FILE cache test results in FILE [disabled]
1850 -C, --config-cache alias for \`--cache-file=config.cache'
1851 -n, --no-create do not create output files
1852 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1853
1854Installation directories:
1855 --prefix=PREFIX install architecture-independent files in PREFIX
1856 [$ac_default_prefix]
1857 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1858 [PREFIX]
1859
1860By default, \`make install' will install all the files in
1861\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1862an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1863for instance \`--prefix=\$HOME'.
1864
1865For better control, use the options below.
1866
1867Fine tuning of the installation directories:
1868 --bindir=DIR user executables [EPREFIX/bin]
1869 --sbindir=DIR system admin executables [EPREFIX/sbin]
1870 --libexecdir=DIR program executables [EPREFIX/libexec]
1871 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1872 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1873 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1874 --libdir=DIR object code libraries [EPREFIX/lib]
1875 --includedir=DIR C header files [PREFIX/include]
1876 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1877 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1878 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1879 --infodir=DIR info documentation [DATAROOTDIR/info]
1880 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1881 --mandir=DIR man documentation [DATAROOTDIR/man]
1882 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1883 --htmldir=DIR html documentation [DOCDIR]
1884 --dvidir=DIR dvi documentation [DOCDIR]
1885 --pdfdir=DIR pdf documentation [DOCDIR]
1886 --psdir=DIR ps documentation [DOCDIR]
1887_ACEOF
1888
1889 cat <<\_ACEOF
1890
cristy73bd4a52010-10-05 11:24:23 +00001891Program names:
1892 --program-prefix=PREFIX prepend PREFIX to installed program names
1893 --program-suffix=SUFFIX append SUFFIX to installed program names
1894 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1895
cristy3ed852e2009-09-05 21:47:34 +00001896X features:
1897 --x-includes=DIR X include files are in DIR
1898 --x-libraries=DIR X library files are in DIR
1899
1900System types:
1901 --build=BUILD configure for building on BUILD [guessed]
1902 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1903 --target=TARGET configure for building compilers for TARGET [HOST]
1904_ACEOF
1905fi
1906
1907if test -n "$ac_init_help"; then
1908 case $ac_init_help in
cristy56225732010-09-04 23:44:25 +00001909 short | recursive ) echo "Configuration of ImageMagick 6.6.4:";;
cristy3ed852e2009-09-05 21:47:34 +00001910 esac
1911 cat <<\_ACEOF
1912
1913Optional Features:
1914 --disable-option-checking ignore unrecognized --enable/--with options
1915 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1916 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001917 --enable-silent-rules less verbose build output (undo: `make V=1')
1918 --disable-silent-rules verbose build output (undo: `make V=0')
1919 --disable-dependency-tracking speeds up one-time build
1920 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001921 --bounds-checking enable run-time bounds-checking
1922 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001923 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001924 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001925 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001926 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001927 --enable-shared[=PKGS] build shared libraries [default=yes]
1928 --enable-static[=PKGS] build static libraries [default=yes]
1929 --enable-fast-install[=PKGS]
1930 optimize for fast installation [default=yes]
1931 --disable-libtool-lock avoid locking (might break parallel builds)
1932 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001933 --enable-delegate-build look for delegate libraries in build directory
1934 --disable-deprecated exclude deprecated methods in MagickCore and
1935 MagickWand API's
1936 --disable-installed Formally install ImageMagick under PREFIX
1937 --disable-cipher disable enciphering and deciphering image pixels
1938 --enable-embeddable enable self-contained, embeddable,
1939 zero-configuration ImageMagick
1940 --enable-hdri accurately represent the wide range of intensity
1941 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001942 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001943 --enable-maintainer-mode enable make rules and dependencies not useful
1944 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001945 --enable-ccmalloc enable 'ccmalloc' memory debug support
1946 --enable-efence enable 'efence' memory debug support
1947 --enable-prof enable 'prof' profiling support
1948 --enable-gprof enable 'gprof' profiling support
1949 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001950 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001951
1952Optional Packages:
1953 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1954 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001955 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1956 --with-dmalloc use dmalloc, as in
1957 http://www.dmalloc.com/dmalloc.tar.gz
cristy3ed852e2009-09-05 21:47:34 +00001958 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001959 --with-pic try to use only PIC/non-PIC objects [default=use
1960 both]
1961 --with-included-ltdl use the GNU ltdl sources included here
1962 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1963 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001964 --with-modules enable building dynamically loadable modules
1965 --with-method-prefix=PREFIX
1966 prefix MagickCore API methods
1967 --with-quantum-depth=DEPTH
1968 number of bits in a pixel quantum (default 16)
1969 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1970 memory)
1971 --with-frozenpaths freeze delegate paths
1972 --without-magick-plus-plus
1973 disable build/install of Magick++
1974 --with-perl enable build/install of PerlMagick
1975 --with-perl-options=OPTIONS
1976 options to pass on command-line when generating
1977 PerlMagick's build file
1978 --with-umem enable umem memory allocation library support
1979 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1980 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001981 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001982 --without-zlib disable ZLIB support
1983 --with-autotrace enable autotrace support
1984 --without-dps disable Display Postscript support
1985 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001986 --with-dejavu-font-dir=DIR
1987 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001988 --without-fftw disable FFTW support
1989 --without-fpx disable FlashPIX support
1990 --without-fontconfig disable fontconfig support
1991 --without-freetype disable Freetype support
1992 --without-gslib enable Ghostscript library support
1993 --with-fontpath=DIR prepend to default font search path
1994 --with-gs-font-dir=DIR Ghostscript font directory
1995 --without-gvc disable GVC support
1996 --without-jbig disable JBIG support
1997 --without-jpeg disable JPEG support
1998 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001999 --without-lcms disable lcms (v1.1X) support
2000 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00002001 --without-lqr disable Liquid Rescale support
cristy3ed852e2009-09-05 21:47:34 +00002002 --without-openexr disable OpenEXR support
2003 --without-png disable PNG support
2004 --without-rsvg disable RSVG support
2005 --without-tiff disable TIFF support
2006 --with-windows-font-dir=DIR
2007 directory containing MS-Windows fonts
2008 --without-wmf disable WMF support
2009 --without-xml disable XML support
2010
2011Some influential environment variables:
2012 CC C compiler command
2013 CFLAGS C compiler flags
2014 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2015 nonstandard directory <lib dir>
2016 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002017 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002018 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00002019 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002020 CXX C++ compiler command
2021 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00002022 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00002023 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00002024 XMKMF Path to xmkmf, Makefile generator for X Window System
2025 AUTOTRACE_CFLAGS
2026 C compiler flags for AUTOTRACE, overriding pkg-config
2027 AUTOTRACE_LIBS
2028 linker flags for AUTOTRACE, overriding pkg-config
2029 FONTCONFIG_CFLAGS
2030 C compiler flags for FONTCONFIG, overriding pkg-config
2031 FONTCONFIG_LIBS
2032 linker flags for FONTCONFIG, overriding pkg-config
2033 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2034 GVC_LIBS linker flags for GVC, overriding pkg-config
2035 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2036 LQR_LIBS linker flags for LQR, overriding pkg-config
2037 OPENEXR_CFLAGS
2038 C compiler flags for OPENEXR, overriding pkg-config
2039 OPENEXR_LIBS
2040 linker flags for OPENEXR, overriding pkg-config
2041 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2042 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2043 CAIRO_SVG_CFLAGS
2044 C compiler flags for CAIRO_SVG, overriding pkg-config
2045 CAIRO_SVG_LIBS
2046 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002047
2048Use these variables to override the choices made by `configure' or to help
2049it to find libraries and programs with nonstandard names/locations.
2050
2051Report bugs to <http://www.imagemagick.org>.
2052_ACEOF
2053ac_status=$?
2054fi
2055
2056if test "$ac_init_help" = "recursive"; then
2057 # If there are subdirs, report their specific --help.
2058 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2059 test -d "$ac_dir" ||
2060 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2061 continue
2062 ac_builddir=.
2063
2064case "$ac_dir" in
2065.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2066*)
2067 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2068 # A ".." for each directory in $ac_dir_suffix.
2069 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2070 case $ac_top_builddir_sub in
2071 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2072 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2073 esac ;;
2074esac
2075ac_abs_top_builddir=$ac_pwd
2076ac_abs_builddir=$ac_pwd$ac_dir_suffix
2077# for backward compatibility:
2078ac_top_builddir=$ac_top_build_prefix
2079
2080case $srcdir in
2081 .) # We are building in place.
2082 ac_srcdir=.
2083 ac_top_srcdir=$ac_top_builddir_sub
2084 ac_abs_top_srcdir=$ac_pwd ;;
2085 [\\/]* | ?:[\\/]* ) # Absolute name.
2086 ac_srcdir=$srcdir$ac_dir_suffix;
2087 ac_top_srcdir=$srcdir
2088 ac_abs_top_srcdir=$srcdir ;;
2089 *) # Relative name.
2090 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2091 ac_top_srcdir=$ac_top_build_prefix$srcdir
2092 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2093esac
2094ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2095
2096 cd "$ac_dir" || { ac_status=$?; continue; }
2097 # Check for guested configure.
2098 if test -f "$ac_srcdir/configure.gnu"; then
2099 echo &&
2100 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2101 elif test -f "$ac_srcdir/configure"; then
2102 echo &&
2103 $SHELL "$ac_srcdir/configure" --help=recursive
2104 else
2105 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2106 fi || ac_status=$?
2107 cd "$ac_pwd" || { ac_status=$?; break; }
2108 done
2109fi
2110
2111test -n "$ac_init_help" && exit $ac_status
2112if $ac_init_version; then
2113 cat <<\_ACEOF
cristy56225732010-09-04 23:44:25 +00002114ImageMagick configure 6.6.4
cristyf6fcb5d2010-09-24 01:19:13 +00002115generated by GNU Autoconf 2.65
cristy3ed852e2009-09-05 21:47:34 +00002116
cristyf6fcb5d2010-09-24 01:19:13 +00002117Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002118This configure script is free software; the Free Software Foundation
2119gives unlimited permission to copy, distribute and modify it.
2120_ACEOF
2121 exit
2122fi
cristy8b350f62009-11-15 23:12:43 +00002123
2124## ------------------------ ##
2125## Autoconf initialization. ##
2126## ------------------------ ##
2127
2128# ac_fn_c_try_compile LINENO
2129# --------------------------
2130# Try to compile conftest.$ac_ext, and return whether this succeeded.
2131ac_fn_c_try_compile ()
2132{
2133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134 rm -f conftest.$ac_objext
2135 if { { ac_try="$ac_compile"
2136case "(($ac_try" in
2137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2138 *) ac_try_echo=$ac_try;;
2139esac
2140eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2141$as_echo "$ac_try_echo"; } >&5
2142 (eval "$ac_compile") 2>conftest.err
2143 ac_status=$?
2144 if test -s conftest.err; then
2145 grep -v '^ *+' conftest.err >conftest.er1
2146 cat conftest.er1 >&5
2147 mv -f conftest.er1 conftest.err
2148 fi
2149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2150 test $ac_status = 0; } && {
2151 test -z "$ac_c_werror_flag" ||
2152 test ! -s conftest.err
2153 } && test -s conftest.$ac_objext; then :
2154 ac_retval=0
2155else
2156 $as_echo "$as_me: failed program was:" >&5
2157sed 's/^/| /' conftest.$ac_ext >&5
2158
2159 ac_retval=1
2160fi
2161 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002162 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002163
2164} # ac_fn_c_try_compile
2165
cristy95646052009-11-28 23:05:30 +00002166# ac_fn_c_try_cpp LINENO
2167# ----------------------
2168# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2169ac_fn_c_try_cpp ()
2170{
2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172 if { { ac_try="$ac_cpp conftest.$ac_ext"
2173case "(($ac_try" in
2174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2175 *) ac_try_echo=$ac_try;;
2176esac
2177eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2178$as_echo "$ac_try_echo"; } >&5
2179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2180 ac_status=$?
2181 if test -s conftest.err; then
2182 grep -v '^ *+' conftest.err >conftest.er1
2183 cat conftest.er1 >&5
2184 mv -f conftest.er1 conftest.err
2185 fi
2186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2187 test $ac_status = 0; } >/dev/null && {
2188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2189 test ! -s conftest.err
2190 }; then :
2191 ac_retval=0
2192else
2193 $as_echo "$as_me: failed program was:" >&5
2194sed 's/^/| /' conftest.$ac_ext >&5
2195
2196 ac_retval=1
2197fi
2198 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2199 as_fn_set_status $ac_retval
2200
2201} # ac_fn_c_try_cpp
2202
cristy8b350f62009-11-15 23:12:43 +00002203# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2204# -------------------------------------------------------
2205# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2206# the include files in INCLUDES and setting the cache variable VAR
2207# accordingly.
2208ac_fn_c_check_header_mongrel ()
2209{
2210 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyf6fcb5d2010-09-24 01:19:13 +00002211 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2213$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002214if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002215 $as_echo_n "(cached) " >&6
2216fi
2217eval ac_res=\$$3
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2219$as_echo "$ac_res" >&6; }
2220else
2221 # Is the header compilable?
2222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2223$as_echo_n "checking $2 usability... " >&6; }
2224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225/* end confdefs.h. */
2226$4
2227#include <$2>
2228_ACEOF
2229if ac_fn_c_try_compile "$LINENO"; then :
2230 ac_header_compiler=yes
2231else
2232 ac_header_compiler=no
2233fi
2234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2236$as_echo "$ac_header_compiler" >&6; }
2237
2238# Is the header present?
2239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2240$as_echo_n "checking $2 presence... " >&6; }
2241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242/* end confdefs.h. */
2243#include <$2>
2244_ACEOF
2245if ac_fn_c_try_cpp "$LINENO"; then :
2246 ac_header_preproc=yes
2247else
2248 ac_header_preproc=no
2249fi
2250rm -f conftest.err conftest.$ac_ext
2251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2252$as_echo "$ac_header_preproc" >&6; }
2253
2254# So? What about this header?
2255case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2256 yes:no: )
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2258$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2260$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2261 ;;
2262 no:yes:* )
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2264$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2266$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2268$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2270$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2272$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00002273( cat <<\_ASBOX
2274## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002275## Report this to http://www.imagemagick.org ##
cristyf6fcb5d2010-09-24 01:19:13 +00002276## ----------------------------------------- ##
2277_ASBOX
cristy8b350f62009-11-15 23:12:43 +00002278 ) | sed "s/^/$as_me: WARNING: /" >&2
2279 ;;
2280esac
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2282$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002283if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002284 $as_echo_n "(cached) " >&6
2285else
2286 eval "$3=\$ac_header_compiler"
2287fi
2288eval ac_res=\$$3
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290$as_echo "$ac_res" >&6; }
2291fi
2292 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2293
2294} # ac_fn_c_check_header_mongrel
2295
2296# ac_fn_c_try_run LINENO
2297# ----------------------
2298# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2299# that executables *can* be run.
2300ac_fn_c_try_run ()
2301{
2302 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2303 if { { ac_try="$ac_link"
2304case "(($ac_try" in
2305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2306 *) ac_try_echo=$ac_try;;
2307esac
2308eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2309$as_echo "$ac_try_echo"; } >&5
2310 (eval "$ac_link") 2>&5
2311 ac_status=$?
2312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2313 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2314 { { case "(($ac_try" in
2315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316 *) ac_try_echo=$ac_try;;
2317esac
2318eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2319$as_echo "$ac_try_echo"; } >&5
2320 (eval "$ac_try") 2>&5
2321 ac_status=$?
2322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2323 test $ac_status = 0; }; }; then :
2324 ac_retval=0
2325else
2326 $as_echo "$as_me: program exited with status $ac_status" >&5
2327 $as_echo "$as_me: failed program was:" >&5
2328sed 's/^/| /' conftest.$ac_ext >&5
2329
2330 ac_retval=$ac_status
2331fi
2332 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2333 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002334 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002335
2336} # ac_fn_c_try_run
2337
2338# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2339# -------------------------------------------------------
2340# Tests whether HEADER exists and can be compiled using the include files in
2341# INCLUDES, setting the cache variable VAR accordingly.
2342ac_fn_c_check_header_compile ()
2343{
2344 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2346$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002347if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002348 $as_echo_n "(cached) " >&6
2349else
2350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351/* end confdefs.h. */
2352$4
2353#include <$2>
2354_ACEOF
2355if ac_fn_c_try_compile "$LINENO"; then :
2356 eval "$3=yes"
2357else
2358 eval "$3=no"
2359fi
2360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2361fi
2362eval ac_res=\$$3
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2364$as_echo "$ac_res" >&6; }
2365 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2366
2367} # ac_fn_c_check_header_compile
2368
cristya0b81c32010-01-22 02:54:33 +00002369# ac_fn_cxx_try_compile LINENO
2370# ----------------------------
2371# Try to compile conftest.$ac_ext, and return whether this succeeded.
2372ac_fn_cxx_try_compile ()
2373{
2374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375 rm -f conftest.$ac_objext
2376 if { { ac_try="$ac_compile"
2377case "(($ac_try" in
2378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379 *) ac_try_echo=$ac_try;;
2380esac
2381eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2382$as_echo "$ac_try_echo"; } >&5
2383 (eval "$ac_compile") 2>conftest.err
2384 ac_status=$?
2385 if test -s conftest.err; then
2386 grep -v '^ *+' conftest.err >conftest.er1
2387 cat conftest.er1 >&5
2388 mv -f conftest.er1 conftest.err
2389 fi
2390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2391 test $ac_status = 0; } && {
2392 test -z "$ac_cxx_werror_flag" ||
2393 test ! -s conftest.err
2394 } && test -s conftest.$ac_objext; then :
2395 ac_retval=0
2396else
2397 $as_echo "$as_me: failed program was:" >&5
2398sed 's/^/| /' conftest.$ac_ext >&5
2399
2400 ac_retval=1
2401fi
2402 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2403 as_fn_set_status $ac_retval
2404
2405} # ac_fn_cxx_try_compile
2406
cristy8b350f62009-11-15 23:12:43 +00002407# ac_fn_c_try_link LINENO
2408# -----------------------
2409# Try to link conftest.$ac_ext, and return whether this succeeded.
2410ac_fn_c_try_link ()
2411{
2412 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2413 rm -f conftest.$ac_objext conftest$ac_exeext
2414 if { { ac_try="$ac_link"
2415case "(($ac_try" in
2416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417 *) ac_try_echo=$ac_try;;
2418esac
2419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2420$as_echo "$ac_try_echo"; } >&5
2421 (eval "$ac_link") 2>conftest.err
2422 ac_status=$?
2423 if test -s conftest.err; then
2424 grep -v '^ *+' conftest.err >conftest.er1
2425 cat conftest.er1 >&5
2426 mv -f conftest.er1 conftest.err
2427 fi
2428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2429 test $ac_status = 0; } && {
2430 test -z "$ac_c_werror_flag" ||
2431 test ! -s conftest.err
2432 } && test -s conftest$ac_exeext && {
2433 test "$cross_compiling" = yes ||
2434 $as_test_x conftest$ac_exeext
2435 }; then :
2436 ac_retval=0
2437else
2438 $as_echo "$as_me: failed program was:" >&5
2439sed 's/^/| /' conftest.$ac_ext >&5
2440
2441 ac_retval=1
2442fi
2443 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2444 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2445 # interfere with the next link command; also delete a directory that is
2446 # left behind by Apple's compiler. We do this before executing the actions.
2447 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2448 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002449 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002450
2451} # ac_fn_c_try_link
2452
cristy73bd4a52010-10-05 11:24:23 +00002453# ac_fn_c_check_func LINENO FUNC VAR
2454# ----------------------------------
2455# Tests whether FUNC exists, setting the cache variable VAR accordingly
2456ac_fn_c_check_func ()
2457{
2458 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2460$as_echo_n "checking for $2... " >&6; }
2461if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2462 $as_echo_n "(cached) " >&6
2463else
2464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465/* end confdefs.h. */
2466/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2468#define $2 innocuous_$2
2469
2470/* System header to define __stub macros and hopefully few prototypes,
2471 which can conflict with char $2 (); below.
2472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2473 <limits.h> exists even on freestanding compilers. */
2474
2475#ifdef __STDC__
2476# include <limits.h>
2477#else
2478# include <assert.h>
2479#endif
2480
2481#undef $2
2482
2483/* Override any GCC internal prototype to avoid an error.
2484 Use char because int might match the return type of a GCC
2485 builtin and then its argument prototype would still apply. */
2486#ifdef __cplusplus
2487extern "C"
2488#endif
2489char $2 ();
2490/* The GNU C library defines this for functions which it implements
2491 to always fail with ENOSYS. Some functions are actually named
2492 something starting with __ and the normal name is an alias. */
2493#if defined __stub_$2 || defined __stub___$2
2494choke me
2495#endif
2496
2497int
2498main ()
2499{
2500return $2 ();
2501 ;
2502 return 0;
2503}
2504_ACEOF
2505if ac_fn_c_try_link "$LINENO"; then :
2506 eval "$3=yes"
2507else
2508 eval "$3=no"
2509fi
2510rm -f core conftest.err conftest.$ac_objext \
2511 conftest$ac_exeext conftest.$ac_ext
2512fi
2513eval ac_res=\$$3
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2515$as_echo "$ac_res" >&6; }
2516 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2517
2518} # ac_fn_c_check_func
2519
2520# ac_fn_cxx_try_cpp LINENO
2521# ------------------------
2522# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2523ac_fn_cxx_try_cpp ()
2524{
2525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2526 if { { ac_try="$ac_cpp conftest.$ac_ext"
2527case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2530esac
2531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2532$as_echo "$ac_try_echo"; } >&5
2533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2534 ac_status=$?
2535 if test -s conftest.err; then
2536 grep -v '^ *+' conftest.err >conftest.er1
2537 cat conftest.er1 >&5
2538 mv -f conftest.er1 conftest.err
2539 fi
2540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2541 test $ac_status = 0; } >/dev/null && {
2542 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2543 test ! -s conftest.err
2544 }; then :
2545 ac_retval=0
2546else
2547 $as_echo "$as_me: failed program was:" >&5
2548sed 's/^/| /' conftest.$ac_ext >&5
2549
2550 ac_retval=1
2551fi
2552 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2553 as_fn_set_status $ac_retval
2554
2555} # ac_fn_cxx_try_cpp
2556
2557# ac_fn_cxx_try_link LINENO
2558# -------------------------
2559# Try to link conftest.$ac_ext, and return whether this succeeded.
2560ac_fn_cxx_try_link ()
2561{
2562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2563 rm -f conftest.$ac_objext conftest$ac_exeext
2564 if { { ac_try="$ac_link"
2565case "(($ac_try" in
2566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567 *) ac_try_echo=$ac_try;;
2568esac
2569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2570$as_echo "$ac_try_echo"; } >&5
2571 (eval "$ac_link") 2>conftest.err
2572 ac_status=$?
2573 if test -s conftest.err; then
2574 grep -v '^ *+' conftest.err >conftest.er1
2575 cat conftest.er1 >&5
2576 mv -f conftest.er1 conftest.err
2577 fi
2578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2579 test $ac_status = 0; } && {
2580 test -z "$ac_cxx_werror_flag" ||
2581 test ! -s conftest.err
2582 } && test -s conftest$ac_exeext && {
2583 test "$cross_compiling" = yes ||
2584 $as_test_x conftest$ac_exeext
2585 }; then :
2586 ac_retval=0
2587else
2588 $as_echo "$as_me: failed program was:" >&5
2589sed 's/^/| /' conftest.$ac_ext >&5
2590
2591 ac_retval=1
2592fi
2593 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2594 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2595 # interfere with the next link command; also delete a directory that is
2596 # left behind by Apple's compiler. We do this before executing the actions.
2597 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2598 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2599 as_fn_set_status $ac_retval
2600
2601} # ac_fn_cxx_try_link
2602
2603# ac_fn_c_check_decl LINENO SYMBOL VAR
2604# ------------------------------------
2605# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2606ac_fn_c_check_decl ()
2607{
2608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2610$as_echo_n "checking whether $2 is declared... " >&6; }
2611if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2612 $as_echo_n "(cached) " >&6
2613else
2614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2615/* end confdefs.h. */
2616$4
2617int
2618main ()
2619{
2620#ifndef $2
2621 (void) $2;
2622#endif
2623
2624 ;
2625 return 0;
2626}
2627_ACEOF
2628if ac_fn_c_try_compile "$LINENO"; then :
2629 eval "$3=yes"
2630else
2631 eval "$3=no"
2632fi
2633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634fi
2635eval ac_res=\$$3
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2637$as_echo "$ac_res" >&6; }
2638 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2639
2640} # ac_fn_c_check_decl
2641
cristy8b350f62009-11-15 23:12:43 +00002642# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2643# -------------------------------------------
2644# Tests whether TYPE exists after having included INCLUDES, setting cache
2645# variable VAR accordingly.
2646ac_fn_c_check_type ()
2647{
2648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2650$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002651if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002652 $as_echo_n "(cached) " >&6
2653else
2654 eval "$3=no"
2655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2656/* end confdefs.h. */
2657$4
2658int
2659main ()
2660{
2661if (sizeof ($2))
2662 return 0;
2663 ;
2664 return 0;
2665}
2666_ACEOF
2667if ac_fn_c_try_compile "$LINENO"; then :
2668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2669/* end confdefs.h. */
2670$4
2671int
2672main ()
2673{
2674if (sizeof (($2)))
2675 return 0;
2676 ;
2677 return 0;
2678}
2679_ACEOF
2680if ac_fn_c_try_compile "$LINENO"; then :
2681
2682else
2683 eval "$3=yes"
2684fi
2685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686fi
2687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2688fi
2689eval ac_res=\$$3
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2691$as_echo "$ac_res" >&6; }
2692 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2693
2694} # ac_fn_c_check_type
2695
cristy92703d82010-04-26 00:18:18 +00002696# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2697# ----------------------------------------------------
2698# Tries to find if the field MEMBER exists in type AGGR, after including
2699# INCLUDES, setting cache variable VAR accordingly.
2700ac_fn_c_check_member ()
2701{
2702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2704$as_echo_n "checking for $2.$3... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002705if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy92703d82010-04-26 00:18:18 +00002706 $as_echo_n "(cached) " >&6
2707else
2708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709/* end confdefs.h. */
2710$5
2711int
2712main ()
2713{
2714static $2 ac_aggr;
2715if (ac_aggr.$3)
2716return 0;
2717 ;
2718 return 0;
2719}
2720_ACEOF
2721if ac_fn_c_try_compile "$LINENO"; then :
2722 eval "$4=yes"
2723else
2724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2725/* end confdefs.h. */
2726$5
2727int
2728main ()
2729{
2730static $2 ac_aggr;
2731if (sizeof ac_aggr.$3)
2732return 0;
2733 ;
2734 return 0;
2735}
2736_ACEOF
2737if ac_fn_c_try_compile "$LINENO"; then :
2738 eval "$4=yes"
2739else
2740 eval "$4=no"
2741fi
2742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743fi
2744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2745fi
2746eval ac_res=\$$4
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2748$as_echo "$ac_res" >&6; }
2749 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2750
2751} # ac_fn_c_check_member
2752
cristy8b350f62009-11-15 23:12:43 +00002753# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2754# --------------------------------------------
2755# Tries to find the compile-time value of EXPR in a program that includes
2756# INCLUDES, setting VAR accordingly. Returns whether the value could be
2757# computed
2758ac_fn_c_compute_int ()
2759{
2760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2761 if test "$cross_compiling" = yes; then
2762 # Depending upon the size, compute the lo and hi bounds.
2763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2764/* end confdefs.h. */
2765$4
2766int
2767main ()
2768{
2769static int test_array [1 - 2 * !(($2) >= 0)];
2770test_array [0] = 0
2771
2772 ;
2773 return 0;
2774}
2775_ACEOF
2776if ac_fn_c_try_compile "$LINENO"; then :
2777 ac_lo=0 ac_mid=0
2778 while :; do
2779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2780/* end confdefs.h. */
2781$4
2782int
2783main ()
2784{
2785static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2786test_array [0] = 0
2787
2788 ;
2789 return 0;
2790}
2791_ACEOF
2792if ac_fn_c_try_compile "$LINENO"; then :
2793 ac_hi=$ac_mid; break
2794else
2795 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2796 if test $ac_lo -le $ac_mid; then
2797 ac_lo= ac_hi=
2798 break
2799 fi
2800 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2801fi
2802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803 done
2804else
2805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2806/* end confdefs.h. */
2807$4
2808int
2809main ()
2810{
2811static int test_array [1 - 2 * !(($2) < 0)];
2812test_array [0] = 0
2813
2814 ;
2815 return 0;
2816}
2817_ACEOF
2818if ac_fn_c_try_compile "$LINENO"; then :
2819 ac_hi=-1 ac_mid=-1
2820 while :; do
2821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822/* end confdefs.h. */
2823$4
2824int
2825main ()
2826{
2827static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2828test_array [0] = 0
2829
2830 ;
2831 return 0;
2832}
2833_ACEOF
2834if ac_fn_c_try_compile "$LINENO"; then :
2835 ac_lo=$ac_mid; break
2836else
2837 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2838 if test $ac_mid -le $ac_hi; then
2839 ac_lo= ac_hi=
2840 break
2841 fi
2842 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2843fi
2844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2845 done
2846else
2847 ac_lo= ac_hi=
2848fi
2849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2850fi
2851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2852# Binary search between lo and hi bounds.
2853while test "x$ac_lo" != "x$ac_hi"; do
2854 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2856/* end confdefs.h. */
2857$4
2858int
2859main ()
2860{
2861static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2862test_array [0] = 0
2863
2864 ;
2865 return 0;
2866}
2867_ACEOF
2868if ac_fn_c_try_compile "$LINENO"; then :
2869 ac_hi=$ac_mid
2870else
2871 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2872fi
2873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2874done
2875case $ac_lo in #((
2876?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2877'') ac_retval=1 ;;
2878esac
2879 else
2880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2881/* end confdefs.h. */
2882$4
2883static long int longval () { return $2; }
2884static unsigned long int ulongval () { return $2; }
2885#include <stdio.h>
2886#include <stdlib.h>
2887int
2888main ()
2889{
2890
2891 FILE *f = fopen ("conftest.val", "w");
2892 if (! f)
2893 return 1;
2894 if (($2) < 0)
2895 {
2896 long int i = longval ();
2897 if (i != ($2))
2898 return 1;
2899 fprintf (f, "%ld", i);
2900 }
2901 else
2902 {
2903 unsigned long int i = ulongval ();
2904 if (i != ($2))
2905 return 1;
2906 fprintf (f, "%lu", i);
2907 }
2908 /* Do not output a trailing newline, as this causes \r\n confusion
2909 on some platforms. */
2910 return ferror (f) || fclose (f) != 0;
2911
2912 ;
2913 return 0;
2914}
2915_ACEOF
2916if ac_fn_c_try_run "$LINENO"; then :
2917 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2918else
2919 ac_retval=1
2920fi
2921rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2922 conftest.$ac_objext conftest.beam conftest.$ac_ext
2923rm -f conftest.val
2924
2925 fi
2926 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002927 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002928
2929} # ac_fn_c_compute_int
2930
2931# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2932# ---------------------------------------------------------
2933# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2934# the include files in INCLUDES and setting the cache variable VAR
2935# accordingly.
2936ac_fn_cxx_check_header_mongrel ()
2937{
2938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyf6fcb5d2010-09-24 01:19:13 +00002939 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2941$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002942if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002943 $as_echo_n "(cached) " >&6
2944fi
2945eval ac_res=\$$3
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2947$as_echo "$ac_res" >&6; }
2948else
2949 # Is the header compilable?
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2951$as_echo_n "checking $2 usability... " >&6; }
2952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2953/* end confdefs.h. */
2954$4
2955#include <$2>
2956_ACEOF
2957if ac_fn_cxx_try_compile "$LINENO"; then :
2958 ac_header_compiler=yes
2959else
2960 ac_header_compiler=no
2961fi
2962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2964$as_echo "$ac_header_compiler" >&6; }
2965
2966# Is the header present?
2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2968$as_echo_n "checking $2 presence... " >&6; }
2969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2970/* end confdefs.h. */
2971#include <$2>
2972_ACEOF
2973if ac_fn_cxx_try_cpp "$LINENO"; then :
2974 ac_header_preproc=yes
2975else
2976 ac_header_preproc=no
2977fi
2978rm -f conftest.err conftest.$ac_ext
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2980$as_echo "$ac_header_preproc" >&6; }
2981
2982# So? What about this header?
2983case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2984 yes:no: )
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2986$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2988$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2989 ;;
2990 no:yes:* )
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2992$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2994$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2996$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2998$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3000$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00003001( cat <<\_ASBOX
3002## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003003## Report this to http://www.imagemagick.org ##
cristyf6fcb5d2010-09-24 01:19:13 +00003004## ----------------------------------------- ##
3005_ASBOX
cristy8b350f62009-11-15 23:12:43 +00003006 ) | sed "s/^/$as_me: WARNING: /" >&2
3007 ;;
3008esac
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3010$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00003011if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00003012 $as_echo_n "(cached) " >&6
3013else
3014 eval "$3=\$ac_header_compiler"
3015fi
3016eval ac_res=\$$3
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3018$as_echo "$ac_res" >&6; }
3019fi
3020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3021
3022} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003023cat >config.log <<_ACEOF
3024This file contains any messages produced by compilers while
3025running configure, to aid debugging if configure makes a mistake.
3026
cristy56225732010-09-04 23:44:25 +00003027It was created by ImageMagick $as_me 6.6.4, which was
cristyf6fcb5d2010-09-24 01:19:13 +00003028generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003029
3030 $ $0 $@
3031
3032_ACEOF
3033exec 5>>config.log
3034{
3035cat <<_ASUNAME
3036## --------- ##
3037## Platform. ##
3038## --------- ##
3039
3040hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3041uname -m = `(uname -m) 2>/dev/null || echo unknown`
3042uname -r = `(uname -r) 2>/dev/null || echo unknown`
3043uname -s = `(uname -s) 2>/dev/null || echo unknown`
3044uname -v = `(uname -v) 2>/dev/null || echo unknown`
3045
3046/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3047/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3048
3049/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3050/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3051/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3052/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3053/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3054/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3055/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3056
3057_ASUNAME
3058
3059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060for as_dir in $PATH
3061do
3062 IFS=$as_save_IFS
3063 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003064 $as_echo "PATH: $as_dir"
3065 done
cristy3ed852e2009-09-05 21:47:34 +00003066IFS=$as_save_IFS
3067
3068} >&5
3069
3070cat >&5 <<_ACEOF
3071
3072
3073## ----------- ##
3074## Core tests. ##
3075## ----------- ##
3076
3077_ACEOF
3078
3079
3080# Keep a trace of the command line.
3081# Strip out --no-create and --no-recursion so they do not pile up.
3082# Strip out --silent because we don't want to record it for future runs.
3083# Also quote any args containing shell meta-characters.
3084# Make two passes to allow for proper duplicate-argument suppression.
3085ac_configure_args=
3086ac_configure_args0=
3087ac_configure_args1=
3088ac_must_keep_next=false
3089for ac_pass in 1 2
3090do
3091 for ac_arg
3092 do
3093 case $ac_arg in
3094 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3096 | -silent | --silent | --silen | --sile | --sil)
3097 continue ;;
3098 *\'*)
3099 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3100 esac
3101 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003102 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003103 2)
cristy8b350f62009-11-15 23:12:43 +00003104 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003105 if test $ac_must_keep_next = true; then
3106 ac_must_keep_next=false # Got value, back to normal.
3107 else
3108 case $ac_arg in
3109 *=* | --config-cache | -C | -disable-* | --disable-* \
3110 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3111 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3112 | -with-* | --with-* | -without-* | --without-* | --x)
3113 case "$ac_configure_args0 " in
3114 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3115 esac
3116 ;;
3117 -* ) ac_must_keep_next=true ;;
3118 esac
3119 fi
cristy8b350f62009-11-15 23:12:43 +00003120 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003121 ;;
3122 esac
3123 done
3124done
cristy8b350f62009-11-15 23:12:43 +00003125{ ac_configure_args0=; unset ac_configure_args0;}
3126{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003127
3128# When interrupted or exit'd, cleanup temporary files, and complete
3129# config.log. We remove comments because anyway the quotes in there
3130# would cause problems or look ugly.
3131# WARNING: Use '\'' to represent an apostrophe within the trap.
3132# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3133trap 'exit_status=$?
3134 # Save into config.log some information that might help in debugging.
3135 {
3136 echo
3137
cristyf6fcb5d2010-09-24 01:19:13 +00003138 cat <<\_ASBOX
3139## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003140## Cache variables. ##
cristyf6fcb5d2010-09-24 01:19:13 +00003141## ---------------- ##
3142_ASBOX
cristy3ed852e2009-09-05 21:47:34 +00003143 echo
3144 # The following way of writing the cache mishandles newlines in values,
3145(
3146 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3147 eval ac_val=\$$ac_var
3148 case $ac_val in #(
3149 *${as_nl}*)
3150 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003151 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003152$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3153 esac
3154 case $ac_var in #(
3155 _ | IFS | as_nl) ;; #(
3156 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003157 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003158 esac ;;
3159 esac
3160 done
3161 (set) 2>&1 |
3162 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3163 *${as_nl}ac_space=\ *)
3164 sed -n \
3165 "s/'\''/'\''\\\\'\'''\''/g;
3166 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3167 ;; #(
3168 *)
3169 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3170 ;;
3171 esac |
3172 sort
3173)
3174 echo
3175
cristyf6fcb5d2010-09-24 01:19:13 +00003176 cat <<\_ASBOX
3177## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003178## Output variables. ##
cristyf6fcb5d2010-09-24 01:19:13 +00003179## ----------------- ##
3180_ASBOX
cristy3ed852e2009-09-05 21:47:34 +00003181 echo
3182 for ac_var in $ac_subst_vars
3183 do
3184 eval ac_val=\$$ac_var
3185 case $ac_val in
3186 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3187 esac
3188 $as_echo "$ac_var='\''$ac_val'\''"
3189 done | sort
3190 echo
3191
3192 if test -n "$ac_subst_files"; then
cristyf6fcb5d2010-09-24 01:19:13 +00003193 cat <<\_ASBOX
3194## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003195## File substitutions. ##
cristyf6fcb5d2010-09-24 01:19:13 +00003196## ------------------- ##
3197_ASBOX
cristy3ed852e2009-09-05 21:47:34 +00003198 echo
3199 for ac_var in $ac_subst_files
3200 do
3201 eval ac_val=\$$ac_var
3202 case $ac_val in
3203 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3204 esac
3205 $as_echo "$ac_var='\''$ac_val'\''"
3206 done | sort
3207 echo
3208 fi
3209
3210 if test -s confdefs.h; then
cristyf6fcb5d2010-09-24 01:19:13 +00003211 cat <<\_ASBOX
3212## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003213## confdefs.h. ##
cristyf6fcb5d2010-09-24 01:19:13 +00003214## ----------- ##
3215_ASBOX
cristy3ed852e2009-09-05 21:47:34 +00003216 echo
3217 cat confdefs.h
3218 echo
3219 fi
3220 test "$ac_signal" != 0 &&
3221 $as_echo "$as_me: caught signal $ac_signal"
3222 $as_echo "$as_me: exit $exit_status"
3223 } >&5
3224 rm -f core *.core core.conftest.* &&
3225 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3226 exit $exit_status
3227' 0
3228for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003229 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003230done
3231ac_signal=0
3232
3233# confdefs.h avoids OS command line length limits that DEFS can exceed.
3234rm -f -r conftest* confdefs.h
3235
cristy8b350f62009-11-15 23:12:43 +00003236$as_echo "/* confdefs.h */" > confdefs.h
3237
cristy3ed852e2009-09-05 21:47:34 +00003238# Predefined preprocessor variables.
3239
3240cat >>confdefs.h <<_ACEOF
3241#define PACKAGE_NAME "$PACKAGE_NAME"
3242_ACEOF
3243
cristy3ed852e2009-09-05 21:47:34 +00003244cat >>confdefs.h <<_ACEOF
3245#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3246_ACEOF
3247
cristy3ed852e2009-09-05 21:47:34 +00003248cat >>confdefs.h <<_ACEOF
3249#define PACKAGE_VERSION "$PACKAGE_VERSION"
3250_ACEOF
3251
cristy3ed852e2009-09-05 21:47:34 +00003252cat >>confdefs.h <<_ACEOF
3253#define PACKAGE_STRING "$PACKAGE_STRING"
3254_ACEOF
3255
cristy3ed852e2009-09-05 21:47:34 +00003256cat >>confdefs.h <<_ACEOF
3257#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3258_ACEOF
3259
cristy8b350f62009-11-15 23:12:43 +00003260cat >>confdefs.h <<_ACEOF
3261#define PACKAGE_URL "$PACKAGE_URL"
3262_ACEOF
3263
cristy3ed852e2009-09-05 21:47:34 +00003264
3265# Let the site file select an alternate cache file if it wants to.
3266# Prefer an explicitly selected file to automatically selected ones.
3267ac_site_file1=NONE
3268ac_site_file2=NONE
3269if test -n "$CONFIG_SITE"; then
cristyf6fcb5d2010-09-24 01:19:13 +00003270 ac_site_file1=$CONFIG_SITE
cristy3ed852e2009-09-05 21:47:34 +00003271elif test "x$prefix" != xNONE; then
3272 ac_site_file1=$prefix/share/config.site
3273 ac_site_file2=$prefix/etc/config.site
3274else
3275 ac_site_file1=$ac_default_prefix/share/config.site
3276 ac_site_file2=$ac_default_prefix/etc/config.site
3277fi
3278for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3279do
3280 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003281 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003282 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003283$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3284 sed 's/^/| /' "$ac_site_file" >&5
cristyf6fcb5d2010-09-24 01:19:13 +00003285 . "$ac_site_file"
cristy3ed852e2009-09-05 21:47:34 +00003286 fi
3287done
3288
3289if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003290 # Some versions of bash will fail to source /dev/null (special files
3291 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3292 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003293 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003294$as_echo "$as_me: loading cache $cache_file" >&6;}
3295 case $cache_file in
3296 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3297 *) . "./$cache_file";;
3298 esac
3299 fi
3300else
cristy8b350f62009-11-15 23:12:43 +00003301 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003302$as_echo "$as_me: creating cache $cache_file" >&6;}
3303 >$cache_file
3304fi
3305
cristycd4c5312009-11-22 01:19:08 +00003306as_fn_append ac_header_list " stdlib.h"
3307as_fn_append ac_header_list " unistd.h"
3308as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003309# Check that the precious variables saved in the cache have kept the same
3310# value.
3311ac_cache_corrupted=false
3312for ac_var in $ac_precious_vars; do
3313 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3314 eval ac_new_set=\$ac_env_${ac_var}_set
3315 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3316 eval ac_new_val=\$ac_env_${ac_var}_value
3317 case $ac_old_set,$ac_new_set in
3318 set,)
cristy8b350f62009-11-15 23:12:43 +00003319 { $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 +00003320$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3321 ac_cache_corrupted=: ;;
3322 ,set)
cristy8b350f62009-11-15 23:12:43 +00003323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003324$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3325 ac_cache_corrupted=: ;;
3326 ,);;
3327 *)
3328 if test "x$ac_old_val" != "x$ac_new_val"; then
3329 # differences in whitespace do not lead to failure.
3330 ac_old_val_w=`echo x $ac_old_val`
3331 ac_new_val_w=`echo x $ac_new_val`
3332 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003334$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3335 ac_cache_corrupted=:
3336 else
cristy8b350f62009-11-15 23:12:43 +00003337 { $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 +00003338$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3339 eval $ac_var=\$ac_old_val
3340 fi
cristy8b350f62009-11-15 23:12:43 +00003341 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003342$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003343 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003344$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3345 fi;;
3346 esac
3347 # Pass precious variables to config.status.
3348 if test "$ac_new_set" = set; then
3349 case $ac_new_val in
3350 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3351 *) ac_arg=$ac_var=$ac_new_val ;;
3352 esac
3353 case " $ac_configure_args " in
3354 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003355 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003356 esac
3357 fi
3358done
3359if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003363$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00003364 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003365fi
cristy8b350f62009-11-15 23:12:43 +00003366## -------------------- ##
3367## Main body of script. ##
3368## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003369
3370ac_ext=c
3371ac_cpp='$CPP $CPPFLAGS'
3372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375
3376
3377
3378ac_aux_dir=
3379for ac_dir in config "$srcdir"/config; do
cristyf6fcb5d2010-09-24 01:19:13 +00003380 for ac_t in install-sh install.sh shtool; do
3381 if test -f "$ac_dir/$ac_t"; then
3382 ac_aux_dir=$ac_dir
3383 ac_install_sh="$ac_aux_dir/$ac_t -c"
3384 break 2
3385 fi
3386 done
cristy3ed852e2009-09-05 21:47:34 +00003387done
3388if test -z "$ac_aux_dir"; then
cristyf6fcb5d2010-09-24 01:19:13 +00003389 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003390fi
3391
3392# These three variables are undocumented and unsupported,
3393# and are intended to be withdrawn in a future Autoconf release.
3394# They can cause serious problems if a builder's source tree is in a directory
3395# whose full name contains unusual characters.
3396ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3397ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3398ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3399
3400
3401
3402
3403ac_config_headers="$ac_config_headers config/config.h"
3404
cristy73bd4a52010-10-05 11:24:23 +00003405ac_config_commands="$ac_config_commands magick/magick-config.h"
3406
cristy430a7312010-01-21 20:44:04 +00003407ac_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 +00003408
3409
3410#
3411# Save initial user-tunable values
3412#
3413USER_LIBS=$LIBS
3414for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3415 eval isset=\${$var+set}
3416 if test "$isset" = 'set'; then
3417 eval val=$`echo $var`
3418 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3419 fi
3420done
3421
3422
3423CONFIGURE_ARGS="$0 ${ac_configure_args}"
3424
3425
3426# Source file containing package/library versioning information.
3427. ${srcdir}/version.sh
3428
cristy15a88782010-01-31 23:24:49 +00003429echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003430# Make sure we can run config.sub.
3431$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristyf6fcb5d2010-09-24 01:19:13 +00003432 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003433
cristy8b350f62009-11-15 23:12:43 +00003434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003435$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003436if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003437 $as_echo_n "(cached) " >&6
3438else
3439 ac_build_alias=$build_alias
3440test "x$ac_build_alias" = x &&
3441 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3442test "x$ac_build_alias" = x &&
cristyf6fcb5d2010-09-24 01:19:13 +00003443 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003444ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristyf6fcb5d2010-09-24 01:19:13 +00003445 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003446
3447fi
cristy8b350f62009-11-15 23:12:43 +00003448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003449$as_echo "$ac_cv_build" >&6; }
3450case $ac_cv_build in
3451*-*-*) ;;
cristyf6fcb5d2010-09-24 01:19:13 +00003452*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003453esac
3454build=$ac_cv_build
3455ac_save_IFS=$IFS; IFS='-'
3456set x $ac_cv_build
3457shift
3458build_cpu=$1
3459build_vendor=$2
3460shift; shift
3461# Remember, the first character of IFS is used to create $*,
3462# except with old shells:
3463build_os=$*
3464IFS=$ac_save_IFS
3465case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3466
3467
cristy8b350f62009-11-15 23:12:43 +00003468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003469$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003470if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003471 $as_echo_n "(cached) " >&6
3472else
3473 if test "x$host_alias" = x; then
3474 ac_cv_host=$ac_cv_build
3475else
3476 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristyf6fcb5d2010-09-24 01:19:13 +00003477 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003478fi
3479
3480fi
cristy8b350f62009-11-15 23:12:43 +00003481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003482$as_echo "$ac_cv_host" >&6; }
3483case $ac_cv_host in
3484*-*-*) ;;
cristyf6fcb5d2010-09-24 01:19:13 +00003485*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003486esac
3487host=$ac_cv_host
3488ac_save_IFS=$IFS; IFS='-'
3489set x $ac_cv_host
3490shift
3491host_cpu=$1
3492host_vendor=$2
3493shift; shift
3494# Remember, the first character of IFS is used to create $*,
3495# except with old shells:
3496host_os=$*
3497IFS=$ac_save_IFS
3498case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3499
3500
cristy8b350f62009-11-15 23:12:43 +00003501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003502$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003503if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003504 $as_echo_n "(cached) " >&6
3505else
3506 if test "x$target_alias" = x; then
3507 ac_cv_target=$ac_cv_host
3508else
3509 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristyf6fcb5d2010-09-24 01:19:13 +00003510 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003511fi
3512
3513fi
cristy8b350f62009-11-15 23:12:43 +00003514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003515$as_echo "$ac_cv_target" >&6; }
3516case $ac_cv_target in
3517*-*-*) ;;
cristyf6fcb5d2010-09-24 01:19:13 +00003518*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003519esac
3520target=$ac_cv_target
3521ac_save_IFS=$IFS; IFS='-'
3522set x $ac_cv_target
3523shift
3524target_cpu=$1
3525target_vendor=$2
3526shift; shift
3527# Remember, the first character of IFS is used to create $*,
3528# except with old shells:
3529target_os=$*
3530IFS=$ac_save_IFS
3531case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3532
3533
3534# The aliases save the names the user supplied, while $host etc.
3535# will get canonicalized.
3536test -n "$target_alias" &&
3537 test "$program_prefix$program_suffix$program_transform_name" = \
3538 NONENONEs,x,x, &&
3539 program_prefix=${target_alias}-
3540
cristy837d6dc2010-02-27 01:16:57 +00003541
3542
3543
3544
cristy3225a072010-04-17 01:47:28 +00003545MAGICK_TARGET_CPU=$target_cpu
3546
3547
3548MAGICK_TARGET_VENDOR=$target_vendor
3549
3550
3551MAGICK_TARGET_OS=$target_os
3552
3553
cristy3ed852e2009-09-05 21:47:34 +00003554# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003555MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3556
3557MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3558
cristy3ed852e2009-09-05 21:47:34 +00003559
3560
3561# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3563$as_echo_n "checking whether build environment is sane... " >&6; }
3564# Just in case
3565sleep 1
3566echo timestamp > conftest.file
3567# Reject unsafe characters in $srcdir or the absolute working directory
3568# name. Accept space and tab only in the latter.
3569am_lf='
3570'
3571case `pwd` in
3572 *[\\\"\#\$\&\'\`$am_lf]*)
3573 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3574esac
3575case $srcdir in
3576 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3577 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3578esac
cristy3ed852e2009-09-05 21:47:34 +00003579
cristy73bd4a52010-10-05 11:24:23 +00003580# Do `set' in a subshell so we don't clobber the current shell's
3581# arguments. Must try -L first in case configure is actually a
3582# symlink; some systems play weird games with the mod time of symlinks
3583# (eg FreeBSD returns the mod time of the symlink's containing
3584# directory).
3585if (
3586 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3587 if test "$*" = "X"; then
3588 # -L didn't work.
3589 set X `ls -t "$srcdir/configure" conftest.file`
3590 fi
3591 rm -f conftest.file
3592 if test "$*" != "X $srcdir/configure conftest.file" \
3593 && test "$*" != "X conftest.file $srcdir/configure"; then
3594
3595 # If neither matched, then we have a broken ls. This can happen
3596 # if, for instance, CONFIG_SHELL is bash and it inherits a
3597 # broken ls alias from the environment. This has actually
3598 # happened. Such a system could not be considered "sane".
3599 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3600alias in your environment" "$LINENO" 5
3601 fi
3602
3603 test "$2" = conftest.file
3604 )
3605then
3606 # Ok.
3607 :
3608else
3609 as_fn_error "newly created file is older than distributed files!
3610Check your system clock" "$LINENO" 5
3611fi
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3613$as_echo "yes" >&6; }
3614
3615am__api_version='1.11'
3616
3617# Find a good install program. We prefer a C program (faster),
3618# so one script is as good as another. But avoid the broken or
3619# incompatible versions:
3620# SysV /etc/install, /usr/sbin/install
3621# SunOS /usr/etc/install
3622# IRIX /sbin/install
3623# AIX /bin/install
3624# AmigaOS /C/install, which installs bootblocks on floppy discs
3625# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3626# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3627# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3628# OS/2's system install, which has a completely different semantic
3629# ./install, which can be erroneously created by make from ./install.sh.
3630# Reject install programs that cannot install multiple files.
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3632$as_echo_n "checking for a BSD-compatible install... " >&6; }
3633if test -z "$INSTALL"; then
3634if test "${ac_cv_path_install+set}" = set; then :
3635 $as_echo_n "(cached) " >&6
3636else
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638for as_dir in $PATH
3639do
3640 IFS=$as_save_IFS
3641 test -z "$as_dir" && as_dir=.
3642 # Account for people who put trailing slashes in PATH elements.
3643case $as_dir/ in #((
3644 ./ | .// | /[cC]/* | \
3645 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3646 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3647 /usr/ucb/* ) ;;
3648 *)
3649 # OSF1 and SCO ODT 3.0 have their own names for install.
3650 # Don't use installbsd from OSF since it installs stuff as root
3651 # by default.
3652 for ac_prog in ginstall scoinst install; do
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3655 if test $ac_prog = install &&
3656 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3657 # AIX install. It has an incompatible calling convention.
3658 :
3659 elif test $ac_prog = install &&
3660 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3661 # program-specific install script used by HP pwplus--don't use.
3662 :
3663 else
3664 rm -rf conftest.one conftest.two conftest.dir
3665 echo one > conftest.one
3666 echo two > conftest.two
3667 mkdir conftest.dir
3668 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3669 test -s conftest.one && test -s conftest.two &&
3670 test -s conftest.dir/conftest.one &&
3671 test -s conftest.dir/conftest.two
3672 then
3673 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3674 break 3
3675 fi
3676 fi
3677 fi
3678 done
3679 done
3680 ;;
3681esac
3682
3683 done
3684IFS=$as_save_IFS
3685
3686rm -rf conftest.one conftest.two conftest.dir
3687
3688fi
3689 if test "${ac_cv_path_install+set}" = set; then
3690 INSTALL=$ac_cv_path_install
3691 else
3692 # As a last resort, use the slow shell script. Don't cache a
3693 # value for INSTALL within a source directory, because that will
3694 # break other packages using the cache if that directory is
3695 # removed, or if the value is a relative name.
3696 INSTALL=$ac_install_sh
3697 fi
3698fi
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3700$as_echo "$INSTALL" >&6; }
3701
3702# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3703# It thinks the first close brace ends the variable substitution.
3704test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3705
3706test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3707
3708test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3709
3710test "$program_prefix" != NONE &&
3711 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3712# Use a double $ so make ignores it.
3713test "$program_suffix" != NONE &&
3714 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3715# Double any \ or $.
3716# By default was `s,x,x', remove it if useless.
3717ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3718program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3719
3720# expand $ac_aux_dir to an absolute path
3721am_aux_dir=`cd $ac_aux_dir && pwd`
3722
3723if test x"${MISSING+set}" != xset; then
3724 case $am_aux_dir in
3725 *\ * | *\ *)
3726 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3727 *)
3728 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3729 esac
3730fi
3731# Use eval to expand $SHELL
3732if eval "$MISSING --run true"; then
3733 am_missing_run="$MISSING --run "
3734else
3735 am_missing_run=
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3737$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3738fi
3739
3740if test x"${install_sh}" != xset; then
3741 case $am_aux_dir in
3742 *\ * | *\ *)
3743 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3744 *)
3745 install_sh="\${SHELL} $am_aux_dir/install-sh"
3746 esac
3747fi
3748
3749# Installed binaries are usually stripped using `strip' when the user
3750# run `make install-strip'. However `strip' might not be the right
3751# tool to use in cross-compilation environments, therefore Automake
3752# will honor the `STRIP' environment variable to overrule this program.
3753if test "$cross_compiling" != no; then
3754 if test -n "$ac_tool_prefix"; then
3755 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3756set dummy ${ac_tool_prefix}strip; ac_word=$2
3757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758$as_echo_n "checking for $ac_word... " >&6; }
3759if test "${ac_cv_prog_STRIP+set}" = set; then :
3760 $as_echo_n "(cached) " >&6
3761else
3762 if test -n "$STRIP"; then
3763 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3764else
3765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766for as_dir in $PATH
3767do
3768 IFS=$as_save_IFS
3769 test -z "$as_dir" && as_dir=.
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3772 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 break 2
3775 fi
3776done
3777 done
3778IFS=$as_save_IFS
3779
3780fi
3781fi
3782STRIP=$ac_cv_prog_STRIP
3783if test -n "$STRIP"; then
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3785$as_echo "$STRIP" >&6; }
3786else
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788$as_echo "no" >&6; }
3789fi
3790
3791
3792fi
3793if test -z "$ac_cv_prog_STRIP"; then
3794 ac_ct_STRIP=$STRIP
3795 # Extract the first word of "strip", so it can be a program name with args.
3796set dummy strip; ac_word=$2
3797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798$as_echo_n "checking for $ac_word... " >&6; }
3799if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3800 $as_echo_n "(cached) " >&6
3801else
3802 if test -n "$ac_ct_STRIP"; then
3803 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3804else
3805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806for as_dir in $PATH
3807do
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812 ac_cv_prog_ac_ct_STRIP="strip"
3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3815 fi
3816done
3817 done
3818IFS=$as_save_IFS
3819
3820fi
3821fi
3822ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3823if test -n "$ac_ct_STRIP"; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3825$as_echo "$ac_ct_STRIP" >&6; }
3826else
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828$as_echo "no" >&6; }
3829fi
3830
3831 if test "x$ac_ct_STRIP" = x; then
3832 STRIP=":"
3833 else
3834 case $cross_compiling:$ac_tool_warned in
3835yes:)
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3838ac_tool_warned=yes ;;
3839esac
3840 STRIP=$ac_ct_STRIP
3841 fi
3842else
3843 STRIP="$ac_cv_prog_STRIP"
3844fi
3845
3846fi
3847INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3848
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3850$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3851if test -z "$MKDIR_P"; then
3852 if test "${ac_cv_path_mkdir+set}" = set; then :
3853 $as_echo_n "(cached) " >&6
3854else
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3857do
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_prog in mkdir gmkdir; do
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3863 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3864 'mkdir (GNU coreutils) '* | \
3865 'mkdir (coreutils) '* | \
3866 'mkdir (fileutils) '4.1*)
3867 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3868 break 3;;
3869 esac
3870 done
3871 done
3872 done
3873IFS=$as_save_IFS
3874
3875fi
3876
3877 test -d ./--version && rmdir ./--version
3878 if test "${ac_cv_path_mkdir+set}" = set; then
3879 MKDIR_P="$ac_cv_path_mkdir -p"
3880 else
3881 # As a last resort, use the slow shell script. Don't cache a
3882 # value for MKDIR_P within a source directory, because that will
3883 # break other packages using the cache if that directory is
3884 # removed, or if the value is a relative name.
3885 MKDIR_P="$ac_install_sh -d"
3886 fi
3887fi
3888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3889$as_echo "$MKDIR_P" >&6; }
3890
3891mkdir_p="$MKDIR_P"
3892case $mkdir_p in
3893 [\\/$]* | ?:[\\/]*) ;;
3894 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3895esac
3896
3897for ac_prog in gawk mawk nawk awk
3898do
3899 # Extract the first word of "$ac_prog", so it can be a program name with args.
3900set dummy $ac_prog; ac_word=$2
3901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3902$as_echo_n "checking for $ac_word... " >&6; }
3903if test "${ac_cv_prog_AWK+set}" = set; then :
3904 $as_echo_n "(cached) " >&6
3905else
3906 if test -n "$AWK"; then
3907 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3908else
3909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910for as_dir in $PATH
3911do
3912 IFS=$as_save_IFS
3913 test -z "$as_dir" && as_dir=.
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3916 ac_cv_prog_AWK="$ac_prog"
3917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3918 break 2
3919 fi
3920done
3921 done
3922IFS=$as_save_IFS
3923
3924fi
3925fi
3926AWK=$ac_cv_prog_AWK
3927if test -n "$AWK"; then
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3929$as_echo "$AWK" >&6; }
3930else
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932$as_echo "no" >&6; }
3933fi
3934
3935
3936 test -n "$AWK" && break
3937done
3938
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3940$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3941set x ${MAKE-make}
3942ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3943if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3944 $as_echo_n "(cached) " >&6
3945else
3946 cat >conftest.make <<\_ACEOF
3947SHELL = /bin/sh
3948all:
3949 @echo '@@@%%%=$(MAKE)=@@@%%%'
3950_ACEOF
3951# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3952case `${MAKE-make} -f conftest.make 2>/dev/null` in
3953 *@@@%%%=?*=@@@%%%*)
3954 eval ac_cv_prog_make_${ac_make}_set=yes;;
3955 *)
3956 eval ac_cv_prog_make_${ac_make}_set=no;;
3957esac
3958rm -f conftest.make
3959fi
3960if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3962$as_echo "yes" >&6; }
3963 SET_MAKE=
3964else
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966$as_echo "no" >&6; }
3967 SET_MAKE="MAKE=${MAKE-make}"
3968fi
3969
3970rm -rf .tst 2>/dev/null
3971mkdir .tst 2>/dev/null
3972if test -d .tst; then
3973 am__leading_dot=.
3974else
3975 am__leading_dot=_
3976fi
3977rmdir .tst 2>/dev/null
3978
3979if test "`cd $srcdir && pwd`" != "`pwd`"; then
3980 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3981 # is not polluted with repeated "-I."
3982 am__isrc=' -I$(srcdir)'
3983 # test to see if srcdir already configured
3984 if test -f $srcdir/config.status; then
3985 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3986 fi
3987fi
3988
3989# test whether we have cygpath
3990if test -z "$CYGPATH_W"; then
3991 if (cygpath --version) >/dev/null 2>/dev/null; then
3992 CYGPATH_W='cygpath -w'
3993 else
3994 CYGPATH_W=echo
3995 fi
3996fi
3997
3998
3999# Define the identity of the package.
4000 PACKAGE=$PACKAGE_NAME
4001 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4002
4003
4004# Some tools Automake needs.
4005
4006ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4007
4008
4009AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4010
4011
4012AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4013
4014
4015AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4016
4017
4018MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4019
4020# We need awk for the "check" target. The system "awk" is bad on
4021# some platforms.
4022# Always define AMTAR for backward compatibility.
4023
4024AMTAR=${AMTAR-"${am_missing_run}tar"}
4025
4026am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4027
4028
4029
4030
4031
cristy3ed852e2009-09-05 21:47:34 +00004032
4033# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004034# Check whether --enable-silent-rules was given.
4035if test "${enable_silent_rules+set}" = set; then :
4036 enableval=$enable_silent_rules;
4037fi
4038
4039case $enable_silent_rules in
4040yes) AM_DEFAULT_VERBOSITY=0;;
4041no) AM_DEFAULT_VERBOSITY=1;;
4042*) AM_DEFAULT_VERBOSITY=0;;
4043esac
4044AM_BACKSLASH='\'
4045
cristy3ed852e2009-09-05 21:47:34 +00004046
4047MAGICK_LIB_VERSION="0x"
4048if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4049 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4050fi
4051MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4052if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4053 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4054fi
4055MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4056if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4057 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4058fi
4059MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4060
4061
4062# Definition used to define MagickLibVersionText in version.h
4063MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4064
4065
4066# Definition used to define MagickLibVersionNumber in version.h
4067MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4068
4069
4070# Regenerate config.status if ChangeLog or version.sh is updated.
4071CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4072
4073
4074PERLMAINCC=$CC
4075
4076MAGICK_CFLAGS=''
4077MAGICK_CPPFLAGS=$CPPFLAGS_USER
4078MAGICK_PCFLAGS=$CPPFLAGS_USER
4079MAGICK_LDFLAGS=''
4080MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004081MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004082
4083#
4084# Evaluate shell variable equivalents to Makefile directory variables
4085#
4086if test "x$prefix" = xNONE; then
4087 prefix=$ac_default_prefix
4088fi
4089# Let make expand exec_prefix.
4090if test "x$exec_prefix" = xNONE; then
4091 exec_prefix='${prefix}'
4092fi
4093
4094#
4095eval "eval PREFIX_DIR=${prefix}"
4096
4097eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4098
4099eval "eval BIN_DIR=$bindir"
4100
4101eval "eval SBIN_DIR=$sbindir"
4102
4103eval "eval LIBEXEC_DIR=$libexecdir"
4104
4105eval "eval DATA_DIR=$datadir"
4106
4107eval "eval SYSCONF_DIR=$sysconfdir"
4108
4109eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4110
4111eval "eval LOCALSTATE_DIR=$localstatedir"
4112
4113eval "eval LIB_DIR=$libdir"
4114
4115eval "eval INCLUDE_DIR=$includedir"
4116
4117eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4118
4119eval "eval INFO_DIR=$infodir"
4120
4121eval "eval MAN_DIR=$mandir"
4122
4123
4124# Get full paths to source and build directories
4125srcdirfull="`cd $srcdir && pwd`"
4126builddir="`pwd`"
4127
4128#
4129# Compute variables useful for running uninstalled software.
4130#
4131MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4132MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4133MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4134MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4135DIRSEP=':'
4136case "${build_os}" in
4137 mingw* )
4138 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4139 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4140 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4141 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4142 DIRSEP=';'
4143 ;;
4144esac
4145case "${host_os}" in
4146 mingw* )
4147 DIRSEP=';'
4148 ;;
4149esac
4150
4151
4152
4153
4154
4155
cristya0b81c32010-01-22 02:54:33 +00004156
4157#
4158# Enable OS features.
4159#
cristy73bd4a52010-10-05 11:24:23 +00004160DEPDIR="${am__leading_dot}deps"
4161
4162ac_config_commands="$ac_config_commands depfiles"
4163
4164
4165am_make=${MAKE-make}
4166cat > confinc << 'END'
4167am__doit:
4168 @echo this is the am__doit target
4169.PHONY: am__doit
4170END
4171# If we don't find an include directive, just comment out the code.
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4173$as_echo_n "checking for style of include used by $am_make... " >&6; }
4174am__include="#"
4175am__quote=
4176_am_result=none
4177# First try GNU make style include.
4178echo "include confinc" > confmf
4179# Ignore all kinds of additional output from `make'.
4180case `$am_make -s -f confmf 2> /dev/null` in #(
4181*the\ am__doit\ target*)
4182 am__include=include
4183 am__quote=
4184 _am_result=GNU
4185 ;;
4186esac
4187# Now try BSD make style include.
4188if test "$am__include" = "#"; then
4189 echo '.include "confinc"' > confmf
4190 case `$am_make -s -f confmf 2> /dev/null` in #(
4191 *the\ am__doit\ target*)
4192 am__include=.include
4193 am__quote="\""
4194 _am_result=BSD
4195 ;;
4196 esac
4197fi
4198
4199
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4201$as_echo "$_am_result" >&6; }
4202rm -f confinc confmf
4203
4204# Check whether --enable-dependency-tracking was given.
4205if test "${enable_dependency_tracking+set}" = set; then :
4206 enableval=$enable_dependency_tracking;
4207fi
4208
4209if test "x$enable_dependency_tracking" != xno; then
4210 am_depcomp="$ac_aux_dir/depcomp"
4211 AMDEPBACKSLASH='\'
4212fi
4213 if test "x$enable_dependency_tracking" != xno; then
4214 AMDEP_TRUE=
4215 AMDEP_FALSE='#'
4216else
4217 AMDEP_TRUE='#'
4218 AMDEP_FALSE=
4219fi
4220
4221
cristy3ed852e2009-09-05 21:47:34 +00004222ac_ext=c
4223ac_cpp='$CPP $CPPFLAGS'
4224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4226ac_compiler_gnu=$ac_cv_c_compiler_gnu
4227if test -n "$ac_tool_prefix"; then
4228 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4229set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004231$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004232if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004233 $as_echo_n "(cached) " >&6
4234else
4235 if test -n "$CC"; then
4236 ac_cv_prog_CC="$CC" # Let the user override the test.
4237else
4238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239for as_dir in $PATH
4240do
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004243 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4245 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004247 break 2
4248 fi
4249done
cristy8b350f62009-11-15 23:12:43 +00004250 done
cristy3ed852e2009-09-05 21:47:34 +00004251IFS=$as_save_IFS
4252
4253fi
4254fi
4255CC=$ac_cv_prog_CC
4256if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004258$as_echo "$CC" >&6; }
4259else
cristy8b350f62009-11-15 23:12:43 +00004260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004261$as_echo "no" >&6; }
4262fi
4263
4264
4265fi
4266if test -z "$ac_cv_prog_CC"; then
4267 ac_ct_CC=$CC
4268 # Extract the first word of "gcc", so it can be a program name with args.
4269set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004271$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004272if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004273 $as_echo_n "(cached) " >&6
4274else
4275 if test -n "$ac_ct_CC"; then
4276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4277else
4278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279for as_dir in $PATH
4280do
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004283 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4285 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004287 break 2
4288 fi
4289done
cristy8b350f62009-11-15 23:12:43 +00004290 done
cristy3ed852e2009-09-05 21:47:34 +00004291IFS=$as_save_IFS
4292
4293fi
4294fi
4295ac_ct_CC=$ac_cv_prog_ac_ct_CC
4296if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004298$as_echo "$ac_ct_CC" >&6; }
4299else
cristy8b350f62009-11-15 23:12:43 +00004300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004301$as_echo "no" >&6; }
4302fi
4303
4304 if test "x$ac_ct_CC" = x; then
4305 CC=""
4306 else
4307 case $cross_compiling:$ac_tool_warned in
4308yes:)
cristy8b350f62009-11-15 23:12:43 +00004309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4311ac_tool_warned=yes ;;
4312esac
4313 CC=$ac_ct_CC
4314 fi
4315else
4316 CC="$ac_cv_prog_CC"
4317fi
4318
4319if test -z "$CC"; then
4320 if test -n "$ac_tool_prefix"; then
4321 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4322set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004324$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004325if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004326 $as_echo_n "(cached) " >&6
4327else
4328 if test -n "$CC"; then
4329 ac_cv_prog_CC="$CC" # Let the user override the test.
4330else
4331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332for as_dir in $PATH
4333do
4334 IFS=$as_save_IFS
4335 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004336 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4338 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004340 break 2
4341 fi
4342done
cristy8b350f62009-11-15 23:12:43 +00004343 done
cristy3ed852e2009-09-05 21:47:34 +00004344IFS=$as_save_IFS
4345
4346fi
4347fi
4348CC=$ac_cv_prog_CC
4349if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004351$as_echo "$CC" >&6; }
4352else
cristy8b350f62009-11-15 23:12:43 +00004353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004354$as_echo "no" >&6; }
4355fi
4356
4357
4358 fi
4359fi
4360if test -z "$CC"; then
4361 # Extract the first word of "cc", so it can be a program name with args.
4362set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004364$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004365if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004366 $as_echo_n "(cached) " >&6
4367else
4368 if test -n "$CC"; then
4369 ac_cv_prog_CC="$CC" # Let the user override the test.
4370else
4371 ac_prog_rejected=no
4372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373for as_dir in $PATH
4374do
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004377 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4380 ac_prog_rejected=yes
4381 continue
4382 fi
4383 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004385 break 2
4386 fi
4387done
cristy8b350f62009-11-15 23:12:43 +00004388 done
cristy3ed852e2009-09-05 21:47:34 +00004389IFS=$as_save_IFS
4390
4391if test $ac_prog_rejected = yes; then
4392 # We found a bogon in the path, so make sure we never use it.
4393 set dummy $ac_cv_prog_CC
4394 shift
4395 if test $# != 0; then
4396 # We chose a different compiler from the bogus one.
4397 # However, it has the same basename, so the bogon will be chosen
4398 # first if we set CC to just the basename; use the full file name.
4399 shift
4400 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4401 fi
4402fi
4403fi
4404fi
4405CC=$ac_cv_prog_CC
4406if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004408$as_echo "$CC" >&6; }
4409else
cristy8b350f62009-11-15 23:12:43 +00004410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004411$as_echo "no" >&6; }
4412fi
4413
4414
4415fi
4416if test -z "$CC"; then
4417 if test -n "$ac_tool_prefix"; then
4418 for ac_prog in cl.exe
4419 do
4420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4421set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004423$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004424if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004425 $as_echo_n "(cached) " >&6
4426else
4427 if test -n "$CC"; then
4428 ac_cv_prog_CC="$CC" # Let the user override the test.
4429else
4430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431for as_dir in $PATH
4432do
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004435 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4437 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004439 break 2
4440 fi
4441done
cristy8b350f62009-11-15 23:12:43 +00004442 done
cristy3ed852e2009-09-05 21:47:34 +00004443IFS=$as_save_IFS
4444
4445fi
4446fi
4447CC=$ac_cv_prog_CC
4448if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004450$as_echo "$CC" >&6; }
4451else
cristy8b350f62009-11-15 23:12:43 +00004452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004453$as_echo "no" >&6; }
4454fi
4455
4456
4457 test -n "$CC" && break
4458 done
4459fi
4460if test -z "$CC"; then
4461 ac_ct_CC=$CC
4462 for ac_prog in cl.exe
4463do
4464 # Extract the first word of "$ac_prog", so it can be a program name with args.
4465set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004467$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004468if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004469 $as_echo_n "(cached) " >&6
4470else
4471 if test -n "$ac_ct_CC"; then
4472 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4473else
4474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475for as_dir in $PATH
4476do
4477 IFS=$as_save_IFS
4478 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004479 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4481 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004483 break 2
4484 fi
4485done
cristy8b350f62009-11-15 23:12:43 +00004486 done
cristy3ed852e2009-09-05 21:47:34 +00004487IFS=$as_save_IFS
4488
4489fi
4490fi
4491ac_ct_CC=$ac_cv_prog_ac_ct_CC
4492if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004494$as_echo "$ac_ct_CC" >&6; }
4495else
cristy8b350f62009-11-15 23:12:43 +00004496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004497$as_echo "no" >&6; }
4498fi
4499
4500
4501 test -n "$ac_ct_CC" && break
4502done
4503
4504 if test "x$ac_ct_CC" = x; then
4505 CC=""
4506 else
4507 case $cross_compiling:$ac_tool_warned in
4508yes:)
cristy8b350f62009-11-15 23:12:43 +00004509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4511ac_tool_warned=yes ;;
4512esac
4513 CC=$ac_ct_CC
4514 fi
4515fi
4516
4517fi
4518
4519
cristy8b350f62009-11-15 23:12:43 +00004520test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004521$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00004522as_fn_error "no acceptable C compiler found in \$PATH
4523See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004524
4525# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004526$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004527set X $ac_compile
4528ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004529for ac_option in --version -v -V -qversion; do
4530 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004531case "(($ac_try" in
4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533 *) ac_try_echo=$ac_try;;
4534esac
cristy8b350f62009-11-15 23:12:43 +00004535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4536$as_echo "$ac_try_echo"; } >&5
4537 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004538 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004539 if test -s conftest.err; then
4540 sed '10a\
4541... rest of stderr output deleted ...
4542 10q' conftest.err >conftest.er1
4543 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004544 fi
cristycd4c5312009-11-22 01:19:08 +00004545 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4547 test $ac_status = 0; }
4548done
cristy3ed852e2009-09-05 21:47:34 +00004549
cristy8b350f62009-11-15 23:12:43 +00004550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004551/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004552
cristy3ed852e2009-09-05 21:47:34 +00004553int
4554main ()
4555{
4556
4557 ;
4558 return 0;
4559}
4560_ACEOF
4561ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004562ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004563# Try to create an executable without -o first, disregard a.out.
4564# It will help us diagnose broken compilers, and finding out an intuition
4565# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4567$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004568ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4569
4570# The possible output files:
4571ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4572
4573ac_rmfiles=
4574for ac_file in $ac_files
4575do
4576 case $ac_file in
4577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4578 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4579 esac
4580done
4581rm -f $ac_rmfiles
4582
cristy8b350f62009-11-15 23:12:43 +00004583if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004584case "(($ac_try" in
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4587esac
cristy8b350f62009-11-15 23:12:43 +00004588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4589$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004590 (eval "$ac_link_default") 2>&5
4591 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4593 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004594 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4595# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4596# in a Makefile. We should not override ac_cv_exeext if it was cached,
4597# so that the user can short-circuit this test for compilers unknown to
4598# Autoconf.
4599for ac_file in $ac_files ''
4600do
4601 test -f "$ac_file" || continue
4602 case $ac_file in
4603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4604 ;;
4605 [ab].out )
4606 # We found the default executable, but exeext='' is most
4607 # certainly right.
4608 break;;
4609 *.* )
cristy8b350f62009-11-15 23:12:43 +00004610 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004611 then :; else
4612 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4613 fi
4614 # We set ac_cv_exeext here because the later test for it is not
4615 # safe: cross compilers may not add the suffix if given an `-o'
4616 # argument, so we may need to know it at that point already.
4617 # Even if this section looks crufty: it has the advantage of
4618 # actually working.
4619 break;;
4620 * )
4621 break;;
4622 esac
4623done
4624test "$ac_cv_exeext" = no && ac_cv_exeext=
4625
4626else
4627 ac_file=''
4628fi
cristy8b350f62009-11-15 23:12:43 +00004629if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631$as_echo "no" >&6; }
4632$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004633sed 's/^/| /' conftest.$ac_ext >&5
4634
cristy8b350f62009-11-15 23:12:43 +00004635{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00004637{ as_fn_set_status 77
4638as_fn_error "C compiler cannot create executables
4639See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00004640else
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4642$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004643fi
cristycd4c5312009-11-22 01:19:08 +00004644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4645$as_echo_n "checking for C compiler default output file name... " >&6; }
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4647$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004648ac_exeext=$ac_cv_exeext
4649
cristycd4c5312009-11-22 01:19:08 +00004650rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004651ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004653$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004654if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004655case "(($ac_try" in
4656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657 *) ac_try_echo=$ac_try;;
4658esac
cristy8b350f62009-11-15 23:12:43 +00004659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4660$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004661 (eval "$ac_link") 2>&5
4662 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4664 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004665 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4666# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4667# work properly (i.e., refer to `conftest.exe'), while it won't with
4668# `rm'.
4669for ac_file in conftest.exe conftest conftest.*; do
4670 test -f "$ac_file" || continue
4671 case $ac_file in
4672 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4673 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4674 break;;
4675 * ) break;;
4676 esac
4677done
4678else
cristy8b350f62009-11-15 23:12:43 +00004679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004680$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00004681as_fn_error "cannot compute suffix of executables: cannot compile and link
4682See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004683fi
cristycd4c5312009-11-22 01:19:08 +00004684rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004686$as_echo "$ac_cv_exeext" >&6; }
4687
4688rm -f conftest.$ac_ext
4689EXEEXT=$ac_cv_exeext
4690ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692/* end confdefs.h. */
4693#include <stdio.h>
4694int
4695main ()
4696{
4697FILE *f = fopen ("conftest.out", "w");
4698 return ferror (f) || fclose (f) != 0;
4699
4700 ;
4701 return 0;
4702}
4703_ACEOF
4704ac_clean_files="$ac_clean_files conftest.out"
4705# Check that the compiler produces executables we can run. If not, either
4706# the compiler is broken, or we cross compile.
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4708$as_echo_n "checking whether we are cross compiling... " >&6; }
4709if test "$cross_compiling" != yes; then
4710 { { ac_try="$ac_link"
4711case "(($ac_try" in
4712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4713 *) ac_try_echo=$ac_try;;
4714esac
4715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4716$as_echo "$ac_try_echo"; } >&5
4717 (eval "$ac_link") 2>&5
4718 ac_status=$?
4719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4720 test $ac_status = 0; }
4721 if { ac_try='./conftest$ac_cv_exeext'
4722 { { case "(($ac_try" in
4723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724 *) ac_try_echo=$ac_try;;
4725esac
4726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4727$as_echo "$ac_try_echo"; } >&5
4728 (eval "$ac_try") 2>&5
4729 ac_status=$?
4730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4731 test $ac_status = 0; }; }; then
4732 cross_compiling=no
4733 else
4734 if test "$cross_compiling" = maybe; then
4735 cross_compiling=yes
4736 else
4737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00004739as_fn_error "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004740If you meant to cross compile, use \`--host'.
cristyf6fcb5d2010-09-24 01:19:13 +00004741See \`config.log' for more details." "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004742 fi
4743 fi
4744fi
4745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4746$as_echo "$cross_compiling" >&6; }
4747
4748rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4749ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004751$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004752if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004753 $as_echo_n "(cached) " >&6
4754else
cristy8b350f62009-11-15 23:12:43 +00004755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004756/* end confdefs.h. */
4757
4758int
4759main ()
4760{
4761
4762 ;
4763 return 0;
4764}
4765_ACEOF
4766rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004767if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004768case "(($ac_try" in
4769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4770 *) ac_try_echo=$ac_try;;
4771esac
cristy8b350f62009-11-15 23:12:43 +00004772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4773$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004774 (eval "$ac_compile") 2>&5
4775 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4777 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004778 for ac_file in conftest.o conftest.obj conftest.*; do
4779 test -f "$ac_file" || continue;
4780 case $ac_file in
4781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4782 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4783 break;;
4784 esac
4785done
4786else
4787 $as_echo "$as_me: failed program was:" >&5
4788sed 's/^/| /' conftest.$ac_ext >&5
4789
cristy8b350f62009-11-15 23:12:43 +00004790{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00004792as_fn_error "cannot compute suffix of object files: cannot compile
4793See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004794fi
cristy3ed852e2009-09-05 21:47:34 +00004795rm -f conftest.$ac_cv_objext conftest.$ac_ext
4796fi
cristy8b350f62009-11-15 23:12:43 +00004797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004798$as_echo "$ac_cv_objext" >&6; }
4799OBJEXT=$ac_cv_objext
4800ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004802$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004803if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004804 $as_echo_n "(cached) " >&6
4805else
cristy8b350f62009-11-15 23:12:43 +00004806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004807/* end confdefs.h. */
4808
4809int
4810main ()
4811{
4812#ifndef __GNUC__
4813 choke me
4814#endif
4815
4816 ;
4817 return 0;
4818}
4819_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004820if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004821 ac_compiler_gnu=yes
4822else
cristy8b350f62009-11-15 23:12:43 +00004823 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004824fi
cristy3ed852e2009-09-05 21:47:34 +00004825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4826ac_cv_c_compiler_gnu=$ac_compiler_gnu
4827
4828fi
cristy8b350f62009-11-15 23:12:43 +00004829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004830$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4831if test $ac_compiler_gnu = yes; then
4832 GCC=yes
4833else
4834 GCC=
4835fi
4836ac_test_CFLAGS=${CFLAGS+set}
4837ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004839$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004840if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004841 $as_echo_n "(cached) " >&6
4842else
4843 ac_save_c_werror_flag=$ac_c_werror_flag
4844 ac_c_werror_flag=yes
4845 ac_cv_prog_cc_g=no
4846 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004848/* end confdefs.h. */
4849
4850int
4851main ()
4852{
4853
4854 ;
4855 return 0;
4856}
4857_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004858if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004859 ac_cv_prog_cc_g=yes
4860else
cristy8b350f62009-11-15 23:12:43 +00004861 CFLAGS=""
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004863/* end confdefs.h. */
4864
4865int
4866main ()
4867{
4868
4869 ;
4870 return 0;
4871}
4872_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004873if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004874
cristy8b350f62009-11-15 23:12:43 +00004875else
4876 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004877 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004879/* end confdefs.h. */
4880
4881int
4882main ()
4883{
4884
4885 ;
4886 return 0;
4887}
4888_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004889if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004890 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004891fi
cristy3ed852e2009-09-05 21:47:34 +00004892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893fi
cristy3ed852e2009-09-05 21:47:34 +00004894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895fi
cristy3ed852e2009-09-05 21:47:34 +00004896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4897 ac_c_werror_flag=$ac_save_c_werror_flag
4898fi
cristy8b350f62009-11-15 23:12:43 +00004899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004900$as_echo "$ac_cv_prog_cc_g" >&6; }
4901if test "$ac_test_CFLAGS" = set; then
4902 CFLAGS=$ac_save_CFLAGS
4903elif test $ac_cv_prog_cc_g = yes; then
4904 if test "$GCC" = yes; then
4905 CFLAGS="-g -O2"
4906 else
4907 CFLAGS="-g"
4908 fi
4909else
4910 if test "$GCC" = yes; then
4911 CFLAGS="-O2"
4912 else
4913 CFLAGS=
4914 fi
4915fi
cristy8b350f62009-11-15 23:12:43 +00004916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004917$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004918if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004919 $as_echo_n "(cached) " >&6
4920else
4921 ac_cv_prog_cc_c89=no
4922ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004924/* end confdefs.h. */
4925#include <stdarg.h>
4926#include <stdio.h>
4927#include <sys/types.h>
4928#include <sys/stat.h>
4929/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4930struct buf { int x; };
4931FILE * (*rcsopen) (struct buf *, struct stat *, int);
4932static char *e (p, i)
4933 char **p;
4934 int i;
4935{
4936 return p[i];
4937}
4938static char *f (char * (*g) (char **, int), char **p, ...)
4939{
4940 char *s;
4941 va_list v;
4942 va_start (v,p);
4943 s = g (p, va_arg (v,int));
4944 va_end (v);
4945 return s;
4946}
4947
4948/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4949 function prototypes and stuff, but not '\xHH' hex character constants.
4950 These don't provoke an error unfortunately, instead are silently treated
4951 as 'x'. The following induces an error, until -std is added to get
4952 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4953 array size at least. It's necessary to write '\x00'==0 to get something
4954 that's true only with -std. */
4955int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4956
4957/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4958 inside strings and character constants. */
4959#define FOO(x) 'x'
4960int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4961
4962int test (int i, double x);
4963struct s1 {int (*f) (int a);};
4964struct s2 {int (*f) (double a);};
4965int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4966int argc;
4967char **argv;
4968int
4969main ()
4970{
4971return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4972 ;
4973 return 0;
4974}
4975_ACEOF
4976for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4977 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4978do
4979 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004980 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004981 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004982fi
cristy3ed852e2009-09-05 21:47:34 +00004983rm -f core conftest.err conftest.$ac_objext
4984 test "x$ac_cv_prog_cc_c89" != "xno" && break
4985done
4986rm -f conftest.$ac_ext
4987CC=$ac_save_CC
4988
4989fi
4990# AC_CACHE_VAL
4991case "x$ac_cv_prog_cc_c89" in
4992 x)
cristy8b350f62009-11-15 23:12:43 +00004993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004994$as_echo "none needed" >&6; } ;;
4995 xno)
cristy8b350f62009-11-15 23:12:43 +00004996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004997$as_echo "unsupported" >&6; } ;;
4998 *)
4999 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005001$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5002esac
cristy8b350f62009-11-15 23:12:43 +00005003if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005004
cristy8b350f62009-11-15 23:12:43 +00005005fi
cristy3ed852e2009-09-05 21:47:34 +00005006
5007ac_ext=c
5008ac_cpp='$CPP $CPPFLAGS'
5009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005012
cristy73bd4a52010-10-05 11:24:23 +00005013depcc="$CC" am_compiler_list=
5014
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5016$as_echo_n "checking dependency style of $depcc... " >&6; }
5017if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5018 $as_echo_n "(cached) " >&6
5019else
5020 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5021 # We make a subdir and do the tests there. Otherwise we can end up
5022 # making bogus files that we don't know about and never remove. For
5023 # instance it was reported that on HP-UX the gcc test will end up
5024 # making a dummy file named `D' -- because `-MD' means `put the output
5025 # in D'.
5026 mkdir conftest.dir
5027 # Copy depcomp to subdir because otherwise we won't find it if we're
5028 # using a relative directory.
5029 cp "$am_depcomp" conftest.dir
5030 cd conftest.dir
5031 # We will build objects and dependencies in a subdirectory because
5032 # it helps to detect inapplicable dependency modes. For instance
5033 # both Tru64's cc and ICC support -MD to output dependencies as a
5034 # side effect of compilation, but ICC will put the dependencies in
5035 # the current directory while Tru64 will put them in the object
5036 # directory.
5037 mkdir sub
5038
5039 am_cv_CC_dependencies_compiler_type=none
5040 if test "$am_compiler_list" = ""; then
5041 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5042 fi
5043 am__universal=false
5044 case " $depcc " in #(
5045 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5046 esac
5047
5048 for depmode in $am_compiler_list; do
5049 # Setup a source with many dependencies, because some compilers
5050 # like to wrap large dependency lists on column 80 (with \), and
5051 # we should not choose a depcomp mode which is confused by this.
5052 #
5053 # We need to recreate these files for each test, as the compiler may
5054 # overwrite some of them when testing with obscure command lines.
5055 # This happens at least with the AIX C compiler.
5056 : > sub/conftest.c
5057 for i in 1 2 3 4 5 6; do
5058 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5059 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5060 # Solaris 8's {/usr,}/bin/sh.
5061 touch sub/conftst$i.h
5062 done
5063 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5064
5065 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5066 # mode. It turns out that the SunPro C++ compiler does not properly
5067 # handle `-M -o', and we need to detect this. Also, some Intel
5068 # versions had trouble with output in subdirs
5069 am__obj=sub/conftest.${OBJEXT-o}
5070 am__minus_obj="-o $am__obj"
5071 case $depmode in
5072 gcc)
5073 # This depmode causes a compiler race in universal mode.
5074 test "$am__universal" = false || continue
5075 ;;
5076 nosideeffect)
5077 # after this tag, mechanisms are not by side-effect, so they'll
5078 # only be used when explicitly requested
5079 if test "x$enable_dependency_tracking" = xyes; then
5080 continue
5081 else
5082 break
5083 fi
5084 ;;
5085 msvisualcpp | msvcmsys)
5086 # This compiler won't grok `-c -o', but also, the minuso test has
5087 # not run yet. These depmodes are late enough in the game, and
5088 # so weak that their functioning should not be impacted.
5089 am__obj=conftest.${OBJEXT-o}
5090 am__minus_obj=
5091 ;;
5092 none) break ;;
5093 esac
5094 if depmode=$depmode \
5095 source=sub/conftest.c object=$am__obj \
5096 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5097 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5098 >/dev/null 2>conftest.err &&
5099 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5100 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5101 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5102 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5103 # icc doesn't choke on unknown options, it will just issue warnings
5104 # or remarks (even with -Werror). So we grep stderr for any message
5105 # that says an option was ignored or not supported.
5106 # When given -MP, icc 7.0 and 7.1 complain thusly:
5107 # icc: Command line warning: ignoring option '-M'; no argument required
5108 # The diagnosis changed in icc 8.0:
5109 # icc: Command line remark: option '-MP' not supported
5110 if (grep 'ignoring option' conftest.err ||
5111 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5112 am_cv_CC_dependencies_compiler_type=$depmode
5113 break
5114 fi
5115 fi
5116 done
5117
5118 cd ..
5119 rm -rf conftest.dir
5120else
5121 am_cv_CC_dependencies_compiler_type=none
5122fi
5123
5124fi
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5126$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5127CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5128
5129 if
5130 test "x$enable_dependency_tracking" != xno \
5131 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5132 am__fastdepCC_TRUE=
5133 am__fastdepCC_FALSE='#'
5134else
5135 am__fastdepCC_TRUE='#'
5136 am__fastdepCC_FALSE=
5137fi
5138
5139
cristy3ed852e2009-09-05 21:47:34 +00005140
cristya0b81c32010-01-22 02:54:33 +00005141ac_ext=c
5142ac_cpp='$CPP $CPPFLAGS'
5143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145ac_compiler_gnu=$ac_cv_c_compiler_gnu
5146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5147$as_echo_n "checking how to run the C preprocessor... " >&6; }
5148# On Suns, sometimes $CPP names a directory.
5149if test -n "$CPP" && test -d "$CPP"; then
5150 CPP=
5151fi
5152if test -z "$CPP"; then
5153 if test "${ac_cv_prog_CPP+set}" = set; then :
5154 $as_echo_n "(cached) " >&6
5155else
5156 # Double quotes because CPP needs to be expanded
5157 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5158 do
5159 ac_preproc_ok=false
5160for ac_c_preproc_warn_flag in '' yes
5161do
5162 # Use a header file that comes with gcc, so configuring glibc
5163 # with a fresh cross-compiler works.
5164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5165 # <limits.h> exists even on freestanding compilers.
5166 # On the NeXT, cc -E runs the code through the compiler's parser,
5167 # not just through cpp. "Syntax error" is here to catch this case.
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169/* end confdefs.h. */
5170#ifdef __STDC__
5171# include <limits.h>
5172#else
5173# include <assert.h>
5174#endif
5175 Syntax error
5176_ACEOF
5177if ac_fn_c_try_cpp "$LINENO"; then :
5178
5179else
5180 # Broken: fails on valid input.
5181continue
5182fi
5183rm -f conftest.err conftest.$ac_ext
5184
5185 # OK, works on sane cases. Now check whether nonexistent headers
5186 # can be detected and how.
5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188/* end confdefs.h. */
5189#include <ac_nonexistent.h>
5190_ACEOF
5191if ac_fn_c_try_cpp "$LINENO"; then :
5192 # Broken: success on invalid input.
5193continue
5194else
5195 # Passes both tests.
5196ac_preproc_ok=:
5197break
5198fi
5199rm -f conftest.err conftest.$ac_ext
5200
5201done
5202# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5203rm -f conftest.err conftest.$ac_ext
5204if $ac_preproc_ok; then :
5205 break
5206fi
5207
5208 done
5209 ac_cv_prog_CPP=$CPP
5210
5211fi
5212 CPP=$ac_cv_prog_CPP
5213else
5214 ac_cv_prog_CPP=$CPP
5215fi
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5217$as_echo "$CPP" >&6; }
5218ac_preproc_ok=false
5219for ac_c_preproc_warn_flag in '' yes
5220do
5221 # Use a header file that comes with gcc, so configuring glibc
5222 # with a fresh cross-compiler works.
5223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5224 # <limits.h> exists even on freestanding compilers.
5225 # On the NeXT, cc -E runs the code through the compiler's parser,
5226 # not just through cpp. "Syntax error" is here to catch this case.
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228/* end confdefs.h. */
5229#ifdef __STDC__
5230# include <limits.h>
5231#else
5232# include <assert.h>
5233#endif
5234 Syntax error
5235_ACEOF
5236if ac_fn_c_try_cpp "$LINENO"; then :
5237
5238else
5239 # Broken: fails on valid input.
5240continue
5241fi
5242rm -f conftest.err conftest.$ac_ext
5243
5244 # OK, works on sane cases. Now check whether nonexistent headers
5245 # can be detected and how.
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247/* end confdefs.h. */
5248#include <ac_nonexistent.h>
5249_ACEOF
5250if ac_fn_c_try_cpp "$LINENO"; then :
5251 # Broken: success on invalid input.
5252continue
5253else
5254 # Passes both tests.
5255ac_preproc_ok=:
5256break
5257fi
5258rm -f conftest.err conftest.$ac_ext
5259
5260done
5261# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5262rm -f conftest.err conftest.$ac_ext
5263if $ac_preproc_ok; then :
5264
5265else
5266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00005268as_fn_error "C preprocessor \"$CPP\" fails sanity check
5269See \`config.log' for more details." "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005270fi
5271
5272ac_ext=c
5273ac_cpp='$CPP $CPPFLAGS'
5274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5276ac_compiler_gnu=$ac_cv_c_compiler_gnu
5277
5278
5279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5280$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5281if test "${ac_cv_path_GREP+set}" = set; then :
5282 $as_echo_n "(cached) " >&6
5283else
5284 if test -z "$GREP"; then
5285 ac_path_GREP_found=false
5286 # Loop through the user's path and test for each of PROGNAME-LIST
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5289do
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5292 for ac_prog in grep ggrep; do
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5295 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5296# Check for GNU ac_path_GREP and select it if it is found.
5297 # Check for GNU $ac_path_GREP
5298case `"$ac_path_GREP" --version 2>&1` in
5299*GNU*)
5300 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5301*)
5302 ac_count=0
5303 $as_echo_n 0123456789 >"conftest.in"
5304 while :
5305 do
5306 cat "conftest.in" "conftest.in" >"conftest.tmp"
5307 mv "conftest.tmp" "conftest.in"
5308 cp "conftest.in" "conftest.nl"
5309 $as_echo 'GREP' >> "conftest.nl"
5310 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5311 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5312 as_fn_arith $ac_count + 1 && ac_count=$as_val
5313 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5314 # Best one so far, save it but keep looking for a better one
5315 ac_cv_path_GREP="$ac_path_GREP"
5316 ac_path_GREP_max=$ac_count
5317 fi
5318 # 10*(2^10) chars as input seems more than enough
5319 test $ac_count -gt 10 && break
5320 done
5321 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5322esac
5323
5324 $ac_path_GREP_found && break 3
5325 done
5326 done
5327 done
5328IFS=$as_save_IFS
5329 if test -z "$ac_cv_path_GREP"; then
cristyf6fcb5d2010-09-24 01:19:13 +00005330 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005331 fi
5332else
5333 ac_cv_path_GREP=$GREP
5334fi
5335
5336fi
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5338$as_echo "$ac_cv_path_GREP" >&6; }
5339 GREP="$ac_cv_path_GREP"
5340
5341
5342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5343$as_echo_n "checking for egrep... " >&6; }
5344if test "${ac_cv_path_EGREP+set}" = set; then :
5345 $as_echo_n "(cached) " >&6
5346else
5347 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5348 then ac_cv_path_EGREP="$GREP -E"
5349 else
5350 if test -z "$EGREP"; then
5351 ac_path_EGREP_found=false
5352 # Loop through the user's path and test for each of PROGNAME-LIST
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5355do
5356 IFS=$as_save_IFS
5357 test -z "$as_dir" && as_dir=.
5358 for ac_prog in egrep; do
5359 for ac_exec_ext in '' $ac_executable_extensions; do
5360 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5361 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5362# Check for GNU ac_path_EGREP and select it if it is found.
5363 # Check for GNU $ac_path_EGREP
5364case `"$ac_path_EGREP" --version 2>&1` in
5365*GNU*)
5366 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5367*)
5368 ac_count=0
5369 $as_echo_n 0123456789 >"conftest.in"
5370 while :
5371 do
5372 cat "conftest.in" "conftest.in" >"conftest.tmp"
5373 mv "conftest.tmp" "conftest.in"
5374 cp "conftest.in" "conftest.nl"
5375 $as_echo 'EGREP' >> "conftest.nl"
5376 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5377 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5378 as_fn_arith $ac_count + 1 && ac_count=$as_val
5379 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5380 # Best one so far, save it but keep looking for a better one
5381 ac_cv_path_EGREP="$ac_path_EGREP"
5382 ac_path_EGREP_max=$ac_count
5383 fi
5384 # 10*(2^10) chars as input seems more than enough
5385 test $ac_count -gt 10 && break
5386 done
5387 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5388esac
5389
5390 $ac_path_EGREP_found && break 3
5391 done
5392 done
5393 done
5394IFS=$as_save_IFS
5395 if test -z "$ac_cv_path_EGREP"; then
cristyf6fcb5d2010-09-24 01:19:13 +00005396 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005397 fi
5398else
5399 ac_cv_path_EGREP=$EGREP
5400fi
5401
5402 fi
5403fi
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5405$as_echo "$ac_cv_path_EGREP" >&6; }
5406 EGREP="$ac_cv_path_EGREP"
5407
5408
5409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5410$as_echo_n "checking for ANSI C header files... " >&6; }
5411if test "${ac_cv_header_stdc+set}" = set; then :
5412 $as_echo_n "(cached) " >&6
5413else
5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415/* end confdefs.h. */
5416#include <stdlib.h>
5417#include <stdarg.h>
5418#include <string.h>
5419#include <float.h>
5420
5421int
5422main ()
5423{
5424
5425 ;
5426 return 0;
5427}
5428_ACEOF
5429if ac_fn_c_try_compile "$LINENO"; then :
5430 ac_cv_header_stdc=yes
5431else
5432 ac_cv_header_stdc=no
5433fi
5434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435
5436if test $ac_cv_header_stdc = yes; then
5437 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439/* end confdefs.h. */
5440#include <string.h>
5441
5442_ACEOF
5443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5444 $EGREP "memchr" >/dev/null 2>&1; then :
5445
5446else
5447 ac_cv_header_stdc=no
5448fi
5449rm -f conftest*
5450
5451fi
5452
5453if test $ac_cv_header_stdc = yes; then
5454 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456/* end confdefs.h. */
5457#include <stdlib.h>
5458
5459_ACEOF
5460if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5461 $EGREP "free" >/dev/null 2>&1; then :
5462
5463else
5464 ac_cv_header_stdc=no
5465fi
5466rm -f conftest*
5467
5468fi
5469
5470if test $ac_cv_header_stdc = yes; then
5471 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5472 if test "$cross_compiling" = yes; then :
5473 :
5474else
5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476/* end confdefs.h. */
5477#include <ctype.h>
5478#include <stdlib.h>
5479#if ((' ' & 0x0FF) == 0x020)
5480# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5481# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5482#else
5483# define ISLOWER(c) \
5484 (('a' <= (c) && (c) <= 'i') \
5485 || ('j' <= (c) && (c) <= 'r') \
5486 || ('s' <= (c) && (c) <= 'z'))
5487# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5488#endif
5489
5490#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5491int
5492main ()
5493{
5494 int i;
5495 for (i = 0; i < 256; i++)
5496 if (XOR (islower (i), ISLOWER (i))
5497 || toupper (i) != TOUPPER (i))
5498 return 2;
5499 return 0;
5500}
5501_ACEOF
5502if ac_fn_c_try_run "$LINENO"; then :
5503
5504else
5505 ac_cv_header_stdc=no
5506fi
5507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5508 conftest.$ac_objext conftest.beam conftest.$ac_ext
5509fi
5510
5511fi
5512fi
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5514$as_echo "$ac_cv_header_stdc" >&6; }
5515if test $ac_cv_header_stdc = yes; then
5516
5517$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5518
5519fi
5520
5521# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5522for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5523 inttypes.h stdint.h unistd.h
5524do :
5525 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5526ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5527"
cristyf6fcb5d2010-09-24 01:19:13 +00005528eval as_val=\$$as_ac_Header
5529 if test "x$as_val" = x""yes; then :
cristya0b81c32010-01-22 02:54:33 +00005530 cat >>confdefs.h <<_ACEOF
5531#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5532_ACEOF
5533
5534fi
5535
5536done
5537
5538
5539
5540 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5541if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5542 MINIX=yes
5543else
5544 MINIX=
5545fi
5546
5547
5548 if test "$MINIX" = yes; then
5549
5550$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5551
5552
5553$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5554
5555
5556$as_echo "#define _MINIX 1" >>confdefs.h
5557
5558 fi
5559
5560
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5562$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5563if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5564 $as_echo_n "(cached) " >&6
5565else
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567/* end confdefs.h. */
5568
5569# define __EXTENSIONS__ 1
5570 $ac_includes_default
5571int
5572main ()
5573{
5574
5575 ;
5576 return 0;
5577}
5578_ACEOF
5579if ac_fn_c_try_compile "$LINENO"; then :
5580 ac_cv_safe_to_define___extensions__=yes
5581else
5582 ac_cv_safe_to_define___extensions__=no
5583fi
5584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585fi
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5587$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5588 test $ac_cv_safe_to_define___extensions__ = yes &&
5589 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5590
5591 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5592
5593 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5594
5595 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5596
5597 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5598
5599
5600
5601# Check for programs
5602ac_ext=c
5603ac_cpp='$CPP $CPPFLAGS'
5604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5606ac_compiler_gnu=$ac_cv_c_compiler_gnu
5607if test -n "$ac_tool_prefix"; then
5608 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5609set dummy ${ac_tool_prefix}gcc; ac_word=$2
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611$as_echo_n "checking for $ac_word... " >&6; }
5612if test "${ac_cv_prog_CC+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5614else
5615 if test -n "$CC"; then
5616 ac_cv_prog_CC="$CC" # Let the user override the test.
5617else
5618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619for as_dir in $PATH
5620do
5621 IFS=$as_save_IFS
5622 test -z "$as_dir" && as_dir=.
5623 for ac_exec_ext in '' $ac_executable_extensions; do
5624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5625 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627 break 2
5628 fi
5629done
5630 done
5631IFS=$as_save_IFS
5632
5633fi
5634fi
5635CC=$ac_cv_prog_CC
5636if test -n "$CC"; then
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5638$as_echo "$CC" >&6; }
5639else
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641$as_echo "no" >&6; }
5642fi
5643
5644
5645fi
5646if test -z "$ac_cv_prog_CC"; then
5647 ac_ct_CC=$CC
5648 # Extract the first word of "gcc", so it can be a program name with args.
5649set dummy gcc; ac_word=$2
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5651$as_echo_n "checking for $ac_word... " >&6; }
5652if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5653 $as_echo_n "(cached) " >&6
5654else
5655 if test -n "$ac_ct_CC"; then
5656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5657else
5658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659for as_dir in $PATH
5660do
5661 IFS=$as_save_IFS
5662 test -z "$as_dir" && as_dir=.
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5665 ac_cv_prog_ac_ct_CC="gcc"
5666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 break 2
5668 fi
5669done
5670 done
5671IFS=$as_save_IFS
5672
5673fi
5674fi
5675ac_ct_CC=$ac_cv_prog_ac_ct_CC
5676if test -n "$ac_ct_CC"; then
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5678$as_echo "$ac_ct_CC" >&6; }
5679else
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681$as_echo "no" >&6; }
5682fi
5683
5684 if test "x$ac_ct_CC" = x; then
5685 CC=""
5686 else
5687 case $cross_compiling:$ac_tool_warned in
5688yes:)
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5691ac_tool_warned=yes ;;
5692esac
5693 CC=$ac_ct_CC
5694 fi
5695else
5696 CC="$ac_cv_prog_CC"
5697fi
5698
5699if test -z "$CC"; then
5700 if test -n "$ac_tool_prefix"; then
5701 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5702set dummy ${ac_tool_prefix}cc; ac_word=$2
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704$as_echo_n "checking for $ac_word... " >&6; }
5705if test "${ac_cv_prog_CC+set}" = set; then :
5706 $as_echo_n "(cached) " >&6
5707else
5708 if test -n "$CC"; then
5709 ac_cv_prog_CC="$CC" # Let the user override the test.
5710else
5711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712for as_dir in $PATH
5713do
5714 IFS=$as_save_IFS
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5718 ac_cv_prog_CC="${ac_tool_prefix}cc"
5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720 break 2
5721 fi
5722done
5723 done
5724IFS=$as_save_IFS
5725
5726fi
5727fi
5728CC=$ac_cv_prog_CC
5729if test -n "$CC"; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5731$as_echo "$CC" >&6; }
5732else
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734$as_echo "no" >&6; }
5735fi
5736
5737
5738 fi
5739fi
5740if test -z "$CC"; then
5741 # Extract the first word of "cc", so it can be a program name with args.
5742set dummy cc; ac_word=$2
5743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744$as_echo_n "checking for $ac_word... " >&6; }
5745if test "${ac_cv_prog_CC+set}" = set; then :
5746 $as_echo_n "(cached) " >&6
5747else
5748 if test -n "$CC"; then
5749 ac_cv_prog_CC="$CC" # Let the user override the test.
5750else
5751 ac_prog_rejected=no
5752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753for as_dir in $PATH
5754do
5755 IFS=$as_save_IFS
5756 test -z "$as_dir" && as_dir=.
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5759 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5760 ac_prog_rejected=yes
5761 continue
5762 fi
5763 ac_cv_prog_CC="cc"
5764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 break 2
5766 fi
5767done
5768 done
5769IFS=$as_save_IFS
5770
5771if test $ac_prog_rejected = yes; then
5772 # We found a bogon in the path, so make sure we never use it.
5773 set dummy $ac_cv_prog_CC
5774 shift
5775 if test $# != 0; then
5776 # We chose a different compiler from the bogus one.
5777 # However, it has the same basename, so the bogon will be chosen
5778 # first if we set CC to just the basename; use the full file name.
5779 shift
5780 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5781 fi
5782fi
5783fi
5784fi
5785CC=$ac_cv_prog_CC
5786if test -n "$CC"; then
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5788$as_echo "$CC" >&6; }
5789else
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791$as_echo "no" >&6; }
5792fi
5793
5794
5795fi
5796if test -z "$CC"; then
5797 if test -n "$ac_tool_prefix"; then
5798 for ac_prog in cl.exe
5799 do
5800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5801set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803$as_echo_n "checking for $ac_word... " >&6; }
5804if test "${ac_cv_prog_CC+set}" = set; then :
5805 $as_echo_n "(cached) " >&6
5806else
5807 if test -n "$CC"; then
5808 ac_cv_prog_CC="$CC" # Let the user override the test.
5809else
5810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811for as_dir in $PATH
5812do
5813 IFS=$as_save_IFS
5814 test -z "$as_dir" && as_dir=.
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5817 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 break 2
5820 fi
5821done
5822 done
5823IFS=$as_save_IFS
5824
5825fi
5826fi
5827CC=$ac_cv_prog_CC
5828if test -n "$CC"; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5830$as_echo "$CC" >&6; }
5831else
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833$as_echo "no" >&6; }
5834fi
5835
5836
5837 test -n "$CC" && break
5838 done
5839fi
5840if test -z "$CC"; then
5841 ac_ct_CC=$CC
5842 for ac_prog in cl.exe
5843do
5844 # Extract the first word of "$ac_prog", so it can be a program name with args.
5845set dummy $ac_prog; ac_word=$2
5846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5847$as_echo_n "checking for $ac_word... " >&6; }
5848if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5849 $as_echo_n "(cached) " >&6
5850else
5851 if test -n "$ac_ct_CC"; then
5852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5853else
5854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855for as_dir in $PATH
5856do
5857 IFS=$as_save_IFS
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5861 ac_cv_prog_ac_ct_CC="$ac_prog"
5862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 break 2
5864 fi
5865done
5866 done
5867IFS=$as_save_IFS
5868
5869fi
5870fi
5871ac_ct_CC=$ac_cv_prog_ac_ct_CC
5872if test -n "$ac_ct_CC"; then
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5874$as_echo "$ac_ct_CC" >&6; }
5875else
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877$as_echo "no" >&6; }
5878fi
5879
5880
5881 test -n "$ac_ct_CC" && break
5882done
5883
5884 if test "x$ac_ct_CC" = x; then
5885 CC=""
5886 else
5887 case $cross_compiling:$ac_tool_warned in
5888yes:)
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5891ac_tool_warned=yes ;;
5892esac
5893 CC=$ac_ct_CC
5894 fi
5895fi
5896
5897fi
5898
5899
5900test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00005902as_fn_error "no acceptable C compiler found in \$PATH
5903See \`config.log' for more details." "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005904
5905# Provide some information about the compiler.
5906$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5907set X $ac_compile
5908ac_compiler=$2
5909for ac_option in --version -v -V -qversion; do
5910 { { ac_try="$ac_compiler $ac_option >&5"
5911case "(($ac_try" in
5912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5913 *) ac_try_echo=$ac_try;;
5914esac
5915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5916$as_echo "$ac_try_echo"; } >&5
5917 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5918 ac_status=$?
5919 if test -s conftest.err; then
5920 sed '10a\
5921... rest of stderr output deleted ...
5922 10q' conftest.err >conftest.er1
5923 cat conftest.er1 >&5
5924 fi
5925 rm -f conftest.er1 conftest.err
5926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5927 test $ac_status = 0; }
5928done
5929
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5931$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5932if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5933 $as_echo_n "(cached) " >&6
5934else
5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936/* end confdefs.h. */
5937
5938int
5939main ()
5940{
5941#ifndef __GNUC__
5942 choke me
5943#endif
5944
5945 ;
5946 return 0;
5947}
5948_ACEOF
5949if ac_fn_c_try_compile "$LINENO"; then :
5950 ac_compiler_gnu=yes
5951else
5952 ac_compiler_gnu=no
5953fi
5954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5955ac_cv_c_compiler_gnu=$ac_compiler_gnu
5956
5957fi
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5959$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5960if test $ac_compiler_gnu = yes; then
5961 GCC=yes
5962else
5963 GCC=
5964fi
5965ac_test_CFLAGS=${CFLAGS+set}
5966ac_save_CFLAGS=$CFLAGS
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5968$as_echo_n "checking whether $CC accepts -g... " >&6; }
5969if test "${ac_cv_prog_cc_g+set}" = set; then :
5970 $as_echo_n "(cached) " >&6
5971else
5972 ac_save_c_werror_flag=$ac_c_werror_flag
5973 ac_c_werror_flag=yes
5974 ac_cv_prog_cc_g=no
5975 CFLAGS="-g"
5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977/* end confdefs.h. */
5978
5979int
5980main ()
5981{
5982
5983 ;
5984 return 0;
5985}
5986_ACEOF
5987if ac_fn_c_try_compile "$LINENO"; then :
5988 ac_cv_prog_cc_g=yes
5989else
5990 CFLAGS=""
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992/* end confdefs.h. */
5993
5994int
5995main ()
5996{
5997
5998 ;
5999 return 0;
6000}
6001_ACEOF
6002if ac_fn_c_try_compile "$LINENO"; then :
6003
6004else
6005 ac_c_werror_flag=$ac_save_c_werror_flag
6006 CFLAGS="-g"
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008/* end confdefs.h. */
6009
6010int
6011main ()
6012{
6013
6014 ;
6015 return 0;
6016}
6017_ACEOF
6018if ac_fn_c_try_compile "$LINENO"; then :
6019 ac_cv_prog_cc_g=yes
6020fi
6021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022fi
6023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024fi
6025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6026 ac_c_werror_flag=$ac_save_c_werror_flag
6027fi
6028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6029$as_echo "$ac_cv_prog_cc_g" >&6; }
6030if test "$ac_test_CFLAGS" = set; then
6031 CFLAGS=$ac_save_CFLAGS
6032elif test $ac_cv_prog_cc_g = yes; then
6033 if test "$GCC" = yes; then
6034 CFLAGS="-g -O2"
6035 else
6036 CFLAGS="-g"
6037 fi
6038else
6039 if test "$GCC" = yes; then
6040 CFLAGS="-O2"
6041 else
6042 CFLAGS=
6043 fi
6044fi
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6046$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6047if test "${ac_cv_prog_cc_c89+set}" = set; then :
6048 $as_echo_n "(cached) " >&6
6049else
6050 ac_cv_prog_cc_c89=no
6051ac_save_CC=$CC
6052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053/* end confdefs.h. */
6054#include <stdarg.h>
6055#include <stdio.h>
6056#include <sys/types.h>
6057#include <sys/stat.h>
6058/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6059struct buf { int x; };
6060FILE * (*rcsopen) (struct buf *, struct stat *, int);
6061static char *e (p, i)
6062 char **p;
6063 int i;
6064{
6065 return p[i];
6066}
6067static char *f (char * (*g) (char **, int), char **p, ...)
6068{
6069 char *s;
6070 va_list v;
6071 va_start (v,p);
6072 s = g (p, va_arg (v,int));
6073 va_end (v);
6074 return s;
6075}
6076
6077/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6078 function prototypes and stuff, but not '\xHH' hex character constants.
6079 These don't provoke an error unfortunately, instead are silently treated
6080 as 'x'. The following induces an error, until -std is added to get
6081 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6082 array size at least. It's necessary to write '\x00'==0 to get something
6083 that's true only with -std. */
6084int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6085
6086/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6087 inside strings and character constants. */
6088#define FOO(x) 'x'
6089int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6090
6091int test (int i, double x);
6092struct s1 {int (*f) (int a);};
6093struct s2 {int (*f) (double a);};
6094int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6095int argc;
6096char **argv;
6097int
6098main ()
6099{
6100return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6101 ;
6102 return 0;
6103}
6104_ACEOF
6105for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6106 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6107do
6108 CC="$ac_save_CC $ac_arg"
6109 if ac_fn_c_try_compile "$LINENO"; then :
6110 ac_cv_prog_cc_c89=$ac_arg
6111fi
6112rm -f core conftest.err conftest.$ac_objext
6113 test "x$ac_cv_prog_cc_c89" != "xno" && break
6114done
6115rm -f conftest.$ac_ext
6116CC=$ac_save_CC
6117
6118fi
6119# AC_CACHE_VAL
6120case "x$ac_cv_prog_cc_c89" in
6121 x)
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6123$as_echo "none needed" >&6; } ;;
6124 xno)
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6126$as_echo "unsupported" >&6; } ;;
6127 *)
6128 CC="$CC $ac_cv_prog_cc_c89"
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6130$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6131esac
6132if test "x$ac_cv_prog_cc_c89" != xno; then :
6133
6134fi
6135
6136ac_ext=c
6137ac_cpp='$CPP $CPPFLAGS'
6138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140ac_compiler_gnu=$ac_cv_c_compiler_gnu
6141
cristy73bd4a52010-10-05 11:24:23 +00006142depcc="$CC" am_compiler_list=
6143
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6145$as_echo_n "checking dependency style of $depcc... " >&6; }
6146if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6147 $as_echo_n "(cached) " >&6
6148else
6149 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6150 # We make a subdir and do the tests there. Otherwise we can end up
6151 # making bogus files that we don't know about and never remove. For
6152 # instance it was reported that on HP-UX the gcc test will end up
6153 # making a dummy file named `D' -- because `-MD' means `put the output
6154 # in D'.
6155 mkdir conftest.dir
6156 # Copy depcomp to subdir because otherwise we won't find it if we're
6157 # using a relative directory.
6158 cp "$am_depcomp" conftest.dir
6159 cd conftest.dir
6160 # We will build objects and dependencies in a subdirectory because
6161 # it helps to detect inapplicable dependency modes. For instance
6162 # both Tru64's cc and ICC support -MD to output dependencies as a
6163 # side effect of compilation, but ICC will put the dependencies in
6164 # the current directory while Tru64 will put them in the object
6165 # directory.
6166 mkdir sub
6167
6168 am_cv_CC_dependencies_compiler_type=none
6169 if test "$am_compiler_list" = ""; then
6170 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6171 fi
6172 am__universal=false
6173 case " $depcc " in #(
6174 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6175 esac
6176
6177 for depmode in $am_compiler_list; do
6178 # Setup a source with many dependencies, because some compilers
6179 # like to wrap large dependency lists on column 80 (with \), and
6180 # we should not choose a depcomp mode which is confused by this.
6181 #
6182 # We need to recreate these files for each test, as the compiler may
6183 # overwrite some of them when testing with obscure command lines.
6184 # This happens at least with the AIX C compiler.
6185 : > sub/conftest.c
6186 for i in 1 2 3 4 5 6; do
6187 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6188 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6189 # Solaris 8's {/usr,}/bin/sh.
6190 touch sub/conftst$i.h
6191 done
6192 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6193
6194 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6195 # mode. It turns out that the SunPro C++ compiler does not properly
6196 # handle `-M -o', and we need to detect this. Also, some Intel
6197 # versions had trouble with output in subdirs
6198 am__obj=sub/conftest.${OBJEXT-o}
6199 am__minus_obj="-o $am__obj"
6200 case $depmode in
6201 gcc)
6202 # This depmode causes a compiler race in universal mode.
6203 test "$am__universal" = false || continue
6204 ;;
6205 nosideeffect)
6206 # after this tag, mechanisms are not by side-effect, so they'll
6207 # only be used when explicitly requested
6208 if test "x$enable_dependency_tracking" = xyes; then
6209 continue
6210 else
6211 break
6212 fi
6213 ;;
6214 msvisualcpp | msvcmsys)
6215 # This compiler won't grok `-c -o', but also, the minuso test has
6216 # not run yet. These depmodes are late enough in the game, and
6217 # so weak that their functioning should not be impacted.
6218 am__obj=conftest.${OBJEXT-o}
6219 am__minus_obj=
6220 ;;
6221 none) break ;;
6222 esac
6223 if depmode=$depmode \
6224 source=sub/conftest.c object=$am__obj \
6225 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6226 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6227 >/dev/null 2>conftest.err &&
6228 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6229 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6230 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6231 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6232 # icc doesn't choke on unknown options, it will just issue warnings
6233 # or remarks (even with -Werror). So we grep stderr for any message
6234 # that says an option was ignored or not supported.
6235 # When given -MP, icc 7.0 and 7.1 complain thusly:
6236 # icc: Command line warning: ignoring option '-M'; no argument required
6237 # The diagnosis changed in icc 8.0:
6238 # icc: Command line remark: option '-MP' not supported
6239 if (grep 'ignoring option' conftest.err ||
6240 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6241 am_cv_CC_dependencies_compiler_type=$depmode
6242 break
6243 fi
6244 fi
6245 done
6246
6247 cd ..
6248 rm -rf conftest.dir
6249else
6250 am_cv_CC_dependencies_compiler_type=none
6251fi
6252
6253fi
6254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6255$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6256CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6257
6258 if
6259 test "x$enable_dependency_tracking" != xno \
6260 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6261 am__fastdepCC_TRUE=
6262 am__fastdepCC_FALSE='#'
6263else
6264 am__fastdepCC_TRUE='#'
6265 am__fastdepCC_FALSE=
6266fi
6267
6268
cristy95646052009-11-28 23:05:30 +00006269ac_ext=cpp
6270ac_cpp='$CXXCPP $CPPFLAGS'
6271ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6272ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6273ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6274if test -z "$CXX"; then
6275 if test -n "$CCC"; then
6276 CXX=$CCC
6277 else
6278 if test -n "$ac_tool_prefix"; then
6279 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6280 do
6281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6282set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284$as_echo_n "checking for $ac_word... " >&6; }
6285if test "${ac_cv_prog_CXX+set}" = set; then :
6286 $as_echo_n "(cached) " >&6
6287else
6288 if test -n "$CXX"; then
6289 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6290else
6291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292for as_dir in $PATH
6293do
6294 IFS=$as_save_IFS
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6298 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6300 break 2
6301 fi
6302done
6303 done
6304IFS=$as_save_IFS
6305
6306fi
6307fi
6308CXX=$ac_cv_prog_CXX
6309if test -n "$CXX"; then
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6311$as_echo "$CXX" >&6; }
6312else
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314$as_echo "no" >&6; }
6315fi
6316
6317
6318 test -n "$CXX" && break
6319 done
6320fi
6321if test -z "$CXX"; then
6322 ac_ct_CXX=$CXX
6323 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6324do
6325 # Extract the first word of "$ac_prog", so it can be a program name with args.
6326set dummy $ac_prog; ac_word=$2
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328$as_echo_n "checking for $ac_word... " >&6; }
6329if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6330 $as_echo_n "(cached) " >&6
6331else
6332 if test -n "$ac_ct_CXX"; then
6333 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6334else
6335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336for as_dir in $PATH
6337do
6338 IFS=$as_save_IFS
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6342 ac_cv_prog_ac_ct_CXX="$ac_prog"
6343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 break 2
6345 fi
6346done
6347 done
6348IFS=$as_save_IFS
6349
6350fi
6351fi
6352ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6353if test -n "$ac_ct_CXX"; then
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6355$as_echo "$ac_ct_CXX" >&6; }
6356else
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358$as_echo "no" >&6; }
6359fi
6360
6361
6362 test -n "$ac_ct_CXX" && break
6363done
6364
6365 if test "x$ac_ct_CXX" = x; then
6366 CXX="g++"
6367 else
6368 case $cross_compiling:$ac_tool_warned in
6369yes:)
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6372ac_tool_warned=yes ;;
6373esac
6374 CXX=$ac_ct_CXX
6375 fi
6376fi
6377
6378 fi
6379fi
6380# Provide some information about the compiler.
6381$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6382set X $ac_compile
6383ac_compiler=$2
6384for ac_option in --version -v -V -qversion; do
6385 { { ac_try="$ac_compiler $ac_option >&5"
6386case "(($ac_try" in
6387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388 *) ac_try_echo=$ac_try;;
6389esac
6390eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6391$as_echo "$ac_try_echo"; } >&5
6392 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6393 ac_status=$?
6394 if test -s conftest.err; then
6395 sed '10a\
6396... rest of stderr output deleted ...
6397 10q' conftest.err >conftest.er1
6398 cat conftest.er1 >&5
6399 fi
6400 rm -f conftest.er1 conftest.err
6401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6402 test $ac_status = 0; }
6403done
6404
6405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6406$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6407if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6408 $as_echo_n "(cached) " >&6
6409else
6410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6411/* end confdefs.h. */
6412
6413int
6414main ()
6415{
6416#ifndef __GNUC__
6417 choke me
6418#endif
6419
6420 ;
6421 return 0;
6422}
6423_ACEOF
6424if ac_fn_cxx_try_compile "$LINENO"; then :
6425 ac_compiler_gnu=yes
6426else
6427 ac_compiler_gnu=no
6428fi
6429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6431
6432fi
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6434$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6435if test $ac_compiler_gnu = yes; then
6436 GXX=yes
6437else
6438 GXX=
6439fi
6440ac_test_CXXFLAGS=${CXXFLAGS+set}
6441ac_save_CXXFLAGS=$CXXFLAGS
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6443$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6444if test "${ac_cv_prog_cxx_g+set}" = set; then :
6445 $as_echo_n "(cached) " >&6
6446else
6447 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6448 ac_cxx_werror_flag=yes
6449 ac_cv_prog_cxx_g=no
6450 CXXFLAGS="-g"
6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452/* end confdefs.h. */
6453
6454int
6455main ()
6456{
6457
6458 ;
6459 return 0;
6460}
6461_ACEOF
6462if ac_fn_cxx_try_compile "$LINENO"; then :
6463 ac_cv_prog_cxx_g=yes
6464else
6465 CXXFLAGS=""
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467/* end confdefs.h. */
6468
6469int
6470main ()
6471{
6472
6473 ;
6474 return 0;
6475}
6476_ACEOF
6477if ac_fn_cxx_try_compile "$LINENO"; then :
6478
6479else
6480 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6481 CXXFLAGS="-g"
6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483/* end confdefs.h. */
6484
6485int
6486main ()
6487{
6488
6489 ;
6490 return 0;
6491}
6492_ACEOF
6493if ac_fn_cxx_try_compile "$LINENO"; then :
6494 ac_cv_prog_cxx_g=yes
6495fi
6496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497fi
6498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499fi
6500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6501 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6502fi
6503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6504$as_echo "$ac_cv_prog_cxx_g" >&6; }
6505if test "$ac_test_CXXFLAGS" = set; then
6506 CXXFLAGS=$ac_save_CXXFLAGS
6507elif test $ac_cv_prog_cxx_g = yes; then
6508 if test "$GXX" = yes; then
6509 CXXFLAGS="-g -O2"
6510 else
6511 CXXFLAGS="-g"
6512 fi
6513else
6514 if test "$GXX" = yes; then
6515 CXXFLAGS="-O2"
6516 else
6517 CXXFLAGS=
6518 fi
6519fi
6520ac_ext=c
6521ac_cpp='$CPP $CPPFLAGS'
6522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6524ac_compiler_gnu=$ac_cv_c_compiler_gnu
6525
cristy73bd4a52010-10-05 11:24:23 +00006526depcc="$CXX" am_compiler_list=
6527
6528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6529$as_echo_n "checking dependency style of $depcc... " >&6; }
6530if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6531 $as_echo_n "(cached) " >&6
6532else
6533 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6534 # We make a subdir and do the tests there. Otherwise we can end up
6535 # making bogus files that we don't know about and never remove. For
6536 # instance it was reported that on HP-UX the gcc test will end up
6537 # making a dummy file named `D' -- because `-MD' means `put the output
6538 # in D'.
6539 mkdir conftest.dir
6540 # Copy depcomp to subdir because otherwise we won't find it if we're
6541 # using a relative directory.
6542 cp "$am_depcomp" conftest.dir
6543 cd conftest.dir
6544 # We will build objects and dependencies in a subdirectory because
6545 # it helps to detect inapplicable dependency modes. For instance
6546 # both Tru64's cc and ICC support -MD to output dependencies as a
6547 # side effect of compilation, but ICC will put the dependencies in
6548 # the current directory while Tru64 will put them in the object
6549 # directory.
6550 mkdir sub
6551
6552 am_cv_CXX_dependencies_compiler_type=none
6553 if test "$am_compiler_list" = ""; then
6554 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6555 fi
6556 am__universal=false
6557 case " $depcc " in #(
6558 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6559 esac
6560
6561 for depmode in $am_compiler_list; do
6562 # Setup a source with many dependencies, because some compilers
6563 # like to wrap large dependency lists on column 80 (with \), and
6564 # we should not choose a depcomp mode which is confused by this.
6565 #
6566 # We need to recreate these files for each test, as the compiler may
6567 # overwrite some of them when testing with obscure command lines.
6568 # This happens at least with the AIX C compiler.
6569 : > sub/conftest.c
6570 for i in 1 2 3 4 5 6; do
6571 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6572 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6573 # Solaris 8's {/usr,}/bin/sh.
6574 touch sub/conftst$i.h
6575 done
6576 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6577
6578 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6579 # mode. It turns out that the SunPro C++ compiler does not properly
6580 # handle `-M -o', and we need to detect this. Also, some Intel
6581 # versions had trouble with output in subdirs
6582 am__obj=sub/conftest.${OBJEXT-o}
6583 am__minus_obj="-o $am__obj"
6584 case $depmode in
6585 gcc)
6586 # This depmode causes a compiler race in universal mode.
6587 test "$am__universal" = false || continue
6588 ;;
6589 nosideeffect)
6590 # after this tag, mechanisms are not by side-effect, so they'll
6591 # only be used when explicitly requested
6592 if test "x$enable_dependency_tracking" = xyes; then
6593 continue
6594 else
6595 break
6596 fi
6597 ;;
6598 msvisualcpp | msvcmsys)
6599 # This compiler won't grok `-c -o', but also, the minuso test has
6600 # not run yet. These depmodes are late enough in the game, and
6601 # so weak that their functioning should not be impacted.
6602 am__obj=conftest.${OBJEXT-o}
6603 am__minus_obj=
6604 ;;
6605 none) break ;;
6606 esac
6607 if depmode=$depmode \
6608 source=sub/conftest.c object=$am__obj \
6609 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6610 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6611 >/dev/null 2>conftest.err &&
6612 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6613 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6614 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6615 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6616 # icc doesn't choke on unknown options, it will just issue warnings
6617 # or remarks (even with -Werror). So we grep stderr for any message
6618 # that says an option was ignored or not supported.
6619 # When given -MP, icc 7.0 and 7.1 complain thusly:
6620 # icc: Command line warning: ignoring option '-M'; no argument required
6621 # The diagnosis changed in icc 8.0:
6622 # icc: Command line remark: option '-MP' not supported
6623 if (grep 'ignoring option' conftest.err ||
6624 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6625 am_cv_CXX_dependencies_compiler_type=$depmode
6626 break
6627 fi
6628 fi
6629 done
6630
6631 cd ..
6632 rm -rf conftest.dir
6633else
6634 am_cv_CXX_dependencies_compiler_type=none
6635fi
6636
6637fi
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6639$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6640CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6641
6642 if
6643 test "x$enable_dependency_tracking" != xno \
6644 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6645 am__fastdepCXX_TRUE=
6646 am__fastdepCXX_FALSE='#'
6647else
6648 am__fastdepCXX_TRUE='#'
6649 am__fastdepCXX_FALSE=
6650fi
6651
6652
cristy8b350f62009-11-15 23:12:43 +00006653 case $ac_cv_prog_cc_stdc in #(
6654 no) :
6655 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6656 *) :
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006658$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006659if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006660 $as_echo_n "(cached) " >&6
6661else
6662 ac_cv_prog_cc_c99=no
6663ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006665/* end confdefs.h. */
6666#include <stdarg.h>
6667#include <stdbool.h>
6668#include <stdlib.h>
6669#include <wchar.h>
6670#include <stdio.h>
6671
6672// Check varargs macros. These examples are taken from C99 6.10.3.5.
6673#define debug(...) fprintf (stderr, __VA_ARGS__)
6674#define showlist(...) puts (#__VA_ARGS__)
6675#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6676static void
6677test_varargs_macros (void)
6678{
6679 int x = 1234;
6680 int y = 5678;
6681 debug ("Flag");
6682 debug ("X = %d\n", x);
6683 showlist (The first, second, and third items.);
6684 report (x>y, "x is %d but y is %d", x, y);
6685}
6686
6687// Check long long types.
6688#define BIG64 18446744073709551615ull
6689#define BIG32 4294967295ul
6690#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6691#if !BIG_OK
6692 your preprocessor is broken;
6693#endif
6694#if BIG_OK
6695#else
6696 your preprocessor is broken;
6697#endif
6698static long long int bignum = -9223372036854775807LL;
6699static unsigned long long int ubignum = BIG64;
6700
6701struct incomplete_array
6702{
6703 int datasize;
6704 double data[];
6705};
6706
6707struct named_init {
6708 int number;
6709 const wchar_t *name;
6710 double average;
6711};
6712
6713typedef const char *ccp;
6714
6715static inline int
6716test_restrict (ccp restrict text)
6717{
6718 // See if C++-style comments work.
6719 // Iterate through items via the restricted pointer.
6720 // Also check for declarations in for loops.
6721 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6722 continue;
6723 return 0;
6724}
6725
6726// Check varargs and va_copy.
6727static void
6728test_varargs (const char *format, ...)
6729{
6730 va_list args;
6731 va_start (args, format);
6732 va_list args_copy;
6733 va_copy (args_copy, args);
6734
6735 const char *str;
6736 int number;
6737 float fnumber;
6738
6739 while (*format)
6740 {
6741 switch (*format++)
6742 {
6743 case 's': // string
6744 str = va_arg (args_copy, const char *);
6745 break;
6746 case 'd': // int
6747 number = va_arg (args_copy, int);
6748 break;
6749 case 'f': // float
6750 fnumber = va_arg (args_copy, double);
6751 break;
6752 default:
6753 break;
6754 }
6755 }
6756 va_end (args_copy);
6757 va_end (args);
6758}
6759
6760int
6761main ()
6762{
6763
6764 // Check bool.
6765 _Bool success = false;
6766
6767 // Check restrict.
6768 if (test_restrict ("String literal") == 0)
6769 success = true;
6770 char *restrict newvar = "Another string";
6771
6772 // Check varargs.
6773 test_varargs ("s, d' f .", "string", 65, 34.234);
6774 test_varargs_macros ();
6775
6776 // Check flexible array members.
6777 struct incomplete_array *ia =
6778 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6779 ia->datasize = 10;
6780 for (int i = 0; i < ia->datasize; ++i)
6781 ia->data[i] = i * 1.234;
6782
6783 // Check named initializers.
6784 struct named_init ni = {
6785 .number = 34,
6786 .name = L"Test wide string",
6787 .average = 543.34343,
6788 };
6789
6790 ni.number = 58;
6791
6792 int dynamic_array[ni.number];
6793 dynamic_array[ni.number - 1] = 543;
6794
6795 // work around unused variable warnings
6796 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6797 || dynamic_array[ni.number - 1] != 543);
6798
6799 ;
6800 return 0;
6801}
6802_ACEOF
6803for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6804do
6805 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006806 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006807 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006808fi
cristy3ed852e2009-09-05 21:47:34 +00006809rm -f core conftest.err conftest.$ac_objext
6810 test "x$ac_cv_prog_cc_c99" != "xno" && break
6811done
6812rm -f conftest.$ac_ext
6813CC=$ac_save_CC
6814
6815fi
6816# AC_CACHE_VAL
6817case "x$ac_cv_prog_cc_c99" in
6818 x)
cristy8b350f62009-11-15 23:12:43 +00006819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006820$as_echo "none needed" >&6; } ;;
6821 xno)
cristy8b350f62009-11-15 23:12:43 +00006822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006823$as_echo "unsupported" >&6; } ;;
6824 *)
6825 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006827$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6828esac
cristy8b350f62009-11-15 23:12:43 +00006829if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006830 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6831else
cristy8b350f62009-11-15 23:12:43 +00006832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006833$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006834if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006835 $as_echo_n "(cached) " >&6
6836else
6837 ac_cv_prog_cc_c89=no
6838ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006840/* end confdefs.h. */
6841#include <stdarg.h>
6842#include <stdio.h>
6843#include <sys/types.h>
6844#include <sys/stat.h>
6845/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6846struct buf { int x; };
6847FILE * (*rcsopen) (struct buf *, struct stat *, int);
6848static char *e (p, i)
6849 char **p;
6850 int i;
6851{
6852 return p[i];
6853}
6854static char *f (char * (*g) (char **, int), char **p, ...)
6855{
6856 char *s;
6857 va_list v;
6858 va_start (v,p);
6859 s = g (p, va_arg (v,int));
6860 va_end (v);
6861 return s;
6862}
6863
6864/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6865 function prototypes and stuff, but not '\xHH' hex character constants.
6866 These don't provoke an error unfortunately, instead are silently treated
6867 as 'x'. The following induces an error, until -std is added to get
6868 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6869 array size at least. It's necessary to write '\x00'==0 to get something
6870 that's true only with -std. */
6871int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6872
6873/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6874 inside strings and character constants. */
6875#define FOO(x) 'x'
6876int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6877
6878int test (int i, double x);
6879struct s1 {int (*f) (int a);};
6880struct s2 {int (*f) (double a);};
6881int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6882int argc;
6883char **argv;
6884int
6885main ()
6886{
6887return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6888 ;
6889 return 0;
6890}
6891_ACEOF
6892for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6893 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6894do
6895 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006896 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006897 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006898fi
cristy3ed852e2009-09-05 21:47:34 +00006899rm -f core conftest.err conftest.$ac_objext
6900 test "x$ac_cv_prog_cc_c89" != "xno" && break
6901done
6902rm -f conftest.$ac_ext
6903CC=$ac_save_CC
6904
6905fi
6906# AC_CACHE_VAL
6907case "x$ac_cv_prog_cc_c89" in
6908 x)
cristy8b350f62009-11-15 23:12:43 +00006909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006910$as_echo "none needed" >&6; } ;;
6911 xno)
cristy8b350f62009-11-15 23:12:43 +00006912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006913$as_echo "unsupported" >&6; } ;;
6914 *)
6915 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006917$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6918esac
cristy8b350f62009-11-15 23:12:43 +00006919if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006920 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6921else
6922 ac_cv_prog_cc_stdc=no
6923fi
6924
cristy3ed852e2009-09-05 21:47:34 +00006925fi
cristy3ed852e2009-09-05 21:47:34 +00006926 ;;
6927esac
cristy8b350f62009-11-15 23:12:43 +00006928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006929$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006930 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006931 $as_echo_n "(cached) " >&6
6932fi
6933
cristy8b350f62009-11-15 23:12:43 +00006934 case $ac_cv_prog_cc_stdc in #(
6935 no) :
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6937$as_echo "unsupported" >&6; } ;; #(
6938 '') :
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6940$as_echo "none needed" >&6; } ;; #(
6941 *) :
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006943$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6944esac
6945
cristy3ed852e2009-09-05 21:47:34 +00006946ac_ext=c
6947ac_cpp='$CPP $CPPFLAGS'
6948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6950ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006952$as_echo_n "checking how to run the C preprocessor... " >&6; }
6953# On Suns, sometimes $CPP names a directory.
6954if test -n "$CPP" && test -d "$CPP"; then
6955 CPP=
6956fi
6957if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006958 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006959 $as_echo_n "(cached) " >&6
6960else
6961 # Double quotes because CPP needs to be expanded
6962 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6963 do
6964 ac_preproc_ok=false
6965for ac_c_preproc_warn_flag in '' yes
6966do
6967 # Use a header file that comes with gcc, so configuring glibc
6968 # with a fresh cross-compiler works.
6969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6970 # <limits.h> exists even on freestanding compilers.
6971 # On the NeXT, cc -E runs the code through the compiler's parser,
6972 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006974/* end confdefs.h. */
6975#ifdef __STDC__
6976# include <limits.h>
6977#else
6978# include <assert.h>
6979#endif
6980 Syntax error
6981_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006982if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006983
cristy8b350f62009-11-15 23:12:43 +00006984else
cristy3ed852e2009-09-05 21:47:34 +00006985 # Broken: fails on valid input.
6986continue
6987fi
cristy3ed852e2009-09-05 21:47:34 +00006988rm -f conftest.err conftest.$ac_ext
6989
6990 # OK, works on sane cases. Now check whether nonexistent headers
6991 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006993/* end confdefs.h. */
6994#include <ac_nonexistent.h>
6995_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006996if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006997 # Broken: success on invalid input.
6998continue
6999else
cristy3ed852e2009-09-05 21:47:34 +00007000 # Passes both tests.
7001ac_preproc_ok=:
7002break
7003fi
cristy3ed852e2009-09-05 21:47:34 +00007004rm -f conftest.err conftest.$ac_ext
7005
7006done
7007# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7008rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007009if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007010 break
7011fi
7012
7013 done
7014 ac_cv_prog_CPP=$CPP
7015
7016fi
7017 CPP=$ac_cv_prog_CPP
7018else
7019 ac_cv_prog_CPP=$CPP
7020fi
cristy8b350f62009-11-15 23:12:43 +00007021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007022$as_echo "$CPP" >&6; }
7023ac_preproc_ok=false
7024for ac_c_preproc_warn_flag in '' yes
7025do
7026 # Use a header file that comes with gcc, so configuring glibc
7027 # with a fresh cross-compiler works.
7028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7029 # <limits.h> exists even on freestanding compilers.
7030 # On the NeXT, cc -E runs the code through the compiler's parser,
7031 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007033/* end confdefs.h. */
7034#ifdef __STDC__
7035# include <limits.h>
7036#else
7037# include <assert.h>
7038#endif
7039 Syntax error
7040_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007041if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007042
cristy8b350f62009-11-15 23:12:43 +00007043else
cristy3ed852e2009-09-05 21:47:34 +00007044 # Broken: fails on valid input.
7045continue
7046fi
cristy3ed852e2009-09-05 21:47:34 +00007047rm -f conftest.err conftest.$ac_ext
7048
7049 # OK, works on sane cases. Now check whether nonexistent headers
7050 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007052/* end confdefs.h. */
7053#include <ac_nonexistent.h>
7054_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007055if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007056 # Broken: success on invalid input.
7057continue
7058else
cristy3ed852e2009-09-05 21:47:34 +00007059 # Passes both tests.
7060ac_preproc_ok=:
7061break
7062fi
cristy3ed852e2009-09-05 21:47:34 +00007063rm -f conftest.err conftest.$ac_ext
7064
7065done
7066# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7067rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007068if $ac_preproc_ok; then :
7069
cristy3ed852e2009-09-05 21:47:34 +00007070else
cristy8b350f62009-11-15 23:12:43 +00007071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00007073as_fn_error "C preprocessor \"$CPP\" fails sanity check
7074See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007075fi
7076
7077ac_ext=c
7078ac_cpp='$CPP $CPPFLAGS'
7079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7081ac_compiler_gnu=$ac_cv_c_compiler_gnu
7082
cristy73bd4a52010-10-05 11:24:23 +00007083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7084$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7085if test "${ac_cv_path_SED+set}" = set; then :
7086 $as_echo_n "(cached) " >&6
7087else
7088 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7089 for ac_i in 1 2 3 4 5 6 7; do
7090 ac_script="$ac_script$as_nl$ac_script"
7091 done
7092 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7093 { ac_script=; unset ac_script;}
7094 if test -z "$SED"; then
7095 ac_path_SED_found=false
7096 # Loop through the user's path and test for each of PROGNAME-LIST
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098for as_dir in $PATH
7099do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_prog in sed gsed; do
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7105 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7106# Check for GNU ac_path_SED and select it if it is found.
7107 # Check for GNU $ac_path_SED
7108case `"$ac_path_SED" --version 2>&1` in
7109*GNU*)
7110 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7111*)
7112 ac_count=0
7113 $as_echo_n 0123456789 >"conftest.in"
7114 while :
7115 do
7116 cat "conftest.in" "conftest.in" >"conftest.tmp"
7117 mv "conftest.tmp" "conftest.in"
7118 cp "conftest.in" "conftest.nl"
7119 $as_echo '' >> "conftest.nl"
7120 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7122 as_fn_arith $ac_count + 1 && ac_count=$as_val
7123 if test $ac_count -gt ${ac_path_SED_max-0}; then
7124 # Best one so far, save it but keep looking for a better one
7125 ac_cv_path_SED="$ac_path_SED"
7126 ac_path_SED_max=$ac_count
7127 fi
7128 # 10*(2^10) chars as input seems more than enough
7129 test $ac_count -gt 10 && break
7130 done
7131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7132esac
7133
7134 $ac_path_SED_found && break 3
7135 done
7136 done
7137 done
7138IFS=$as_save_IFS
7139 if test -z "$ac_cv_path_SED"; then
7140 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7141 fi
7142else
7143 ac_cv_path_SED=$SED
7144fi
7145
7146fi
7147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7148$as_echo "$ac_cv_path_SED" >&6; }
7149 SED="$ac_cv_path_SED"
7150 rm -f conftest.sed
7151
7152test -z "$SED" && SED=sed
7153Xsed="$SED -e 1s/^X//"
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7166$as_echo_n "checking for fgrep... " >&6; }
7167if test "${ac_cv_path_FGREP+set}" = set; then :
7168 $as_echo_n "(cached) " >&6
7169else
7170 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7171 then ac_cv_path_FGREP="$GREP -F"
7172 else
7173 if test -z "$FGREP"; then
7174 ac_path_FGREP_found=false
7175 # Loop through the user's path and test for each of PROGNAME-LIST
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7178do
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
7181 for ac_prog in fgrep; do
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7184 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7185# Check for GNU ac_path_FGREP and select it if it is found.
7186 # Check for GNU $ac_path_FGREP
7187case `"$ac_path_FGREP" --version 2>&1` in
7188*GNU*)
7189 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7190*)
7191 ac_count=0
7192 $as_echo_n 0123456789 >"conftest.in"
7193 while :
7194 do
7195 cat "conftest.in" "conftest.in" >"conftest.tmp"
7196 mv "conftest.tmp" "conftest.in"
7197 cp "conftest.in" "conftest.nl"
7198 $as_echo 'FGREP' >> "conftest.nl"
7199 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7201 as_fn_arith $ac_count + 1 && ac_count=$as_val
7202 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7203 # Best one so far, save it but keep looking for a better one
7204 ac_cv_path_FGREP="$ac_path_FGREP"
7205 ac_path_FGREP_max=$ac_count
7206 fi
7207 # 10*(2^10) chars as input seems more than enough
7208 test $ac_count -gt 10 && break
7209 done
7210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7211esac
7212
7213 $ac_path_FGREP_found && break 3
7214 done
7215 done
7216 done
7217IFS=$as_save_IFS
7218 if test -z "$ac_cv_path_FGREP"; then
7219 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7220 fi
7221else
7222 ac_cv_path_FGREP=$FGREP
7223fi
7224
7225 fi
7226fi
7227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7228$as_echo "$ac_cv_path_FGREP" >&6; }
7229 FGREP="$ac_cv_path_FGREP"
7230
7231
7232test -z "$GREP" && GREP=grep
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252# Check whether --with-gnu-ld was given.
7253if test "${with_gnu_ld+set}" = set; then :
7254 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7255else
7256 with_gnu_ld=no
7257fi
7258
7259ac_prog=ld
7260if test "$GCC" = yes; then
7261 # Check if gcc -print-prog-name=ld gives a path.
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7263$as_echo_n "checking for ld used by $CC... " >&6; }
7264 case $host in
7265 *-*-mingw*)
7266 # gcc leaves a trailing carriage return which upsets mingw
7267 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7268 *)
7269 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7270 esac
7271 case $ac_prog in
7272 # Accept absolute paths.
7273 [\\/]* | ?:[\\/]*)
7274 re_direlt='/[^/][^/]*/\.\./'
7275 # Canonicalize the pathname of ld
7276 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7277 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7278 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7279 done
7280 test -z "$LD" && LD="$ac_prog"
7281 ;;
7282 "")
7283 # If it fails, then pretend we aren't using GCC.
7284 ac_prog=ld
7285 ;;
7286 *)
7287 # If it is relative, then search for the first ld in PATH.
7288 with_gnu_ld=unknown
7289 ;;
7290 esac
7291elif test "$with_gnu_ld" = yes; then
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7293$as_echo_n "checking for GNU ld... " >&6; }
7294else
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7296$as_echo_n "checking for non-GNU ld... " >&6; }
7297fi
7298if test "${lt_cv_path_LD+set}" = set; then :
7299 $as_echo_n "(cached) " >&6
7300else
7301 if test -z "$LD"; then
7302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7303 for ac_dir in $PATH; do
7304 IFS="$lt_save_ifs"
7305 test -z "$ac_dir" && ac_dir=.
7306 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7307 lt_cv_path_LD="$ac_dir/$ac_prog"
7308 # Check to see if the program is GNU ld. I'd rather use --version,
7309 # but apparently some variants of GNU ld only accept -v.
7310 # Break only if it was the GNU/non-GNU ld that we prefer.
7311 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7312 *GNU* | *'with BFD'*)
7313 test "$with_gnu_ld" != no && break
7314 ;;
7315 *)
7316 test "$with_gnu_ld" != yes && break
7317 ;;
7318 esac
7319 fi
7320 done
7321 IFS="$lt_save_ifs"
7322else
7323 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7324fi
7325fi
7326
7327LD="$lt_cv_path_LD"
7328if test -n "$LD"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7330$as_echo "$LD" >&6; }
7331else
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333$as_echo "no" >&6; }
7334fi
7335test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7337$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7338if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7339 $as_echo_n "(cached) " >&6
7340else
7341 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7342case `$LD -v 2>&1 </dev/null` in
7343*GNU* | *'with BFD'*)
7344 lt_cv_prog_gnu_ld=yes
7345 ;;
7346*)
7347 lt_cv_prog_gnu_ld=no
7348 ;;
7349esac
7350fi
7351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7352$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7353with_gnu_ld=$lt_cv_prog_gnu_ld
7354
7355
7356
7357
7358
7359
7360
7361
7362
cristy3ed852e2009-09-05 21:47:34 +00007363
cristy837d6dc2010-02-27 01:16:57 +00007364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7365$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7366if test "${ac_cv_prog_cc_c99+set}" = set; then :
7367 $as_echo_n "(cached) " >&6
7368else
7369 ac_cv_prog_cc_c99=no
7370ac_save_CC=$CC
7371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372/* end confdefs.h. */
7373#include <stdarg.h>
7374#include <stdbool.h>
7375#include <stdlib.h>
7376#include <wchar.h>
7377#include <stdio.h>
7378
7379// Check varargs macros. These examples are taken from C99 6.10.3.5.
7380#define debug(...) fprintf (stderr, __VA_ARGS__)
7381#define showlist(...) puts (#__VA_ARGS__)
7382#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7383static void
7384test_varargs_macros (void)
7385{
7386 int x = 1234;
7387 int y = 5678;
7388 debug ("Flag");
7389 debug ("X = %d\n", x);
7390 showlist (The first, second, and third items.);
7391 report (x>y, "x is %d but y is %d", x, y);
7392}
7393
7394// Check long long types.
7395#define BIG64 18446744073709551615ull
7396#define BIG32 4294967295ul
7397#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7398#if !BIG_OK
7399 your preprocessor is broken;
7400#endif
7401#if BIG_OK
7402#else
7403 your preprocessor is broken;
7404#endif
7405static long long int bignum = -9223372036854775807LL;
7406static unsigned long long int ubignum = BIG64;
7407
7408struct incomplete_array
7409{
7410 int datasize;
7411 double data[];
7412};
7413
7414struct named_init {
7415 int number;
7416 const wchar_t *name;
7417 double average;
7418};
7419
7420typedef const char *ccp;
7421
7422static inline int
7423test_restrict (ccp restrict text)
7424{
7425 // See if C++-style comments work.
7426 // Iterate through items via the restricted pointer.
7427 // Also check for declarations in for loops.
7428 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7429 continue;
7430 return 0;
7431}
7432
7433// Check varargs and va_copy.
7434static void
7435test_varargs (const char *format, ...)
7436{
7437 va_list args;
7438 va_start (args, format);
7439 va_list args_copy;
7440 va_copy (args_copy, args);
7441
7442 const char *str;
7443 int number;
7444 float fnumber;
7445
7446 while (*format)
7447 {
7448 switch (*format++)
7449 {
7450 case 's': // string
7451 str = va_arg (args_copy, const char *);
7452 break;
7453 case 'd': // int
7454 number = va_arg (args_copy, int);
7455 break;
7456 case 'f': // float
7457 fnumber = va_arg (args_copy, double);
7458 break;
7459 default:
7460 break;
7461 }
7462 }
7463 va_end (args_copy);
7464 va_end (args);
7465}
7466
7467int
7468main ()
7469{
7470
7471 // Check bool.
7472 _Bool success = false;
7473
7474 // Check restrict.
7475 if (test_restrict ("String literal") == 0)
7476 success = true;
7477 char *restrict newvar = "Another string";
7478
7479 // Check varargs.
7480 test_varargs ("s, d' f .", "string", 65, 34.234);
7481 test_varargs_macros ();
7482
7483 // Check flexible array members.
7484 struct incomplete_array *ia =
7485 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7486 ia->datasize = 10;
7487 for (int i = 0; i < ia->datasize; ++i)
7488 ia->data[i] = i * 1.234;
7489
7490 // Check named initializers.
7491 struct named_init ni = {
7492 .number = 34,
7493 .name = L"Test wide string",
7494 .average = 543.34343,
7495 };
7496
7497 ni.number = 58;
7498
7499 int dynamic_array[ni.number];
7500 dynamic_array[ni.number - 1] = 543;
7501
7502 // work around unused variable warnings
7503 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7504 || dynamic_array[ni.number - 1] != 543);
7505
7506 ;
7507 return 0;
7508}
7509_ACEOF
7510for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7511do
7512 CC="$ac_save_CC $ac_arg"
7513 if ac_fn_c_try_compile "$LINENO"; then :
7514 ac_cv_prog_cc_c99=$ac_arg
7515fi
7516rm -f core conftest.err conftest.$ac_objext
7517 test "x$ac_cv_prog_cc_c99" != "xno" && break
7518done
7519rm -f conftest.$ac_ext
7520CC=$ac_save_CC
7521
7522fi
7523# AC_CACHE_VAL
7524case "x$ac_cv_prog_cc_c99" in
7525 x)
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7527$as_echo "none needed" >&6; } ;;
7528 xno)
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7530$as_echo "unsupported" >&6; } ;;
7531 *)
7532 CC="$CC $ac_cv_prog_cc_c99"
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7534$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7535esac
7536if test "x$ac_cv_prog_cc_c99" != xno; then :
7537
7538fi
7539
7540
cristy73bd4a52010-10-05 11:24:23 +00007541if test "x$CC" != xcc; then
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7543$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7544else
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7546$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7547fi
7548set dummy $CC; ac_cc=`$as_echo "$2" |
7549 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7550if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00007551 $as_echo_n "(cached) " >&6
7552else
cristy73bd4a52010-10-05 11:24:23 +00007553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554/* end confdefs.h. */
7555
7556int
7557main ()
7558{
7559
7560 ;
7561 return 0;
7562}
7563_ACEOF
7564# Make sure it works both with $CC and with simple cc.
7565# We do the test twice because some compilers refuse to overwrite an
7566# existing .o file with -o, though they will create one.
7567ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7568rm -f conftest2.*
7569if { { case "(($ac_try" in
7570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7571 *) ac_try_echo=$ac_try;;
7572esac
7573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7574$as_echo "$ac_try_echo"; } >&5
7575 (eval "$ac_try") 2>&5
7576 ac_status=$?
7577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7578 test $ac_status = 0; } &&
7579 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7581 *) ac_try_echo=$ac_try;;
7582esac
7583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7584$as_echo "$ac_try_echo"; } >&5
7585 (eval "$ac_try") 2>&5
7586 ac_status=$?
7587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7588 test $ac_status = 0; };
7589then
7590 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7591 if test "x$CC" != xcc; then
7592 # Test first that cc exists at all.
7593 if { ac_try='cc -c conftest.$ac_ext >&5'
7594 { { case "(($ac_try" in
7595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7596 *) ac_try_echo=$ac_try;;
7597esac
7598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7599$as_echo "$ac_try_echo"; } >&5
7600 (eval "$ac_try") 2>&5
7601 ac_status=$?
7602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7603 test $ac_status = 0; }; }; then
7604 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7605 rm -f conftest2.*
7606 if { { case "(($ac_try" in
7607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7608 *) ac_try_echo=$ac_try;;
7609esac
7610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7611$as_echo "$ac_try_echo"; } >&5
7612 (eval "$ac_try") 2>&5
7613 ac_status=$?
7614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7615 test $ac_status = 0; } &&
7616 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7619esac
7620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7621$as_echo "$ac_try_echo"; } >&5
7622 (eval "$ac_try") 2>&5
7623 ac_status=$?
7624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7625 test $ac_status = 0; };
7626 then
7627 # cc works too.
7628 :
7629 else
7630 # cc exists but doesn't like -o.
7631 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7632 fi
7633 fi
7634 fi
7635else
7636 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7637fi
7638rm -f core conftest*
7639
7640fi
7641if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7643$as_echo "yes" >&6; }
7644else
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646$as_echo "no" >&6; }
7647
7648$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7649
7650fi
7651
7652# FIXME: we rely on the cache variable name because
7653# there is no other way.
7654set dummy $CC
7655am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7656eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7657if test "$am_t" != yes; then
7658 # Losing compiler, so override with the script.
7659 # FIXME: It is wrong to rewrite CC.
7660 # But if we don't then we get into trouble of one sort or another.
7661 # A longer-term fix would be to have automake use am__CC in this case,
7662 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7663 CC="$am_aux_dir/compile $CC"
7664fi
7665
7666
7667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7668$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7669if test "${ac_cv_cflags_warn_all+set}" = set; then :
7670 $as_echo_n "(cached) " >&6
7671else
7672 ac_cv_cflags_warn_all="no, unknown"
7673
7674 ac_ext=c
7675ac_cpp='$CPP $CPPFLAGS'
7676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7678ac_compiler_gnu=$ac_cv_c_compiler_gnu
7679
7680 ac_save_CFLAGS="$CFLAGS"
7681for 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" #
7682do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684/* end confdefs.h. */
7685
7686int
7687main ()
7688{
7689return 0;
7690 ;
7691 return 0;
7692}
7693_ACEOF
7694if ac_fn_c_try_compile "$LINENO"; then :
7695 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7696fi
7697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7698done
7699 CFLAGS="$ac_save_CFLAGS"
7700 ac_ext=c
7701ac_cpp='$CPP $CPPFLAGS'
7702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7704ac_compiler_gnu=$ac_cv_c_compiler_gnu
7705
7706
7707fi
7708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7709$as_echo "$ac_cv_cflags_warn_all" >&6; }
7710case ".$ac_cv_cflags_warn_all" in
7711 .ok|.ok,*) ;;
7712 .|.no|.no,*)
7713 ;;
7714 *)
7715 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7716 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7717 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7718 ac_status=$?
7719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7720 test $ac_status = 0; }
7721 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7722 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7723 ac_status=$?
7724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7725 test $ac_status = 0; }
7726 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7727 fi
7728 ;;
nicolas6237c462010-10-05 06:11:49 +00007729esac
cristy3ed852e2009-09-05 21:47:34 +00007730
cristya0b81c32010-01-22 02:54:33 +00007731
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7733$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7734set x ${MAKE-make}
7735ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyf6fcb5d2010-09-24 01:19:13 +00007736if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristya0b81c32010-01-22 02:54:33 +00007737 $as_echo_n "(cached) " >&6
7738else
7739 cat >conftest.make <<\_ACEOF
7740SHELL = /bin/sh
7741all:
7742 @echo '@@@%%%=$(MAKE)=@@@%%%'
7743_ACEOF
cristyf6fcb5d2010-09-24 01:19:13 +00007744# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007745case `${MAKE-make} -f conftest.make 2>/dev/null` in
7746 *@@@%%%=?*=@@@%%%*)
7747 eval ac_cv_prog_make_${ac_make}_set=yes;;
7748 *)
7749 eval ac_cv_prog_make_${ac_make}_set=no;;
7750esac
7751rm -f conftest.make
7752fi
7753if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7755$as_echo "yes" >&6; }
7756 SET_MAKE=
7757else
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759$as_echo "no" >&6; }
7760 SET_MAKE="MAKE=${MAKE-make}"
7761fi
7762
cristy8b350f62009-11-15 23:12:43 +00007763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007764$as_echo_n "checking whether ln -s works... " >&6; }
7765LN_S=$as_ln_s
7766if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007768$as_echo "yes" >&6; }
7769else
cristy8b350f62009-11-15 23:12:43 +00007770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007771$as_echo "no, using $LN_S" >&6; }
7772fi
7773
cristy73bd4a52010-10-05 11:24:23 +00007774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7775$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7776
7777# Check whether --with-dmalloc was given.
7778if test "${with_dmalloc+set}" = set; then :
7779 withval=$with_dmalloc; if test "$withval" = yes; then
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7781$as_echo "yes" >&6; }
7782
7783$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7784
7785 LIBS="$LIBS -ldmalloc"
7786 LDFLAGS="$LDFLAGS -g"
7787else
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789$as_echo "no" >&6; }
7790fi
7791else
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793$as_echo "no" >&6; }
7794fi
7795
7796
7797
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7799$as_echo_n "checking for __attribute__... " >&6; }
7800if test "${ax_cv___attribute__+set}" = set; then :
7801 $as_echo_n "(cached) " >&6
7802else
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804/* end confdefs.h. */
7805#include <stdlib.h>
7806 static void foo(void) __attribute__ ((unused));
7807 static void
7808 foo(void) {
7809 exit(1);
7810 }
7811
7812int
7813main ()
7814{
7815
7816 ;
7817 return 0;
7818}
7819_ACEOF
7820if ac_fn_c_try_compile "$LINENO"; then :
7821 ax_cv___attribute__=yes
7822else
7823 ax_cv___attribute__=no
7824
7825fi
7826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827
7828fi
7829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7830$as_echo "$ax_cv___attribute__" >&6; }
7831 if test "$ax_cv___attribute__" = "yes"; then
7832
7833$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7834
7835 fi
7836
7837
7838
7839if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7840 if test -n "$ac_tool_prefix"; then
7841 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7842set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844$as_echo_n "checking for $ac_word... " >&6; }
7845if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7846 $as_echo_n "(cached) " >&6
7847else
7848 case $PKG_CONFIG in
7849 [\\/]* | ?:[\\/]*)
7850 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7851 ;;
7852 *)
7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854for as_dir in $PATH
7855do
7856 IFS=$as_save_IFS
7857 test -z "$as_dir" && as_dir=.
7858 for ac_exec_ext in '' $ac_executable_extensions; do
7859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7860 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7862 break 2
7863 fi
7864done
7865 done
7866IFS=$as_save_IFS
7867
7868 ;;
7869esac
7870fi
7871PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7872if test -n "$PKG_CONFIG"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7874$as_echo "$PKG_CONFIG" >&6; }
7875else
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877$as_echo "no" >&6; }
7878fi
7879
7880
7881fi
7882if test -z "$ac_cv_path_PKG_CONFIG"; then
7883 ac_pt_PKG_CONFIG=$PKG_CONFIG
7884 # Extract the first word of "pkg-config", so it can be a program name with args.
7885set dummy pkg-config; ac_word=$2
7886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7887$as_echo_n "checking for $ac_word... " >&6; }
7888if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7889 $as_echo_n "(cached) " >&6
7890else
7891 case $ac_pt_PKG_CONFIG in
7892 [\\/]* | ?:[\\/]*)
7893 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7894 ;;
7895 *)
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897for as_dir in $PATH
7898do
7899 IFS=$as_save_IFS
7900 test -z "$as_dir" && as_dir=.
7901 for ac_exec_ext in '' $ac_executable_extensions; do
7902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7903 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7905 break 2
7906 fi
7907done
7908 done
7909IFS=$as_save_IFS
7910
7911 ;;
7912esac
7913fi
7914ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7915if test -n "$ac_pt_PKG_CONFIG"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7917$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7918else
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920$as_echo "no" >&6; }
7921fi
7922
7923 if test "x$ac_pt_PKG_CONFIG" = x; then
7924 PKG_CONFIG=""
7925 else
7926 case $cross_compiling:$ac_tool_warned in
7927yes:)
7928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7930ac_tool_warned=yes ;;
7931esac
7932 PKG_CONFIG=$ac_pt_PKG_CONFIG
7933 fi
7934else
7935 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7936fi
7937
7938fi
7939if test -n "$PKG_CONFIG"; then
7940 _pkg_min_version=0.9.0
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7942$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7943 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7945$as_echo "yes" >&6; }
7946 else
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948$as_echo "no" >&6; }
7949 PKG_CONFIG=""
7950 fi
7951
7952fi
cristy3ed852e2009-09-05 21:47:34 +00007953
7954#
cristy3ed852e2009-09-05 21:47:34 +00007955# Enable run-time checking.
7956#
7957# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007958if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007959 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7960else
7961 enable_bounds_checking='no'
7962fi
7963
7964
7965if test "$enable_bounds_checking" = yes; then
7966
cristy8b350f62009-11-15 23:12:43 +00007967$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007968
7969fi
7970
7971#
7972# Tests for Windows
7973#
7974
7975
cristy73bd4a52010-10-05 11:24:23 +00007976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7977$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7978if test "${ax_cv_c_compiler_ms+set}" = set; then :
7979 $as_echo_n "(cached) " >&6
7980else
7981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7982/* end confdefs.h. */
7983
7984int
7985main ()
7986{
7987#ifndef _MSC_VER
7988 choke me
7989#endif
7990
7991 ;
7992 return 0;
7993}
7994_ACEOF
7995if ac_fn_c_try_compile "$LINENO"; then :
7996 ax_compiler_ms=yes
7997else
7998 ax_compiler_ms=no
7999fi
8000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8001ax_cv_c_compiler_ms=$ax_compiler_ms
8002
8003fi
8004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8005$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008006
8007GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008008native_win32_build='no'
8009cygwin_build='no'
8010case "${host_os}" in
8011 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008012 cygwin_build='yes'
8013 GDI32_LIBS='-lgdi32'
8014 ;;
8015 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008016 native_win32_build='yes'
8017 GDI32_LIBS='-lgdi32'
8018 ;;
8019esac
8020if test "${GDI32_LIBS}x" != 'x'; then
8021
cristy8b350f62009-11-15 23:12:43 +00008022$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008023
8024fi
8025
cristy73bd4a52010-10-05 11:24:23 +00008026 if test "${GDI32_LIBS}x" != 'x' ; then
8027 WINGDI32_DELEGATE_TRUE=
8028 WINGDI32_DELEGATE_FALSE='#'
8029else
8030 WINGDI32_DELEGATE_TRUE='#'
8031 WINGDI32_DELEGATE_FALSE=
8032fi
8033
8034 if test "${native_win32_build}" = 'yes' ; then
8035 WIN32_NATIVE_BUILD_TRUE=
8036 WIN32_NATIVE_BUILD_FALSE='#'
8037else
8038 WIN32_NATIVE_BUILD_TRUE='#'
8039 WIN32_NATIVE_BUILD_FALSE=
8040fi
8041
8042 if test "${cygwin_build}" = 'yes' ; then
8043 CYGWIN_BUILD_TRUE=
8044 CYGWIN_BUILD_FALSE='#'
8045else
8046 CYGWIN_BUILD_TRUE='#'
8047 CYGWIN_BUILD_FALSE=
8048fi
8049
8050 if test "x${CC}" = 'xcl.exe' ; then
8051 USING_CL_TRUE=
8052 USING_CL_FALSE='#'
8053else
8054 USING_CL_TRUE='#'
8055 USING_CL_FALSE=
8056fi
8057
cristy3ed852e2009-09-05 21:47:34 +00008058
8059WinPathScript="${srcdirfull}/winpath.sh"
8060
8061
8062#
8063# Compiler flags tweaks
8064#
8065if test "${GCC}" != "yes"; then
8066 case "${host}" in
8067 *-*-hpux* )
8068 # aCC: HP ANSI C++ B3910B A.03.34
8069 CFLAGS="${CFLAGS} -Wp,-H30000"
8070 if test -n "${CXXFLAGS}"; then
8071 CXXFLAGS='-AA'
8072 else
8073 CXXFLAGS="${CXXFLAGS} -AA"
8074 fi
8075 ;;
8076 *-dec-osf5.* )
8077 # Compaq alphaev68-dec-osf5.1 compiler
8078 if test -n "${CXXFLAGS}"; then
8079 CXXFLAGS='-std strict_ansi -noimplicit_include'
8080 else
8081 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8082 fi
8083 esac
8084fi
8085
8086# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008088$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008089if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008090 $as_echo_n "(cached) " >&6
8091else
8092
8093im_cv_ld_lazyload='none'
8094case "${host}" in
8095 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8096 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8097 im_cv_ld_lazyload='-Wl,-zlazyload'
8098 fi
8099 ;;
8100esac
8101
8102fi
cristy8b350f62009-11-15 23:12:43 +00008103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008104$as_echo "$im_cv_ld_lazyload" >&6; }
8105if test "${im_cv_ld_lazyload}" != 'none' ; then
8106 if test -z "${LDFLAGS}" ; then
8107 LDFLAGS="${im_cv_ld_lazyload}"
8108 else
8109 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8110 fi
8111fi
8112
8113case "$host" in
8114*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008115 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008116if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008117 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8118else
8119 build_osxuniversal=no
8120fi
8121
8122
8123 if test "${build_osxuniversal}" != no ; then
8124 if test "$enable_dependency_tracking" != no ; then
cristyf6fcb5d2010-09-24 01:19:13 +00008125 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008126Please re-run configure with these options:
8127 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008128 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008129 fi
8130 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8131 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8132 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8133 fi
8134 ;;
8135esac
8136
8137# Enable support for threads
8138
8139# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008140if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008141 withval=$with_threads; with_threads=$withval
8142else
8143 with_threads='yes'
8144fi
8145
8146
8147have_threads=no
8148if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008149
8150
8151
8152ac_ext=c
8153ac_cpp='$CPP $CPPFLAGS'
8154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8156ac_compiler_gnu=$ac_cv_c_compiler_gnu
8157
8158ax_pthread_ok=no
8159
8160# We used to check for pthread.h first, but this fails if pthread.h
8161# requires special compiler flags (e.g. on True64 or Sequent).
8162# It gets checked for in the link test anyway.
8163
8164# First of all, check if the user has set any of the PTHREAD_LIBS,
8165# etcetera environment variables, and if threads linking works using
8166# them:
8167if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8168 save_CFLAGS="$CFLAGS"
8169 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8170 save_LIBS="$LIBS"
8171 LIBS="$PTHREAD_LIBS $LIBS"
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8173$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175/* end confdefs.h. */
8176
8177/* Override any GCC internal prototype to avoid an error.
8178 Use char because int might match the return type of a GCC
8179 builtin and then its argument prototype would still apply. */
8180#ifdef __cplusplus
8181extern "C"
8182#endif
8183char pthread_join ();
8184int
8185main ()
8186{
8187return pthread_join ();
8188 ;
8189 return 0;
8190}
8191_ACEOF
8192if ac_fn_c_try_link "$LINENO"; then :
8193 ax_pthread_ok=yes
8194fi
8195rm -f core conftest.err conftest.$ac_objext \
8196 conftest$ac_exeext conftest.$ac_ext
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8198$as_echo "$ax_pthread_ok" >&6; }
8199 if test x"$ax_pthread_ok" = xno; then
8200 PTHREAD_LIBS=""
8201 PTHREAD_CFLAGS=""
8202 fi
8203 LIBS="$save_LIBS"
8204 CFLAGS="$save_CFLAGS"
8205fi
8206
8207# We must check for the threads library under a number of different
8208# names; the ordering is very important because some systems
8209# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8210# libraries is broken (non-POSIX).
8211
8212# Create a list of thread flags to try. Items starting with a "-" are
8213# C compiler flags, and other items are library names, except for "none"
8214# which indicates that we try without any flags at all, and "pthread-config"
8215# which is a program returning the flags for the Pth emulation library.
8216
8217ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8218
8219# The ordering *is* (sometimes) important. Some notes on the
8220# individual items follow:
8221
8222# pthreads: AIX (must check this before -lpthread)
8223# none: in case threads are in libc; should be tried before -Kthread and
8224# other compiler flags to prevent continual compiler warnings
8225# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8226# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8227# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8228# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8229# -pthreads: Solaris/gcc
8230# -mthreads: Mingw32/gcc, Lynx/gcc
8231# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8232# doesn't hurt to check since this sometimes defines pthreads too;
8233# also defines -D_REENTRANT)
8234# ... -mt is also the pthreads flag for HP/aCC
8235# pthread: Linux, etcetera
8236# --thread-safe: KAI C++
8237# pthread-config: use pthread-config program (for GNU Pth library)
8238
8239case "${host_cpu}-${host_os}" in
8240 *solaris*)
8241
8242 # On Solaris (at least, for some versions), libc contains stubbed
8243 # (non-functional) versions of the pthreads routines, so link-based
8244 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8245 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8246 # a function called by this macro, so we could check for that, but
8247 # who knows whether they'll stub that too in a future libc.) So,
8248 # we'll just look for -pthreads and -lpthread first:
8249
8250 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8251 ;;
8252
8253 *-darwin*)
8254 ax_pthread_flags="-pthread $ax_pthread_flags"
8255 ;;
8256esac
8257
8258if test x"$ax_pthread_ok" = xno; then
8259for flag in $ax_pthread_flags; do
8260
8261 case $flag in
8262 none)
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8264$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8265 ;;
8266
8267 -*)
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8269$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8270 PTHREAD_CFLAGS="$flag"
8271 ;;
8272
8273 pthread-config)
8274 # Extract the first word of "pthread-config", so it can be a program name with args.
8275set dummy pthread-config; ac_word=$2
8276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277$as_echo_n "checking for $ac_word... " >&6; }
8278if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
8280else
8281 if test -n "$ax_pthread_config"; then
8282 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8283else
8284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285for as_dir in $PATH
8286do
8287 IFS=$as_save_IFS
8288 test -z "$as_dir" && as_dir=.
8289 for ac_exec_ext in '' $ac_executable_extensions; do
8290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8291 ac_cv_prog_ax_pthread_config="yes"
8292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8293 break 2
8294 fi
8295done
8296 done
8297IFS=$as_save_IFS
8298
8299 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8300fi
8301fi
8302ax_pthread_config=$ac_cv_prog_ax_pthread_config
8303if test -n "$ax_pthread_config"; then
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8305$as_echo "$ax_pthread_config" >&6; }
8306else
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308$as_echo "no" >&6; }
8309fi
8310
8311
8312 if test x"$ax_pthread_config" = xno; then continue; fi
8313 PTHREAD_CFLAGS="`pthread-config --cflags`"
8314 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8315 ;;
8316
8317 *)
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8319$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8320 PTHREAD_LIBS="-l$flag"
8321 ;;
8322 esac
8323
8324 save_LIBS="$LIBS"
8325 save_CFLAGS="$CFLAGS"
8326 LIBS="$PTHREAD_LIBS $LIBS"
8327 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8328
8329 # Check for various functions. We must include pthread.h,
8330 # since some functions may be macros. (On the Sequent, we
8331 # need a special flag -Kthread to make this header compile.)
8332 # We check for pthread_join because it is in -lpthread on IRIX
8333 # while pthread_create is in libc. We check for pthread_attr_init
8334 # due to DEC craziness with -lpthreads. We check for
8335 # pthread_cleanup_push because it is one of the few pthread
8336 # functions on Solaris that doesn't have a non-functional libc stub.
8337 # We try pthread_create on general principles.
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339/* end confdefs.h. */
8340#include <pthread.h>
8341 static void routine(void* a) {a=0;}
8342 static void* start_routine(void* a) {return a;}
8343int
8344main ()
8345{
8346pthread_t th; pthread_attr_t attr;
8347 pthread_create(&th,0,start_routine,0);
8348 pthread_join(th, 0);
8349 pthread_attr_init(&attr);
8350 pthread_cleanup_push(routine, 0);
8351 pthread_cleanup_pop(0);
8352 ;
8353 return 0;
8354}
8355_ACEOF
8356if ac_fn_c_try_link "$LINENO"; then :
8357 ax_pthread_ok=yes
8358fi
8359rm -f core conftest.err conftest.$ac_objext \
8360 conftest$ac_exeext conftest.$ac_ext
8361
8362 LIBS="$save_LIBS"
8363 CFLAGS="$save_CFLAGS"
8364
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8366$as_echo "$ax_pthread_ok" >&6; }
8367 if test "x$ax_pthread_ok" = xyes; then
8368 break;
8369 fi
8370
8371 PTHREAD_LIBS=""
8372 PTHREAD_CFLAGS=""
8373done
8374fi
8375
8376# Various other checks:
8377if test "x$ax_pthread_ok" = xyes; then
8378 save_LIBS="$LIBS"
8379 LIBS="$PTHREAD_LIBS $LIBS"
8380 save_CFLAGS="$CFLAGS"
8381 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8382
8383 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8385$as_echo_n "checking for joinable pthread attribute... " >&6; }
8386 attr_name=unknown
8387 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389/* end confdefs.h. */
8390#include <pthread.h>
8391int
8392main ()
8393{
8394int attr=$attr; return attr;
8395 ;
8396 return 0;
8397}
8398_ACEOF
8399if ac_fn_c_try_link "$LINENO"; then :
8400 attr_name=$attr; break
8401fi
8402rm -f core conftest.err conftest.$ac_objext \
8403 conftest$ac_exeext conftest.$ac_ext
8404 done
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8406$as_echo "$attr_name" >&6; }
8407 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8408
8409cat >>confdefs.h <<_ACEOF
8410#define PTHREAD_CREATE_JOINABLE $attr_name
8411_ACEOF
8412
8413 fi
8414
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8416$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8417 flag=no
8418 case "${host_cpu}-${host_os}" in
8419 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8420 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8421 esac
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8423$as_echo "${flag}" >&6; }
8424 if test "x$flag" != xno; then
8425 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8426 fi
8427
8428 LIBS="$save_LIBS"
8429 CFLAGS="$save_CFLAGS"
8430
8431 # More AIX lossage: must compile with xlc_r or cc_r
8432 if test x"$GCC" != xyes; then
8433 for ac_prog in xlc_r cc_r
8434do
8435 # Extract the first word of "$ac_prog", so it can be a program name with args.
8436set dummy $ac_prog; ac_word=$2
8437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438$as_echo_n "checking for $ac_word... " >&6; }
8439if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8440 $as_echo_n "(cached) " >&6
8441else
8442 if test -n "$PTHREAD_CC"; then
8443 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8444else
8445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446for as_dir in $PATH
8447do
8448 IFS=$as_save_IFS
8449 test -z "$as_dir" && as_dir=.
8450 for ac_exec_ext in '' $ac_executable_extensions; do
8451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8452 ac_cv_prog_PTHREAD_CC="$ac_prog"
8453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8454 break 2
8455 fi
8456done
8457 done
8458IFS=$as_save_IFS
8459
8460fi
8461fi
8462PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8463if test -n "$PTHREAD_CC"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8465$as_echo "$PTHREAD_CC" >&6; }
8466else
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468$as_echo "no" >&6; }
8469fi
8470
8471
8472 test -n "$PTHREAD_CC" && break
8473done
8474test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8475
8476 else
8477 PTHREAD_CC=$CC
8478 fi
8479else
8480 PTHREAD_CC="$CC"
8481fi
8482
8483
8484
8485
8486
8487# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8488if test x"$ax_pthread_ok" = xyes; then
8489
8490$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8491
8492 :
8493else
8494 ax_pthread_ok=no
8495
8496fi
8497ac_ext=c
8498ac_cpp='$CPP $CPPFLAGS'
8499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8501ac_compiler_gnu=$ac_cv_c_compiler_gnu
8502
8503
cristy7acf8fb2010-09-23 19:58:53 +00008504 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008505 have_threads=yes
8506 DEF_THREAD="$PTHREAD_CFLAGS"
8507 CFLAGS="$CFLAGS $DEF_THREAD"
8508 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8509 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008510 { $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 +00008511$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8512 CC="$PTHREAD_CC"
8513 fi
cristy55bf91c2010-09-24 00:29:41 +00008514
8515$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8516
cristy3ed852e2009-09-05 21:47:34 +00008517 fi
8518fi
8519
8520# Enable support for OpenMP
8521if test "$have_threads" != 'yes'; then
8522 ac_cv_prog_c_openmp=unsupported
8523fi
8524
8525 OPENMP_CFLAGS=
8526 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008527if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008528 enableval=$enable_openmp;
8529fi
8530
8531 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008533$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008534if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008535 $as_echo_n "(cached) " >&6
8536else
cristy8b350f62009-11-15 23:12:43 +00008537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008539
8540#ifndef _OPENMP
8541 choke me
8542#endif
8543#include <omp.h>
8544int main () { return omp_get_num_threads (); }
8545
8546_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008547if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008548 ac_cv_prog_c_openmp='none needed'
8549else
cristy8b350f62009-11-15 23:12:43 +00008550 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008551 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8552 ac_save_CFLAGS=$CFLAGS
8553 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8555/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008556
8557#ifndef _OPENMP
8558 choke me
8559#endif
8560#include <omp.h>
8561int main () { return omp_get_num_threads (); }
8562
8563_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008564if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008565 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008566fi
cristy8b350f62009-11-15 23:12:43 +00008567rm -f core conftest.err conftest.$ac_objext \
8568 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008569 CFLAGS=$ac_save_CFLAGS
8570 if test "$ac_cv_prog_c_openmp" != unsupported; then
8571 break
8572 fi
8573 done
8574fi
cristy8b350f62009-11-15 23:12:43 +00008575rm -f core conftest.err conftest.$ac_objext \
8576 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008577fi
cristy8b350f62009-11-15 23:12:43 +00008578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008579$as_echo "$ac_cv_prog_c_openmp" >&6; }
8580 case $ac_cv_prog_c_openmp in #(
8581 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008582 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008583 *)
cristy8b350f62009-11-15 23:12:43 +00008584 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008585 esac
8586 fi
8587
8588
8589CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8590MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8591
cristy391f1ce2010-09-09 17:23:28 +00008592if test "$enable_openmp" != no; then
8593 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8594 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8595 fi
8596fi
cristy3ed852e2009-09-05 21:47:34 +00008597
cristy736173a2009-09-20 21:18:22 +00008598# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008599
8600
8601
8602ac_ext=c
8603ac_cpp='$CPP $CPPFLAGS'
8604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8606ac_compiler_gnu=$ac_cv_c_compiler_gnu
8607
8608ax_pthread_ok=no
8609
8610# We used to check for pthread.h first, but this fails if pthread.h
8611# requires special compiler flags (e.g. on True64 or Sequent).
8612# It gets checked for in the link test anyway.
8613
8614# First of all, check if the user has set any of the PTHREAD_LIBS,
8615# etcetera environment variables, and if threads linking works using
8616# them:
8617if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8618 save_CFLAGS="$CFLAGS"
8619 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8620 save_LIBS="$LIBS"
8621 LIBS="$PTHREAD_LIBS $LIBS"
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8623$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625/* end confdefs.h. */
8626
8627/* Override any GCC internal prototype to avoid an error.
8628 Use char because int might match the return type of a GCC
8629 builtin and then its argument prototype would still apply. */
8630#ifdef __cplusplus
8631extern "C"
8632#endif
8633char pthread_join ();
8634int
8635main ()
8636{
8637return pthread_join ();
8638 ;
8639 return 0;
8640}
8641_ACEOF
8642if ac_fn_c_try_link "$LINENO"; then :
8643 ax_pthread_ok=yes
8644fi
8645rm -f core conftest.err conftest.$ac_objext \
8646 conftest$ac_exeext conftest.$ac_ext
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8648$as_echo "$ax_pthread_ok" >&6; }
8649 if test x"$ax_pthread_ok" = xno; then
8650 PTHREAD_LIBS=""
8651 PTHREAD_CFLAGS=""
8652 fi
8653 LIBS="$save_LIBS"
8654 CFLAGS="$save_CFLAGS"
8655fi
8656
8657# We must check for the threads library under a number of different
8658# names; the ordering is very important because some systems
8659# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8660# libraries is broken (non-POSIX).
8661
8662# Create a list of thread flags to try. Items starting with a "-" are
8663# C compiler flags, and other items are library names, except for "none"
8664# which indicates that we try without any flags at all, and "pthread-config"
8665# which is a program returning the flags for the Pth emulation library.
8666
8667ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8668
8669# The ordering *is* (sometimes) important. Some notes on the
8670# individual items follow:
8671
8672# pthreads: AIX (must check this before -lpthread)
8673# none: in case threads are in libc; should be tried before -Kthread and
8674# other compiler flags to prevent continual compiler warnings
8675# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8676# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8677# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8678# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8679# -pthreads: Solaris/gcc
8680# -mthreads: Mingw32/gcc, Lynx/gcc
8681# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8682# doesn't hurt to check since this sometimes defines pthreads too;
8683# also defines -D_REENTRANT)
8684# ... -mt is also the pthreads flag for HP/aCC
8685# pthread: Linux, etcetera
8686# --thread-safe: KAI C++
8687# pthread-config: use pthread-config program (for GNU Pth library)
8688
8689case "${host_cpu}-${host_os}" in
8690 *solaris*)
8691
8692 # On Solaris (at least, for some versions), libc contains stubbed
8693 # (non-functional) versions of the pthreads routines, so link-based
8694 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8695 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8696 # a function called by this macro, so we could check for that, but
8697 # who knows whether they'll stub that too in a future libc.) So,
8698 # we'll just look for -pthreads and -lpthread first:
8699
8700 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8701 ;;
8702
8703 *-darwin*)
8704 ax_pthread_flags="-pthread $ax_pthread_flags"
8705 ;;
8706esac
8707
8708if test x"$ax_pthread_ok" = xno; then
8709for flag in $ax_pthread_flags; do
8710
8711 case $flag in
8712 none)
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8714$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8715 ;;
8716
8717 -*)
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8719$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8720 PTHREAD_CFLAGS="$flag"
8721 ;;
8722
8723 pthread-config)
8724 # Extract the first word of "pthread-config", so it can be a program name with args.
8725set dummy pthread-config; ac_word=$2
8726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8727$as_echo_n "checking for $ac_word... " >&6; }
8728if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8729 $as_echo_n "(cached) " >&6
8730else
8731 if test -n "$ax_pthread_config"; then
8732 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8733else
8734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8735for as_dir in $PATH
8736do
8737 IFS=$as_save_IFS
8738 test -z "$as_dir" && as_dir=.
8739 for ac_exec_ext in '' $ac_executable_extensions; do
8740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8741 ac_cv_prog_ax_pthread_config="yes"
8742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8743 break 2
8744 fi
8745done
8746 done
8747IFS=$as_save_IFS
8748
8749 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8750fi
8751fi
8752ax_pthread_config=$ac_cv_prog_ax_pthread_config
8753if test -n "$ax_pthread_config"; then
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8755$as_echo "$ax_pthread_config" >&6; }
8756else
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758$as_echo "no" >&6; }
8759fi
8760
8761
8762 if test x"$ax_pthread_config" = xno; then continue; fi
8763 PTHREAD_CFLAGS="`pthread-config --cflags`"
8764 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8765 ;;
8766
8767 *)
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8769$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8770 PTHREAD_LIBS="-l$flag"
8771 ;;
8772 esac
8773
8774 save_LIBS="$LIBS"
8775 save_CFLAGS="$CFLAGS"
8776 LIBS="$PTHREAD_LIBS $LIBS"
8777 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8778
8779 # Check for various functions. We must include pthread.h,
8780 # since some functions may be macros. (On the Sequent, we
8781 # need a special flag -Kthread to make this header compile.)
8782 # We check for pthread_join because it is in -lpthread on IRIX
8783 # while pthread_create is in libc. We check for pthread_attr_init
8784 # due to DEC craziness with -lpthreads. We check for
8785 # pthread_cleanup_push because it is one of the few pthread
8786 # functions on Solaris that doesn't have a non-functional libc stub.
8787 # We try pthread_create on general principles.
8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8789/* end confdefs.h. */
8790#include <pthread.h>
8791 static void routine(void* a) {a=0;}
8792 static void* start_routine(void* a) {return a;}
8793int
8794main ()
8795{
8796pthread_t th; pthread_attr_t attr;
8797 pthread_create(&th,0,start_routine,0);
8798 pthread_join(th, 0);
8799 pthread_attr_init(&attr);
8800 pthread_cleanup_push(routine, 0);
8801 pthread_cleanup_pop(0);
8802 ;
8803 return 0;
8804}
8805_ACEOF
8806if ac_fn_c_try_link "$LINENO"; then :
8807 ax_pthread_ok=yes
8808fi
8809rm -f core conftest.err conftest.$ac_objext \
8810 conftest$ac_exeext conftest.$ac_ext
8811
8812 LIBS="$save_LIBS"
8813 CFLAGS="$save_CFLAGS"
8814
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8816$as_echo "$ax_pthread_ok" >&6; }
8817 if test "x$ax_pthread_ok" = xyes; then
8818 break;
8819 fi
8820
8821 PTHREAD_LIBS=""
8822 PTHREAD_CFLAGS=""
8823done
8824fi
8825
8826# Various other checks:
8827if test "x$ax_pthread_ok" = xyes; then
8828 save_LIBS="$LIBS"
8829 LIBS="$PTHREAD_LIBS $LIBS"
8830 save_CFLAGS="$CFLAGS"
8831 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8832
8833 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8835$as_echo_n "checking for joinable pthread attribute... " >&6; }
8836 attr_name=unknown
8837 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839/* end confdefs.h. */
8840#include <pthread.h>
8841int
8842main ()
8843{
8844int attr=$attr; return attr;
8845 ;
8846 return 0;
8847}
8848_ACEOF
8849if ac_fn_c_try_link "$LINENO"; then :
8850 attr_name=$attr; break
8851fi
8852rm -f core conftest.err conftest.$ac_objext \
8853 conftest$ac_exeext conftest.$ac_ext
8854 done
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8856$as_echo "$attr_name" >&6; }
8857 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8858
8859cat >>confdefs.h <<_ACEOF
8860#define PTHREAD_CREATE_JOINABLE $attr_name
8861_ACEOF
8862
8863 fi
8864
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8866$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8867 flag=no
8868 case "${host_cpu}-${host_os}" in
8869 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8870 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8871 esac
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8873$as_echo "${flag}" >&6; }
8874 if test "x$flag" != xno; then
8875 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8876 fi
8877
8878 LIBS="$save_LIBS"
8879 CFLAGS="$save_CFLAGS"
8880
8881 # More AIX lossage: must compile with xlc_r or cc_r
8882 if test x"$GCC" != xyes; then
8883 for ac_prog in xlc_r cc_r
8884do
8885 # Extract the first word of "$ac_prog", so it can be a program name with args.
8886set dummy $ac_prog; ac_word=$2
8887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8888$as_echo_n "checking for $ac_word... " >&6; }
8889if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8890 $as_echo_n "(cached) " >&6
8891else
8892 if test -n "$PTHREAD_CC"; then
8893 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8894else
8895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8896for as_dir in $PATH
8897do
8898 IFS=$as_save_IFS
8899 test -z "$as_dir" && as_dir=.
8900 for ac_exec_ext in '' $ac_executable_extensions; do
8901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8902 ac_cv_prog_PTHREAD_CC="$ac_prog"
8903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8904 break 2
8905 fi
8906done
8907 done
8908IFS=$as_save_IFS
8909
8910fi
8911fi
8912PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8913if test -n "$PTHREAD_CC"; then
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8915$as_echo "$PTHREAD_CC" >&6; }
8916else
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8918$as_echo "no" >&6; }
8919fi
8920
8921
8922 test -n "$PTHREAD_CC" && break
8923done
8924test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8925
8926 else
8927 PTHREAD_CC=$CC
8928 fi
8929else
8930 PTHREAD_CC="$CC"
8931fi
8932
8933
8934
8935
8936
8937# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8938if test x"$ax_pthread_ok" = xyes; then
8939
8940$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8941
8942 :
8943else
8944 ax_pthread_ok=no
8945
8946fi
8947ac_ext=c
8948ac_cpp='$CPP $CPPFLAGS'
8949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8951ac_compiler_gnu=$ac_cv_c_compiler_gnu
8952
8953
8954
8955# Check whether --enable-opencl was given.
8956if test "${enable_opencl+set}" = set; then :
8957 enableval=$enable_opencl; disable_opencl=$enableval
8958else
8959 disable_opencl='yes'
8960fi
8961
8962
8963if test "$disable_opencl" = 'yes'; then
8964 ac_ext=c
8965ac_cpp='$CPP $CPPFLAGS'
8966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8968ac_compiler_gnu=$ac_cv_c_compiler_gnu
8969
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8971$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8972if test "${ax_cv_c_compiler_ms+set}" = set; then :
8973 $as_echo_n "(cached) " >&6
8974else
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976/* end confdefs.h. */
8977
8978int
8979main ()
8980{
8981#ifndef _MSC_VER
8982 choke me
8983#endif
8984
8985 ;
8986 return 0;
8987}
8988_ACEOF
8989if ac_fn_c_try_compile "$LINENO"; then :
8990 ax_compiler_ms=yes
8991else
8992 ax_compiler_ms=no
8993fi
8994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8995ax_cv_c_compiler_ms=$ax_compiler_ms
8996
8997fi
8998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8999$as_echo "$ax_cv_c_compiler_ms" >&6; }
9000 if test X$ax_compiler_ms = Xno; then :
9001 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9002fi
9003
9004 ax_save_CPPFLAGS=$CPPFLAGS
9005 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9006 for ac_header in CL/cl.h OpenCL/cl.h
9007do :
9008 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9009ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9010eval as_val=\$$as_ac_Header
9011 if test "x$as_val" = x""yes; then :
9012 cat >>confdefs.h <<_ACEOF
9013#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9014_ACEOF
9015
9016fi
9017
9018done
9019
9020 CPPFLAGS=$ax_save_CPPFLAGS
9021
9022 for ac_header in windows.h
9023do :
9024 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9025if test "x$ac_cv_header_windows_h" = x""yes; then :
9026 cat >>confdefs.h <<_ACEOF
9027#define HAVE_WINDOWS_H 1
9028_ACEOF
9029
9030fi
9031
9032done
9033
9034
9035
9036
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9038$as_echo_n "checking for OpenCL library... " >&6; }
9039if test "${ax_cv_check_cl_libcl+set}" = set; then :
9040 $as_echo_n "(cached) " >&6
9041else
9042 ax_cv_check_cl_libcl=no
9043 case $host_cpu in
9044 x86_64) ax_check_cl_libdir=lib64 ;;
9045 *) ax_check_cl_libdir=lib ;;
9046 esac
9047 ax_save_CPPFLAGS=$CPPFLAGS
9048 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9049 ax_save_LIBS=$LIBS
9050 LIBS=""
9051 ax_check_libs="-lOpenCL -lCL -lclparser"
9052 for ax_lib in $ax_check_libs; do
9053 if test X$ax_compiler_ms = Xyes; then :
9054 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9055else
9056 ax_try_lib=$ax_lib
9057fi
9058 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060/* end confdefs.h. */
9061
9062 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9063 # include <windows.h>
9064 # endif
9065 # ifdef HAVE_CL_CL_H
9066 # include <CL/cl.h>
9067 # elif defined(HAVE_OPENCL_CL_H)
9068 # include <OpenCL/cl.h>
9069 # else
9070 # error no CL.h
9071 # endif
9072int
9073main ()
9074{
9075clCreateContextFromType(0,0,0,0,0)
9076 ;
9077 return 0;
9078}
9079_ACEOF
9080if ac_fn_c_try_link "$LINENO"; then :
9081 ax_cv_check_cl_libcl=$ax_try_lib; break
9082else
9083 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"
9084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085/* end confdefs.h. */
9086
9087 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9088 # include <windows.h>
9089 # endif
9090 # ifdef HAVE_CL_CL_H
9091 # include <CL/cl.h>
9092 # elif defined(HAVE_OPENCL_CL_H)
9093 # include <OpenCL/cl.h>
9094 # else
9095 # error no CL.h
9096 # endif
9097int
9098main ()
9099{
9100clCreateContextFromType(0,0,0,0,0)
9101 ;
9102 return 0;
9103}
9104_ACEOF
9105if ac_fn_c_try_link "$LINENO"; then :
9106 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9107else
9108 ax_check_cl_dylib_flag='-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"
9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110/* end confdefs.h. */
9111
9112 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9113 # include <windows.h>
9114 # endif
9115 # ifdef HAVE_CL_CL_H
9116 # include <CL/cl.h>
9117 # elif defined(HAVE_OPENCL_CL_H)
9118 # include <OpenCL/cl.h>
9119 # else
9120 # error no CL.h
9121 # endif
9122int
9123main ()
9124{
9125clCreateContextFromType(0,0,0,0,0)
9126 ;
9127 return 0;
9128}
9129_ACEOF
9130if ac_fn_c_try_link "$LINENO"; then :
9131 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9132fi
9133rm -f core conftest.err conftest.$ac_objext \
9134 conftest$ac_exeext conftest.$ac_ext
9135fi
9136rm -f core conftest.err conftest.$ac_objext \
9137 conftest$ac_exeext conftest.$ac_ext
9138fi
9139rm -f core conftest.err conftest.$ac_objext \
9140 conftest$ac_exeext conftest.$ac_ext
9141 done
9142
9143 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
9144 LIBS='-framework OpenCL'
9145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146/* end confdefs.h. */
9147
9148 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9149 # include <windows.h>
9150 # endif
9151 # ifdef HAVE_CL_CL_H
9152 # include <CL/cl.h>
9153 # elif defined(HAVE_OPENCL_CL_H)
9154 # include <OpenCL/cl.h>
9155 # else
9156 # error no CL.h
9157 # endif
9158int
9159main ()
9160{
9161clCreateContextFromType(0,0,0,0,0)
9162 ;
9163 return 0;
9164}
9165_ACEOF
9166if ac_fn_c_try_link "$LINENO"; then :
9167 ax_cv_check_cl_libcl=$LIBS
9168fi
9169rm -f core conftest.err conftest.$ac_objext \
9170 conftest$ac_exeext conftest.$ac_ext
9171fi
9172
9173 LIBS=$ax_save_LIBS
9174 CPPFLAGS=$ax_save_CPPFLAGS
9175fi
9176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9177$as_echo "$ax_cv_check_cl_libcl" >&6; }
9178
9179 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9180 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9181else
9182 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9183$as_echo "#define _OPENCL 1" >>confdefs.h
9184
9185fi
9186 ac_ext=c
9187ac_cpp='$CPP $CPPFLAGS'
9188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9190ac_compiler_gnu=$ac_cv_c_compiler_gnu
9191
9192fi
9193
9194
9195
9196
cristyc7083c12009-10-14 03:16:55 +00009197CFLAGS="$CL_CFLAGS $CFLAGS"
9198LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009199
cristy391f1ce2010-09-09 17:23:28 +00009200if test "$enable_opencl" != no; then
9201 if test "_OPENCL" = '1'; then
9202 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9203 fi
cristyfd9dcd42010-08-08 18:07:02 +00009204fi
cristy2e8b51d2009-10-17 18:26:15 +00009205
cristy3ed852e2009-09-05 21:47:34 +00009206########
9207#
9208# Check for large file support
9209#
9210########
9211# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009212if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009213 enableval=$enable_largefile;
9214fi
9215
9216if test "$enable_largefile" != no; then
9217
cristy8b350f62009-11-15 23:12:43 +00009218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009219$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009220if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009221 $as_echo_n "(cached) " >&6
9222else
9223 ac_cv_sys_largefile_CC=no
9224 if test "$GCC" != yes; then
9225 ac_save_CC=$CC
9226 while :; do
9227 # IRIX 6.2 and later do not support large files by default,
9228 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009230/* end confdefs.h. */
9231#include <sys/types.h>
9232 /* Check that off_t can represent 2**63 - 1 correctly.
9233 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9234 since some C++ compilers masquerading as C compilers
9235 incorrectly reject 9223372036854775807. */
9236#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9237 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9238 && LARGE_OFF_T % 2147483647 == 1)
9239 ? 1 : -1];
9240int
9241main ()
9242{
9243
9244 ;
9245 return 0;
9246}
9247_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009248 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009249 break
cristy3ed852e2009-09-05 21:47:34 +00009250fi
cristy3ed852e2009-09-05 21:47:34 +00009251rm -f core conftest.err conftest.$ac_objext
9252 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009253 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009254 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009255fi
cristy3ed852e2009-09-05 21:47:34 +00009256rm -f core conftest.err conftest.$ac_objext
9257 break
9258 done
9259 CC=$ac_save_CC
9260 rm -f conftest.$ac_ext
9261 fi
9262fi
cristy8b350f62009-11-15 23:12:43 +00009263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009264$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9265 if test "$ac_cv_sys_largefile_CC" != no; then
9266 CC=$CC$ac_cv_sys_largefile_CC
9267 fi
9268
cristy8b350f62009-11-15 23:12:43 +00009269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009270$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009271if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009272 $as_echo_n "(cached) " >&6
9273else
9274 while :; do
cristy8b350f62009-11-15 23:12:43 +00009275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009276/* end confdefs.h. */
9277#include <sys/types.h>
9278 /* Check that off_t can represent 2**63 - 1 correctly.
9279 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9280 since some C++ compilers masquerading as C compilers
9281 incorrectly reject 9223372036854775807. */
9282#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9283 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9284 && LARGE_OFF_T % 2147483647 == 1)
9285 ? 1 : -1];
9286int
9287main ()
9288{
9289
9290 ;
9291 return 0;
9292}
9293_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009294if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009295 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009296fi
cristy3ed852e2009-09-05 21:47:34 +00009297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009299/* end confdefs.h. */
9300#define _FILE_OFFSET_BITS 64
9301#include <sys/types.h>
9302 /* Check that off_t can represent 2**63 - 1 correctly.
9303 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9304 since some C++ compilers masquerading as C compilers
9305 incorrectly reject 9223372036854775807. */
9306#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9307 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9308 && LARGE_OFF_T % 2147483647 == 1)
9309 ? 1 : -1];
9310int
9311main ()
9312{
9313
9314 ;
9315 return 0;
9316}
9317_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009318if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009319 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009320fi
cristy3ed852e2009-09-05 21:47:34 +00009321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9322 ac_cv_sys_file_offset_bits=unknown
9323 break
9324done
9325fi
cristy8b350f62009-11-15 23:12:43 +00009326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009327$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9328case $ac_cv_sys_file_offset_bits in #(
9329 no | unknown) ;;
9330 *)
9331cat >>confdefs.h <<_ACEOF
9332#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9333_ACEOF
9334;;
9335esac
9336rm -rf conftest*
9337 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009339$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009340if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009341 $as_echo_n "(cached) " >&6
9342else
9343 while :; do
cristy8b350f62009-11-15 23:12:43 +00009344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009345/* end confdefs.h. */
9346#include <sys/types.h>
9347 /* Check that off_t can represent 2**63 - 1 correctly.
9348 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9349 since some C++ compilers masquerading as C compilers
9350 incorrectly reject 9223372036854775807. */
9351#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9352 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9353 && LARGE_OFF_T % 2147483647 == 1)
9354 ? 1 : -1];
9355int
9356main ()
9357{
9358
9359 ;
9360 return 0;
9361}
9362_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009363if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009364 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009365fi
cristy3ed852e2009-09-05 21:47:34 +00009366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009368/* end confdefs.h. */
9369#define _LARGE_FILES 1
9370#include <sys/types.h>
9371 /* Check that off_t can represent 2**63 - 1 correctly.
9372 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9373 since some C++ compilers masquerading as C compilers
9374 incorrectly reject 9223372036854775807. */
9375#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9376 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9377 && LARGE_OFF_T % 2147483647 == 1)
9378 ? 1 : -1];
9379int
9380main ()
9381{
9382
9383 ;
9384 return 0;
9385}
9386_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009387if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009388 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009389fi
cristy3ed852e2009-09-05 21:47:34 +00009390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9391 ac_cv_sys_large_files=unknown
9392 break
9393done
9394fi
cristy8b350f62009-11-15 23:12:43 +00009395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009396$as_echo "$ac_cv_sys_large_files" >&6; }
9397case $ac_cv_sys_large_files in #(
9398 no | unknown) ;;
9399 *)
9400cat >>confdefs.h <<_ACEOF
9401#define _LARGE_FILES $ac_cv_sys_large_files
9402_ACEOF
9403;;
9404esac
9405rm -rf conftest*
9406 fi
9407fi
9408
cristy8b350f62009-11-15 23:12:43 +00009409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009410$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009411if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009412 $as_echo_n "(cached) " >&6
9413else
9414 while :; do
cristy8b350f62009-11-15 23:12:43 +00009415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009416/* end confdefs.h. */
9417#include <sys/types.h> /* for off_t */
9418 #include <stdio.h>
9419int
9420main ()
9421{
9422int (*fp) (FILE *, off_t, int) = fseeko;
9423 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9424 ;
9425 return 0;
9426}
9427_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009428if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009429 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009430fi
cristy8b350f62009-11-15 23:12:43 +00009431rm -f core conftest.err conftest.$ac_objext \
9432 conftest$ac_exeext conftest.$ac_ext
9433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009434/* end confdefs.h. */
9435#define _LARGEFILE_SOURCE 1
9436#include <sys/types.h> /* for off_t */
9437 #include <stdio.h>
9438int
9439main ()
9440{
9441int (*fp) (FILE *, off_t, int) = fseeko;
9442 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9443 ;
9444 return 0;
9445}
9446_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009447if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009448 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009449fi
cristy8b350f62009-11-15 23:12:43 +00009450rm -f core conftest.err conftest.$ac_objext \
9451 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009452 ac_cv_sys_largefile_source=unknown
9453 break
9454done
9455fi
cristy8b350f62009-11-15 23:12:43 +00009456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009457$as_echo "$ac_cv_sys_largefile_source" >&6; }
9458case $ac_cv_sys_largefile_source in #(
9459 no | unknown) ;;
9460 *)
9461cat >>confdefs.h <<_ACEOF
9462#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9463_ACEOF
9464;;
9465esac
9466rm -rf conftest*
9467
9468# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9469# in glibc 2.1.3, but that breaks too many other things.
9470# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9471if test $ac_cv_sys_largefile_source != unknown; then
9472
cristy8b350f62009-11-15 23:12:43 +00009473$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009474
9475fi
9476
9477LFS_CPPFLAGS=''
9478if test "$enable_largefile" != no; then
9479 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9480 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9481 else
cristy8b350f62009-11-15 23:12:43 +00009482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009483$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009484 if test "$cross_compiling" = yes; then :
9485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00009487as_fn_error "cannot run test program while cross compiling
9488See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009489else
cristy8b350f62009-11-15 23:12:43 +00009490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009492#include <unistd.h>
9493 main () {
9494 exit(!(sizeof(off_t) == 8));
9495 }
9496_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009497if ac_fn_c_try_run "$LINENO"; then :
9498 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009499
cristy8b350f62009-11-15 23:12:43 +00009500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009501$as_echo "yes" >&6; }
9502else
cristy8b350f62009-11-15 23:12:43 +00009503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009504$as_echo "no" >&6; }
9505fi
cristy8b350f62009-11-15 23:12:43 +00009506rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9507 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009508fi
9509
cristy3ed852e2009-09-05 21:47:34 +00009510 fi
9511 if test "$ac_cv_sys_large_files" != 'no'; then
9512 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9513 fi
9514 if test "$ac_cv_sys_largefile_source" != 'no'; then
9515 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9516 fi
9517fi
9518
9519
9520#
9521# Configure libtool & libltdl
9522#
9523# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009524enable_dlopen=yes
9525
9526
9527
9528case `pwd` in
9529 *\ * | *\ *)
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9531$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9532esac
9533
9534
9535
9536macro_version='2.2.6b'
9537macro_revision='1.3017'
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551ltmain="$ac_aux_dir/ltmain.sh"
9552
9553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9554$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9555if test "${lt_cv_path_NM+set}" = set; then :
9556 $as_echo_n "(cached) " >&6
9557else
9558 if test -n "$NM"; then
9559 # Let the user override the test.
9560 lt_cv_path_NM="$NM"
9561else
9562 lt_nm_to_check="${ac_tool_prefix}nm"
9563 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9564 lt_nm_to_check="$lt_nm_to_check nm"
9565 fi
9566 for lt_tmp_nm in $lt_nm_to_check; do
9567 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9568 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9569 IFS="$lt_save_ifs"
9570 test -z "$ac_dir" && ac_dir=.
9571 tmp_nm="$ac_dir/$lt_tmp_nm"
9572 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9573 # Check to see if the nm accepts a BSD-compat flag.
9574 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9575 # nm: unknown option "B" ignored
9576 # Tru64's nm complains that /dev/null is an invalid object file
9577 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9578 */dev/null* | *'Invalid file or object type'*)
9579 lt_cv_path_NM="$tmp_nm -B"
9580 break
9581 ;;
9582 *)
9583 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9584 */dev/null*)
9585 lt_cv_path_NM="$tmp_nm -p"
9586 break
9587 ;;
9588 *)
9589 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9590 continue # so that we can try to find one that supports BSD flags
9591 ;;
9592 esac
9593 ;;
9594 esac
9595 fi
9596 done
9597 IFS="$lt_save_ifs"
9598 done
9599 : ${lt_cv_path_NM=no}
9600fi
9601fi
9602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9603$as_echo "$lt_cv_path_NM" >&6; }
9604if test "$lt_cv_path_NM" != "no"; then
9605 NM="$lt_cv_path_NM"
9606else
9607 # Didn't find any BSD compatible name lister, look for dumpbin.
9608 if test -n "$ac_tool_prefix"; then
9609 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9610 do
9611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9612set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9614$as_echo_n "checking for $ac_word... " >&6; }
9615if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
9616 $as_echo_n "(cached) " >&6
9617else
9618 if test -n "$DUMPBIN"; then
9619 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9620else
9621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9622for as_dir in $PATH
9623do
9624 IFS=$as_save_IFS
9625 test -z "$as_dir" && as_dir=.
9626 for ac_exec_ext in '' $ac_executable_extensions; do
9627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9628 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9630 break 2
9631 fi
9632done
9633 done
9634IFS=$as_save_IFS
9635
9636fi
9637fi
9638DUMPBIN=$ac_cv_prog_DUMPBIN
9639if test -n "$DUMPBIN"; then
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9641$as_echo "$DUMPBIN" >&6; }
9642else
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644$as_echo "no" >&6; }
9645fi
9646
9647
9648 test -n "$DUMPBIN" && break
9649 done
9650fi
9651if test -z "$DUMPBIN"; then
9652 ac_ct_DUMPBIN=$DUMPBIN
9653 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9654do
9655 # Extract the first word of "$ac_prog", so it can be a program name with args.
9656set dummy $ac_prog; ac_word=$2
9657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9658$as_echo_n "checking for $ac_word... " >&6; }
9659if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
9660 $as_echo_n "(cached) " >&6
9661else
9662 if test -n "$ac_ct_DUMPBIN"; then
9663 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9664else
9665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9666for as_dir in $PATH
9667do
9668 IFS=$as_save_IFS
9669 test -z "$as_dir" && as_dir=.
9670 for ac_exec_ext in '' $ac_executable_extensions; do
9671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9672 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9674 break 2
9675 fi
9676done
9677 done
9678IFS=$as_save_IFS
9679
9680fi
9681fi
9682ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9683if test -n "$ac_ct_DUMPBIN"; then
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9685$as_echo "$ac_ct_DUMPBIN" >&6; }
9686else
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9688$as_echo "no" >&6; }
9689fi
9690
9691
9692 test -n "$ac_ct_DUMPBIN" && break
9693done
9694
9695 if test "x$ac_ct_DUMPBIN" = x; then
9696 DUMPBIN=":"
9697 else
9698 case $cross_compiling:$ac_tool_warned in
9699yes:)
9700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9702ac_tool_warned=yes ;;
9703esac
9704 DUMPBIN=$ac_ct_DUMPBIN
9705 fi
9706fi
9707
9708
9709 if test "$DUMPBIN" != ":"; then
9710 NM="$DUMPBIN"
9711 fi
9712fi
9713test -z "$NM" && NM=nm
9714
9715
9716
9717
9718
9719
9720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9721$as_echo_n "checking the name lister ($NM) interface... " >&6; }
9722if test "${lt_cv_nm_interface+set}" = set; then :
9723 $as_echo_n "(cached) " >&6
9724else
9725 lt_cv_nm_interface="BSD nm"
9726 echo "int some_variable = 0;" > conftest.$ac_ext
cristy746a5842010-10-22 20:20:08 +00009727 (eval echo "\"\$as_me:9727: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009728 (eval "$ac_compile" 2>conftest.err)
9729 cat conftest.err >&5
cristy746a5842010-10-22 20:20:08 +00009730 (eval echo "\"\$as_me:9730: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009731 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9732 cat conftest.err >&5
cristy746a5842010-10-22 20:20:08 +00009733 (eval echo "\"\$as_me:9733: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009734 cat conftest.out >&5
9735 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9736 lt_cv_nm_interface="MS dumpbin"
9737 fi
9738 rm -f conftest*
9739fi
9740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9741$as_echo "$lt_cv_nm_interface" >&6; }
9742
9743# find the maximum length of command line arguments
9744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9745$as_echo_n "checking the maximum length of command line arguments... " >&6; }
9746if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
9747 $as_echo_n "(cached) " >&6
9748else
9749 i=0
9750 teststring="ABCD"
9751
9752 case $build_os in
9753 msdosdjgpp*)
9754 # On DJGPP, this test can blow up pretty badly due to problems in libc
9755 # (any single argument exceeding 2000 bytes causes a buffer overrun
9756 # during glob expansion). Even if it were fixed, the result of this
9757 # check would be larger than it should be.
9758 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9759 ;;
9760
9761 gnu*)
9762 # Under GNU Hurd, this test is not required because there is
9763 # no limit to the length of command line arguments.
9764 # Libtool will interpret -1 as no limit whatsoever
9765 lt_cv_sys_max_cmd_len=-1;
9766 ;;
9767
9768 cygwin* | mingw* | cegcc*)
9769 # On Win9x/ME, this test blows up -- it succeeds, but takes
9770 # about 5 minutes as the teststring grows exponentially.
9771 # Worse, since 9x/ME are not pre-emptively multitasking,
9772 # you end up with a "frozen" computer, even though with patience
9773 # the test eventually succeeds (with a max line length of 256k).
9774 # Instead, let's just punt: use the minimum linelength reported by
9775 # all of the supported platforms: 8192 (on NT/2K/XP).
9776 lt_cv_sys_max_cmd_len=8192;
9777 ;;
9778
9779 amigaos*)
9780 # On AmigaOS with pdksh, this test takes hours, literally.
9781 # So we just punt and use a minimum line length of 8192.
9782 lt_cv_sys_max_cmd_len=8192;
9783 ;;
9784
9785 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9786 # This has been around since 386BSD, at least. Likely further.
9787 if test -x /sbin/sysctl; then
9788 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9789 elif test -x /usr/sbin/sysctl; then
9790 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9791 else
9792 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9793 fi
9794 # And add a safety zone
9795 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9796 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9797 ;;
9798
9799 interix*)
9800 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9801 lt_cv_sys_max_cmd_len=196608
9802 ;;
9803
9804 osf*)
9805 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9806 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9807 # nice to cause kernel panics so lets avoid the loop below.
9808 # First set a reasonable default.
9809 lt_cv_sys_max_cmd_len=16384
9810 #
9811 if test -x /sbin/sysconfig; then
9812 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9813 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9814 esac
9815 fi
9816 ;;
9817 sco3.2v5*)
9818 lt_cv_sys_max_cmd_len=102400
9819 ;;
9820 sysv5* | sco5v6* | sysv4.2uw2*)
9821 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9822 if test -n "$kargmax"; then
9823 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9824 else
9825 lt_cv_sys_max_cmd_len=32768
9826 fi
9827 ;;
9828 *)
9829 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9830 if test -n "$lt_cv_sys_max_cmd_len"; then
9831 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9832 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9833 else
9834 # Make teststring a little bigger before we do anything with it.
9835 # a 1K string should be a reasonable start.
9836 for i in 1 2 3 4 5 6 7 8 ; do
9837 teststring=$teststring$teststring
9838 done
9839 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9840 # If test is not a shell built-in, we'll probably end up computing a
9841 # maximum length that is only half of the actual maximum length, but
9842 # we can't tell.
9843 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9844 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
9845 test $i != 17 # 1/2 MB should be enough
9846 do
9847 i=`expr $i + 1`
9848 teststring=$teststring$teststring
9849 done
9850 # Only check the string length outside the loop.
9851 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9852 teststring=
9853 # Add a significant safety factor because C++ compilers can tack on
9854 # massive amounts of additional arguments before passing them to the
9855 # linker. It appears as though 1/2 is a usable value.
9856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9857 fi
9858 ;;
9859 esac
9860
9861fi
9862
9863if test -n $lt_cv_sys_max_cmd_len ; then
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9865$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9866else
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9868$as_echo "none" >&6; }
9869fi
9870max_cmd_len=$lt_cv_sys_max_cmd_len
9871
9872
9873
9874
9875
9876
9877: ${CP="cp -f"}
9878: ${MV="mv -f"}
9879: ${RM="rm -f"}
9880
9881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9882$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9883# Try some XSI features
9884xsi_shell=no
9885( _lt_dummy="a/b/c"
9886 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9887 = c,a/b,, \
9888 && eval 'test $(( 1 + 1 )) -eq 2 \
9889 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9890 && xsi_shell=yes
9891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9892$as_echo "$xsi_shell" >&6; }
9893
9894
9895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9896$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9897lt_shell_append=no
9898( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9899 >/dev/null 2>&1 \
9900 && lt_shell_append=yes
9901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9902$as_echo "$lt_shell_append" >&6; }
9903
9904
9905if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9906 lt_unset=unset
9907else
9908 lt_unset=false
9909fi
9910
9911
9912
9913
9914
9915# test EBCDIC or ASCII
9916case `echo X|tr X '\101'` in
9917 A) # ASCII based system
9918 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9919 lt_SP2NL='tr \040 \012'
9920 lt_NL2SP='tr \015\012 \040\040'
9921 ;;
9922 *) # EBCDIC based system
9923 lt_SP2NL='tr \100 \n'
9924 lt_NL2SP='tr \r\n \100\100'
9925 ;;
9926esac
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9937$as_echo_n "checking for $LD option to reload object files... " >&6; }
9938if test "${lt_cv_ld_reload_flag+set}" = set; then :
9939 $as_echo_n "(cached) " >&6
9940else
9941 lt_cv_ld_reload_flag='-r'
9942fi
9943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9944$as_echo "$lt_cv_ld_reload_flag" >&6; }
9945reload_flag=$lt_cv_ld_reload_flag
9946case $reload_flag in
9947"" | " "*) ;;
9948*) reload_flag=" $reload_flag" ;;
9949esac
9950reload_cmds='$LD$reload_flag -o $output$reload_objs'
9951case $host_os in
9952 darwin*)
9953 if test "$GCC" = yes; then
9954 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9955 else
9956 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9957 fi
9958 ;;
9959esac
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969if test -n "$ac_tool_prefix"; then
9970 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9971set dummy ${ac_tool_prefix}objdump; ac_word=$2
9972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9973$as_echo_n "checking for $ac_word... " >&6; }
9974if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9975 $as_echo_n "(cached) " >&6
9976else
9977 if test -n "$OBJDUMP"; then
9978 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9979else
9980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9981for as_dir in $PATH
9982do
9983 IFS=$as_save_IFS
9984 test -z "$as_dir" && as_dir=.
9985 for ac_exec_ext in '' $ac_executable_extensions; do
9986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9987 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9989 break 2
9990 fi
9991done
9992 done
9993IFS=$as_save_IFS
9994
9995fi
9996fi
9997OBJDUMP=$ac_cv_prog_OBJDUMP
9998if test -n "$OBJDUMP"; then
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10000$as_echo "$OBJDUMP" >&6; }
10001else
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10003$as_echo "no" >&6; }
10004fi
10005
10006
10007fi
10008if test -z "$ac_cv_prog_OBJDUMP"; then
10009 ac_ct_OBJDUMP=$OBJDUMP
10010 # Extract the first word of "objdump", so it can be a program name with args.
10011set dummy objdump; ac_word=$2
10012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10013$as_echo_n "checking for $ac_word... " >&6; }
10014if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
10015 $as_echo_n "(cached) " >&6
10016else
10017 if test -n "$ac_ct_OBJDUMP"; then
10018 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10019else
10020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10021for as_dir in $PATH
10022do
10023 IFS=$as_save_IFS
10024 test -z "$as_dir" && as_dir=.
10025 for ac_exec_ext in '' $ac_executable_extensions; do
10026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10027 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10029 break 2
10030 fi
10031done
10032 done
10033IFS=$as_save_IFS
10034
10035fi
10036fi
10037ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10038if test -n "$ac_ct_OBJDUMP"; then
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10040$as_echo "$ac_ct_OBJDUMP" >&6; }
10041else
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043$as_echo "no" >&6; }
10044fi
10045
10046 if test "x$ac_ct_OBJDUMP" = x; then
10047 OBJDUMP="false"
10048 else
10049 case $cross_compiling:$ac_tool_warned in
10050yes:)
10051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10053ac_tool_warned=yes ;;
10054esac
10055 OBJDUMP=$ac_ct_OBJDUMP
10056 fi
10057else
10058 OBJDUMP="$ac_cv_prog_OBJDUMP"
10059fi
10060
10061test -z "$OBJDUMP" && OBJDUMP=objdump
10062
10063
10064
10065
10066
10067
10068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10069$as_echo_n "checking how to recognize dependent libraries... " >&6; }
10070if test "${lt_cv_deplibs_check_method+set}" = set; then :
10071 $as_echo_n "(cached) " >&6
10072else
10073 lt_cv_file_magic_cmd='$MAGIC_CMD'
10074lt_cv_file_magic_test_file=
10075lt_cv_deplibs_check_method='unknown'
10076# Need to set the preceding variable on all platforms that support
10077# interlibrary dependencies.
10078# 'none' -- dependencies not supported.
10079# `unknown' -- same as none, but documents that we really don't know.
10080# 'pass_all' -- all dependencies passed with no checks.
10081# 'test_compile' -- check by making test program.
10082# 'file_magic [[regex]]' -- check by looking for files in library path
10083# which responds to the $file_magic_cmd with a given extended regex.
10084# If you have `file' or equivalent on your system and you're not sure
10085# whether `pass_all' will *always* work, you probably want this one.
10086
10087case $host_os in
10088aix[4-9]*)
10089 lt_cv_deplibs_check_method=pass_all
10090 ;;
10091
10092beos*)
10093 lt_cv_deplibs_check_method=pass_all
10094 ;;
10095
10096bsdi[45]*)
10097 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10098 lt_cv_file_magic_cmd='/usr/bin/file -L'
10099 lt_cv_file_magic_test_file=/shlib/libc.so
10100 ;;
10101
10102cygwin*)
10103 # func_win32_libid is a shell function defined in ltmain.sh
10104 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10105 lt_cv_file_magic_cmd='func_win32_libid'
10106 ;;
10107
10108mingw* | pw32*)
10109 # Base MSYS/MinGW do not provide the 'file' command needed by
10110 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10111 # unless we find 'file', for example because we are cross-compiling.
10112 if ( file / ) >/dev/null 2>&1; then
10113 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10114 lt_cv_file_magic_cmd='func_win32_libid'
10115 else
10116 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10117 lt_cv_file_magic_cmd='$OBJDUMP -f'
10118 fi
10119 ;;
10120
10121cegcc)
10122 # use the weaker test based on 'objdump'. See mingw*.
10123 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10124 lt_cv_file_magic_cmd='$OBJDUMP -f'
10125 ;;
10126
10127darwin* | rhapsody*)
10128 lt_cv_deplibs_check_method=pass_all
10129 ;;
10130
10131freebsd* | dragonfly*)
10132 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10133 case $host_cpu in
10134 i*86 )
10135 # Not sure whether the presence of OpenBSD here was a mistake.
10136 # Let's accept both of them until this is cleared up.
10137 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10138 lt_cv_file_magic_cmd=/usr/bin/file
10139 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10140 ;;
10141 esac
10142 else
10143 lt_cv_deplibs_check_method=pass_all
10144 fi
10145 ;;
10146
10147gnu*)
10148 lt_cv_deplibs_check_method=pass_all
10149 ;;
10150
10151hpux10.20* | hpux11*)
10152 lt_cv_file_magic_cmd=/usr/bin/file
10153 case $host_cpu in
10154 ia64*)
10155 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10156 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10157 ;;
10158 hppa*64*)
10159 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
10160 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10161 ;;
10162 *)
10163 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10164 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10165 ;;
10166 esac
10167 ;;
10168
10169interix[3-9]*)
10170 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10171 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10172 ;;
10173
10174irix5* | irix6* | nonstopux*)
10175 case $LD in
10176 *-32|*"-32 ") libmagic=32-bit;;
10177 *-n32|*"-n32 ") libmagic=N32;;
10178 *-64|*"-64 ") libmagic=64-bit;;
10179 *) libmagic=never-match;;
10180 esac
10181 lt_cv_deplibs_check_method=pass_all
10182 ;;
10183
10184# This must be Linux ELF.
10185linux* | k*bsd*-gnu)
10186 lt_cv_deplibs_check_method=pass_all
10187 ;;
10188
10189netbsd*)
10190 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10192 else
10193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10194 fi
10195 ;;
10196
10197newos6*)
10198 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10199 lt_cv_file_magic_cmd=/usr/bin/file
10200 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10201 ;;
10202
10203*nto* | *qnx*)
10204 lt_cv_deplibs_check_method=pass_all
10205 ;;
10206
10207openbsd*)
10208 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10209 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10210 else
10211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10212 fi
10213 ;;
10214
10215osf3* | osf4* | osf5*)
10216 lt_cv_deplibs_check_method=pass_all
10217 ;;
10218
10219rdos*)
10220 lt_cv_deplibs_check_method=pass_all
10221 ;;
10222
10223solaris*)
10224 lt_cv_deplibs_check_method=pass_all
10225 ;;
10226
10227sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10228 lt_cv_deplibs_check_method=pass_all
10229 ;;
10230
10231sysv4 | sysv4.3*)
10232 case $host_vendor in
10233 motorola)
10234 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]'
10235 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10236 ;;
10237 ncr)
10238 lt_cv_deplibs_check_method=pass_all
10239 ;;
10240 sequent)
10241 lt_cv_file_magic_cmd='/bin/file'
10242 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10243 ;;
10244 sni)
10245 lt_cv_file_magic_cmd='/bin/file'
10246 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10247 lt_cv_file_magic_test_file=/lib/libc.so
10248 ;;
10249 siemens)
10250 lt_cv_deplibs_check_method=pass_all
10251 ;;
10252 pc)
10253 lt_cv_deplibs_check_method=pass_all
10254 ;;
10255 esac
10256 ;;
10257
10258tpf*)
10259 lt_cv_deplibs_check_method=pass_all
10260 ;;
10261esac
10262
10263fi
10264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10265$as_echo "$lt_cv_deplibs_check_method" >&6; }
10266file_magic_cmd=$lt_cv_file_magic_cmd
10267deplibs_check_method=$lt_cv_deplibs_check_method
10268test -z "$deplibs_check_method" && deplibs_check_method=unknown
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281if test -n "$ac_tool_prefix"; then
10282 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10283set dummy ${ac_tool_prefix}ar; ac_word=$2
10284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10285$as_echo_n "checking for $ac_word... " >&6; }
10286if test "${ac_cv_prog_AR+set}" = set; then :
10287 $as_echo_n "(cached) " >&6
10288else
10289 if test -n "$AR"; then
10290 ac_cv_prog_AR="$AR" # Let the user override the test.
10291else
10292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10293for as_dir in $PATH
10294do
10295 IFS=$as_save_IFS
10296 test -z "$as_dir" && as_dir=.
10297 for ac_exec_ext in '' $ac_executable_extensions; do
10298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10299 ac_cv_prog_AR="${ac_tool_prefix}ar"
10300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10301 break 2
10302 fi
10303done
10304 done
10305IFS=$as_save_IFS
10306
10307fi
10308fi
10309AR=$ac_cv_prog_AR
10310if test -n "$AR"; then
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10312$as_echo "$AR" >&6; }
10313else
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10315$as_echo "no" >&6; }
10316fi
10317
10318
10319fi
10320if test -z "$ac_cv_prog_AR"; then
10321 ac_ct_AR=$AR
10322 # Extract the first word of "ar", so it can be a program name with args.
10323set dummy ar; ac_word=$2
10324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10325$as_echo_n "checking for $ac_word... " >&6; }
10326if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10327 $as_echo_n "(cached) " >&6
10328else
10329 if test -n "$ac_ct_AR"; then
10330 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10331else
10332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10333for as_dir in $PATH
10334do
10335 IFS=$as_save_IFS
10336 test -z "$as_dir" && as_dir=.
10337 for ac_exec_ext in '' $ac_executable_extensions; do
10338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10339 ac_cv_prog_ac_ct_AR="ar"
10340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10341 break 2
10342 fi
10343done
10344 done
10345IFS=$as_save_IFS
10346
10347fi
10348fi
10349ac_ct_AR=$ac_cv_prog_ac_ct_AR
10350if test -n "$ac_ct_AR"; then
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10352$as_echo "$ac_ct_AR" >&6; }
10353else
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10355$as_echo "no" >&6; }
10356fi
10357
10358 if test "x$ac_ct_AR" = x; then
10359 AR="false"
10360 else
10361 case $cross_compiling:$ac_tool_warned in
10362yes:)
10363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10365ac_tool_warned=yes ;;
10366esac
10367 AR=$ac_ct_AR
10368 fi
10369else
10370 AR="$ac_cv_prog_AR"
10371fi
10372
10373test -z "$AR" && AR=ar
10374test -z "$AR_FLAGS" && AR_FLAGS=cru
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386if test -n "$ac_tool_prefix"; then
10387 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10388set dummy ${ac_tool_prefix}strip; ac_word=$2
10389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10390$as_echo_n "checking for $ac_word... " >&6; }
10391if test "${ac_cv_prog_STRIP+set}" = set; then :
10392 $as_echo_n "(cached) " >&6
10393else
10394 if test -n "$STRIP"; then
10395 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10396else
10397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10398for as_dir in $PATH
10399do
10400 IFS=$as_save_IFS
10401 test -z "$as_dir" && as_dir=.
10402 for ac_exec_ext in '' $ac_executable_extensions; do
10403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10404 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10406 break 2
10407 fi
10408done
10409 done
10410IFS=$as_save_IFS
10411
10412fi
10413fi
10414STRIP=$ac_cv_prog_STRIP
10415if test -n "$STRIP"; then
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10417$as_echo "$STRIP" >&6; }
10418else
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10420$as_echo "no" >&6; }
10421fi
10422
10423
10424fi
10425if test -z "$ac_cv_prog_STRIP"; then
10426 ac_ct_STRIP=$STRIP
10427 # Extract the first word of "strip", so it can be a program name with args.
10428set dummy strip; ac_word=$2
10429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10430$as_echo_n "checking for $ac_word... " >&6; }
10431if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10432 $as_echo_n "(cached) " >&6
10433else
10434 if test -n "$ac_ct_STRIP"; then
10435 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10436else
10437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10438for as_dir in $PATH
10439do
10440 IFS=$as_save_IFS
10441 test -z "$as_dir" && as_dir=.
10442 for ac_exec_ext in '' $ac_executable_extensions; do
10443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10444 ac_cv_prog_ac_ct_STRIP="strip"
10445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10446 break 2
10447 fi
10448done
10449 done
10450IFS=$as_save_IFS
10451
10452fi
10453fi
10454ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10455if test -n "$ac_ct_STRIP"; then
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10457$as_echo "$ac_ct_STRIP" >&6; }
10458else
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10460$as_echo "no" >&6; }
10461fi
10462
10463 if test "x$ac_ct_STRIP" = x; then
10464 STRIP=":"
10465 else
10466 case $cross_compiling:$ac_tool_warned in
10467yes:)
10468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10470ac_tool_warned=yes ;;
10471esac
10472 STRIP=$ac_ct_STRIP
10473 fi
10474else
10475 STRIP="$ac_cv_prog_STRIP"
10476fi
10477
10478test -z "$STRIP" && STRIP=:
10479
10480
10481
10482
10483
10484
10485if test -n "$ac_tool_prefix"; then
10486 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10487set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10489$as_echo_n "checking for $ac_word... " >&6; }
10490if test "${ac_cv_prog_RANLIB+set}" = set; then :
10491 $as_echo_n "(cached) " >&6
10492else
10493 if test -n "$RANLIB"; then
10494 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10495else
10496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497for as_dir in $PATH
10498do
10499 IFS=$as_save_IFS
10500 test -z "$as_dir" && as_dir=.
10501 for ac_exec_ext in '' $ac_executable_extensions; do
10502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10503 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10505 break 2
10506 fi
10507done
10508 done
10509IFS=$as_save_IFS
10510
10511fi
10512fi
10513RANLIB=$ac_cv_prog_RANLIB
10514if test -n "$RANLIB"; then
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10516$as_echo "$RANLIB" >&6; }
10517else
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519$as_echo "no" >&6; }
10520fi
10521
10522
10523fi
10524if test -z "$ac_cv_prog_RANLIB"; then
10525 ac_ct_RANLIB=$RANLIB
10526 # Extract the first word of "ranlib", so it can be a program name with args.
10527set dummy ranlib; ac_word=$2
10528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10529$as_echo_n "checking for $ac_word... " >&6; }
10530if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10531 $as_echo_n "(cached) " >&6
10532else
10533 if test -n "$ac_ct_RANLIB"; then
10534 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10535else
10536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10537for as_dir in $PATH
10538do
10539 IFS=$as_save_IFS
10540 test -z "$as_dir" && as_dir=.
10541 for ac_exec_ext in '' $ac_executable_extensions; do
10542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10543 ac_cv_prog_ac_ct_RANLIB="ranlib"
10544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10545 break 2
10546 fi
10547done
10548 done
10549IFS=$as_save_IFS
10550
10551fi
10552fi
10553ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10554if test -n "$ac_ct_RANLIB"; then
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10556$as_echo "$ac_ct_RANLIB" >&6; }
10557else
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10559$as_echo "no" >&6; }
10560fi
10561
10562 if test "x$ac_ct_RANLIB" = x; then
10563 RANLIB=":"
10564 else
10565 case $cross_compiling:$ac_tool_warned in
10566yes:)
10567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10569ac_tool_warned=yes ;;
10570esac
10571 RANLIB=$ac_ct_RANLIB
10572 fi
10573else
10574 RANLIB="$ac_cv_prog_RANLIB"
10575fi
10576
10577test -z "$RANLIB" && RANLIB=:
10578
10579
10580
10581
10582
10583
10584# Determine commands to create old-style static archives.
10585old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10586old_postinstall_cmds='chmod 644 $oldlib'
10587old_postuninstall_cmds=
10588
10589if test -n "$RANLIB"; then
10590 case $host_os in
10591 openbsd*)
10592 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10593 ;;
10594 *)
10595 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10596 ;;
10597 esac
10598 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10599fi
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634# If no C compiler was specified, use CC.
10635LTCC=${LTCC-"$CC"}
10636
10637# If no C compiler flags were specified, use CFLAGS.
10638LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10639
10640# Allow CC to be a program name with arguments.
10641compiler=$CC
10642
10643
10644# Check for command to grab the raw symbol name followed by C symbol from nm.
10645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10646$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10647if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
10648 $as_echo_n "(cached) " >&6
10649else
10650
10651# These are sane defaults that work on at least a few old systems.
10652# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10653
10654# Character class describing NM global symbol codes.
10655symcode='[BCDEGRST]'
10656
10657# Regexp to match symbols that can be accessed directly from C.
10658sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10659
10660# Define system-specific variables.
10661case $host_os in
10662aix*)
10663 symcode='[BCDT]'
10664 ;;
10665cygwin* | mingw* | pw32* | cegcc*)
10666 symcode='[ABCDGISTW]'
10667 ;;
10668hpux*)
10669 if test "$host_cpu" = ia64; then
10670 symcode='[ABCDEGRST]'
10671 fi
10672 ;;
10673irix* | nonstopux*)
10674 symcode='[BCDEGRST]'
10675 ;;
10676osf*)
10677 symcode='[BCDEGQRST]'
10678 ;;
10679solaris*)
10680 symcode='[BDRT]'
10681 ;;
10682sco3.2v5*)
10683 symcode='[DT]'
10684 ;;
10685sysv4.2uw2*)
10686 symcode='[DT]'
10687 ;;
10688sysv5* | sco5v6* | unixware* | OpenUNIX*)
10689 symcode='[ABDT]'
10690 ;;
10691sysv4)
10692 symcode='[DFNSTU]'
10693 ;;
10694esac
10695
10696# If we're using GNU nm, then use its standard symbol codes.
10697case `$NM -V 2>&1` in
10698*GNU* | *'with BFD'*)
10699 symcode='[ABCDGIRSTW]' ;;
10700esac
10701
10702# Transform an extracted symbol line into a proper C declaration.
10703# Some systems (esp. on ia64) link data and code symbols differently,
10704# so use this general approach.
10705lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10706
10707# Transform an extracted symbol line into symbol name and symbol address
10708lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10709lt_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'"
10710
10711# Handle CRLF in mingw tool chain
10712opt_cr=
10713case $build_os in
10714mingw*)
10715 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10716 ;;
10717esac
10718
10719# Try without a prefix underscore, then with it.
10720for ac_symprfx in "" "_"; do
10721
10722 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10723 symxfrm="\\1 $ac_symprfx\\2 \\2"
10724
10725 # Write the raw and C identifiers.
10726 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10727 # Fake it for dumpbin and say T for any non-static function
10728 # and D for any global variable.
10729 # Also find C++ and __fastcall symbols from MSVC++,
10730 # which start with @ or ?.
10731 lt_cv_sys_global_symbol_pipe="$AWK '"\
10732" {last_section=section; section=\$ 3};"\
10733" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10734" \$ 0!~/External *\|/{next};"\
10735" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10736" {if(hide[section]) next};"\
10737" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10738" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10739" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10740" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10741" ' prfx=^$ac_symprfx"
10742 else
10743 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10744 fi
10745
10746 # Check to see that the pipe works correctly.
10747 pipe_works=no
10748
10749 rm -f conftest*
10750 cat > conftest.$ac_ext <<_LT_EOF
10751#ifdef __cplusplus
10752extern "C" {
10753#endif
10754char nm_test_var;
10755void nm_test_func(void);
10756void nm_test_func(void){}
10757#ifdef __cplusplus
10758}
10759#endif
10760int main(){nm_test_var='a';nm_test_func();return(0);}
10761_LT_EOF
10762
10763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10764 (eval $ac_compile) 2>&5
10765 ac_status=$?
10766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10767 test $ac_status = 0; }; then
10768 # Now try to grab the symbols.
10769 nlist=conftest.nm
10770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10771 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10772 ac_status=$?
10773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10774 test $ac_status = 0; } && test -s "$nlist"; then
10775 # Try sorting and uniquifying the output.
10776 if sort "$nlist" | uniq > "$nlist"T; then
10777 mv -f "$nlist"T "$nlist"
10778 else
10779 rm -f "$nlist"T
10780 fi
10781
10782 # Make sure that we snagged all the symbols we need.
10783 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10784 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10785 cat <<_LT_EOF > conftest.$ac_ext
10786#ifdef __cplusplus
10787extern "C" {
10788#endif
10789
10790_LT_EOF
10791 # Now generate the symbol file.
10792 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10793
10794 cat <<_LT_EOF >> conftest.$ac_ext
10795
10796/* The mapping between symbol names and symbols. */
10797const struct {
10798 const char *name;
10799 void *address;
10800}
10801lt__PROGRAM__LTX_preloaded_symbols[] =
10802{
10803 { "@PROGRAM@", (void *) 0 },
10804_LT_EOF
10805 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10806 cat <<\_LT_EOF >> conftest.$ac_ext
10807 {0, (void *) 0}
10808};
10809
10810/* This works around a problem in FreeBSD linker */
10811#ifdef FREEBSD_WORKAROUND
10812static const void *lt_preloaded_setup() {
10813 return lt__PROGRAM__LTX_preloaded_symbols;
10814}
10815#endif
10816
10817#ifdef __cplusplus
10818}
10819#endif
10820_LT_EOF
10821 # Now try linking the two files.
10822 mv conftest.$ac_objext conftstm.$ac_objext
10823 lt_save_LIBS="$LIBS"
10824 lt_save_CFLAGS="$CFLAGS"
10825 LIBS="conftstm.$ac_objext"
10826 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10828 (eval $ac_link) 2>&5
10829 ac_status=$?
10830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10831 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10832 pipe_works=yes
10833 fi
10834 LIBS="$lt_save_LIBS"
10835 CFLAGS="$lt_save_CFLAGS"
10836 else
10837 echo "cannot find nm_test_func in $nlist" >&5
10838 fi
10839 else
10840 echo "cannot find nm_test_var in $nlist" >&5
10841 fi
10842 else
10843 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10844 fi
10845 else
10846 echo "$progname: failed program was:" >&5
10847 cat conftest.$ac_ext >&5
10848 fi
10849 rm -rf conftest* conftst*
10850
10851 # Do not use the global_symbol_pipe unless it works.
10852 if test "$pipe_works" = yes; then
10853 break
10854 else
10855 lt_cv_sys_global_symbol_pipe=
10856 fi
10857done
10858
10859fi
10860
10861if test -z "$lt_cv_sys_global_symbol_pipe"; then
10862 lt_cv_sys_global_symbol_to_cdecl=
10863fi
10864if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10866$as_echo "failed" >&6; }
10867else
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10869$as_echo "ok" >&6; }
10870fi
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893# Check whether --enable-libtool-lock was given.
10894if test "${enable_libtool_lock+set}" = set; then :
10895 enableval=$enable_libtool_lock;
10896fi
10897
10898test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10899
10900# Some flags need to be propagated to the compiler or linker for good
10901# libtool support.
10902case $host in
10903ia64-*-hpux*)
10904 # Find out which ABI we are using.
10905 echo 'int i;' > conftest.$ac_ext
10906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10907 (eval $ac_compile) 2>&5
10908 ac_status=$?
10909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10910 test $ac_status = 0; }; then
10911 case `/usr/bin/file conftest.$ac_objext` in
10912 *ELF-32*)
10913 HPUX_IA64_MODE="32"
10914 ;;
10915 *ELF-64*)
10916 HPUX_IA64_MODE="64"
10917 ;;
10918 esac
10919 fi
10920 rm -rf conftest*
10921 ;;
10922*-*-irix6*)
10923 # Find out which ABI we are using.
cristy746a5842010-10-22 20:20:08 +000010924 echo '#line 10924 "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10926 (eval $ac_compile) 2>&5
10927 ac_status=$?
10928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10929 test $ac_status = 0; }; then
10930 if test "$lt_cv_prog_gnu_ld" = yes; then
10931 case `/usr/bin/file conftest.$ac_objext` in
10932 *32-bit*)
10933 LD="${LD-ld} -melf32bsmip"
10934 ;;
10935 *N32*)
10936 LD="${LD-ld} -melf32bmipn32"
10937 ;;
10938 *64-bit*)
10939 LD="${LD-ld} -melf64bmip"
10940 ;;
10941 esac
10942 else
10943 case `/usr/bin/file conftest.$ac_objext` in
10944 *32-bit*)
10945 LD="${LD-ld} -32"
10946 ;;
10947 *N32*)
10948 LD="${LD-ld} -n32"
10949 ;;
10950 *64-bit*)
10951 LD="${LD-ld} -64"
10952 ;;
10953 esac
10954 fi
10955 fi
10956 rm -rf conftest*
10957 ;;
10958
10959x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10960s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10961 # Find out which ABI we are using.
10962 echo 'int i;' > conftest.$ac_ext
10963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10964 (eval $ac_compile) 2>&5
10965 ac_status=$?
10966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10967 test $ac_status = 0; }; then
10968 case `/usr/bin/file conftest.o` in
10969 *32-bit*)
10970 case $host in
10971 x86_64-*kfreebsd*-gnu)
10972 LD="${LD-ld} -m elf_i386_fbsd"
10973 ;;
10974 x86_64-*linux*)
10975 LD="${LD-ld} -m elf_i386"
10976 ;;
10977 ppc64-*linux*|powerpc64-*linux*)
10978 LD="${LD-ld} -m elf32ppclinux"
10979 ;;
10980 s390x-*linux*)
10981 LD="${LD-ld} -m elf_s390"
10982 ;;
10983 sparc64-*linux*)
10984 LD="${LD-ld} -m elf32_sparc"
10985 ;;
10986 esac
10987 ;;
10988 *64-bit*)
10989 case $host in
10990 x86_64-*kfreebsd*-gnu)
10991 LD="${LD-ld} -m elf_x86_64_fbsd"
10992 ;;
10993 x86_64-*linux*)
10994 LD="${LD-ld} -m elf_x86_64"
10995 ;;
10996 ppc*-*linux*|powerpc*-*linux*)
10997 LD="${LD-ld} -m elf64ppc"
10998 ;;
10999 s390*-*linux*|s390*-*tpf*)
11000 LD="${LD-ld} -m elf64_s390"
11001 ;;
11002 sparc*-*linux*)
11003 LD="${LD-ld} -m elf64_sparc"
11004 ;;
11005 esac
11006 ;;
11007 esac
11008 fi
11009 rm -rf conftest*
11010 ;;
11011
11012*-*-sco3.2v5*)
11013 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11014 SAVE_CFLAGS="$CFLAGS"
11015 CFLAGS="$CFLAGS -belf"
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11017$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11018if test "${lt_cv_cc_needs_belf+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11020else
11021 ac_ext=c
11022ac_cpp='$CPP $CPPFLAGS'
11023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11025ac_compiler_gnu=$ac_cv_c_compiler_gnu
11026
11027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11028/* end confdefs.h. */
11029
11030int
11031main ()
11032{
11033
11034 ;
11035 return 0;
11036}
11037_ACEOF
11038if ac_fn_c_try_link "$LINENO"; then :
11039 lt_cv_cc_needs_belf=yes
11040else
11041 lt_cv_cc_needs_belf=no
11042fi
11043rm -f core conftest.err conftest.$ac_objext \
11044 conftest$ac_exeext conftest.$ac_ext
11045 ac_ext=c
11046ac_cpp='$CPP $CPPFLAGS'
11047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11049ac_compiler_gnu=$ac_cv_c_compiler_gnu
11050
11051fi
11052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11053$as_echo "$lt_cv_cc_needs_belf" >&6; }
11054 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11055 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11056 CFLAGS="$SAVE_CFLAGS"
11057 fi
11058 ;;
11059sparc*-*solaris*)
11060 # Find out which ABI we are using.
11061 echo 'int i;' > conftest.$ac_ext
11062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11063 (eval $ac_compile) 2>&5
11064 ac_status=$?
11065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11066 test $ac_status = 0; }; then
11067 case `/usr/bin/file conftest.o` in
11068 *64-bit*)
11069 case $lt_cv_prog_gnu_ld in
11070 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11071 *)
11072 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11073 LD="${LD-ld} -64"
11074 fi
11075 ;;
11076 esac
11077 ;;
11078 esac
11079 fi
11080 rm -rf conftest*
11081 ;;
11082esac
11083
11084need_locks="$enable_libtool_lock"
11085
11086
11087 case $host_os in
11088 rhapsody* | darwin*)
11089 if test -n "$ac_tool_prefix"; then
11090 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11091set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11093$as_echo_n "checking for $ac_word... " >&6; }
11094if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
11095 $as_echo_n "(cached) " >&6
11096else
11097 if test -n "$DSYMUTIL"; then
11098 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11099else
11100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11101for as_dir in $PATH
11102do
11103 IFS=$as_save_IFS
11104 test -z "$as_dir" && as_dir=.
11105 for ac_exec_ext in '' $ac_executable_extensions; do
11106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11107 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11109 break 2
11110 fi
11111done
11112 done
11113IFS=$as_save_IFS
11114
11115fi
11116fi
11117DSYMUTIL=$ac_cv_prog_DSYMUTIL
11118if test -n "$DSYMUTIL"; then
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11120$as_echo "$DSYMUTIL" >&6; }
11121else
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123$as_echo "no" >&6; }
11124fi
11125
11126
11127fi
11128if test -z "$ac_cv_prog_DSYMUTIL"; then
11129 ac_ct_DSYMUTIL=$DSYMUTIL
11130 # Extract the first word of "dsymutil", so it can be a program name with args.
11131set dummy dsymutil; ac_word=$2
11132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11133$as_echo_n "checking for $ac_word... " >&6; }
11134if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
11135 $as_echo_n "(cached) " >&6
11136else
11137 if test -n "$ac_ct_DSYMUTIL"; then
11138 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11139else
11140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11141for as_dir in $PATH
11142do
11143 IFS=$as_save_IFS
11144 test -z "$as_dir" && as_dir=.
11145 for ac_exec_ext in '' $ac_executable_extensions; do
11146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11147 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11149 break 2
11150 fi
11151done
11152 done
11153IFS=$as_save_IFS
11154
11155fi
11156fi
11157ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11158if test -n "$ac_ct_DSYMUTIL"; then
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11160$as_echo "$ac_ct_DSYMUTIL" >&6; }
11161else
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163$as_echo "no" >&6; }
11164fi
11165
11166 if test "x$ac_ct_DSYMUTIL" = x; then
11167 DSYMUTIL=":"
11168 else
11169 case $cross_compiling:$ac_tool_warned in
11170yes:)
11171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11173ac_tool_warned=yes ;;
11174esac
11175 DSYMUTIL=$ac_ct_DSYMUTIL
11176 fi
11177else
11178 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11179fi
11180
11181 if test -n "$ac_tool_prefix"; then
11182 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11183set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11185$as_echo_n "checking for $ac_word... " >&6; }
11186if test "${ac_cv_prog_NMEDIT+set}" = set; then :
11187 $as_echo_n "(cached) " >&6
11188else
11189 if test -n "$NMEDIT"; then
11190 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11191else
11192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193for as_dir in $PATH
11194do
11195 IFS=$as_save_IFS
11196 test -z "$as_dir" && as_dir=.
11197 for ac_exec_ext in '' $ac_executable_extensions; do
11198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11199 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11201 break 2
11202 fi
11203done
11204 done
11205IFS=$as_save_IFS
11206
11207fi
11208fi
11209NMEDIT=$ac_cv_prog_NMEDIT
11210if test -n "$NMEDIT"; then
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11212$as_echo "$NMEDIT" >&6; }
11213else
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11215$as_echo "no" >&6; }
11216fi
11217
11218
11219fi
11220if test -z "$ac_cv_prog_NMEDIT"; then
11221 ac_ct_NMEDIT=$NMEDIT
11222 # Extract the first word of "nmedit", so it can be a program name with args.
11223set dummy nmedit; ac_word=$2
11224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11225$as_echo_n "checking for $ac_word... " >&6; }
11226if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
11227 $as_echo_n "(cached) " >&6
11228else
11229 if test -n "$ac_ct_NMEDIT"; then
11230 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11231else
11232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233for as_dir in $PATH
11234do
11235 IFS=$as_save_IFS
11236 test -z "$as_dir" && as_dir=.
11237 for ac_exec_ext in '' $ac_executable_extensions; do
11238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11239 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11241 break 2
11242 fi
11243done
11244 done
11245IFS=$as_save_IFS
11246
11247fi
11248fi
11249ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11250if test -n "$ac_ct_NMEDIT"; then
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11252$as_echo "$ac_ct_NMEDIT" >&6; }
11253else
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255$as_echo "no" >&6; }
11256fi
11257
11258 if test "x$ac_ct_NMEDIT" = x; then
11259 NMEDIT=":"
11260 else
11261 case $cross_compiling:$ac_tool_warned in
11262yes:)
11263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11265ac_tool_warned=yes ;;
11266esac
11267 NMEDIT=$ac_ct_NMEDIT
11268 fi
11269else
11270 NMEDIT="$ac_cv_prog_NMEDIT"
11271fi
11272
11273 if test -n "$ac_tool_prefix"; then
11274 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11275set dummy ${ac_tool_prefix}lipo; ac_word=$2
11276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11277$as_echo_n "checking for $ac_word... " >&6; }
11278if test "${ac_cv_prog_LIPO+set}" = set; then :
11279 $as_echo_n "(cached) " >&6
11280else
11281 if test -n "$LIPO"; then
11282 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11283else
11284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11285for as_dir in $PATH
11286do
11287 IFS=$as_save_IFS
11288 test -z "$as_dir" && as_dir=.
11289 for ac_exec_ext in '' $ac_executable_extensions; do
11290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11291 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11293 break 2
11294 fi
11295done
11296 done
11297IFS=$as_save_IFS
11298
11299fi
11300fi
11301LIPO=$ac_cv_prog_LIPO
11302if test -n "$LIPO"; then
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11304$as_echo "$LIPO" >&6; }
11305else
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307$as_echo "no" >&6; }
11308fi
11309
11310
11311fi
11312if test -z "$ac_cv_prog_LIPO"; then
11313 ac_ct_LIPO=$LIPO
11314 # Extract the first word of "lipo", so it can be a program name with args.
11315set dummy lipo; ac_word=$2
11316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11317$as_echo_n "checking for $ac_word... " >&6; }
11318if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
11319 $as_echo_n "(cached) " >&6
11320else
11321 if test -n "$ac_ct_LIPO"; then
11322 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11323else
11324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325for as_dir in $PATH
11326do
11327 IFS=$as_save_IFS
11328 test -z "$as_dir" && as_dir=.
11329 for ac_exec_ext in '' $ac_executable_extensions; do
11330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11331 ac_cv_prog_ac_ct_LIPO="lipo"
11332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11333 break 2
11334 fi
11335done
11336 done
11337IFS=$as_save_IFS
11338
11339fi
11340fi
11341ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11342if test -n "$ac_ct_LIPO"; then
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11344$as_echo "$ac_ct_LIPO" >&6; }
11345else
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11347$as_echo "no" >&6; }
11348fi
11349
11350 if test "x$ac_ct_LIPO" = x; then
11351 LIPO=":"
11352 else
11353 case $cross_compiling:$ac_tool_warned in
11354yes:)
11355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11357ac_tool_warned=yes ;;
11358esac
11359 LIPO=$ac_ct_LIPO
11360 fi
11361else
11362 LIPO="$ac_cv_prog_LIPO"
11363fi
11364
11365 if test -n "$ac_tool_prefix"; then
11366 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11367set dummy ${ac_tool_prefix}otool; ac_word=$2
11368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11369$as_echo_n "checking for $ac_word... " >&6; }
11370if test "${ac_cv_prog_OTOOL+set}" = set; then :
11371 $as_echo_n "(cached) " >&6
11372else
11373 if test -n "$OTOOL"; then
11374 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11375else
11376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11377for as_dir in $PATH
11378do
11379 IFS=$as_save_IFS
11380 test -z "$as_dir" && as_dir=.
11381 for ac_exec_ext in '' $ac_executable_extensions; do
11382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11383 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11385 break 2
11386 fi
11387done
11388 done
11389IFS=$as_save_IFS
11390
11391fi
11392fi
11393OTOOL=$ac_cv_prog_OTOOL
11394if test -n "$OTOOL"; then
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11396$as_echo "$OTOOL" >&6; }
11397else
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11399$as_echo "no" >&6; }
11400fi
11401
11402
11403fi
11404if test -z "$ac_cv_prog_OTOOL"; then
11405 ac_ct_OTOOL=$OTOOL
11406 # Extract the first word of "otool", so it can be a program name with args.
11407set dummy otool; ac_word=$2
11408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11409$as_echo_n "checking for $ac_word... " >&6; }
11410if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
11411 $as_echo_n "(cached) " >&6
11412else
11413 if test -n "$ac_ct_OTOOL"; then
11414 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11415else
11416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11417for as_dir in $PATH
11418do
11419 IFS=$as_save_IFS
11420 test -z "$as_dir" && as_dir=.
11421 for ac_exec_ext in '' $ac_executable_extensions; do
11422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11423 ac_cv_prog_ac_ct_OTOOL="otool"
11424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11425 break 2
11426 fi
11427done
11428 done
11429IFS=$as_save_IFS
11430
11431fi
11432fi
11433ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11434if test -n "$ac_ct_OTOOL"; then
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11436$as_echo "$ac_ct_OTOOL" >&6; }
11437else
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11439$as_echo "no" >&6; }
11440fi
11441
11442 if test "x$ac_ct_OTOOL" = x; then
11443 OTOOL=":"
11444 else
11445 case $cross_compiling:$ac_tool_warned in
11446yes:)
11447{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11449ac_tool_warned=yes ;;
11450esac
11451 OTOOL=$ac_ct_OTOOL
11452 fi
11453else
11454 OTOOL="$ac_cv_prog_OTOOL"
11455fi
11456
11457 if test -n "$ac_tool_prefix"; then
11458 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11459set dummy ${ac_tool_prefix}otool64; ac_word=$2
11460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11461$as_echo_n "checking for $ac_word... " >&6; }
11462if test "${ac_cv_prog_OTOOL64+set}" = set; then :
11463 $as_echo_n "(cached) " >&6
11464else
11465 if test -n "$OTOOL64"; then
11466 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11467else
11468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11469for as_dir in $PATH
11470do
11471 IFS=$as_save_IFS
11472 test -z "$as_dir" && as_dir=.
11473 for ac_exec_ext in '' $ac_executable_extensions; do
11474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11475 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11477 break 2
11478 fi
11479done
11480 done
11481IFS=$as_save_IFS
11482
11483fi
11484fi
11485OTOOL64=$ac_cv_prog_OTOOL64
11486if test -n "$OTOOL64"; then
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11488$as_echo "$OTOOL64" >&6; }
11489else
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11491$as_echo "no" >&6; }
11492fi
11493
11494
11495fi
11496if test -z "$ac_cv_prog_OTOOL64"; then
11497 ac_ct_OTOOL64=$OTOOL64
11498 # Extract the first word of "otool64", so it can be a program name with args.
11499set dummy otool64; ac_word=$2
11500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11501$as_echo_n "checking for $ac_word... " >&6; }
11502if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
11503 $as_echo_n "(cached) " >&6
11504else
11505 if test -n "$ac_ct_OTOOL64"; then
11506 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11507else
11508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11509for as_dir in $PATH
11510do
11511 IFS=$as_save_IFS
11512 test -z "$as_dir" && as_dir=.
11513 for ac_exec_ext in '' $ac_executable_extensions; do
11514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11515 ac_cv_prog_ac_ct_OTOOL64="otool64"
11516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11517 break 2
11518 fi
11519done
11520 done
11521IFS=$as_save_IFS
11522
11523fi
11524fi
11525ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11526if test -n "$ac_ct_OTOOL64"; then
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11528$as_echo "$ac_ct_OTOOL64" >&6; }
11529else
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11531$as_echo "no" >&6; }
11532fi
11533
11534 if test "x$ac_ct_OTOOL64" = x; then
11535 OTOOL64=":"
11536 else
11537 case $cross_compiling:$ac_tool_warned in
11538yes:)
11539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11541ac_tool_warned=yes ;;
11542esac
11543 OTOOL64=$ac_ct_OTOOL64
11544 fi
11545else
11546 OTOOL64="$ac_cv_prog_OTOOL64"
11547fi
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11576$as_echo_n "checking for -single_module linker flag... " >&6; }
11577if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
11578 $as_echo_n "(cached) " >&6
11579else
11580 lt_cv_apple_cc_single_mod=no
11581 if test -z "${LT_MULTI_MODULE}"; then
11582 # By default we will add the -single_module flag. You can override
11583 # by either setting the environment variable LT_MULTI_MODULE
11584 # non-empty at configure time, or by adding -multi_module to the
11585 # link flags.
11586 rm -rf libconftest.dylib*
11587 echo "int foo(void){return 1;}" > conftest.c
11588 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11589-dynamiclib -Wl,-single_module conftest.c" >&5
11590 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11591 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11592 _lt_result=$?
11593 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11594 lt_cv_apple_cc_single_mod=yes
11595 else
11596 cat conftest.err >&5
11597 fi
11598 rm -rf libconftest.dylib*
11599 rm -f conftest.*
11600 fi
11601fi
11602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11603$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11605$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11606if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
11607 $as_echo_n "(cached) " >&6
11608else
11609 lt_cv_ld_exported_symbols_list=no
11610 save_LDFLAGS=$LDFLAGS
11611 echo "_main" > conftest.sym
11612 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11614/* end confdefs.h. */
11615
11616int
11617main ()
11618{
11619
11620 ;
11621 return 0;
11622}
11623_ACEOF
11624if ac_fn_c_try_link "$LINENO"; then :
11625 lt_cv_ld_exported_symbols_list=yes
11626else
11627 lt_cv_ld_exported_symbols_list=no
11628fi
11629rm -f core conftest.err conftest.$ac_objext \
11630 conftest$ac_exeext conftest.$ac_ext
11631 LDFLAGS="$save_LDFLAGS"
11632
11633fi
11634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11635$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11636 case $host_os in
11637 rhapsody* | darwin1.[012])
11638 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11639 darwin1.*)
11640 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11641 darwin*) # darwin 5.x on
11642 # if running on 10.5 or later, the deployment target defaults
11643 # to the OS version, if on x86, and 10.4, the deployment
11644 # target defaults to 10.4. Don't you love it?
11645 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11646 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11647 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11648 10.[012]*)
11649 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11650 10.*)
11651 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11652 esac
11653 ;;
11654 esac
11655 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11656 _lt_dar_single_mod='$single_module'
11657 fi
11658 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11659 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11660 else
11661 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11662 fi
11663 if test "$DSYMUTIL" != ":"; then
11664 _lt_dsymutil='~$DSYMUTIL $lib || :'
11665 else
11666 _lt_dsymutil=
11667 fi
11668 ;;
11669 esac
11670
11671for ac_header in dlfcn.h
11672do :
11673 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11674"
11675if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11676 cat >>confdefs.h <<_ACEOF
11677#define HAVE_DLFCN_H 1
11678_ACEOF
11679
11680fi
11681
11682done
11683
11684
11685
11686ac_ext=cpp
11687ac_cpp='$CXXCPP $CPPFLAGS'
11688ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11689ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11690ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11691if test -z "$CXX"; then
11692 if test -n "$CCC"; then
11693 CXX=$CCC
11694 else
11695 if test -n "$ac_tool_prefix"; then
11696 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11697 do
11698 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11699set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11701$as_echo_n "checking for $ac_word... " >&6; }
11702if test "${ac_cv_prog_CXX+set}" = set; then :
11703 $as_echo_n "(cached) " >&6
11704else
11705 if test -n "$CXX"; then
11706 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11707else
11708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709for as_dir in $PATH
11710do
11711 IFS=$as_save_IFS
11712 test -z "$as_dir" && as_dir=.
11713 for ac_exec_ext in '' $ac_executable_extensions; do
11714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11715 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11717 break 2
11718 fi
11719done
11720 done
11721IFS=$as_save_IFS
11722
11723fi
11724fi
11725CXX=$ac_cv_prog_CXX
11726if test -n "$CXX"; then
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11728$as_echo "$CXX" >&6; }
11729else
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731$as_echo "no" >&6; }
11732fi
11733
11734
11735 test -n "$CXX" && break
11736 done
11737fi
11738if test -z "$CXX"; then
11739 ac_ct_CXX=$CXX
11740 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11741do
11742 # Extract the first word of "$ac_prog", so it can be a program name with args.
11743set dummy $ac_prog; 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_CXX+set}" = set; then :
11747 $as_echo_n "(cached) " >&6
11748else
11749 if test -n "$ac_ct_CXX"; then
11750 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # 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_CXX="$ac_prog"
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_CXX=$ac_cv_prog_ac_ct_CXX
11770if test -n "$ac_ct_CXX"; then
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11772$as_echo "$ac_ct_CXX" >&6; }
11773else
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11775$as_echo "no" >&6; }
11776fi
11777
11778
11779 test -n "$ac_ct_CXX" && break
11780done
11781
11782 if test "x$ac_ct_CXX" = x; then
11783 CXX="g++"
11784 else
11785 case $cross_compiling:$ac_tool_warned in
11786yes:)
11787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11789ac_tool_warned=yes ;;
11790esac
11791 CXX=$ac_ct_CXX
11792 fi
11793fi
11794
11795 fi
11796fi
11797# Provide some information about the compiler.
11798$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11799set X $ac_compile
11800ac_compiler=$2
11801for ac_option in --version -v -V -qversion; do
11802 { { ac_try="$ac_compiler $ac_option >&5"
11803case "(($ac_try" in
11804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805 *) ac_try_echo=$ac_try;;
11806esac
11807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11808$as_echo "$ac_try_echo"; } >&5
11809 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11810 ac_status=$?
11811 if test -s conftest.err; then
11812 sed '10a\
11813... rest of stderr output deleted ...
11814 10q' conftest.err >conftest.er1
11815 cat conftest.er1 >&5
11816 fi
11817 rm -f conftest.er1 conftest.err
11818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11819 test $ac_status = 0; }
11820done
11821
11822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11823$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11824if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11825 $as_echo_n "(cached) " >&6
11826else
11827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11828/* end confdefs.h. */
11829
11830int
11831main ()
11832{
11833#ifndef __GNUC__
11834 choke me
11835#endif
11836
11837 ;
11838 return 0;
11839}
11840_ACEOF
11841if ac_fn_cxx_try_compile "$LINENO"; then :
11842 ac_compiler_gnu=yes
11843else
11844 ac_compiler_gnu=no
11845fi
11846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11847ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11848
11849fi
11850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11851$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11852if test $ac_compiler_gnu = yes; then
11853 GXX=yes
11854else
11855 GXX=
11856fi
11857ac_test_CXXFLAGS=${CXXFLAGS+set}
11858ac_save_CXXFLAGS=$CXXFLAGS
11859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11860$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11861if test "${ac_cv_prog_cxx_g+set}" = set; then :
11862 $as_echo_n "(cached) " >&6
11863else
11864 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11865 ac_cxx_werror_flag=yes
11866 ac_cv_prog_cxx_g=no
11867 CXXFLAGS="-g"
11868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869/* end confdefs.h. */
11870
11871int
11872main ()
11873{
11874
11875 ;
11876 return 0;
11877}
11878_ACEOF
11879if ac_fn_cxx_try_compile "$LINENO"; then :
11880 ac_cv_prog_cxx_g=yes
11881else
11882 CXXFLAGS=""
11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884/* end confdefs.h. */
11885
11886int
11887main ()
11888{
11889
11890 ;
11891 return 0;
11892}
11893_ACEOF
11894if ac_fn_cxx_try_compile "$LINENO"; then :
11895
11896else
11897 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11898 CXXFLAGS="-g"
11899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11900/* end confdefs.h. */
11901
11902int
11903main ()
11904{
11905
11906 ;
11907 return 0;
11908}
11909_ACEOF
11910if ac_fn_cxx_try_compile "$LINENO"; then :
11911 ac_cv_prog_cxx_g=yes
11912fi
11913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11914fi
11915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11916fi
11917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11918 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11919fi
11920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11921$as_echo "$ac_cv_prog_cxx_g" >&6; }
11922if test "$ac_test_CXXFLAGS" = set; then
11923 CXXFLAGS=$ac_save_CXXFLAGS
11924elif test $ac_cv_prog_cxx_g = yes; then
11925 if test "$GXX" = yes; then
11926 CXXFLAGS="-g -O2"
11927 else
11928 CXXFLAGS="-g"
11929 fi
11930else
11931 if test "$GXX" = yes; then
11932 CXXFLAGS="-O2"
11933 else
11934 CXXFLAGS=
11935 fi
11936fi
11937ac_ext=c
11938ac_cpp='$CPP $CPPFLAGS'
11939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11941ac_compiler_gnu=$ac_cv_c_compiler_gnu
11942
11943depcc="$CXX" am_compiler_list=
11944
11945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11946$as_echo_n "checking dependency style of $depcc... " >&6; }
11947if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11948 $as_echo_n "(cached) " >&6
11949else
11950 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11951 # We make a subdir and do the tests there. Otherwise we can end up
11952 # making bogus files that we don't know about and never remove. For
11953 # instance it was reported that on HP-UX the gcc test will end up
11954 # making a dummy file named `D' -- because `-MD' means `put the output
11955 # in D'.
11956 mkdir conftest.dir
11957 # Copy depcomp to subdir because otherwise we won't find it if we're
11958 # using a relative directory.
11959 cp "$am_depcomp" conftest.dir
11960 cd conftest.dir
11961 # We will build objects and dependencies in a subdirectory because
11962 # it helps to detect inapplicable dependency modes. For instance
11963 # both Tru64's cc and ICC support -MD to output dependencies as a
11964 # side effect of compilation, but ICC will put the dependencies in
11965 # the current directory while Tru64 will put them in the object
11966 # directory.
11967 mkdir sub
11968
11969 am_cv_CXX_dependencies_compiler_type=none
11970 if test "$am_compiler_list" = ""; then
11971 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11972 fi
11973 am__universal=false
11974 case " $depcc " in #(
11975 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11976 esac
11977
11978 for depmode in $am_compiler_list; do
11979 # Setup a source with many dependencies, because some compilers
11980 # like to wrap large dependency lists on column 80 (with \), and
11981 # we should not choose a depcomp mode which is confused by this.
11982 #
11983 # We need to recreate these files for each test, as the compiler may
11984 # overwrite some of them when testing with obscure command lines.
11985 # This happens at least with the AIX C compiler.
11986 : > sub/conftest.c
11987 for i in 1 2 3 4 5 6; do
11988 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11989 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11990 # Solaris 8's {/usr,}/bin/sh.
11991 touch sub/conftst$i.h
11992 done
11993 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11994
11995 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11996 # mode. It turns out that the SunPro C++ compiler does not properly
11997 # handle `-M -o', and we need to detect this. Also, some Intel
11998 # versions had trouble with output in subdirs
11999 am__obj=sub/conftest.${OBJEXT-o}
12000 am__minus_obj="-o $am__obj"
12001 case $depmode in
12002 gcc)
12003 # This depmode causes a compiler race in universal mode.
12004 test "$am__universal" = false || continue
12005 ;;
12006 nosideeffect)
12007 # after this tag, mechanisms are not by side-effect, so they'll
12008 # only be used when explicitly requested
12009 if test "x$enable_dependency_tracking" = xyes; then
12010 continue
12011 else
12012 break
12013 fi
12014 ;;
12015 msvisualcpp | msvcmsys)
12016 # This compiler won't grok `-c -o', but also, the minuso test has
12017 # not run yet. These depmodes are late enough in the game, and
12018 # so weak that their functioning should not be impacted.
12019 am__obj=conftest.${OBJEXT-o}
12020 am__minus_obj=
12021 ;;
12022 none) break ;;
12023 esac
12024 if depmode=$depmode \
12025 source=sub/conftest.c object=$am__obj \
12026 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12027 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12028 >/dev/null 2>conftest.err &&
12029 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12030 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12031 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12032 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12033 # icc doesn't choke on unknown options, it will just issue warnings
12034 # or remarks (even with -Werror). So we grep stderr for any message
12035 # that says an option was ignored or not supported.
12036 # When given -MP, icc 7.0 and 7.1 complain thusly:
12037 # icc: Command line warning: ignoring option '-M'; no argument required
12038 # The diagnosis changed in icc 8.0:
12039 # icc: Command line remark: option '-MP' not supported
12040 if (grep 'ignoring option' conftest.err ||
12041 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12042 am_cv_CXX_dependencies_compiler_type=$depmode
12043 break
12044 fi
12045 fi
12046 done
12047
12048 cd ..
12049 rm -rf conftest.dir
12050else
12051 am_cv_CXX_dependencies_compiler_type=none
12052fi
12053
12054fi
12055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12056$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12057CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12058
12059 if
12060 test "x$enable_dependency_tracking" != xno \
12061 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12062 am__fastdepCXX_TRUE=
12063 am__fastdepCXX_FALSE='#'
12064else
12065 am__fastdepCXX_TRUE='#'
12066 am__fastdepCXX_FALSE=
12067fi
12068
12069
12070if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12071 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12072 (test "X$CXX" != "Xg++"))) ; then
12073 ac_ext=cpp
12074ac_cpp='$CXXCPP $CPPFLAGS'
12075ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12076ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12077ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12079$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12080if test -z "$CXXCPP"; then
12081 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12082 $as_echo_n "(cached) " >&6
12083else
12084 # Double quotes because CXXCPP needs to be expanded
12085 for CXXCPP in "$CXX -E" "/lib/cpp"
12086 do
12087 ac_preproc_ok=false
12088for ac_cxx_preproc_warn_flag in '' yes
12089do
12090 # Use a header file that comes with gcc, so configuring glibc
12091 # with a fresh cross-compiler works.
12092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12093 # <limits.h> exists even on freestanding compilers.
12094 # On the NeXT, cc -E runs the code through the compiler's parser,
12095 # not just through cpp. "Syntax error" is here to catch this case.
12096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097/* end confdefs.h. */
12098#ifdef __STDC__
12099# include <limits.h>
12100#else
12101# include <assert.h>
12102#endif
12103 Syntax error
12104_ACEOF
12105if ac_fn_cxx_try_cpp "$LINENO"; then :
12106
12107else
12108 # Broken: fails on valid input.
12109continue
12110fi
12111rm -f conftest.err conftest.$ac_ext
12112
12113 # OK, works on sane cases. Now check whether nonexistent headers
12114 # can be detected and how.
12115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12116/* end confdefs.h. */
12117#include <ac_nonexistent.h>
12118_ACEOF
12119if ac_fn_cxx_try_cpp "$LINENO"; then :
12120 # Broken: success on invalid input.
12121continue
12122else
12123 # Passes both tests.
12124ac_preproc_ok=:
12125break
12126fi
12127rm -f conftest.err conftest.$ac_ext
12128
12129done
12130# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12131rm -f conftest.err conftest.$ac_ext
12132if $ac_preproc_ok; then :
12133 break
12134fi
12135
12136 done
12137 ac_cv_prog_CXXCPP=$CXXCPP
12138
12139fi
12140 CXXCPP=$ac_cv_prog_CXXCPP
12141else
12142 ac_cv_prog_CXXCPP=$CXXCPP
12143fi
12144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12145$as_echo "$CXXCPP" >&6; }
12146ac_preproc_ok=false
12147for ac_cxx_preproc_warn_flag in '' yes
12148do
12149 # Use a header file that comes with gcc, so configuring glibc
12150 # with a fresh cross-compiler works.
12151 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12152 # <limits.h> exists even on freestanding compilers.
12153 # On the NeXT, cc -E runs the code through the compiler's parser,
12154 # not just through cpp. "Syntax error" is here to catch this case.
12155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12156/* end confdefs.h. */
12157#ifdef __STDC__
12158# include <limits.h>
12159#else
12160# include <assert.h>
12161#endif
12162 Syntax error
12163_ACEOF
12164if ac_fn_cxx_try_cpp "$LINENO"; then :
12165
12166else
12167 # Broken: fails on valid input.
12168continue
12169fi
12170rm -f conftest.err conftest.$ac_ext
12171
12172 # OK, works on sane cases. Now check whether nonexistent headers
12173 # can be detected and how.
12174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175/* end confdefs.h. */
12176#include <ac_nonexistent.h>
12177_ACEOF
12178if ac_fn_cxx_try_cpp "$LINENO"; then :
12179 # Broken: success on invalid input.
12180continue
12181else
12182 # Passes both tests.
12183ac_preproc_ok=:
12184break
12185fi
12186rm -f conftest.err conftest.$ac_ext
12187
12188done
12189# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12190rm -f conftest.err conftest.$ac_ext
12191if $ac_preproc_ok; then :
12192
12193else
12194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12195$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12196_lt_caught_CXX_error=yes; }
12197fi
12198
12199ac_ext=c
12200ac_cpp='$CPP $CPPFLAGS'
12201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12203ac_compiler_gnu=$ac_cv_c_compiler_gnu
12204
12205else
12206 _lt_caught_CXX_error=yes
12207fi
12208
12209
12210
12211
12212
12213# Set options
12214enable_win32_dll=yes
12215
12216case $host in
12217*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
12218 if test -n "$ac_tool_prefix"; then
12219 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12220set dummy ${ac_tool_prefix}as; ac_word=$2
12221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12222$as_echo_n "checking for $ac_word... " >&6; }
12223if test "${ac_cv_prog_AS+set}" = set; then :
12224 $as_echo_n "(cached) " >&6
12225else
12226 if test -n "$AS"; then
12227 ac_cv_prog_AS="$AS" # Let the user override the test.
12228else
12229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12230for as_dir in $PATH
12231do
12232 IFS=$as_save_IFS
12233 test -z "$as_dir" && as_dir=.
12234 for ac_exec_ext in '' $ac_executable_extensions; do
12235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12236 ac_cv_prog_AS="${ac_tool_prefix}as"
12237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12238 break 2
12239 fi
12240done
12241 done
12242IFS=$as_save_IFS
12243
12244fi
12245fi
12246AS=$ac_cv_prog_AS
12247if test -n "$AS"; then
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12249$as_echo "$AS" >&6; }
12250else
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252$as_echo "no" >&6; }
12253fi
12254
12255
12256fi
12257if test -z "$ac_cv_prog_AS"; then
12258 ac_ct_AS=$AS
12259 # Extract the first word of "as", so it can be a program name with args.
12260set dummy as; ac_word=$2
12261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12262$as_echo_n "checking for $ac_word... " >&6; }
12263if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
12264 $as_echo_n "(cached) " >&6
12265else
12266 if test -n "$ac_ct_AS"; then
12267 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12268else
12269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12270for as_dir in $PATH
12271do
12272 IFS=$as_save_IFS
12273 test -z "$as_dir" && as_dir=.
12274 for ac_exec_ext in '' $ac_executable_extensions; do
12275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12276 ac_cv_prog_ac_ct_AS="as"
12277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12278 break 2
12279 fi
12280done
12281 done
12282IFS=$as_save_IFS
12283
12284fi
12285fi
12286ac_ct_AS=$ac_cv_prog_ac_ct_AS
12287if test -n "$ac_ct_AS"; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12289$as_echo "$ac_ct_AS" >&6; }
12290else
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292$as_echo "no" >&6; }
12293fi
12294
12295 if test "x$ac_ct_AS" = x; then
12296 AS="false"
12297 else
12298 case $cross_compiling:$ac_tool_warned in
12299yes:)
12300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12302ac_tool_warned=yes ;;
12303esac
12304 AS=$ac_ct_AS
12305 fi
12306else
12307 AS="$ac_cv_prog_AS"
12308fi
12309
12310 if test -n "$ac_tool_prefix"; then
12311 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12312set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314$as_echo_n "checking for $ac_word... " >&6; }
12315if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
12316 $as_echo_n "(cached) " >&6
12317else
12318 if test -n "$DLLTOOL"; then
12319 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12320else
12321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12322for as_dir in $PATH
12323do
12324 IFS=$as_save_IFS
12325 test -z "$as_dir" && as_dir=.
12326 for ac_exec_ext in '' $ac_executable_extensions; do
12327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12328 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12330 break 2
12331 fi
12332done
12333 done
12334IFS=$as_save_IFS
12335
12336fi
12337fi
12338DLLTOOL=$ac_cv_prog_DLLTOOL
12339if test -n "$DLLTOOL"; then
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12341$as_echo "$DLLTOOL" >&6; }
12342else
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344$as_echo "no" >&6; }
12345fi
12346
12347
12348fi
12349if test -z "$ac_cv_prog_DLLTOOL"; then
12350 ac_ct_DLLTOOL=$DLLTOOL
12351 # Extract the first word of "dlltool", so it can be a program name with args.
12352set dummy dlltool; ac_word=$2
12353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12354$as_echo_n "checking for $ac_word... " >&6; }
12355if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
12356 $as_echo_n "(cached) " >&6
12357else
12358 if test -n "$ac_ct_DLLTOOL"; then
12359 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12360else
12361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362for as_dir in $PATH
12363do
12364 IFS=$as_save_IFS
12365 test -z "$as_dir" && as_dir=.
12366 for ac_exec_ext in '' $ac_executable_extensions; do
12367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12368 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12370 break 2
12371 fi
12372done
12373 done
12374IFS=$as_save_IFS
12375
12376fi
12377fi
12378ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12379if test -n "$ac_ct_DLLTOOL"; then
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12381$as_echo "$ac_ct_DLLTOOL" >&6; }
12382else
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384$as_echo "no" >&6; }
12385fi
12386
12387 if test "x$ac_ct_DLLTOOL" = x; then
12388 DLLTOOL="false"
12389 else
12390 case $cross_compiling:$ac_tool_warned in
12391yes:)
12392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12394ac_tool_warned=yes ;;
12395esac
12396 DLLTOOL=$ac_ct_DLLTOOL
12397 fi
12398else
12399 DLLTOOL="$ac_cv_prog_DLLTOOL"
12400fi
12401
12402 if test -n "$ac_tool_prefix"; then
12403 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12404set dummy ${ac_tool_prefix}objdump; ac_word=$2
12405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12406$as_echo_n "checking for $ac_word... " >&6; }
12407if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12408 $as_echo_n "(cached) " >&6
12409else
12410 if test -n "$OBJDUMP"; then
12411 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12412else
12413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414for as_dir in $PATH
12415do
12416 IFS=$as_save_IFS
12417 test -z "$as_dir" && as_dir=.
12418 for ac_exec_ext in '' $ac_executable_extensions; do
12419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12420 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12422 break 2
12423 fi
12424done
12425 done
12426IFS=$as_save_IFS
12427
12428fi
12429fi
12430OBJDUMP=$ac_cv_prog_OBJDUMP
12431if test -n "$OBJDUMP"; then
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12433$as_echo "$OBJDUMP" >&6; }
12434else
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436$as_echo "no" >&6; }
12437fi
12438
12439
12440fi
12441if test -z "$ac_cv_prog_OBJDUMP"; then
12442 ac_ct_OBJDUMP=$OBJDUMP
12443 # Extract the first word of "objdump", so it can be a program name with args.
12444set dummy objdump; ac_word=$2
12445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12446$as_echo_n "checking for $ac_word... " >&6; }
12447if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12448 $as_echo_n "(cached) " >&6
12449else
12450 if test -n "$ac_ct_OBJDUMP"; then
12451 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12452else
12453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12454for as_dir in $PATH
12455do
12456 IFS=$as_save_IFS
12457 test -z "$as_dir" && as_dir=.
12458 for ac_exec_ext in '' $ac_executable_extensions; do
12459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12460 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12462 break 2
12463 fi
12464done
12465 done
12466IFS=$as_save_IFS
12467
12468fi
12469fi
12470ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12471if test -n "$ac_ct_OBJDUMP"; then
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12473$as_echo "$ac_ct_OBJDUMP" >&6; }
12474else
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12476$as_echo "no" >&6; }
12477fi
12478
12479 if test "x$ac_ct_OBJDUMP" = x; then
12480 OBJDUMP="false"
12481 else
12482 case $cross_compiling:$ac_tool_warned in
12483yes:)
12484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12486ac_tool_warned=yes ;;
12487esac
12488 OBJDUMP=$ac_ct_OBJDUMP
12489 fi
12490else
12491 OBJDUMP="$ac_cv_prog_OBJDUMP"
12492fi
12493
12494 ;;
12495esac
12496
12497test -z "$AS" && AS=as
12498
12499
12500
12501
12502
12503test -z "$DLLTOOL" && DLLTOOL=dlltool
12504
12505
12506
12507
12508
12509test -z "$OBJDUMP" && OBJDUMP=objdump
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519 # Check whether --enable-shared was given.
12520if test "${enable_shared+set}" = set; then :
12521 enableval=$enable_shared; p=${PACKAGE-default}
12522 case $enableval in
12523 yes) enable_shared=yes ;;
12524 no) enable_shared=no ;;
12525 *)
12526 enable_shared=no
12527 # Look at the argument we got. We use all the common list separators.
12528 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12529 for pkg in $enableval; do
12530 IFS="$lt_save_ifs"
12531 if test "X$pkg" = "X$p"; then
12532 enable_shared=yes
12533 fi
12534 done
12535 IFS="$lt_save_ifs"
12536 ;;
12537 esac
12538else
12539 enable_shared=yes
12540fi
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550 # Check whether --enable-static was given.
12551if test "${enable_static+set}" = set; then :
12552 enableval=$enable_static; p=${PACKAGE-default}
12553 case $enableval in
12554 yes) enable_static=yes ;;
12555 no) enable_static=no ;;
12556 *)
12557 enable_static=no
12558 # Look at the argument we got. We use all the common list separators.
12559 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12560 for pkg in $enableval; do
12561 IFS="$lt_save_ifs"
12562 if test "X$pkg" = "X$p"; then
12563 enable_static=yes
12564 fi
12565 done
12566 IFS="$lt_save_ifs"
12567 ;;
12568 esac
12569else
12570 enable_static=yes
12571fi
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582# Check whether --with-pic was given.
12583if test "${with_pic+set}" = set; then :
12584 withval=$with_pic; pic_mode="$withval"
12585else
12586 pic_mode=default
12587fi
12588
12589
12590test -z "$pic_mode" && pic_mode=default
12591
12592
12593
12594
12595
12596
12597
12598 # Check whether --enable-fast-install was given.
12599if test "${enable_fast_install+set}" = set; then :
12600 enableval=$enable_fast_install; p=${PACKAGE-default}
12601 case $enableval in
12602 yes) enable_fast_install=yes ;;
12603 no) enable_fast_install=no ;;
12604 *)
12605 enable_fast_install=no
12606 # Look at the argument we got. We use all the common list separators.
12607 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12608 for pkg in $enableval; do
12609 IFS="$lt_save_ifs"
12610 if test "X$pkg" = "X$p"; then
12611 enable_fast_install=yes
12612 fi
12613 done
12614 IFS="$lt_save_ifs"
12615 ;;
12616 esac
12617else
12618 enable_fast_install=yes
12619fi
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631# This can be used to rebuild libtool when needed
12632LIBTOOL_DEPS="$ltmain"
12633
12634# Always use our own libtool.
12635LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661test -z "$LN_S" && LN_S="ln -s"
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676if test -n "${ZSH_VERSION+set}" ; then
12677 setopt NO_GLOB_SUBST
12678fi
12679
12680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12681$as_echo_n "checking for objdir... " >&6; }
12682if test "${lt_cv_objdir+set}" = set; then :
12683 $as_echo_n "(cached) " >&6
12684else
12685 rm -f .libs 2>/dev/null
12686mkdir .libs 2>/dev/null
12687if test -d .libs; then
12688 lt_cv_objdir=.libs
12689else
12690 # MS-DOS does not allow filenames that begin with a dot.
12691 lt_cv_objdir=_libs
12692fi
12693rmdir .libs 2>/dev/null
12694fi
12695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12696$as_echo "$lt_cv_objdir" >&6; }
12697objdir=$lt_cv_objdir
12698
12699
12700
12701
12702
12703cat >>confdefs.h <<_ACEOF
12704#define LT_OBJDIR "$lt_cv_objdir/"
12705_ACEOF
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723case $host_os in
12724aix3*)
12725 # AIX sometimes has problems with the GCC collect2 program. For some
12726 # reason, if we set the COLLECT_NAMES environment variable, the problems
12727 # vanish in a puff of smoke.
12728 if test "X${COLLECT_NAMES+set}" != Xset; then
12729 COLLECT_NAMES=
12730 export COLLECT_NAMES
12731 fi
12732 ;;
12733esac
12734
12735# Sed substitution that helps us do robust quoting. It backslashifies
12736# metacharacters that are still active within double-quoted strings.
12737sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12738
12739# Same as above, but do not quote variable references.
12740double_quote_subst='s/\(["`\\]\)/\\\1/g'
12741
12742# Sed substitution to delay expansion of an escaped shell variable in a
12743# double_quote_subst'ed string.
12744delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12745
12746# Sed substitution to delay expansion of an escaped single quote.
12747delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12748
12749# Sed substitution to avoid accidental globbing in evaled expressions
12750no_glob_subst='s/\*/\\\*/g'
12751
12752# Global variables:
12753ofile=libtool
12754can_build_shared=yes
12755
12756# All known linkers require a `.a' archive for static linking (except MSVC,
12757# which needs '.lib').
12758libext=a
12759
12760with_gnu_ld="$lt_cv_prog_gnu_ld"
12761
12762old_CC="$CC"
12763old_CFLAGS="$CFLAGS"
12764
12765# Set sane defaults for various variables
12766test -z "$CC" && CC=cc
12767test -z "$LTCC" && LTCC=$CC
12768test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12769test -z "$LD" && LD=ld
12770test -z "$ac_objext" && ac_objext=o
12771
12772for cc_temp in $compiler""; do
12773 case $cc_temp in
12774 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12775 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12776 \-*) ;;
12777 *) break;;
12778 esac
12779done
12780cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12781
12782
12783# Only perform the check for file, if the check method requires it
12784test -z "$MAGIC_CMD" && MAGIC_CMD=file
12785case $deplibs_check_method in
12786file_magic*)
12787 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12789$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12790if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12791 $as_echo_n "(cached) " >&6
12792else
12793 case $MAGIC_CMD in
12794[\\/*] | ?:[\\/]*)
12795 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12796 ;;
12797*)
12798 lt_save_MAGIC_CMD="$MAGIC_CMD"
12799 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12800 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12801 for ac_dir in $ac_dummy; do
12802 IFS="$lt_save_ifs"
12803 test -z "$ac_dir" && ac_dir=.
12804 if test -f $ac_dir/${ac_tool_prefix}file; then
12805 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12806 if test -n "$file_magic_test_file"; then
12807 case $deplibs_check_method in
12808 "file_magic "*)
12809 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12810 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12811 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12812 $EGREP "$file_magic_regex" > /dev/null; then
12813 :
12814 else
12815 cat <<_LT_EOF 1>&2
12816
12817*** Warning: the command libtool uses to detect shared libraries,
12818*** $file_magic_cmd, produces output that libtool cannot recognize.
12819*** The result is that libtool may fail to recognize shared libraries
12820*** as such. This will affect the creation of libtool libraries that
12821*** depend on shared libraries, but programs linked with such libtool
12822*** libraries will work regardless of this problem. Nevertheless, you
12823*** may want to report the problem to your system manager and/or to
12824*** bug-libtool@gnu.org
12825
12826_LT_EOF
12827 fi ;;
12828 esac
12829 fi
12830 break
12831 fi
12832 done
12833 IFS="$lt_save_ifs"
12834 MAGIC_CMD="$lt_save_MAGIC_CMD"
12835 ;;
12836esac
12837fi
12838
12839MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12840if test -n "$MAGIC_CMD"; then
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12842$as_echo "$MAGIC_CMD" >&6; }
12843else
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12845$as_echo "no" >&6; }
12846fi
12847
12848
12849
12850
12851
12852if test -z "$lt_cv_path_MAGIC_CMD"; then
12853 if test -n "$ac_tool_prefix"; then
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12855$as_echo_n "checking for file... " >&6; }
12856if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12857 $as_echo_n "(cached) " >&6
12858else
12859 case $MAGIC_CMD in
12860[\\/*] | ?:[\\/]*)
12861 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12862 ;;
12863*)
12864 lt_save_MAGIC_CMD="$MAGIC_CMD"
12865 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12866 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12867 for ac_dir in $ac_dummy; do
12868 IFS="$lt_save_ifs"
12869 test -z "$ac_dir" && ac_dir=.
12870 if test -f $ac_dir/file; then
12871 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12872 if test -n "$file_magic_test_file"; then
12873 case $deplibs_check_method in
12874 "file_magic "*)
12875 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12876 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12877 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12878 $EGREP "$file_magic_regex" > /dev/null; then
12879 :
12880 else
12881 cat <<_LT_EOF 1>&2
12882
12883*** Warning: the command libtool uses to detect shared libraries,
12884*** $file_magic_cmd, produces output that libtool cannot recognize.
12885*** The result is that libtool may fail to recognize shared libraries
12886*** as such. This will affect the creation of libtool libraries that
12887*** depend on shared libraries, but programs linked with such libtool
12888*** libraries will work regardless of this problem. Nevertheless, you
12889*** may want to report the problem to your system manager and/or to
12890*** bug-libtool@gnu.org
12891
12892_LT_EOF
12893 fi ;;
12894 esac
12895 fi
12896 break
12897 fi
12898 done
12899 IFS="$lt_save_ifs"
12900 MAGIC_CMD="$lt_save_MAGIC_CMD"
12901 ;;
12902esac
12903fi
12904
12905MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12906if test -n "$MAGIC_CMD"; then
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12908$as_echo "$MAGIC_CMD" >&6; }
12909else
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911$as_echo "no" >&6; }
12912fi
12913
12914
12915 else
12916 MAGIC_CMD=:
12917 fi
12918fi
12919
12920 fi
12921 ;;
12922esac
12923
12924# Use C for the default configuration in the libtool script
12925
12926lt_save_CC="$CC"
12927ac_ext=c
12928ac_cpp='$CPP $CPPFLAGS'
12929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12931ac_compiler_gnu=$ac_cv_c_compiler_gnu
12932
12933
12934# Source file extension for C test sources.
12935ac_ext=c
12936
12937# Object file extension for compiled C test sources.
12938objext=o
12939objext=$objext
12940
12941# Code to be used in simple compile tests
12942lt_simple_compile_test_code="int some_variable = 0;"
12943
12944# Code to be used in simple link tests
12945lt_simple_link_test_code='int main(){return(0);}'
12946
12947
12948
12949
12950
12951
12952
12953# If no C compiler was specified, use CC.
12954LTCC=${LTCC-"$CC"}
12955
12956# If no C compiler flags were specified, use CFLAGS.
12957LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12958
12959# Allow CC to be a program name with arguments.
12960compiler=$CC
12961
12962# Save the default compiler, since it gets overwritten when the other
12963# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12964compiler_DEFAULT=$CC
12965
12966# save warnings/boilerplate of simple test code
12967ac_outfile=conftest.$ac_objext
12968echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12969eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12970_lt_compiler_boilerplate=`cat conftest.err`
12971$RM conftest*
12972
12973ac_outfile=conftest.$ac_objext
12974echo "$lt_simple_link_test_code" >conftest.$ac_ext
12975eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12976_lt_linker_boilerplate=`cat conftest.err`
12977$RM -r conftest*
12978
12979
12980## CAVEAT EMPTOR:
12981## There is no encapsulation within the following macros, do not change
12982## the running order or otherwise move them around unless you know exactly
12983## what you are doing...
12984if test -n "$compiler"; then
12985
12986lt_prog_compiler_no_builtin_flag=
12987
12988if test "$GCC" = yes; then
12989 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12990
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12992$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12993if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
12994 $as_echo_n "(cached) " >&6
12995else
12996 lt_cv_prog_compiler_rtti_exceptions=no
12997 ac_outfile=conftest.$ac_objext
12998 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12999 lt_compiler_flag="-fno-rtti -fno-exceptions"
13000 # Insert the option either (1) after the last *FLAGS variable, or
13001 # (2) before a word containing "conftest.", or (3) at the end.
13002 # Note that $ac_compile itself does not contain backslashes and begins
13003 # with a dollar sign (not a hyphen), so the echo should work correctly.
13004 # The option is referenced via a variable to avoid confusing sed.
13005 lt_compile=`echo "$ac_compile" | $SED \
13006 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13007 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13008 -e 's:$: $lt_compiler_flag:'`
cristy746a5842010-10-22 20:20:08 +000013009 (eval echo "\"\$as_me:13009: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013010 (eval "$lt_compile" 2>conftest.err)
13011 ac_status=$?
13012 cat conftest.err >&5
cristy746a5842010-10-22 20:20:08 +000013013 echo "$as_me:13013: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013014 if (exit $ac_status) && test -s "$ac_outfile"; then
13015 # The compiler can only warn and ignore the option if not recognized
13016 # So say no if there are warnings other than the usual output.
13017 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13018 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13019 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13020 lt_cv_prog_compiler_rtti_exceptions=yes
13021 fi
13022 fi
13023 $RM conftest*
13024
13025fi
13026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13027$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13028
13029if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13030 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13031else
13032 :
13033fi
13034
13035fi
13036
13037
13038
13039
13040
13041
13042 lt_prog_compiler_wl=
13043lt_prog_compiler_pic=
13044lt_prog_compiler_static=
13045
13046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13047$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13048
13049 if test "$GCC" = yes; then
13050 lt_prog_compiler_wl='-Wl,'
13051 lt_prog_compiler_static='-static'
13052
13053 case $host_os in
13054 aix*)
13055 # All AIX code is PIC.
13056 if test "$host_cpu" = ia64; then
13057 # AIX 5 now supports IA64 processor
13058 lt_prog_compiler_static='-Bstatic'
13059 fi
13060 ;;
13061
13062 amigaos*)
13063 case $host_cpu in
13064 powerpc)
13065 # see comment about AmigaOS4 .so support
13066 lt_prog_compiler_pic='-fPIC'
13067 ;;
13068 m68k)
13069 # FIXME: we need at least 68020 code to build shared libraries, but
13070 # adding the `-m68020' flag to GCC prevents building anything better,
13071 # like `-m68040'.
13072 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13073 ;;
13074 esac
13075 ;;
13076
13077 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13078 # PIC is the default for these OSes.
13079 ;;
13080
13081 mingw* | cygwin* | pw32* | os2* | cegcc*)
13082 # This hack is so that the source file can tell whether it is being
13083 # built for inclusion in a dll (and should export symbols for example).
13084 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13085 # (--disable-auto-import) libraries
13086 lt_prog_compiler_pic='-DDLL_EXPORT'
13087 ;;
13088
13089 darwin* | rhapsody*)
13090 # PIC is the default on this platform
13091 # Common symbols not allowed in MH_DYLIB files
13092 lt_prog_compiler_pic='-fno-common'
13093 ;;
13094
13095 hpux*)
13096 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13097 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13098 # sets the default TLS model and affects inlining.
13099 case $host_cpu in
13100 hppa*64*)
13101 # +Z the default
13102 ;;
13103 *)
13104 lt_prog_compiler_pic='-fPIC'
13105 ;;
13106 esac
13107 ;;
13108
13109 interix[3-9]*)
13110 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13111 # Instead, we relocate shared libraries at runtime.
13112 ;;
13113
13114 msdosdjgpp*)
13115 # Just because we use GCC doesn't mean we suddenly get shared libraries
13116 # on systems that don't support them.
13117 lt_prog_compiler_can_build_shared=no
13118 enable_shared=no
13119 ;;
13120
13121 *nto* | *qnx*)
13122 # QNX uses GNU C++, but need to define -shared option too, otherwise
13123 # it will coredump.
13124 lt_prog_compiler_pic='-fPIC -shared'
13125 ;;
13126
13127 sysv4*MP*)
13128 if test -d /usr/nec; then
13129 lt_prog_compiler_pic=-Kconform_pic
13130 fi
13131 ;;
13132
13133 *)
13134 lt_prog_compiler_pic='-fPIC'
13135 ;;
13136 esac
13137 else
13138 # PORTME Check for flag to pass linker flags through the system compiler.
13139 case $host_os in
13140 aix*)
13141 lt_prog_compiler_wl='-Wl,'
13142 if test "$host_cpu" = ia64; then
13143 # AIX 5 now supports IA64 processor
13144 lt_prog_compiler_static='-Bstatic'
13145 else
13146 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13147 fi
13148 ;;
13149
13150 mingw* | cygwin* | pw32* | os2* | cegcc*)
13151 # This hack is so that the source file can tell whether it is being
13152 # built for inclusion in a dll (and should export symbols for example).
13153 lt_prog_compiler_pic='-DDLL_EXPORT'
13154 ;;
13155
13156 hpux9* | hpux10* | hpux11*)
13157 lt_prog_compiler_wl='-Wl,'
13158 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13159 # not for PA HP-UX.
13160 case $host_cpu in
13161 hppa*64*|ia64*)
13162 # +Z the default
13163 ;;
13164 *)
13165 lt_prog_compiler_pic='+Z'
13166 ;;
13167 esac
13168 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13169 lt_prog_compiler_static='${wl}-a ${wl}archive'
13170 ;;
13171
13172 irix5* | irix6* | nonstopux*)
13173 lt_prog_compiler_wl='-Wl,'
13174 # PIC (with -KPIC) is the default.
13175 lt_prog_compiler_static='-non_shared'
13176 ;;
13177
13178 linux* | k*bsd*-gnu)
13179 case $cc_basename in
13180 # old Intel for x86_64 which still supported -KPIC.
13181 ecc*)
13182 lt_prog_compiler_wl='-Wl,'
13183 lt_prog_compiler_pic='-KPIC'
13184 lt_prog_compiler_static='-static'
13185 ;;
13186 # icc used to be incompatible with GCC.
13187 # ICC 10 doesn't accept -KPIC any more.
13188 icc* | ifort*)
13189 lt_prog_compiler_wl='-Wl,'
13190 lt_prog_compiler_pic='-fPIC'
13191 lt_prog_compiler_static='-static'
13192 ;;
13193 # Lahey Fortran 8.1.
13194 lf95*)
13195 lt_prog_compiler_wl='-Wl,'
13196 lt_prog_compiler_pic='--shared'
13197 lt_prog_compiler_static='--static'
13198 ;;
13199 pgcc* | pgf77* | pgf90* | pgf95*)
13200 # Portland Group compilers (*not* the Pentium gcc compiler,
13201 # which looks to be a dead project)
13202 lt_prog_compiler_wl='-Wl,'
13203 lt_prog_compiler_pic='-fpic'
13204 lt_prog_compiler_static='-Bstatic'
13205 ;;
13206 ccc*)
13207 lt_prog_compiler_wl='-Wl,'
13208 # All Alpha code is PIC.
13209 lt_prog_compiler_static='-non_shared'
13210 ;;
13211 xl*)
13212 # IBM XL C 8.0/Fortran 10.1 on PPC
13213 lt_prog_compiler_wl='-Wl,'
13214 lt_prog_compiler_pic='-qpic'
13215 lt_prog_compiler_static='-qstaticlink'
13216 ;;
13217 *)
13218 case `$CC -V 2>&1 | sed 5q` in
13219 *Sun\ C*)
13220 # Sun C 5.9
13221 lt_prog_compiler_pic='-KPIC'
13222 lt_prog_compiler_static='-Bstatic'
13223 lt_prog_compiler_wl='-Wl,'
13224 ;;
13225 *Sun\ F*)
13226 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13227 lt_prog_compiler_pic='-KPIC'
13228 lt_prog_compiler_static='-Bstatic'
13229 lt_prog_compiler_wl=''
13230 ;;
13231 esac
13232 ;;
13233 esac
13234 ;;
13235
13236 newsos6)
13237 lt_prog_compiler_pic='-KPIC'
13238 lt_prog_compiler_static='-Bstatic'
13239 ;;
13240
13241 *nto* | *qnx*)
13242 # QNX uses GNU C++, but need to define -shared option too, otherwise
13243 # it will coredump.
13244 lt_prog_compiler_pic='-fPIC -shared'
13245 ;;
13246
13247 osf3* | osf4* | osf5*)
13248 lt_prog_compiler_wl='-Wl,'
13249 # All OSF/1 code is PIC.
13250 lt_prog_compiler_static='-non_shared'
13251 ;;
13252
13253 rdos*)
13254 lt_prog_compiler_static='-non_shared'
13255 ;;
13256
13257 solaris*)
13258 lt_prog_compiler_pic='-KPIC'
13259 lt_prog_compiler_static='-Bstatic'
13260 case $cc_basename in
13261 f77* | f90* | f95*)
13262 lt_prog_compiler_wl='-Qoption ld ';;
13263 *)
13264 lt_prog_compiler_wl='-Wl,';;
13265 esac
13266 ;;
13267
13268 sunos4*)
13269 lt_prog_compiler_wl='-Qoption ld '
13270 lt_prog_compiler_pic='-PIC'
13271 lt_prog_compiler_static='-Bstatic'
13272 ;;
13273
13274 sysv4 | sysv4.2uw2* | sysv4.3*)
13275 lt_prog_compiler_wl='-Wl,'
13276 lt_prog_compiler_pic='-KPIC'
13277 lt_prog_compiler_static='-Bstatic'
13278 ;;
13279
13280 sysv4*MP*)
13281 if test -d /usr/nec ;then
13282 lt_prog_compiler_pic='-Kconform_pic'
13283 lt_prog_compiler_static='-Bstatic'
13284 fi
13285 ;;
13286
13287 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13288 lt_prog_compiler_wl='-Wl,'
13289 lt_prog_compiler_pic='-KPIC'
13290 lt_prog_compiler_static='-Bstatic'
13291 ;;
13292
13293 unicos*)
13294 lt_prog_compiler_wl='-Wl,'
13295 lt_prog_compiler_can_build_shared=no
13296 ;;
13297
13298 uts4*)
13299 lt_prog_compiler_pic='-pic'
13300 lt_prog_compiler_static='-Bstatic'
13301 ;;
13302
13303 *)
13304 lt_prog_compiler_can_build_shared=no
13305 ;;
13306 esac
13307 fi
13308
13309case $host_os in
13310 # For platforms which do not support PIC, -DPIC is meaningless:
13311 *djgpp*)
13312 lt_prog_compiler_pic=
13313 ;;
13314 *)
13315 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13316 ;;
13317esac
13318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
13319$as_echo "$lt_prog_compiler_pic" >&6; }
13320
13321
13322
13323
13324
13325
13326#
13327# Check to make sure the PIC flag actually works.
13328#
13329if test -n "$lt_prog_compiler_pic"; then
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13331$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13332if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
13333 $as_echo_n "(cached) " >&6
13334else
13335 lt_cv_prog_compiler_pic_works=no
13336 ac_outfile=conftest.$ac_objext
13337 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13338 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13339 # Insert the option either (1) after the last *FLAGS variable, or
13340 # (2) before a word containing "conftest.", or (3) at the end.
13341 # Note that $ac_compile itself does not contain backslashes and begins
13342 # with a dollar sign (not a hyphen), so the echo should work correctly.
13343 # The option is referenced via a variable to avoid confusing sed.
13344 lt_compile=`echo "$ac_compile" | $SED \
13345 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13347 -e 's:$: $lt_compiler_flag:'`
cristy746a5842010-10-22 20:20:08 +000013348 (eval echo "\"\$as_me:13348: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013349 (eval "$lt_compile" 2>conftest.err)
13350 ac_status=$?
13351 cat conftest.err >&5
cristy746a5842010-10-22 20:20:08 +000013352 echo "$as_me:13352: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013353 if (exit $ac_status) && test -s "$ac_outfile"; then
13354 # The compiler can only warn and ignore the option if not recognized
13355 # So say no if there are warnings other than the usual output.
13356 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13357 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13358 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13359 lt_cv_prog_compiler_pic_works=yes
13360 fi
13361 fi
13362 $RM conftest*
13363
13364fi
13365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13366$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13367
13368if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13369 case $lt_prog_compiler_pic in
13370 "" | " "*) ;;
13371 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13372 esac
13373else
13374 lt_prog_compiler_pic=
13375 lt_prog_compiler_can_build_shared=no
13376fi
13377
13378fi
13379
13380
13381
13382
13383
13384
13385#
13386# Check to make sure the static flag actually works.
13387#
13388wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13390$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13391if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
13392 $as_echo_n "(cached) " >&6
13393else
13394 lt_cv_prog_compiler_static_works=no
13395 save_LDFLAGS="$LDFLAGS"
13396 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13397 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13398 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13399 # The linker can only warn and ignore the option if not recognized
13400 # So say no if there are warnings
13401 if test -s conftest.err; then
13402 # Append any errors to the config.log.
13403 cat conftest.err 1>&5
13404 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13405 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13406 if diff conftest.exp conftest.er2 >/dev/null; then
13407 lt_cv_prog_compiler_static_works=yes
13408 fi
13409 else
13410 lt_cv_prog_compiler_static_works=yes
13411 fi
13412 fi
13413 $RM -r conftest*
13414 LDFLAGS="$save_LDFLAGS"
13415
13416fi
13417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13418$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13419
13420if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13421 :
13422else
13423 lt_prog_compiler_static=
13424fi
13425
13426
13427
13428
13429
13430
13431
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13433$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13434if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
13435 $as_echo_n "(cached) " >&6
13436else
13437 lt_cv_prog_compiler_c_o=no
13438 $RM -r conftest 2>/dev/null
13439 mkdir conftest
13440 cd conftest
13441 mkdir out
13442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13443
13444 lt_compiler_flag="-o out/conftest2.$ac_objext"
13445 # Insert the option either (1) after the last *FLAGS variable, or
13446 # (2) before a word containing "conftest.", or (3) at the end.
13447 # Note that $ac_compile itself does not contain backslashes and begins
13448 # with a dollar sign (not a hyphen), so the echo should work correctly.
13449 lt_compile=`echo "$ac_compile" | $SED \
13450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13452 -e 's:$: $lt_compiler_flag:'`
cristy746a5842010-10-22 20:20:08 +000013453 (eval echo "\"\$as_me:13453: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013454 (eval "$lt_compile" 2>out/conftest.err)
13455 ac_status=$?
13456 cat out/conftest.err >&5
cristy746a5842010-10-22 20:20:08 +000013457 echo "$as_me:13457: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013458 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13459 then
13460 # The compiler can only warn and ignore the option if not recognized
13461 # So say no if there are warnings
13462 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13463 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13464 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13465 lt_cv_prog_compiler_c_o=yes
13466 fi
13467 fi
13468 chmod u+w . 2>&5
13469 $RM conftest*
13470 # SGI C++ compiler will create directory out/ii_files/ for
13471 # template instantiation
13472 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13473 $RM out/* && rmdir out
13474 cd ..
13475 $RM -r conftest
13476 $RM conftest*
13477
13478fi
13479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13480$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13481
13482
13483
13484
13485
13486
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13488$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13489if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
13490 $as_echo_n "(cached) " >&6
13491else
13492 lt_cv_prog_compiler_c_o=no
13493 $RM -r conftest 2>/dev/null
13494 mkdir conftest
13495 cd conftest
13496 mkdir out
13497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13498
13499 lt_compiler_flag="-o out/conftest2.$ac_objext"
13500 # Insert the option either (1) after the last *FLAGS variable, or
13501 # (2) before a word containing "conftest.", or (3) at the end.
13502 # Note that $ac_compile itself does not contain backslashes and begins
13503 # with a dollar sign (not a hyphen), so the echo should work correctly.
13504 lt_compile=`echo "$ac_compile" | $SED \
13505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13507 -e 's:$: $lt_compiler_flag:'`
cristy746a5842010-10-22 20:20:08 +000013508 (eval echo "\"\$as_me:13508: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013509 (eval "$lt_compile" 2>out/conftest.err)
13510 ac_status=$?
13511 cat out/conftest.err >&5
cristy746a5842010-10-22 20:20:08 +000013512 echo "$as_me:13512: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013513 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13514 then
13515 # The compiler can only warn and ignore the option if not recognized
13516 # So say no if there are warnings
13517 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13518 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13519 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13520 lt_cv_prog_compiler_c_o=yes
13521 fi
13522 fi
13523 chmod u+w . 2>&5
13524 $RM conftest*
13525 # SGI C++ compiler will create directory out/ii_files/ for
13526 # template instantiation
13527 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13528 $RM out/* && rmdir out
13529 cd ..
13530 $RM -r conftest
13531 $RM conftest*
13532
13533fi
13534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13535$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13536
13537
13538
13539
13540hard_links="nottested"
13541if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13542 # do not overwrite the value of need_locks provided by the user
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13544$as_echo_n "checking if we can lock with hard links... " >&6; }
13545 hard_links=yes
13546 $RM conftest*
13547 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13548 touch conftest.a
13549 ln conftest.a conftest.b 2>&5 || hard_links=no
13550 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13552$as_echo "$hard_links" >&6; }
13553 if test "$hard_links" = no; then
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13555$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13556 need_locks=warn
13557 fi
13558else
13559 need_locks=no
13560fi
13561
13562
13563
13564
13565
13566
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13568$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13569
13570 runpath_var=
13571 allow_undefined_flag=
13572 always_export_symbols=no
13573 archive_cmds=
13574 archive_expsym_cmds=
13575 compiler_needs_object=no
13576 enable_shared_with_static_runtimes=no
13577 export_dynamic_flag_spec=
13578 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13579 hardcode_automatic=no
13580 hardcode_direct=no
13581 hardcode_direct_absolute=no
13582 hardcode_libdir_flag_spec=
13583 hardcode_libdir_flag_spec_ld=
13584 hardcode_libdir_separator=
13585 hardcode_minus_L=no
13586 hardcode_shlibpath_var=unsupported
13587 inherit_rpath=no
13588 link_all_deplibs=unknown
13589 module_cmds=
13590 module_expsym_cmds=
13591 old_archive_from_new_cmds=
13592 old_archive_from_expsyms_cmds=
13593 thread_safe_flag_spec=
13594 whole_archive_flag_spec=
13595 # include_expsyms should be a list of space-separated symbols to be *always*
13596 # included in the symbol list
13597 include_expsyms=
13598 # exclude_expsyms can be an extended regexp of symbols to exclude
13599 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13600 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13601 # as well as any symbol that contains `d'.
13602 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13603 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13604 # platforms (ab)use it in PIC code, but their linkers get confused if
13605 # the symbol is explicitly referenced. Since portable code cannot
13606 # rely on this symbol name, it's probably fine to never include it in
13607 # preloaded symbol tables.
13608 # Exclude shared library initialization/finalization symbols.
13609 extract_expsyms_cmds=
13610
13611 case $host_os in
13612 cygwin* | mingw* | pw32* | cegcc*)
13613 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13614 # When not using gcc, we currently assume that we are using
13615 # Microsoft Visual C++.
13616 if test "$GCC" != yes; then
13617 with_gnu_ld=no
13618 fi
13619 ;;
13620 interix*)
13621 # we just hope/assume this is gcc and not c89 (= MSVC++)
13622 with_gnu_ld=yes
13623 ;;
13624 openbsd*)
13625 with_gnu_ld=no
13626 ;;
13627 esac
13628
13629 ld_shlibs=yes
13630 if test "$with_gnu_ld" = yes; then
13631 # If archive_cmds runs LD, not CC, wlarc should be empty
13632 wlarc='${wl}'
13633
13634 # Set some defaults for GNU ld with shared library support. These
13635 # are reset later if shared libraries are not supported. Putting them
13636 # here allows them to be overridden if necessary.
13637 runpath_var=LD_RUN_PATH
13638 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13639 export_dynamic_flag_spec='${wl}--export-dynamic'
13640 # ancient GNU ld didn't support --whole-archive et. al.
13641 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13642 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13643 else
13644 whole_archive_flag_spec=
13645 fi
13646 supports_anon_versioning=no
13647 case `$LD -v 2>&1` in
13648 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13649 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13650 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13651 *\ 2.11.*) ;; # other 2.11 versions
13652 *) supports_anon_versioning=yes ;;
13653 esac
13654
13655 # See if GNU ld supports shared libraries.
13656 case $host_os in
13657 aix[3-9]*)
13658 # On AIX/PPC, the GNU linker is very broken
13659 if test "$host_cpu" != ia64; then
13660 ld_shlibs=no
13661 cat <<_LT_EOF 1>&2
13662
13663*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13664*** to be unable to reliably create shared libraries on AIX.
13665*** Therefore, libtool is disabling shared libraries support. If you
13666*** really care for shared libraries, you may want to modify your PATH
13667*** so that a non-GNU linker is found, and then restart.
13668
13669_LT_EOF
13670 fi
13671 ;;
13672
13673 amigaos*)
13674 case $host_cpu in
13675 powerpc)
13676 # see comment about AmigaOS4 .so support
13677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13678 archive_expsym_cmds=''
13679 ;;
13680 m68k)
13681 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)'
13682 hardcode_libdir_flag_spec='-L$libdir'
13683 hardcode_minus_L=yes
13684 ;;
13685 esac
13686 ;;
13687
13688 beos*)
13689 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13690 allow_undefined_flag=unsupported
13691 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13692 # support --undefined. This deserves some investigation. FIXME
13693 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13694 else
13695 ld_shlibs=no
13696 fi
13697 ;;
13698
13699 cygwin* | mingw* | pw32* | cegcc*)
13700 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13701 # as there is no search path for DLLs.
13702 hardcode_libdir_flag_spec='-L$libdir'
13703 allow_undefined_flag=unsupported
13704 always_export_symbols=no
13705 enable_shared_with_static_runtimes=yes
13706 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13707
13708 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13710 # If the export-symbols file already is a .def file (1st line
13711 # is EXPORTS), use it as is; otherwise, prepend...
13712 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13713 cp $export_symbols $output_objdir/$soname.def;
13714 else
13715 echo EXPORTS > $output_objdir/$soname.def;
13716 cat $export_symbols >> $output_objdir/$soname.def;
13717 fi~
13718 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13719 else
13720 ld_shlibs=no
13721 fi
13722 ;;
13723
13724 interix[3-9]*)
13725 hardcode_direct=no
13726 hardcode_shlibpath_var=no
13727 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13728 export_dynamic_flag_spec='${wl}-E'
13729 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13730 # Instead, shared libraries are loaded at an image base (0x10000000 by
13731 # default) and relocated if they conflict, which is a slow very memory
13732 # consuming and fragmenting process. To avoid this, we pick a random,
13733 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13734 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13735 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13736 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'
13737 ;;
13738
13739 gnu* | linux* | tpf* | k*bsd*-gnu)
13740 tmp_diet=no
13741 if test "$host_os" = linux-dietlibc; then
13742 case $cc_basename in
13743 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13744 esac
13745 fi
13746 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13747 && test "$tmp_diet" = no
13748 then
13749 tmp_addflag=
13750 tmp_sharedflag='-shared'
13751 case $cc_basename,$host_cpu in
13752 pgcc*) # Portland Group C compiler
13753 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13754 tmp_addflag=' $pic_flag'
13755 ;;
13756 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13757 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13758 tmp_addflag=' $pic_flag -Mnomain' ;;
13759 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13760 tmp_addflag=' -i_dynamic' ;;
13761 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13762 tmp_addflag=' -i_dynamic -nofor_main' ;;
13763 ifc* | ifort*) # Intel Fortran compiler
13764 tmp_addflag=' -nofor_main' ;;
13765 lf95*) # Lahey Fortran 8.1
13766 whole_archive_flag_spec=
13767 tmp_sharedflag='--shared' ;;
13768 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13769 tmp_sharedflag='-qmkshrobj'
13770 tmp_addflag= ;;
13771 esac
13772 case `$CC -V 2>&1 | sed 5q` in
13773 *Sun\ C*) # Sun C 5.9
13774 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13775 compiler_needs_object=yes
13776 tmp_sharedflag='-G' ;;
13777 *Sun\ F*) # Sun Fortran 8.3
13778 tmp_sharedflag='-G' ;;
13779 esac
13780 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13781
13782 if test "x$supports_anon_versioning" = xyes; then
13783 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13784 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13785 echo "local: *; };" >> $output_objdir/$libname.ver~
13786 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13787 fi
13788
13789 case $cc_basename in
13790 xlf*)
13791 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13792 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13793 hardcode_libdir_flag_spec=
13794 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13795 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13796 if test "x$supports_anon_versioning" = xyes; then
13797 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13798 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13799 echo "local: *; };" >> $output_objdir/$libname.ver~
13800 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13801 fi
13802 ;;
13803 esac
13804 else
13805 ld_shlibs=no
13806 fi
13807 ;;
13808
13809 netbsd*)
13810 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13811 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13812 wlarc=
13813 else
13814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13815 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13816 fi
13817 ;;
13818
13819 solaris*)
13820 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13821 ld_shlibs=no
13822 cat <<_LT_EOF 1>&2
13823
13824*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13825*** create shared libraries on Solaris systems. Therefore, libtool
13826*** is disabling shared libraries support. We urge you to upgrade GNU
13827*** binutils to release 2.9.1 or newer. Another option is to modify
13828*** your PATH or compiler configuration so that the native linker is
13829*** used, and then restart.
13830
13831_LT_EOF
13832 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13834 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13835 else
13836 ld_shlibs=no
13837 fi
13838 ;;
13839
13840 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13841 case `$LD -v 2>&1` in
13842 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13843 ld_shlibs=no
13844 cat <<_LT_EOF 1>&2
13845
13846*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13847*** reliably create shared libraries on SCO systems. Therefore, libtool
13848*** is disabling shared libraries support. We urge you to upgrade GNU
13849*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13850*** your PATH or compiler configuration so that the native linker is
13851*** used, and then restart.
13852
13853_LT_EOF
13854 ;;
13855 *)
13856 # For security reasons, it is highly recommended that you always
13857 # use absolute paths for naming shared libraries, and exclude the
13858 # DT_RUNPATH tag from executables and libraries. But doing so
13859 # requires that you compile everything twice, which is a pain.
13860 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13863 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13864 else
13865 ld_shlibs=no
13866 fi
13867 ;;
13868 esac
13869 ;;
13870
13871 sunos4*)
13872 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13873 wlarc=
13874 hardcode_direct=yes
13875 hardcode_shlibpath_var=no
13876 ;;
13877
13878 *)
13879 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13880 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13881 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13882 else
13883 ld_shlibs=no
13884 fi
13885 ;;
13886 esac
13887
13888 if test "$ld_shlibs" = no; then
13889 runpath_var=
13890 hardcode_libdir_flag_spec=
13891 export_dynamic_flag_spec=
13892 whole_archive_flag_spec=
13893 fi
13894 else
13895 # PORTME fill in a description of your system's linker (not GNU ld)
13896 case $host_os in
13897 aix3*)
13898 allow_undefined_flag=unsupported
13899 always_export_symbols=yes
13900 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'
13901 # Note: this linker hardcodes the directories in LIBPATH if there
13902 # are no directories specified by -L.
13903 hardcode_minus_L=yes
13904 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13905 # Neither direct hardcoding nor static linking is supported with a
13906 # broken collect2.
13907 hardcode_direct=unsupported
13908 fi
13909 ;;
13910
13911 aix[4-9]*)
13912 if test "$host_cpu" = ia64; then
13913 # On IA64, the linker does run time linking by default, so we don't
13914 # have to do anything special.
13915 aix_use_runtimelinking=no
13916 exp_sym_flag='-Bexport'
13917 no_entry_flag=""
13918 else
13919 # If we're using GNU nm, then we don't want the "-C" option.
13920 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13921 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13922 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13923 else
13924 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'
13925 fi
13926 aix_use_runtimelinking=no
13927
13928 # Test if we are trying to use run time linking or normal
13929 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13930 # need to do runtime linking.
13931 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13932 for ld_flag in $LDFLAGS; do
13933 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13934 aix_use_runtimelinking=yes
13935 break
13936 fi
13937 done
13938 ;;
13939 esac
13940
13941 exp_sym_flag='-bexport'
13942 no_entry_flag='-bnoentry'
13943 fi
13944
13945 # When large executables or shared objects are built, AIX ld can
13946 # have problems creating the table of contents. If linking a library
13947 # or program results in "error TOC overflow" add -mminimal-toc to
13948 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13949 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13950
13951 archive_cmds=''
13952 hardcode_direct=yes
13953 hardcode_direct_absolute=yes
13954 hardcode_libdir_separator=':'
13955 link_all_deplibs=yes
13956 file_list_spec='${wl}-f,'
13957
13958 if test "$GCC" = yes; then
13959 case $host_os in aix4.[012]|aix4.[012].*)
13960 # We only want to do this on AIX 4.2 and lower, the check
13961 # below for broken collect2 doesn't work under 4.3+
13962 collect2name=`${CC} -print-prog-name=collect2`
13963 if test -f "$collect2name" &&
13964 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13965 then
13966 # We have reworked collect2
13967 :
13968 else
13969 # We have old collect2
13970 hardcode_direct=unsupported
13971 # It fails to find uninstalled libraries when the uninstalled
13972 # path is not listed in the libpath. Setting hardcode_minus_L
13973 # to unsupported forces relinking
13974 hardcode_minus_L=yes
13975 hardcode_libdir_flag_spec='-L$libdir'
13976 hardcode_libdir_separator=
13977 fi
13978 ;;
13979 esac
13980 shared_flag='-shared'
13981 if test "$aix_use_runtimelinking" = yes; then
13982 shared_flag="$shared_flag "'${wl}-G'
13983 fi
13984 else
13985 # not using gcc
13986 if test "$host_cpu" = ia64; then
13987 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13988 # chokes on -Wl,-G. The following line is correct:
13989 shared_flag='-G'
13990 else
13991 if test "$aix_use_runtimelinking" = yes; then
13992 shared_flag='${wl}-G'
13993 else
13994 shared_flag='${wl}-bM:SRE'
13995 fi
13996 fi
13997 fi
13998
13999 export_dynamic_flag_spec='${wl}-bexpall'
14000 # It seems that -bexpall does not export symbols beginning with
14001 # underscore (_), so it is better to generate a list of symbols to export.
14002 always_export_symbols=yes
14003 if test "$aix_use_runtimelinking" = yes; then
14004 # Warning - without using the other runtime loading flags (-brtl),
14005 # -berok will link without error, but may produce a broken library.
14006 allow_undefined_flag='-berok'
14007 # Determine the default libpath from the value encoded in an
14008 # empty executable.
14009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14010/* end confdefs.h. */
14011
14012int
14013main ()
14014{
14015
14016 ;
14017 return 0;
14018}
14019_ACEOF
14020if ac_fn_c_try_link "$LINENO"; then :
14021
14022lt_aix_libpath_sed='
14023 /Import File Strings/,/^$/ {
14024 /^0/ {
14025 s/^0 *\(.*\)$/\1/
14026 p
14027 }
14028 }'
14029aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14030# Check for a 64-bit object if we didn't find anything.
14031if test -z "$aix_libpath"; then
14032 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14033fi
14034fi
14035rm -f core conftest.err conftest.$ac_objext \
14036 conftest$ac_exeext conftest.$ac_ext
14037if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14038
14039 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14040 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14041 else
14042 if test "$host_cpu" = ia64; then
14043 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14044 allow_undefined_flag="-z nodefs"
14045 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"
14046 else
14047 # Determine the default libpath from the value encoded in an
14048 # empty executable.
14049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14050/* end confdefs.h. */
14051
14052int
14053main ()
14054{
14055
14056 ;
14057 return 0;
14058}
14059_ACEOF
14060if ac_fn_c_try_link "$LINENO"; then :
14061
14062lt_aix_libpath_sed='
14063 /Import File Strings/,/^$/ {
14064 /^0/ {
14065 s/^0 *\(.*\)$/\1/
14066 p
14067 }
14068 }'
14069aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14070# Check for a 64-bit object if we didn't find anything.
14071if test -z "$aix_libpath"; then
14072 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14073fi
14074fi
14075rm -f core conftest.err conftest.$ac_objext \
14076 conftest$ac_exeext conftest.$ac_ext
14077if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14078
14079 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14080 # Warning - without using the other run time loading flags,
14081 # -berok will link without error, but may produce a broken library.
14082 no_undefined_flag=' ${wl}-bernotok'
14083 allow_undefined_flag=' ${wl}-berok'
14084 # Exported symbols can be pulled into shared objects from archives
14085 whole_archive_flag_spec='$convenience'
14086 archive_cmds_need_lc=yes
14087 # This is similar to how AIX traditionally builds its shared libraries.
14088 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'
14089 fi
14090 fi
14091 ;;
14092
14093 amigaos*)
14094 case $host_cpu in
14095 powerpc)
14096 # see comment about AmigaOS4 .so support
14097 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14098 archive_expsym_cmds=''
14099 ;;
14100 m68k)
14101 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)'
14102 hardcode_libdir_flag_spec='-L$libdir'
14103 hardcode_minus_L=yes
14104 ;;
14105 esac
14106 ;;
14107
14108 bsdi[45]*)
14109 export_dynamic_flag_spec=-rdynamic
14110 ;;
14111
14112 cygwin* | mingw* | pw32* | cegcc*)
14113 # When not using gcc, we currently assume that we are using
14114 # Microsoft Visual C++.
14115 # hardcode_libdir_flag_spec is actually meaningless, as there is
14116 # no search path for DLLs.
14117 hardcode_libdir_flag_spec=' '
14118 allow_undefined_flag=unsupported
14119 # Tell ltmain to make .lib files, not .a files.
14120 libext=lib
14121 # Tell ltmain to make .dll files, not .so files.
14122 shrext_cmds=".dll"
14123 # FIXME: Setting linknames here is a bad hack.
14124 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
14125 # The linker will automatically build a .lib file if we build a DLL.
14126 old_archive_from_new_cmds='true'
14127 # FIXME: Should let the user specify the lib program.
14128 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14129 fix_srcfile_path='`cygpath -w "$srcfile"`'
14130 enable_shared_with_static_runtimes=yes
14131 ;;
14132
14133 darwin* | rhapsody*)
14134
14135
14136 archive_cmds_need_lc=no
14137 hardcode_direct=no
14138 hardcode_automatic=yes
14139 hardcode_shlibpath_var=unsupported
14140 whole_archive_flag_spec=''
14141 link_all_deplibs=yes
14142 allow_undefined_flag="$_lt_dar_allow_undefined"
14143 case $cc_basename in
14144 ifort*) _lt_dar_can_shared=yes ;;
14145 *) _lt_dar_can_shared=$GCC ;;
14146 esac
14147 if test "$_lt_dar_can_shared" = "yes"; then
14148 output_verbose_link_cmd=echo
14149 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14150 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14151 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}"
14152 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}"
14153
14154 else
14155 ld_shlibs=no
14156 fi
14157
14158 ;;
14159
14160 dgux*)
14161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14162 hardcode_libdir_flag_spec='-L$libdir'
14163 hardcode_shlibpath_var=no
14164 ;;
14165
14166 freebsd1*)
14167 ld_shlibs=no
14168 ;;
14169
14170 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14171 # support. Future versions do this automatically, but an explicit c++rt0.o
14172 # does not break anything, and helps significantly (at the cost of a little
14173 # extra space).
14174 freebsd2.2*)
14175 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14176 hardcode_libdir_flag_spec='-R$libdir'
14177 hardcode_direct=yes
14178 hardcode_shlibpath_var=no
14179 ;;
14180
14181 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14182 freebsd2*)
14183 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14184 hardcode_direct=yes
14185 hardcode_minus_L=yes
14186 hardcode_shlibpath_var=no
14187 ;;
14188
14189 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14190 freebsd* | dragonfly*)
14191 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14192 hardcode_libdir_flag_spec='-R$libdir'
14193 hardcode_direct=yes
14194 hardcode_shlibpath_var=no
14195 ;;
14196
14197 hpux9*)
14198 if test "$GCC" = yes; then
14199 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'
14200 else
14201 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'
14202 fi
14203 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14204 hardcode_libdir_separator=:
14205 hardcode_direct=yes
14206
14207 # hardcode_minus_L: Not really in the search PATH,
14208 # but as the default location of the library.
14209 hardcode_minus_L=yes
14210 export_dynamic_flag_spec='${wl}-E'
14211 ;;
14212
14213 hpux10*)
14214 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14215 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14216 else
14217 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14218 fi
14219 if test "$with_gnu_ld" = no; then
14220 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14221 hardcode_libdir_flag_spec_ld='+b $libdir'
14222 hardcode_libdir_separator=:
14223 hardcode_direct=yes
14224 hardcode_direct_absolute=yes
14225 export_dynamic_flag_spec='${wl}-E'
14226 # hardcode_minus_L: Not really in the search PATH,
14227 # but as the default location of the library.
14228 hardcode_minus_L=yes
14229 fi
14230 ;;
14231
14232 hpux11*)
14233 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14234 case $host_cpu in
14235 hppa*64*)
14236 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14237 ;;
14238 ia64*)
14239 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14240 ;;
14241 *)
14242 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14243 ;;
14244 esac
14245 else
14246 case $host_cpu in
14247 hppa*64*)
14248 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14249 ;;
14250 ia64*)
14251 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14252 ;;
14253 *)
14254 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14255 ;;
14256 esac
14257 fi
14258 if test "$with_gnu_ld" = no; then
14259 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14260 hardcode_libdir_separator=:
14261
14262 case $host_cpu in
14263 hppa*64*|ia64*)
14264 hardcode_direct=no
14265 hardcode_shlibpath_var=no
14266 ;;
14267 *)
14268 hardcode_direct=yes
14269 hardcode_direct_absolute=yes
14270 export_dynamic_flag_spec='${wl}-E'
14271
14272 # hardcode_minus_L: Not really in the search PATH,
14273 # but as the default location of the library.
14274 hardcode_minus_L=yes
14275 ;;
14276 esac
14277 fi
14278 ;;
14279
14280 irix5* | irix6* | nonstopux*)
14281 if test "$GCC" = yes; then
14282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14283 # Try to use the -exported_symbol ld option, if it does not
14284 # work, assume that -exports_file does not work either and
14285 # implicitly export all symbols.
14286 save_LDFLAGS="$LDFLAGS"
14287 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289/* end confdefs.h. */
14290int foo(void) {}
14291_ACEOF
14292if ac_fn_c_try_link "$LINENO"; then :
14293 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
14294
14295fi
14296rm -f core conftest.err conftest.$ac_objext \
14297 conftest$ac_exeext conftest.$ac_ext
14298 LDFLAGS="$save_LDFLAGS"
14299 else
14300 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14301 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
14302 fi
14303 archive_cmds_need_lc='no'
14304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14305 hardcode_libdir_separator=:
14306 inherit_rpath=yes
14307 link_all_deplibs=yes
14308 ;;
14309
14310 netbsd*)
14311 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14312 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14313 else
14314 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14315 fi
14316 hardcode_libdir_flag_spec='-R$libdir'
14317 hardcode_direct=yes
14318 hardcode_shlibpath_var=no
14319 ;;
14320
14321 newsos6)
14322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14323 hardcode_direct=yes
14324 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14325 hardcode_libdir_separator=:
14326 hardcode_shlibpath_var=no
14327 ;;
14328
14329 *nto* | *qnx*)
14330 ;;
14331
14332 openbsd*)
14333 if test -f /usr/libexec/ld.so; then
14334 hardcode_direct=yes
14335 hardcode_shlibpath_var=no
14336 hardcode_direct_absolute=yes
14337 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14338 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14339 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14340 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14341 export_dynamic_flag_spec='${wl}-E'
14342 else
14343 case $host_os in
14344 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14346 hardcode_libdir_flag_spec='-R$libdir'
14347 ;;
14348 *)
14349 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14350 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14351 ;;
14352 esac
14353 fi
14354 else
14355 ld_shlibs=no
14356 fi
14357 ;;
14358
14359 os2*)
14360 hardcode_libdir_flag_spec='-L$libdir'
14361 hardcode_minus_L=yes
14362 allow_undefined_flag=unsupported
14363 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'
14364 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14365 ;;
14366
14367 osf3*)
14368 if test "$GCC" = yes; then
14369 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14370 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14371 else
14372 allow_undefined_flag=' -expect_unresolved \*'
14373 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14374 fi
14375 archive_cmds_need_lc='no'
14376 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14377 hardcode_libdir_separator=:
14378 ;;
14379
14380 osf4* | osf5*) # as osf3* with the addition of -msym flag
14381 if test "$GCC" = yes; then
14382 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14383 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14384 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14385 else
14386 allow_undefined_flag=' -expect_unresolved \*'
14387 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14388 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~
14389 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
14390
14391 # Both c and cxx compiler support -rpath directly
14392 hardcode_libdir_flag_spec='-rpath $libdir'
14393 fi
14394 archive_cmds_need_lc='no'
14395 hardcode_libdir_separator=:
14396 ;;
14397
14398 solaris*)
14399 no_undefined_flag=' -z defs'
14400 if test "$GCC" = yes; then
14401 wlarc='${wl}'
14402 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14403 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14404 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14405 else
14406 case `$CC -V 2>&1` in
14407 *"Compilers 5.0"*)
14408 wlarc=''
14409 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14410 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14411 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14412 ;;
14413 *)
14414 wlarc='${wl}'
14415 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14416 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14417 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14418 ;;
14419 esac
14420 fi
14421 hardcode_libdir_flag_spec='-R$libdir'
14422 hardcode_shlibpath_var=no
14423 case $host_os in
14424 solaris2.[0-5] | solaris2.[0-5].*) ;;
14425 *)
14426 # The compiler driver will combine and reorder linker options,
14427 # but understands `-z linker_flag'. GCC discards it without `$wl',
14428 # but is careful enough not to reorder.
14429 # Supported since Solaris 2.6 (maybe 2.5.1?)
14430 if test "$GCC" = yes; then
14431 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14432 else
14433 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14434 fi
14435 ;;
14436 esac
14437 link_all_deplibs=yes
14438 ;;
14439
14440 sunos4*)
14441 if test "x$host_vendor" = xsequent; then
14442 # Use $CC to link under sequent, because it throws in some extra .o
14443 # files that make .init and .fini sections work.
14444 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14445 else
14446 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14447 fi
14448 hardcode_libdir_flag_spec='-L$libdir'
14449 hardcode_direct=yes
14450 hardcode_minus_L=yes
14451 hardcode_shlibpath_var=no
14452 ;;
14453
14454 sysv4)
14455 case $host_vendor in
14456 sni)
14457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14458 hardcode_direct=yes # is this really true???
14459 ;;
14460 siemens)
14461 ## LD is ld it makes a PLAMLIB
14462 ## CC just makes a GrossModule.
14463 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14464 reload_cmds='$CC -r -o $output$reload_objs'
14465 hardcode_direct=no
14466 ;;
14467 motorola)
14468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14469 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14470 ;;
14471 esac
14472 runpath_var='LD_RUN_PATH'
14473 hardcode_shlibpath_var=no
14474 ;;
14475
14476 sysv4.3*)
14477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14478 hardcode_shlibpath_var=no
14479 export_dynamic_flag_spec='-Bexport'
14480 ;;
14481
14482 sysv4*MP*)
14483 if test -d /usr/nec; then
14484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14485 hardcode_shlibpath_var=no
14486 runpath_var=LD_RUN_PATH
14487 hardcode_runpath_var=yes
14488 ld_shlibs=yes
14489 fi
14490 ;;
14491
14492 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14493 no_undefined_flag='${wl}-z,text'
14494 archive_cmds_need_lc=no
14495 hardcode_shlibpath_var=no
14496 runpath_var='LD_RUN_PATH'
14497
14498 if test "$GCC" = yes; then
14499 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14500 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14501 else
14502 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14503 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14504 fi
14505 ;;
14506
14507 sysv5* | sco3.2v5* | sco5v6*)
14508 # Note: We can NOT use -z defs as we might desire, because we do not
14509 # link with -lc, and that would cause any symbols used from libc to
14510 # always be unresolved, which means just about no library would
14511 # ever link correctly. If we're not using GNU ld we use -z text
14512 # though, which does catch some bad symbols but isn't as heavy-handed
14513 # as -z defs.
14514 no_undefined_flag='${wl}-z,text'
14515 allow_undefined_flag='${wl}-z,nodefs'
14516 archive_cmds_need_lc=no
14517 hardcode_shlibpath_var=no
14518 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14519 hardcode_libdir_separator=':'
14520 link_all_deplibs=yes
14521 export_dynamic_flag_spec='${wl}-Bexport'
14522 runpath_var='LD_RUN_PATH'
14523
14524 if test "$GCC" = yes; then
14525 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14526 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14527 else
14528 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14529 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14530 fi
14531 ;;
14532
14533 uts4*)
14534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14535 hardcode_libdir_flag_spec='-L$libdir'
14536 hardcode_shlibpath_var=no
14537 ;;
14538
14539 *)
14540 ld_shlibs=no
14541 ;;
14542 esac
14543
14544 if test x$host_vendor = xsni; then
14545 case $host in
14546 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14547 export_dynamic_flag_spec='${wl}-Blargedynsym'
14548 ;;
14549 esac
14550 fi
14551 fi
14552
14553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14554$as_echo "$ld_shlibs" >&6; }
14555test "$ld_shlibs" = no && can_build_shared=no
14556
14557with_gnu_ld=$with_gnu_ld
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573#
14574# Do we need to explicitly link libc?
14575#
14576case "x$archive_cmds_need_lc" in
14577x|xyes)
14578 # Assume -lc should be added
14579 archive_cmds_need_lc=yes
14580
14581 if test "$enable_shared" = yes && test "$GCC" = yes; then
14582 case $archive_cmds in
14583 *'~'*)
14584 # FIXME: we may have to deal with multi-command sequences.
14585 ;;
14586 '$CC '*)
14587 # Test whether the compiler implicitly links with -lc since on some
14588 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14589 # to ld, don't add -lc before -lgcc.
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14591$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14592 $RM conftest*
14593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14594
14595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14596 (eval $ac_compile) 2>&5
14597 ac_status=$?
14598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14599 test $ac_status = 0; } 2>conftest.err; then
14600 soname=conftest
14601 lib=conftest
14602 libobjs=conftest.$ac_objext
14603 deplibs=
14604 wl=$lt_prog_compiler_wl
14605 pic_flag=$lt_prog_compiler_pic
14606 compiler_flags=-v
14607 linker_flags=-v
14608 verstring=
14609 output_objdir=.
14610 libname=conftest
14611 lt_save_allow_undefined_flag=$allow_undefined_flag
14612 allow_undefined_flag=
14613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14614 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14615 ac_status=$?
14616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14617 test $ac_status = 0; }
14618 then
14619 archive_cmds_need_lc=no
14620 else
14621 archive_cmds_need_lc=yes
14622 fi
14623 allow_undefined_flag=$lt_save_allow_undefined_flag
14624 else
14625 cat conftest.err 1>&5
14626 fi
14627 $RM conftest*
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
14629$as_echo "$archive_cmds_need_lc" >&6; }
14630 ;;
14631 esac
14632 fi
14633 ;;
14634esac
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14793$as_echo_n "checking dynamic linker characteristics... " >&6; }
14794
14795if test "$GCC" = yes; then
14796 case $host_os in
14797 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14798 *) lt_awk_arg="/^libraries:/" ;;
14799 esac
14800 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14801 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
14802 # if the path contains ";" then we assume it to be the separator
14803 # otherwise default to the standard path separator (i.e. ":") - it is
14804 # assumed that no part of a normal pathname contains ";" but that should
14805 # okay in the real world where ";" in dirpaths is itself problematic.
14806 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14807 else
14808 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14809 fi
14810 # Ok, now we have the path, separated by spaces, we can step through it
14811 # and add multilib dir if necessary.
14812 lt_tmp_lt_search_path_spec=
14813 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14814 for lt_sys_path in $lt_search_path_spec; do
14815 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14816 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14817 else
14818 test -d "$lt_sys_path" && \
14819 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14820 fi
14821 done
14822 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
14823BEGIN {RS=" "; FS="/|\n";} {
14824 lt_foo="";
14825 lt_count=0;
14826 for (lt_i = NF; lt_i > 0; lt_i--) {
14827 if ($lt_i != "" && $lt_i != ".") {
14828 if ($lt_i == "..") {
14829 lt_count++;
14830 } else {
14831 if (lt_count == 0) {
14832 lt_foo="/" $lt_i lt_foo;
14833 } else {
14834 lt_count--;
14835 }
14836 }
14837 }
14838 }
14839 if (lt_foo != "") { lt_freq[lt_foo]++; }
14840 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14841}'`
14842 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
14843else
14844 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14845fi
14846library_names_spec=
14847libname_spec='lib$name'
14848soname_spec=
14849shrext_cmds=".so"
14850postinstall_cmds=
14851postuninstall_cmds=
14852finish_cmds=
14853finish_eval=
14854shlibpath_var=
14855shlibpath_overrides_runpath=unknown
14856version_type=none
14857dynamic_linker="$host_os ld.so"
14858sys_lib_dlsearch_path_spec="/lib /usr/lib"
14859need_lib_prefix=unknown
14860hardcode_into_libs=no
14861
14862# when you set need_version to no, make sure it does not cause -set_version
14863# flags to be left without arguments
14864need_version=unknown
14865
14866case $host_os in
14867aix3*)
14868 version_type=linux
14869 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14870 shlibpath_var=LIBPATH
14871
14872 # AIX 3 has no versioning support, so we append a major version to the name.
14873 soname_spec='${libname}${release}${shared_ext}$major'
14874 ;;
14875
14876aix[4-9]*)
14877 version_type=linux
14878 need_lib_prefix=no
14879 need_version=no
14880 hardcode_into_libs=yes
14881 if test "$host_cpu" = ia64; then
14882 # AIX 5 supports IA64
14883 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14884 shlibpath_var=LD_LIBRARY_PATH
14885 else
14886 # With GCC up to 2.95.x, collect2 would create an import file
14887 # for dependence libraries. The import file would start with
14888 # the line `#! .'. This would cause the generated library to
14889 # depend on `.', always an invalid library. This was fixed in
14890 # development snapshots of GCC prior to 3.0.
14891 case $host_os in
14892 aix4 | aix4.[01] | aix4.[01].*)
14893 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14894 echo ' yes '
14895 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14896 :
14897 else
14898 can_build_shared=no
14899 fi
14900 ;;
14901 esac
14902 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14903 # soname into executable. Probably we can add versioning support to
14904 # collect2, so additional links can be useful in future.
14905 if test "$aix_use_runtimelinking" = yes; then
14906 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14907 # instead of lib<name>.a to let people know that these are not
14908 # typical AIX shared libraries.
14909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14910 else
14911 # We preserve .a as extension for shared libraries through AIX4.2
14912 # and later when we are not doing run time linking.
14913 library_names_spec='${libname}${release}.a $libname.a'
14914 soname_spec='${libname}${release}${shared_ext}$major'
14915 fi
14916 shlibpath_var=LIBPATH
14917 fi
14918 ;;
14919
14920amigaos*)
14921 case $host_cpu in
14922 powerpc)
14923 # Since July 2007 AmigaOS4 officially supports .so libraries.
14924 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14926 ;;
14927 m68k)
14928 library_names_spec='$libname.ixlibrary $libname.a'
14929 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14930 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14931 ;;
14932 esac
14933 ;;
14934
14935beos*)
14936 library_names_spec='${libname}${shared_ext}'
14937 dynamic_linker="$host_os ld.so"
14938 shlibpath_var=LIBRARY_PATH
14939 ;;
14940
14941bsdi[45]*)
14942 version_type=linux
14943 need_version=no
14944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14945 soname_spec='${libname}${release}${shared_ext}$major'
14946 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14947 shlibpath_var=LD_LIBRARY_PATH
14948 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14949 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14950 # the default ld.so.conf also contains /usr/contrib/lib and
14951 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14952 # libtool to hard-code these into programs
14953 ;;
14954
14955cygwin* | mingw* | pw32* | cegcc*)
14956 version_type=windows
14957 shrext_cmds=".dll"
14958 need_version=no
14959 need_lib_prefix=no
14960
14961 case $GCC,$host_os in
14962 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14963 library_names_spec='$libname.dll.a'
14964 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14965 postinstall_cmds='base_file=`basename \${file}`~
14966 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14967 dldir=$destdir/`dirname \$dlpath`~
14968 test -d \$dldir || mkdir -p \$dldir~
14969 $install_prog $dir/$dlname \$dldir/$dlname~
14970 chmod a+x \$dldir/$dlname~
14971 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14972 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14973 fi'
14974 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14975 dlpath=$dir/\$dldll~
14976 $RM \$dlpath'
14977 shlibpath_overrides_runpath=yes
14978
14979 case $host_os in
14980 cygwin*)
14981 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14982 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14983 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14984 ;;
14985 mingw* | cegcc*)
14986 # MinGW DLLs use traditional 'lib' prefix
14987 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14988 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14989 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14990 # It is most probably a Windows format PATH printed by
14991 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14992 # path with ; separators, and with drive letters. We can handle the
14993 # drive letters (cygwin fileutils understands them), so leave them,
14994 # especially as we might pass files found there to a mingw objdump,
14995 # which wouldn't understand a cygwinified path. Ahh.
14996 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14997 else
14998 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14999 fi
15000 ;;
15001 pw32*)
15002 # pw32 DLLs use 'pw' prefix rather than 'lib'
15003 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15004 ;;
15005 esac
15006 ;;
15007
15008 *)
15009 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15010 ;;
15011 esac
15012 dynamic_linker='Win32 ld.exe'
15013 # FIXME: first we should search . and the directory the executable is in
15014 shlibpath_var=PATH
15015 ;;
15016
15017darwin* | rhapsody*)
15018 dynamic_linker="$host_os dyld"
15019 version_type=darwin
15020 need_lib_prefix=no
15021 need_version=no
15022 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15023 soname_spec='${libname}${release}${major}$shared_ext'
15024 shlibpath_overrides_runpath=yes
15025 shlibpath_var=DYLD_LIBRARY_PATH
15026 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15027
15028 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15029 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15030 ;;
15031
15032dgux*)
15033 version_type=linux
15034 need_lib_prefix=no
15035 need_version=no
15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15037 soname_spec='${libname}${release}${shared_ext}$major'
15038 shlibpath_var=LD_LIBRARY_PATH
15039 ;;
15040
15041freebsd1*)
15042 dynamic_linker=no
15043 ;;
15044
15045freebsd* | dragonfly*)
15046 # DragonFly does not have aout. When/if they implement a new
15047 # versioning mechanism, adjust this.
15048 if test -x /usr/bin/objformat; then
15049 objformat=`/usr/bin/objformat`
15050 else
15051 case $host_os in
15052 freebsd[123]*) objformat=aout ;;
15053 *) objformat=elf ;;
15054 esac
15055 fi
15056 version_type=freebsd-$objformat
15057 case $version_type in
15058 freebsd-elf*)
15059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15060 need_version=no
15061 need_lib_prefix=no
15062 ;;
15063 freebsd-*)
15064 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15065 need_version=yes
15066 ;;
15067 esac
15068 shlibpath_var=LD_LIBRARY_PATH
15069 case $host_os in
15070 freebsd2*)
15071 shlibpath_overrides_runpath=yes
15072 ;;
15073 freebsd3.[01]* | freebsdelf3.[01]*)
15074 shlibpath_overrides_runpath=yes
15075 hardcode_into_libs=yes
15076 ;;
15077 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15078 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15079 shlibpath_overrides_runpath=no
15080 hardcode_into_libs=yes
15081 ;;
15082 *) # from 4.6 on, and DragonFly
15083 shlibpath_overrides_runpath=yes
15084 hardcode_into_libs=yes
15085 ;;
15086 esac
15087 ;;
15088
15089gnu*)
15090 version_type=linux
15091 need_lib_prefix=no
15092 need_version=no
15093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15094 soname_spec='${libname}${release}${shared_ext}$major'
15095 shlibpath_var=LD_LIBRARY_PATH
15096 hardcode_into_libs=yes
15097 ;;
15098
15099hpux9* | hpux10* | hpux11*)
15100 # Give a soname corresponding to the major version so that dld.sl refuses to
15101 # link against other versions.
15102 version_type=sunos
15103 need_lib_prefix=no
15104 need_version=no
15105 case $host_cpu in
15106 ia64*)
15107 shrext_cmds='.so'
15108 hardcode_into_libs=yes
15109 dynamic_linker="$host_os dld.so"
15110 shlibpath_var=LD_LIBRARY_PATH
15111 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15113 soname_spec='${libname}${release}${shared_ext}$major'
15114 if test "X$HPUX_IA64_MODE" = X32; then
15115 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15116 else
15117 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15118 fi
15119 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15120 ;;
15121 hppa*64*)
15122 shrext_cmds='.sl'
15123 hardcode_into_libs=yes
15124 dynamic_linker="$host_os dld.sl"
15125 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15126 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15128 soname_spec='${libname}${release}${shared_ext}$major'
15129 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15130 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15131 ;;
15132 *)
15133 shrext_cmds='.sl'
15134 dynamic_linker="$host_os dld.sl"
15135 shlibpath_var=SHLIB_PATH
15136 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15138 soname_spec='${libname}${release}${shared_ext}$major'
15139 ;;
15140 esac
15141 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15142 postinstall_cmds='chmod 555 $lib'
15143 ;;
15144
15145interix[3-9]*)
15146 version_type=linux
15147 need_lib_prefix=no
15148 need_version=no
15149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15150 soname_spec='${libname}${release}${shared_ext}$major'
15151 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15152 shlibpath_var=LD_LIBRARY_PATH
15153 shlibpath_overrides_runpath=no
15154 hardcode_into_libs=yes
15155 ;;
15156
15157irix5* | irix6* | nonstopux*)
15158 case $host_os in
15159 nonstopux*) version_type=nonstopux ;;
15160 *)
15161 if test "$lt_cv_prog_gnu_ld" = yes; then
15162 version_type=linux
15163 else
15164 version_type=irix
15165 fi ;;
15166 esac
15167 need_lib_prefix=no
15168 need_version=no
15169 soname_spec='${libname}${release}${shared_ext}$major'
15170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15171 case $host_os in
15172 irix5* | nonstopux*)
15173 libsuff= shlibsuff=
15174 ;;
15175 *)
15176 case $LD in # libtool.m4 will add one of these switches to LD
15177 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15178 libsuff= shlibsuff= libmagic=32-bit;;
15179 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15180 libsuff=32 shlibsuff=N32 libmagic=N32;;
15181 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15182 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15183 *) libsuff= shlibsuff= libmagic=never-match;;
15184 esac
15185 ;;
15186 esac
15187 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15188 shlibpath_overrides_runpath=no
15189 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15190 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15191 hardcode_into_libs=yes
15192 ;;
15193
15194# No shared lib support for Linux oldld, aout, or coff.
15195linux*oldld* | linux*aout* | linux*coff*)
15196 dynamic_linker=no
15197 ;;
15198
15199# This must be Linux ELF.
15200linux* | k*bsd*-gnu)
15201 version_type=linux
15202 need_lib_prefix=no
15203 need_version=no
15204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15205 soname_spec='${libname}${release}${shared_ext}$major'
15206 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15207 shlibpath_var=LD_LIBRARY_PATH
15208 shlibpath_overrides_runpath=no
15209 # Some binutils ld are patched to set DT_RUNPATH
15210 save_LDFLAGS=$LDFLAGS
15211 save_libdir=$libdir
15212 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15213 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15215/* end confdefs.h. */
15216
15217int
15218main ()
15219{
15220
15221 ;
15222 return 0;
15223}
15224_ACEOF
15225if ac_fn_c_try_link "$LINENO"; then :
15226 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15227 shlibpath_overrides_runpath=yes
15228fi
15229fi
15230rm -f core conftest.err conftest.$ac_objext \
15231 conftest$ac_exeext conftest.$ac_ext
15232 LDFLAGS=$save_LDFLAGS
15233 libdir=$save_libdir
15234
15235 # This implies no fast_install, which is unacceptable.
15236 # Some rework will be needed to allow for fast_install
15237 # before this can be enabled.
15238 hardcode_into_libs=yes
15239
15240 # Add ABI-specific directories to the system library path.
15241 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15242
15243 # Append ld.so.conf contents to the search path
15244 if test -f /etc/ld.so.conf; then
15245 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15246 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15247 fi
15248
15249 # We used to test for /lib/ld.so.1 and disable shared libraries on
15250 # powerpc, because MkLinux only supported shared libraries with the
15251 # GNU dynamic linker. Since this was broken with cross compilers,
15252 # most powerpc-linux boxes support dynamic linking these days and
15253 # people can always --disable-shared, the test was removed, and we
15254 # assume the GNU/Linux dynamic linker is in use.
15255 dynamic_linker='GNU/Linux ld.so'
15256 ;;
15257
15258netbsd*)
15259 version_type=sunos
15260 need_lib_prefix=no
15261 need_version=no
15262 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15265 dynamic_linker='NetBSD (a.out) ld.so'
15266 else
15267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15268 soname_spec='${libname}${release}${shared_ext}$major'
15269 dynamic_linker='NetBSD ld.elf_so'
15270 fi
15271 shlibpath_var=LD_LIBRARY_PATH
15272 shlibpath_overrides_runpath=yes
15273 hardcode_into_libs=yes
15274 ;;
15275
15276newsos6)
15277 version_type=linux
15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15279 shlibpath_var=LD_LIBRARY_PATH
15280 shlibpath_overrides_runpath=yes
15281 ;;
15282
15283*nto* | *qnx*)
15284 version_type=qnx
15285 need_lib_prefix=no
15286 need_version=no
15287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15288 soname_spec='${libname}${release}${shared_ext}$major'
15289 shlibpath_var=LD_LIBRARY_PATH
15290 shlibpath_overrides_runpath=no
15291 hardcode_into_libs=yes
15292 dynamic_linker='ldqnx.so'
15293 ;;
15294
15295openbsd*)
15296 version_type=sunos
15297 sys_lib_dlsearch_path_spec="/usr/lib"
15298 need_lib_prefix=no
15299 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15300 case $host_os in
15301 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15302 *) need_version=no ;;
15303 esac
15304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15306 shlibpath_var=LD_LIBRARY_PATH
15307 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15308 case $host_os in
15309 openbsd2.[89] | openbsd2.[89].*)
15310 shlibpath_overrides_runpath=no
15311 ;;
15312 *)
15313 shlibpath_overrides_runpath=yes
15314 ;;
15315 esac
15316 else
15317 shlibpath_overrides_runpath=yes
15318 fi
15319 ;;
15320
15321os2*)
15322 libname_spec='$name'
15323 shrext_cmds=".dll"
15324 need_lib_prefix=no
15325 library_names_spec='$libname${shared_ext} $libname.a'
15326 dynamic_linker='OS/2 ld.exe'
15327 shlibpath_var=LIBPATH
15328 ;;
15329
15330osf3* | osf4* | osf5*)
15331 version_type=osf
15332 need_lib_prefix=no
15333 need_version=no
15334 soname_spec='${libname}${release}${shared_ext}$major'
15335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15336 shlibpath_var=LD_LIBRARY_PATH
15337 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15338 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15339 ;;
15340
15341rdos*)
15342 dynamic_linker=no
15343 ;;
15344
15345solaris*)
15346 version_type=linux
15347 need_lib_prefix=no
15348 need_version=no
15349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15350 soname_spec='${libname}${release}${shared_ext}$major'
15351 shlibpath_var=LD_LIBRARY_PATH
15352 shlibpath_overrides_runpath=yes
15353 hardcode_into_libs=yes
15354 # ldd complains unless libraries are executable
15355 postinstall_cmds='chmod +x $lib'
15356 ;;
15357
15358sunos4*)
15359 version_type=sunos
15360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15361 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15362 shlibpath_var=LD_LIBRARY_PATH
15363 shlibpath_overrides_runpath=yes
15364 if test "$with_gnu_ld" = yes; then
15365 need_lib_prefix=no
15366 fi
15367 need_version=yes
15368 ;;
15369
15370sysv4 | sysv4.3*)
15371 version_type=linux
15372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15373 soname_spec='${libname}${release}${shared_ext}$major'
15374 shlibpath_var=LD_LIBRARY_PATH
15375 case $host_vendor in
15376 sni)
15377 shlibpath_overrides_runpath=no
15378 need_lib_prefix=no
15379 runpath_var=LD_RUN_PATH
15380 ;;
15381 siemens)
15382 need_lib_prefix=no
15383 ;;
15384 motorola)
15385 need_lib_prefix=no
15386 need_version=no
15387 shlibpath_overrides_runpath=no
15388 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15389 ;;
15390 esac
15391 ;;
15392
15393sysv4*MP*)
15394 if test -d /usr/nec ;then
15395 version_type=linux
15396 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15397 soname_spec='$libname${shared_ext}.$major'
15398 shlibpath_var=LD_LIBRARY_PATH
15399 fi
15400 ;;
15401
15402sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15403 version_type=freebsd-elf
15404 need_lib_prefix=no
15405 need_version=no
15406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15407 soname_spec='${libname}${release}${shared_ext}$major'
15408 shlibpath_var=LD_LIBRARY_PATH
15409 shlibpath_overrides_runpath=yes
15410 hardcode_into_libs=yes
15411 if test "$with_gnu_ld" = yes; then
15412 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15413 else
15414 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15415 case $host_os in
15416 sco3.2v5*)
15417 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15418 ;;
15419 esac
15420 fi
15421 sys_lib_dlsearch_path_spec='/usr/lib'
15422 ;;
15423
15424tpf*)
15425 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15426 version_type=linux
15427 need_lib_prefix=no
15428 need_version=no
15429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15430 shlibpath_var=LD_LIBRARY_PATH
15431 shlibpath_overrides_runpath=no
15432 hardcode_into_libs=yes
15433 ;;
15434
15435uts4*)
15436 version_type=linux
15437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15438 soname_spec='${libname}${release}${shared_ext}$major'
15439 shlibpath_var=LD_LIBRARY_PATH
15440 ;;
15441
15442*)
15443 dynamic_linker=no
15444 ;;
15445esac
15446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15447$as_echo "$dynamic_linker" >&6; }
15448test "$dynamic_linker" = no && can_build_shared=no
15449
15450variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15451if test "$GCC" = yes; then
15452 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15453fi
15454
15455if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15456 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15457fi
15458if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15459 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15460fi
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15549$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15550hardcode_action=
15551if test -n "$hardcode_libdir_flag_spec" ||
15552 test -n "$runpath_var" ||
15553 test "X$hardcode_automatic" = "Xyes" ; then
15554
15555 # We can hardcode non-existent directories.
15556 if test "$hardcode_direct" != no &&
15557 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15558 # have to relink, otherwise we might link with an installed library
15559 # when we should be linking with a yet-to-be-installed one
15560 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15561 test "$hardcode_minus_L" != no; then
15562 # Linking always hardcodes the temporary library directory.
15563 hardcode_action=relink
15564 else
15565 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15566 hardcode_action=immediate
15567 fi
15568else
15569 # We cannot hardcode anything, or else we can only hardcode existing
15570 # directories.
15571 hardcode_action=unsupported
15572fi
15573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15574$as_echo "$hardcode_action" >&6; }
15575
15576if test "$hardcode_action" = relink ||
15577 test "$inherit_rpath" = yes; then
15578 # Fast installation is not supported
15579 enable_fast_install=no
15580elif test "$shlibpath_overrides_runpath" = yes ||
15581 test "$enable_shared" = no; then
15582 # Fast installation is not necessary
15583 enable_fast_install=needless
15584fi
15585
15586
15587
15588
15589
15590
15591 if test "x$enable_dlopen" != xyes; then
15592 enable_dlopen=unknown
15593 enable_dlopen_self=unknown
15594 enable_dlopen_self_static=unknown
15595else
15596 lt_cv_dlopen=no
15597 lt_cv_dlopen_libs=
15598
15599 case $host_os in
15600 beos*)
15601 lt_cv_dlopen="load_add_on"
15602 lt_cv_dlopen_libs=
15603 lt_cv_dlopen_self=yes
15604 ;;
15605
15606 mingw* | pw32* | cegcc*)
15607 lt_cv_dlopen="LoadLibrary"
15608 lt_cv_dlopen_libs=
15609 ;;
15610
15611 cygwin*)
15612 lt_cv_dlopen="dlopen"
15613 lt_cv_dlopen_libs=
15614 ;;
15615
15616 darwin*)
15617 # if libdl is installed we need to link against it
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15619$as_echo_n "checking for dlopen in -ldl... " >&6; }
15620if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15621 $as_echo_n "(cached) " >&6
15622else
15623 ac_check_lib_save_LIBS=$LIBS
15624LIBS="-ldl $LIBS"
15625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626/* end confdefs.h. */
15627
15628/* Override any GCC internal prototype to avoid an error.
15629 Use char because int might match the return type of a GCC
15630 builtin and then its argument prototype would still apply. */
15631#ifdef __cplusplus
15632extern "C"
15633#endif
15634char dlopen ();
15635int
15636main ()
15637{
15638return dlopen ();
15639 ;
15640 return 0;
15641}
15642_ACEOF
15643if ac_fn_c_try_link "$LINENO"; then :
15644 ac_cv_lib_dl_dlopen=yes
15645else
15646 ac_cv_lib_dl_dlopen=no
15647fi
15648rm -f core conftest.err conftest.$ac_objext \
15649 conftest$ac_exeext conftest.$ac_ext
15650LIBS=$ac_check_lib_save_LIBS
15651fi
15652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15653$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15654if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15655 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15656else
15657
15658 lt_cv_dlopen="dyld"
15659 lt_cv_dlopen_libs=
15660 lt_cv_dlopen_self=yes
15661
15662fi
15663
15664 ;;
15665
15666 *)
15667 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15668if test "x$ac_cv_func_shl_load" = x""yes; then :
15669 lt_cv_dlopen="shl_load"
15670else
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15672$as_echo_n "checking for shl_load in -ldld... " >&6; }
15673if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
15674 $as_echo_n "(cached) " >&6
15675else
15676 ac_check_lib_save_LIBS=$LIBS
15677LIBS="-ldld $LIBS"
15678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15679/* end confdefs.h. */
15680
15681/* Override any GCC internal prototype to avoid an error.
15682 Use char because int might match the return type of a GCC
15683 builtin and then its argument prototype would still apply. */
15684#ifdef __cplusplus
15685extern "C"
15686#endif
15687char shl_load ();
15688int
15689main ()
15690{
15691return shl_load ();
15692 ;
15693 return 0;
15694}
15695_ACEOF
15696if ac_fn_c_try_link "$LINENO"; then :
15697 ac_cv_lib_dld_shl_load=yes
15698else
15699 ac_cv_lib_dld_shl_load=no
15700fi
15701rm -f core conftest.err conftest.$ac_objext \
15702 conftest$ac_exeext conftest.$ac_ext
15703LIBS=$ac_check_lib_save_LIBS
15704fi
15705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15706$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15707if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
15708 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15709else
15710 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15711if test "x$ac_cv_func_dlopen" = x""yes; then :
15712 lt_cv_dlopen="dlopen"
15713else
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15715$as_echo_n "checking for dlopen in -ldl... " >&6; }
15716if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15717 $as_echo_n "(cached) " >&6
15718else
15719 ac_check_lib_save_LIBS=$LIBS
15720LIBS="-ldl $LIBS"
15721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15722/* end confdefs.h. */
15723
15724/* Override any GCC internal prototype to avoid an error.
15725 Use char because int might match the return type of a GCC
15726 builtin and then its argument prototype would still apply. */
15727#ifdef __cplusplus
15728extern "C"
15729#endif
15730char dlopen ();
15731int
15732main ()
15733{
15734return dlopen ();
15735 ;
15736 return 0;
15737}
15738_ACEOF
15739if ac_fn_c_try_link "$LINENO"; then :
15740 ac_cv_lib_dl_dlopen=yes
15741else
15742 ac_cv_lib_dl_dlopen=no
15743fi
15744rm -f core conftest.err conftest.$ac_objext \
15745 conftest$ac_exeext conftest.$ac_ext
15746LIBS=$ac_check_lib_save_LIBS
15747fi
15748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15749$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15750if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15752else
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15754$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15755if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
15756 $as_echo_n "(cached) " >&6
15757else
15758 ac_check_lib_save_LIBS=$LIBS
15759LIBS="-lsvld $LIBS"
15760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15761/* end confdefs.h. */
15762
15763/* Override any GCC internal prototype to avoid an error.
15764 Use char because int might match the return type of a GCC
15765 builtin and then its argument prototype would still apply. */
15766#ifdef __cplusplus
15767extern "C"
15768#endif
15769char dlopen ();
15770int
15771main ()
15772{
15773return dlopen ();
15774 ;
15775 return 0;
15776}
15777_ACEOF
15778if ac_fn_c_try_link "$LINENO"; then :
15779 ac_cv_lib_svld_dlopen=yes
15780else
15781 ac_cv_lib_svld_dlopen=no
15782fi
15783rm -f core conftest.err conftest.$ac_objext \
15784 conftest$ac_exeext conftest.$ac_ext
15785LIBS=$ac_check_lib_save_LIBS
15786fi
15787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15788$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15789if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
15790 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15791else
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15793$as_echo_n "checking for dld_link in -ldld... " >&6; }
15794if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
15795 $as_echo_n "(cached) " >&6
15796else
15797 ac_check_lib_save_LIBS=$LIBS
15798LIBS="-ldld $LIBS"
15799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15800/* end confdefs.h. */
15801
15802/* Override any GCC internal prototype to avoid an error.
15803 Use char because int might match the return type of a GCC
15804 builtin and then its argument prototype would still apply. */
15805#ifdef __cplusplus
15806extern "C"
15807#endif
15808char dld_link ();
15809int
15810main ()
15811{
15812return dld_link ();
15813 ;
15814 return 0;
15815}
15816_ACEOF
15817if ac_fn_c_try_link "$LINENO"; then :
15818 ac_cv_lib_dld_dld_link=yes
15819else
15820 ac_cv_lib_dld_dld_link=no
15821fi
15822rm -f core conftest.err conftest.$ac_objext \
15823 conftest$ac_exeext conftest.$ac_ext
15824LIBS=$ac_check_lib_save_LIBS
15825fi
15826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15827$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15828if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
15829 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15830fi
15831
15832
15833fi
15834
15835
15836fi
15837
15838
15839fi
15840
15841
15842fi
15843
15844
15845fi
15846
15847 ;;
15848 esac
15849
15850 if test "x$lt_cv_dlopen" != xno; then
15851 enable_dlopen=yes
15852 else
15853 enable_dlopen=no
15854 fi
15855
15856 case $lt_cv_dlopen in
15857 dlopen)
15858 save_CPPFLAGS="$CPPFLAGS"
15859 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15860
15861 save_LDFLAGS="$LDFLAGS"
15862 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15863
15864 save_LIBS="$LIBS"
15865 LIBS="$lt_cv_dlopen_libs $LIBS"
15866
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15868$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15869if test "${lt_cv_dlopen_self+set}" = set; then :
15870 $as_echo_n "(cached) " >&6
15871else
15872 if test "$cross_compiling" = yes; then :
15873 lt_cv_dlopen_self=cross
15874else
15875 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15876 lt_status=$lt_dlunknown
15877 cat > conftest.$ac_ext <<_LT_EOF
cristy746a5842010-10-22 20:20:08 +000015878#line 15878 "configure"
cristy73bd4a52010-10-05 11:24:23 +000015879#include "confdefs.h"
15880
15881#if HAVE_DLFCN_H
15882#include <dlfcn.h>
15883#endif
15884
15885#include <stdio.h>
15886
15887#ifdef RTLD_GLOBAL
15888# define LT_DLGLOBAL RTLD_GLOBAL
15889#else
15890# ifdef DL_GLOBAL
15891# define LT_DLGLOBAL DL_GLOBAL
15892# else
15893# define LT_DLGLOBAL 0
15894# endif
15895#endif
15896
15897/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15898 find out it does not work in some platform. */
15899#ifndef LT_DLLAZY_OR_NOW
15900# ifdef RTLD_LAZY
15901# define LT_DLLAZY_OR_NOW RTLD_LAZY
15902# else
15903# ifdef DL_LAZY
15904# define LT_DLLAZY_OR_NOW DL_LAZY
15905# else
15906# ifdef RTLD_NOW
15907# define LT_DLLAZY_OR_NOW RTLD_NOW
15908# else
15909# ifdef DL_NOW
15910# define LT_DLLAZY_OR_NOW DL_NOW
15911# else
15912# define LT_DLLAZY_OR_NOW 0
15913# endif
15914# endif
15915# endif
15916# endif
15917#endif
15918
15919void fnord() { int i=42;}
15920int main ()
15921{
15922 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15923 int status = $lt_dlunknown;
15924
15925 if (self)
15926 {
15927 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15928 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15929 /* dlclose (self); */
15930 }
15931 else
15932 puts (dlerror ());
15933
15934 return status;
15935}
15936_LT_EOF
15937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15938 (eval $ac_link) 2>&5
15939 ac_status=$?
15940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15941 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15942 (./conftest; exit; ) >&5 2>/dev/null
15943 lt_status=$?
15944 case x$lt_status in
15945 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15946 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15947 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15948 esac
15949 else :
15950 # compilation failed
15951 lt_cv_dlopen_self=no
15952 fi
15953fi
15954rm -fr conftest*
15955
15956
15957fi
15958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15959$as_echo "$lt_cv_dlopen_self" >&6; }
15960
15961 if test "x$lt_cv_dlopen_self" = xyes; then
15962 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15964$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15965if test "${lt_cv_dlopen_self_static+set}" = set; then :
15966 $as_echo_n "(cached) " >&6
15967else
15968 if test "$cross_compiling" = yes; then :
15969 lt_cv_dlopen_self_static=cross
15970else
15971 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15972 lt_status=$lt_dlunknown
15973 cat > conftest.$ac_ext <<_LT_EOF
cristy746a5842010-10-22 20:20:08 +000015974#line 15974 "configure"
cristy73bd4a52010-10-05 11:24:23 +000015975#include "confdefs.h"
15976
15977#if HAVE_DLFCN_H
15978#include <dlfcn.h>
15979#endif
15980
15981#include <stdio.h>
15982
15983#ifdef RTLD_GLOBAL
15984# define LT_DLGLOBAL RTLD_GLOBAL
15985#else
15986# ifdef DL_GLOBAL
15987# define LT_DLGLOBAL DL_GLOBAL
15988# else
15989# define LT_DLGLOBAL 0
15990# endif
15991#endif
15992
15993/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15994 find out it does not work in some platform. */
15995#ifndef LT_DLLAZY_OR_NOW
15996# ifdef RTLD_LAZY
15997# define LT_DLLAZY_OR_NOW RTLD_LAZY
15998# else
15999# ifdef DL_LAZY
16000# define LT_DLLAZY_OR_NOW DL_LAZY
16001# else
16002# ifdef RTLD_NOW
16003# define LT_DLLAZY_OR_NOW RTLD_NOW
16004# else
16005# ifdef DL_NOW
16006# define LT_DLLAZY_OR_NOW DL_NOW
16007# else
16008# define LT_DLLAZY_OR_NOW 0
16009# endif
16010# endif
16011# endif
16012# endif
16013#endif
16014
16015void fnord() { int i=42;}
16016int main ()
16017{
16018 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16019 int status = $lt_dlunknown;
16020
16021 if (self)
16022 {
16023 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16024 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16025 /* dlclose (self); */
16026 }
16027 else
16028 puts (dlerror ());
16029
16030 return status;
16031}
16032_LT_EOF
16033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16034 (eval $ac_link) 2>&5
16035 ac_status=$?
16036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16037 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16038 (./conftest; exit; ) >&5 2>/dev/null
16039 lt_status=$?
16040 case x$lt_status in
16041 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16042 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16043 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16044 esac
16045 else :
16046 # compilation failed
16047 lt_cv_dlopen_self_static=no
16048 fi
16049fi
16050rm -fr conftest*
16051
16052
16053fi
16054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16055$as_echo "$lt_cv_dlopen_self_static" >&6; }
16056 fi
16057
16058 CPPFLAGS="$save_CPPFLAGS"
16059 LDFLAGS="$save_LDFLAGS"
16060 LIBS="$save_LIBS"
16061 ;;
16062 esac
16063
16064 case $lt_cv_dlopen_self in
16065 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16066 *) enable_dlopen_self=unknown ;;
16067 esac
16068
16069 case $lt_cv_dlopen_self_static in
16070 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16071 *) enable_dlopen_self_static=unknown ;;
16072 esac
16073fi
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091striplib=
16092old_striplib=
16093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16094$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16095if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16096 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16097 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16099$as_echo "yes" >&6; }
16100else
16101# FIXME - insert some real tests, host_os isn't really good enough
16102 case $host_os in
16103 darwin*)
16104 if test -n "$STRIP" ; then
16105 striplib="$STRIP -x"
16106 old_striplib="$STRIP -S"
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16108$as_echo "yes" >&6; }
16109 else
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16111$as_echo "no" >&6; }
16112 fi
16113 ;;
16114 *)
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16116$as_echo "no" >&6; }
16117 ;;
16118 esac
16119fi
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132 # Report which library types will actually be built
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16134$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16136$as_echo "$can_build_shared" >&6; }
16137
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16139$as_echo_n "checking whether to build shared libraries... " >&6; }
16140 test "$can_build_shared" = "no" && enable_shared=no
16141
16142 # On AIX, shared libraries and static libraries use the same namespace, and
16143 # are all built from PIC.
16144 case $host_os in
16145 aix3*)
16146 test "$enable_shared" = yes && enable_static=no
16147 if test -n "$RANLIB"; then
16148 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16149 postinstall_cmds='$RANLIB $lib'
16150 fi
16151 ;;
16152
16153 aix[4-9]*)
16154 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16155 test "$enable_shared" = yes && enable_static=no
16156 fi
16157 ;;
16158 esac
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16160$as_echo "$enable_shared" >&6; }
16161
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16163$as_echo_n "checking whether to build static libraries... " >&6; }
16164 # Make sure either enable_shared or enable_static is yes.
16165 test "$enable_shared" = yes || enable_static=yes
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16167$as_echo "$enable_static" >&6; }
16168
16169
16170
16171
16172fi
16173ac_ext=c
16174ac_cpp='$CPP $CPPFLAGS'
16175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16177ac_compiler_gnu=$ac_cv_c_compiler_gnu
16178
16179CC="$lt_save_CC"
16180
16181
16182ac_ext=cpp
16183ac_cpp='$CXXCPP $CPPFLAGS'
16184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16187
16188archive_cmds_need_lc_CXX=no
16189allow_undefined_flag_CXX=
16190always_export_symbols_CXX=no
16191archive_expsym_cmds_CXX=
16192compiler_needs_object_CXX=no
16193export_dynamic_flag_spec_CXX=
16194hardcode_direct_CXX=no
16195hardcode_direct_absolute_CXX=no
16196hardcode_libdir_flag_spec_CXX=
16197hardcode_libdir_flag_spec_ld_CXX=
16198hardcode_libdir_separator_CXX=
16199hardcode_minus_L_CXX=no
16200hardcode_shlibpath_var_CXX=unsupported
16201hardcode_automatic_CXX=no
16202inherit_rpath_CXX=no
16203module_cmds_CXX=
16204module_expsym_cmds_CXX=
16205link_all_deplibs_CXX=unknown
16206old_archive_cmds_CXX=$old_archive_cmds
16207no_undefined_flag_CXX=
16208whole_archive_flag_spec_CXX=
16209enable_shared_with_static_runtimes_CXX=no
16210
16211# Source file extension for C++ test sources.
16212ac_ext=cpp
16213
16214# Object file extension for compiled C++ test sources.
16215objext=o
16216objext_CXX=$objext
16217
16218# No sense in running all these tests if we already determined that
16219# the CXX compiler isn't working. Some variables (like enable_shared)
16220# are currently assumed to apply to all compilers on this platform,
16221# and will be corrupted by setting them based on a non-working compiler.
16222if test "$_lt_caught_CXX_error" != yes; then
16223 # Code to be used in simple compile tests
16224 lt_simple_compile_test_code="int some_variable = 0;"
16225
16226 # Code to be used in simple link tests
16227 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16228
16229 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16230
16231
16232
16233
16234
16235
16236# If no C compiler was specified, use CC.
16237LTCC=${LTCC-"$CC"}
16238
16239# If no C compiler flags were specified, use CFLAGS.
16240LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16241
16242# Allow CC to be a program name with arguments.
16243compiler=$CC
16244
16245
16246 # save warnings/boilerplate of simple test code
16247 ac_outfile=conftest.$ac_objext
16248echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16249eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16250_lt_compiler_boilerplate=`cat conftest.err`
16251$RM conftest*
16252
16253 ac_outfile=conftest.$ac_objext
16254echo "$lt_simple_link_test_code" >conftest.$ac_ext
16255eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16256_lt_linker_boilerplate=`cat conftest.err`
16257$RM -r conftest*
16258
16259
16260 # Allow CC to be a program name with arguments.
16261 lt_save_CC=$CC
16262 lt_save_LD=$LD
16263 lt_save_GCC=$GCC
16264 GCC=$GXX
16265 lt_save_with_gnu_ld=$with_gnu_ld
16266 lt_save_path_LD=$lt_cv_path_LD
16267 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16268 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16269 else
16270 $as_unset lt_cv_prog_gnu_ld
16271 fi
16272 if test -n "${lt_cv_path_LDCXX+set}"; then
16273 lt_cv_path_LD=$lt_cv_path_LDCXX
16274 else
16275 $as_unset lt_cv_path_LD
16276 fi
16277 test -z "${LDCXX+set}" || LD=$LDCXX
16278 CC=${CXX-"c++"}
16279 compiler=$CC
16280 compiler_CXX=$CC
16281 for cc_temp in $compiler""; do
16282 case $cc_temp in
16283 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16284 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16285 \-*) ;;
16286 *) break;;
16287 esac
16288done
16289cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16290
16291
16292 if test -n "$compiler"; then
16293 # We don't want -fno-exception when compiling C++ code, so set the
16294 # no_builtin_flag separately
16295 if test "$GXX" = yes; then
16296 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16297 else
16298 lt_prog_compiler_no_builtin_flag_CXX=
16299 fi
16300
16301 if test "$GXX" = yes; then
16302 # Set up default GNU C++ configuration
16303
16304
16305
16306# Check whether --with-gnu-ld was given.
16307if test "${with_gnu_ld+set}" = set; then :
16308 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16309else
16310 with_gnu_ld=no
16311fi
16312
16313ac_prog=ld
16314if test "$GCC" = yes; then
16315 # Check if gcc -print-prog-name=ld gives a path.
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16317$as_echo_n "checking for ld used by $CC... " >&6; }
16318 case $host in
16319 *-*-mingw*)
16320 # gcc leaves a trailing carriage return which upsets mingw
16321 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16322 *)
16323 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16324 esac
16325 case $ac_prog in
16326 # Accept absolute paths.
16327 [\\/]* | ?:[\\/]*)
16328 re_direlt='/[^/][^/]*/\.\./'
16329 # Canonicalize the pathname of ld
16330 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16331 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16332 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16333 done
16334 test -z "$LD" && LD="$ac_prog"
16335 ;;
16336 "")
16337 # If it fails, then pretend we aren't using GCC.
16338 ac_prog=ld
16339 ;;
16340 *)
16341 # If it is relative, then search for the first ld in PATH.
16342 with_gnu_ld=unknown
16343 ;;
16344 esac
16345elif test "$with_gnu_ld" = yes; then
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16347$as_echo_n "checking for GNU ld... " >&6; }
16348else
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16350$as_echo_n "checking for non-GNU ld... " >&6; }
16351fi
16352if test "${lt_cv_path_LD+set}" = set; then :
16353 $as_echo_n "(cached) " >&6
16354else
16355 if test -z "$LD"; then
16356 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16357 for ac_dir in $PATH; do
16358 IFS="$lt_save_ifs"
16359 test -z "$ac_dir" && ac_dir=.
16360 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16361 lt_cv_path_LD="$ac_dir/$ac_prog"
16362 # Check to see if the program is GNU ld. I'd rather use --version,
16363 # but apparently some variants of GNU ld only accept -v.
16364 # Break only if it was the GNU/non-GNU ld that we prefer.
16365 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16366 *GNU* | *'with BFD'*)
16367 test "$with_gnu_ld" != no && break
16368 ;;
16369 *)
16370 test "$with_gnu_ld" != yes && break
16371 ;;
16372 esac
16373 fi
16374 done
16375 IFS="$lt_save_ifs"
16376else
16377 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16378fi
16379fi
16380
16381LD="$lt_cv_path_LD"
16382if test -n "$LD"; then
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16384$as_echo "$LD" >&6; }
16385else
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16387$as_echo "no" >&6; }
16388fi
16389test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16391$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16392if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16393 $as_echo_n "(cached) " >&6
16394else
16395 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16396case `$LD -v 2>&1 </dev/null` in
16397*GNU* | *'with BFD'*)
16398 lt_cv_prog_gnu_ld=yes
16399 ;;
16400*)
16401 lt_cv_prog_gnu_ld=no
16402 ;;
16403esac
16404fi
16405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16406$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16407with_gnu_ld=$lt_cv_prog_gnu_ld
16408
16409
16410
16411
16412
16413
16414
16415 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16416 # archiving commands below assume that GNU ld is being used.
16417 if test "$with_gnu_ld" = yes; then
16418 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16419 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'
16420
16421 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16422 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16423
16424 # If archive_cmds runs LD, not CC, wlarc should be empty
16425 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16426 # investigate it a little bit more. (MM)
16427 wlarc='${wl}'
16428
16429 # ancient GNU ld didn't support --whole-archive et. al.
16430 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16431 $GREP 'no-whole-archive' > /dev/null; then
16432 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16433 else
16434 whole_archive_flag_spec_CXX=
16435 fi
16436 else
16437 with_gnu_ld=no
16438 wlarc=
16439
16440 # A generic and very simple default shared library creation
16441 # command for GNU C++ for the case where it uses the native
16442 # linker, instead of GNU ld. If possible, this setting should
16443 # overridden to take advantage of the native linker features on
16444 # the platform it is being used on.
16445 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16446 fi
16447
16448 # Commands to make compiler produce verbose output that lists
16449 # what "hidden" libraries, object files and flags are used when
16450 # linking a shared library.
16451 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16452
16453 else
16454 GXX=no
16455 with_gnu_ld=no
16456 wlarc=
16457 fi
16458
16459 # PORTME: fill in a description of your system's C++ link characteristics
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16461$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16462 ld_shlibs_CXX=yes
16463 case $host_os in
16464 aix3*)
16465 # FIXME: insert proper C++ library support
16466 ld_shlibs_CXX=no
16467 ;;
16468 aix[4-9]*)
16469 if test "$host_cpu" = ia64; then
16470 # On IA64, the linker does run time linking by default, so we don't
16471 # have to do anything special.
16472 aix_use_runtimelinking=no
16473 exp_sym_flag='-Bexport'
16474 no_entry_flag=""
16475 else
16476 aix_use_runtimelinking=no
16477
16478 # Test if we are trying to use run time linking or normal
16479 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16480 # need to do runtime linking.
16481 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16482 for ld_flag in $LDFLAGS; do
16483 case $ld_flag in
16484 *-brtl*)
16485 aix_use_runtimelinking=yes
16486 break
16487 ;;
16488 esac
16489 done
16490 ;;
16491 esac
16492
16493 exp_sym_flag='-bexport'
16494 no_entry_flag='-bnoentry'
16495 fi
16496
16497 # When large executables or shared objects are built, AIX ld can
16498 # have problems creating the table of contents. If linking a library
16499 # or program results in "error TOC overflow" add -mminimal-toc to
16500 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16501 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16502
16503 archive_cmds_CXX=''
16504 hardcode_direct_CXX=yes
16505 hardcode_direct_absolute_CXX=yes
16506 hardcode_libdir_separator_CXX=':'
16507 link_all_deplibs_CXX=yes
16508 file_list_spec_CXX='${wl}-f,'
16509
16510 if test "$GXX" = yes; then
16511 case $host_os in aix4.[012]|aix4.[012].*)
16512 # We only want to do this on AIX 4.2 and lower, the check
16513 # below for broken collect2 doesn't work under 4.3+
16514 collect2name=`${CC} -print-prog-name=collect2`
16515 if test -f "$collect2name" &&
16516 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16517 then
16518 # We have reworked collect2
16519 :
16520 else
16521 # We have old collect2
16522 hardcode_direct_CXX=unsupported
16523 # It fails to find uninstalled libraries when the uninstalled
16524 # path is not listed in the libpath. Setting hardcode_minus_L
16525 # to unsupported forces relinking
16526 hardcode_minus_L_CXX=yes
16527 hardcode_libdir_flag_spec_CXX='-L$libdir'
16528 hardcode_libdir_separator_CXX=
16529 fi
16530 esac
16531 shared_flag='-shared'
16532 if test "$aix_use_runtimelinking" = yes; then
16533 shared_flag="$shared_flag "'${wl}-G'
16534 fi
16535 else
16536 # not using gcc
16537 if test "$host_cpu" = ia64; then
16538 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16539 # chokes on -Wl,-G. The following line is correct:
16540 shared_flag='-G'
16541 else
16542 if test "$aix_use_runtimelinking" = yes; then
16543 shared_flag='${wl}-G'
16544 else
16545 shared_flag='${wl}-bM:SRE'
16546 fi
16547 fi
16548 fi
16549
16550 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16551 # It seems that -bexpall does not export symbols beginning with
16552 # underscore (_), so it is better to generate a list of symbols to
16553 # export.
16554 always_export_symbols_CXX=yes
16555 if test "$aix_use_runtimelinking" = yes; then
16556 # Warning - without using the other runtime loading flags (-brtl),
16557 # -berok will link without error, but may produce a broken library.
16558 allow_undefined_flag_CXX='-berok'
16559 # Determine the default libpath from the value encoded in an empty
16560 # executable.
16561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16562/* end confdefs.h. */
16563
16564int
16565main ()
16566{
16567
16568 ;
16569 return 0;
16570}
16571_ACEOF
16572if ac_fn_cxx_try_link "$LINENO"; then :
16573
16574lt_aix_libpath_sed='
16575 /Import File Strings/,/^$/ {
16576 /^0/ {
16577 s/^0 *\(.*\)$/\1/
16578 p
16579 }
16580 }'
16581aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16582# Check for a 64-bit object if we didn't find anything.
16583if test -z "$aix_libpath"; then
16584 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16585fi
16586fi
16587rm -f core conftest.err conftest.$ac_objext \
16588 conftest$ac_exeext conftest.$ac_ext
16589if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16590
16591 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16592
16593 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16594 else
16595 if test "$host_cpu" = ia64; then
16596 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16597 allow_undefined_flag_CXX="-z nodefs"
16598 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"
16599 else
16600 # Determine the default libpath from the value encoded in an
16601 # empty executable.
16602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603/* end confdefs.h. */
16604
16605int
16606main ()
16607{
16608
16609 ;
16610 return 0;
16611}
16612_ACEOF
16613if ac_fn_cxx_try_link "$LINENO"; then :
16614
16615lt_aix_libpath_sed='
16616 /Import File Strings/,/^$/ {
16617 /^0/ {
16618 s/^0 *\(.*\)$/\1/
16619 p
16620 }
16621 }'
16622aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16623# Check for a 64-bit object if we didn't find anything.
16624if test -z "$aix_libpath"; then
16625 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16626fi
16627fi
16628rm -f core conftest.err conftest.$ac_objext \
16629 conftest$ac_exeext conftest.$ac_ext
16630if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16631
16632 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16633 # Warning - without using the other run time loading flags,
16634 # -berok will link without error, but may produce a broken library.
16635 no_undefined_flag_CXX=' ${wl}-bernotok'
16636 allow_undefined_flag_CXX=' ${wl}-berok'
16637 # Exported symbols can be pulled into shared objects from archives
16638 whole_archive_flag_spec_CXX='$convenience'
16639 archive_cmds_need_lc_CXX=yes
16640 # This is similar to how AIX traditionally builds its shared
16641 # libraries.
16642 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'
16643 fi
16644 fi
16645 ;;
16646
16647 beos*)
16648 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16649 allow_undefined_flag_CXX=unsupported
16650 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16651 # support --undefined. This deserves some investigation. FIXME
16652 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16653 else
16654 ld_shlibs_CXX=no
16655 fi
16656 ;;
16657
16658 chorus*)
16659 case $cc_basename in
16660 *)
16661 # FIXME: insert proper C++ library support
16662 ld_shlibs_CXX=no
16663 ;;
16664 esac
16665 ;;
16666
16667 cygwin* | mingw* | pw32* | cegcc*)
16668 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16669 # as there is no search path for DLLs.
16670 hardcode_libdir_flag_spec_CXX='-L$libdir'
16671 allow_undefined_flag_CXX=unsupported
16672 always_export_symbols_CXX=no
16673 enable_shared_with_static_runtimes_CXX=yes
16674
16675 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16676 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'
16677 # If the export-symbols file already is a .def file (1st line
16678 # is EXPORTS), use it as is; otherwise, prepend...
16679 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16680 cp $export_symbols $output_objdir/$soname.def;
16681 else
16682 echo EXPORTS > $output_objdir/$soname.def;
16683 cat $export_symbols >> $output_objdir/$soname.def;
16684 fi~
16685 $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'
16686 else
16687 ld_shlibs_CXX=no
16688 fi
16689 ;;
16690 darwin* | rhapsody*)
16691
16692
16693 archive_cmds_need_lc_CXX=no
16694 hardcode_direct_CXX=no
16695 hardcode_automatic_CXX=yes
16696 hardcode_shlibpath_var_CXX=unsupported
16697 whole_archive_flag_spec_CXX=''
16698 link_all_deplibs_CXX=yes
16699 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16700 case $cc_basename in
16701 ifort*) _lt_dar_can_shared=yes ;;
16702 *) _lt_dar_can_shared=$GCC ;;
16703 esac
16704 if test "$_lt_dar_can_shared" = "yes"; then
16705 output_verbose_link_cmd=echo
16706 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}"
16707 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16708 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}"
16709 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}"
16710 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16711 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}"
16712 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}"
16713 fi
16714
16715 else
16716 ld_shlibs_CXX=no
16717 fi
16718
16719 ;;
16720
16721 dgux*)
16722 case $cc_basename in
16723 ec++*)
16724 # FIXME: insert proper C++ library support
16725 ld_shlibs_CXX=no
16726 ;;
16727 ghcx*)
16728 # Green Hills C++ Compiler
16729 # FIXME: insert proper C++ library support
16730 ld_shlibs_CXX=no
16731 ;;
16732 *)
16733 # FIXME: insert proper C++ library support
16734 ld_shlibs_CXX=no
16735 ;;
16736 esac
16737 ;;
16738
16739 freebsd[12]*)
16740 # C++ shared libraries reported to be fairly broken before
16741 # switch to ELF
16742 ld_shlibs_CXX=no
16743 ;;
16744
16745 freebsd-elf*)
16746 archive_cmds_need_lc_CXX=no
16747 ;;
16748
16749 freebsd* | dragonfly*)
16750 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16751 # conventions
16752 ld_shlibs_CXX=yes
16753 ;;
16754
16755 gnu*)
16756 ;;
16757
16758 hpux9*)
16759 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16760 hardcode_libdir_separator_CXX=:
16761 export_dynamic_flag_spec_CXX='${wl}-E'
16762 hardcode_direct_CXX=yes
16763 hardcode_minus_L_CXX=yes # Not in the search PATH,
16764 # but as the default
16765 # location of the library.
16766
16767 case $cc_basename in
16768 CC*)
16769 # FIXME: insert proper C++ library support
16770 ld_shlibs_CXX=no
16771 ;;
16772 aCC*)
16773 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'
16774 # Commands to make compiler produce verbose output that lists
16775 # what "hidden" libraries, object files and flags are used when
16776 # linking a shared library.
16777 #
16778 # There doesn't appear to be a way to prevent this compiler from
16779 # explicitly linking system object files so we need to strip them
16780 # from the output so that they don't get included in the library
16781 # dependencies.
16782 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16783 ;;
16784 *)
16785 if test "$GXX" = yes; then
16786 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'
16787 else
16788 # FIXME: insert proper C++ library support
16789 ld_shlibs_CXX=no
16790 fi
16791 ;;
16792 esac
16793 ;;
16794
16795 hpux10*|hpux11*)
16796 if test $with_gnu_ld = no; then
16797 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16798 hardcode_libdir_separator_CXX=:
16799
16800 case $host_cpu in
16801 hppa*64*|ia64*)
16802 ;;
16803 *)
16804 export_dynamic_flag_spec_CXX='${wl}-E'
16805 ;;
16806 esac
16807 fi
16808 case $host_cpu in
16809 hppa*64*|ia64*)
16810 hardcode_direct_CXX=no
16811 hardcode_shlibpath_var_CXX=no
16812 ;;
16813 *)
16814 hardcode_direct_CXX=yes
16815 hardcode_direct_absolute_CXX=yes
16816 hardcode_minus_L_CXX=yes # Not in the search PATH,
16817 # but as the default
16818 # location of the library.
16819 ;;
16820 esac
16821
16822 case $cc_basename in
16823 CC*)
16824 # FIXME: insert proper C++ library support
16825 ld_shlibs_CXX=no
16826 ;;
16827 aCC*)
16828 case $host_cpu in
16829 hppa*64*)
16830 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16831 ;;
16832 ia64*)
16833 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16834 ;;
16835 *)
16836 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16837 ;;
16838 esac
16839 # Commands to make compiler produce verbose output that lists
16840 # what "hidden" libraries, object files and flags are used when
16841 # linking a shared library.
16842 #
16843 # There doesn't appear to be a way to prevent this compiler from
16844 # explicitly linking system object files so we need to strip them
16845 # from the output so that they don't get included in the library
16846 # dependencies.
16847 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16848 ;;
16849 *)
16850 if test "$GXX" = yes; then
16851 if test $with_gnu_ld = no; then
16852 case $host_cpu in
16853 hppa*64*)
16854 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16855 ;;
16856 ia64*)
16857 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16858 ;;
16859 *)
16860 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'
16861 ;;
16862 esac
16863 fi
16864 else
16865 # FIXME: insert proper C++ library support
16866 ld_shlibs_CXX=no
16867 fi
16868 ;;
16869 esac
16870 ;;
16871
16872 interix[3-9]*)
16873 hardcode_direct_CXX=no
16874 hardcode_shlibpath_var_CXX=no
16875 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16876 export_dynamic_flag_spec_CXX='${wl}-E'
16877 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16878 # Instead, shared libraries are loaded at an image base (0x10000000 by
16879 # default) and relocated if they conflict, which is a slow very memory
16880 # consuming and fragmenting process. To avoid this, we pick a random,
16881 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16882 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16883 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'
16884 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'
16885 ;;
16886 irix5* | irix6*)
16887 case $cc_basename in
16888 CC*)
16889 # SGI C++
16890 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16891
16892 # Archives containing C++ object files must be created using
16893 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16894 # necessary to make sure instantiated templates are included
16895 # in the archive.
16896 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16897 ;;
16898 *)
16899 if test "$GXX" = yes; then
16900 if test "$with_gnu_ld" = no; then
16901 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16902 else
16903 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
16904 fi
16905 fi
16906 link_all_deplibs_CXX=yes
16907 ;;
16908 esac
16909 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16910 hardcode_libdir_separator_CXX=:
16911 inherit_rpath_CXX=yes
16912 ;;
16913
16914 linux* | k*bsd*-gnu)
16915 case $cc_basename in
16916 KCC*)
16917 # Kuck and Associates, Inc. (KAI) C++ Compiler
16918
16919 # KCC will only create a shared library if the output file
16920 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16921 # to its proper name (with version) after linking.
16922 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'
16923 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'
16924 # Commands to make compiler produce verbose output that lists
16925 # what "hidden" libraries, object files and flags are used when
16926 # linking a shared library.
16927 #
16928 # There doesn't appear to be a way to prevent this compiler from
16929 # explicitly linking system object files so we need to strip them
16930 # from the output so that they don't get included in the library
16931 # dependencies.
16932 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16933
16934 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16935 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16936
16937 # Archives containing C++ object files must be created using
16938 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16939 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16940 ;;
16941 icpc* | ecpc* )
16942 # Intel C++
16943 with_gnu_ld=yes
16944 # version 8.0 and above of icpc choke on multiply defined symbols
16945 # if we add $predep_objects and $postdep_objects, however 7.1 and
16946 # earlier do not add the objects themselves.
16947 case `$CC -V 2>&1` in
16948 *"Version 7."*)
16949 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16950 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'
16951 ;;
16952 *) # Version 8.0 or newer
16953 tmp_idyn=
16954 case $host_cpu in
16955 ia64*) tmp_idyn=' -i_dynamic';;
16956 esac
16957 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16958 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'
16959 ;;
16960 esac
16961 archive_cmds_need_lc_CXX=no
16962 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16963 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16964 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16965 ;;
16966 pgCC* | pgcpp*)
16967 # Portland Group C++ compiler
16968 case `$CC -V` in
16969 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16970 prelink_cmds_CXX='tpldir=Template.dir~
16971 rm -rf $tpldir~
16972 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16973 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16974 old_archive_cmds_CXX='tpldir=Template.dir~
16975 rm -rf $tpldir~
16976 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16977 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16978 $RANLIB $oldlib'
16979 archive_cmds_CXX='tpldir=Template.dir~
16980 rm -rf $tpldir~
16981 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16982 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16983 archive_expsym_cmds_CXX='tpldir=Template.dir~
16984 rm -rf $tpldir~
16985 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16986 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16987 ;;
16988 *) # Version 6 will use weak symbols
16989 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16990 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'
16991 ;;
16992 esac
16993
16994 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16995 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16996 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
16997 ;;
16998 cxx*)
16999 # Compaq C++
17000 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17001 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'
17002
17003 runpath_var=LD_RUN_PATH
17004 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17005 hardcode_libdir_separator_CXX=:
17006
17007 # Commands to make compiler produce verbose output that lists
17008 # what "hidden" libraries, object files and flags are used when
17009 # linking a shared library.
17010 #
17011 # There doesn't appear to be a way to prevent this compiler from
17012 # explicitly linking system object files so we need to strip them
17013 # from the output so that they don't get included in the library
17014 # dependencies.
17015 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
17016 ;;
17017 xl*)
17018 # IBM XL 8.0 on PPC, with GNU ld
17019 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17020 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17021 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17022 if test "x$supports_anon_versioning" = xyes; then
17023 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17024 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17025 echo "local: *; };" >> $output_objdir/$libname.ver~
17026 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17027 fi
17028 ;;
17029 *)
17030 case `$CC -V 2>&1 | sed 5q` in
17031 *Sun\ C*)
17032 # Sun C++ 5.9
17033 no_undefined_flag_CXX=' -zdefs'
17034 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17035 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'
17036 hardcode_libdir_flag_spec_CXX='-R$libdir'
17037 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17038 compiler_needs_object_CXX=yes
17039
17040 # Not sure whether something based on
17041 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17042 # would be better.
17043 output_verbose_link_cmd='echo'
17044
17045 # Archives containing C++ object files must be created using
17046 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17047 # necessary to make sure instantiated templates are included
17048 # in the archive.
17049 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17050 ;;
17051 esac
17052 ;;
17053 esac
17054 ;;
17055
17056 lynxos*)
17057 # FIXME: insert proper C++ library support
17058 ld_shlibs_CXX=no
17059 ;;
17060
17061 m88k*)
17062 # FIXME: insert proper C++ library support
17063 ld_shlibs_CXX=no
17064 ;;
17065
17066 mvs*)
17067 case $cc_basename in
17068 cxx*)
17069 # FIXME: insert proper C++ library support
17070 ld_shlibs_CXX=no
17071 ;;
17072 *)
17073 # FIXME: insert proper C++ library support
17074 ld_shlibs_CXX=no
17075 ;;
17076 esac
17077 ;;
17078
17079 netbsd*)
17080 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17081 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17082 wlarc=
17083 hardcode_libdir_flag_spec_CXX='-R$libdir'
17084 hardcode_direct_CXX=yes
17085 hardcode_shlibpath_var_CXX=no
17086 fi
17087 # Workaround some broken pre-1.5 toolchains
17088 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17089 ;;
17090
17091 *nto* | *qnx*)
17092 ld_shlibs_CXX=yes
17093 ;;
17094
17095 openbsd2*)
17096 # C++ shared libraries are fairly broken
17097 ld_shlibs_CXX=no
17098 ;;
17099
17100 openbsd*)
17101 if test -f /usr/libexec/ld.so; then
17102 hardcode_direct_CXX=yes
17103 hardcode_shlibpath_var_CXX=no
17104 hardcode_direct_absolute_CXX=yes
17105 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17106 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17107 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17108 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17109 export_dynamic_flag_spec_CXX='${wl}-E'
17110 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17111 fi
17112 output_verbose_link_cmd=echo
17113 else
17114 ld_shlibs_CXX=no
17115 fi
17116 ;;
17117
17118 osf3* | osf4* | osf5*)
17119 case $cc_basename in
17120 KCC*)
17121 # Kuck and Associates, Inc. (KAI) C++ Compiler
17122
17123 # KCC will only create a shared library if the output file
17124 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17125 # to its proper name (with version) after linking.
17126 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'
17127
17128 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17129 hardcode_libdir_separator_CXX=:
17130
17131 # Archives containing C++ object files must be created using
17132 # the KAI C++ compiler.
17133 case $host in
17134 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17135 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17136 esac
17137 ;;
17138 RCC*)
17139 # Rational C++ 2.4.1
17140 # FIXME: insert proper C++ library support
17141 ld_shlibs_CXX=no
17142 ;;
17143 cxx*)
17144 case $host in
17145 osf3*)
17146 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17147 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
17148 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17149 ;;
17150 *)
17151 allow_undefined_flag_CXX=' -expect_unresolved \*'
17152 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
17153 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17154 echo "-hidden">> $lib.exp~
17155 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
17156 $RM $lib.exp'
17157 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17158 ;;
17159 esac
17160
17161 hardcode_libdir_separator_CXX=:
17162
17163 # Commands to make compiler produce verbose output that lists
17164 # what "hidden" libraries, object files and flags are used when
17165 # linking a shared library.
17166 #
17167 # There doesn't appear to be a way to prevent this compiler from
17168 # explicitly linking system object files so we need to strip them
17169 # from the output so that they don't get included in the library
17170 # dependencies.
17171 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
17172 ;;
17173 *)
17174 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17175 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17176 case $host in
17177 osf3*)
17178 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17179 ;;
17180 *)
17181 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17182 ;;
17183 esac
17184
17185 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17186 hardcode_libdir_separator_CXX=:
17187
17188 # Commands to make compiler produce verbose output that lists
17189 # what "hidden" libraries, object files and flags are used when
17190 # linking a shared library.
17191 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17192
17193 else
17194 # FIXME: insert proper C++ library support
17195 ld_shlibs_CXX=no
17196 fi
17197 ;;
17198 esac
17199 ;;
17200
17201 psos*)
17202 # FIXME: insert proper C++ library support
17203 ld_shlibs_CXX=no
17204 ;;
17205
17206 sunos4*)
17207 case $cc_basename in
17208 CC*)
17209 # Sun C++ 4.x
17210 # FIXME: insert proper C++ library support
17211 ld_shlibs_CXX=no
17212 ;;
17213 lcc*)
17214 # Lucid
17215 # FIXME: insert proper C++ library support
17216 ld_shlibs_CXX=no
17217 ;;
17218 *)
17219 # FIXME: insert proper C++ library support
17220 ld_shlibs_CXX=no
17221 ;;
17222 esac
17223 ;;
17224
17225 solaris*)
17226 case $cc_basename in
17227 CC*)
17228 # Sun C++ 4.2, 5.x and Centerline C++
17229 archive_cmds_need_lc_CXX=yes
17230 no_undefined_flag_CXX=' -zdefs'
17231 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17232 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17233 $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'
17234
17235 hardcode_libdir_flag_spec_CXX='-R$libdir'
17236 hardcode_shlibpath_var_CXX=no
17237 case $host_os in
17238 solaris2.[0-5] | solaris2.[0-5].*) ;;
17239 *)
17240 # The compiler driver will combine and reorder linker options,
17241 # but understands `-z linker_flag'.
17242 # Supported since Solaris 2.6 (maybe 2.5.1?)
17243 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17244 ;;
17245 esac
17246 link_all_deplibs_CXX=yes
17247
17248 output_verbose_link_cmd='echo'
17249
17250 # Archives containing C++ object files must be created using
17251 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17252 # necessary to make sure instantiated templates are included
17253 # in the archive.
17254 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17255 ;;
17256 gcx*)
17257 # Green Hills C++ Compiler
17258 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17259
17260 # The C++ compiler must be used to create the archive.
17261 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17262 ;;
17263 *)
17264 # GNU C++ compiler with Solaris linker
17265 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17266 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17267 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17268 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17269 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17270 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17271
17272 # Commands to make compiler produce verbose output that lists
17273 # what "hidden" libraries, object files and flags are used when
17274 # linking a shared library.
17275 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17276 else
17277 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17278 # platform.
17279 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17280 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17281 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17282
17283 # Commands to make compiler produce verbose output that lists
17284 # what "hidden" libraries, object files and flags are used when
17285 # linking a shared library.
17286 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17287 fi
17288
17289 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17290 case $host_os in
17291 solaris2.[0-5] | solaris2.[0-5].*) ;;
17292 *)
17293 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17294 ;;
17295 esac
17296 fi
17297 ;;
17298 esac
17299 ;;
17300
17301 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17302 no_undefined_flag_CXX='${wl}-z,text'
17303 archive_cmds_need_lc_CXX=no
17304 hardcode_shlibpath_var_CXX=no
17305 runpath_var='LD_RUN_PATH'
17306
17307 case $cc_basename in
17308 CC*)
17309 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17310 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17311 ;;
17312 *)
17313 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17314 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17315 ;;
17316 esac
17317 ;;
17318
17319 sysv5* | sco3.2v5* | sco5v6*)
17320 # Note: We can NOT use -z defs as we might desire, because we do not
17321 # link with -lc, and that would cause any symbols used from libc to
17322 # always be unresolved, which means just about no library would
17323 # ever link correctly. If we're not using GNU ld we use -z text
17324 # though, which does catch some bad symbols but isn't as heavy-handed
17325 # as -z defs.
17326 no_undefined_flag_CXX='${wl}-z,text'
17327 allow_undefined_flag_CXX='${wl}-z,nodefs'
17328 archive_cmds_need_lc_CXX=no
17329 hardcode_shlibpath_var_CXX=no
17330 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17331 hardcode_libdir_separator_CXX=':'
17332 link_all_deplibs_CXX=yes
17333 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17334 runpath_var='LD_RUN_PATH'
17335
17336 case $cc_basename in
17337 CC*)
17338 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17339 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17340 ;;
17341 *)
17342 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17343 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17344 ;;
17345 esac
17346 ;;
17347
17348 tandem*)
17349 case $cc_basename in
17350 NCC*)
17351 # NonStop-UX NCC 3.20
17352 # FIXME: insert proper C++ library support
17353 ld_shlibs_CXX=no
17354 ;;
17355 *)
17356 # FIXME: insert proper C++ library support
17357 ld_shlibs_CXX=no
17358 ;;
17359 esac
17360 ;;
17361
17362 vxworks*)
17363 # FIXME: insert proper C++ library support
17364 ld_shlibs_CXX=no
17365 ;;
17366
17367 *)
17368 # FIXME: insert proper C++ library support
17369 ld_shlibs_CXX=no
17370 ;;
17371 esac
17372
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17374$as_echo "$ld_shlibs_CXX" >&6; }
17375 test "$ld_shlibs_CXX" = no && can_build_shared=no
17376
17377 GCC_CXX="$GXX"
17378 LD_CXX="$LD"
17379
17380 ## CAVEAT EMPTOR:
17381 ## There is no encapsulation within the following macros, do not change
17382 ## the running order or otherwise move them around unless you know exactly
17383 ## what you are doing...
17384 # Dependencies to place before and after the object being linked:
17385predep_objects_CXX=
17386postdep_objects_CXX=
17387predeps_CXX=
17388postdeps_CXX=
17389compiler_lib_search_path_CXX=
17390
17391cat > conftest.$ac_ext <<_LT_EOF
17392class Foo
17393{
17394public:
17395 Foo (void) { a = 0; }
17396private:
17397 int a;
17398};
17399_LT_EOF
17400
17401if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17402 (eval $ac_compile) 2>&5
17403 ac_status=$?
17404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17405 test $ac_status = 0; }; then
17406 # Parse the compiler output and extract the necessary
17407 # objects, libraries and library flags.
17408
17409 # Sentinel used to keep track of whether or not we are before
17410 # the conftest object file.
17411 pre_test_object_deps_done=no
17412
17413 for p in `eval "$output_verbose_link_cmd"`; do
17414 case $p in
17415
17416 -L* | -R* | -l*)
17417 # Some compilers place space between "-{L,R}" and the path.
17418 # Remove the space.
17419 if test $p = "-L" ||
17420 test $p = "-R"; then
17421 prev=$p
17422 continue
17423 else
17424 prev=
17425 fi
17426
17427 if test "$pre_test_object_deps_done" = no; then
17428 case $p in
17429 -L* | -R*)
17430 # Internal compiler library paths should come after those
17431 # provided the user. The postdeps already come after the
17432 # user supplied libs so there is no need to process them.
17433 if test -z "$compiler_lib_search_path_CXX"; then
17434 compiler_lib_search_path_CXX="${prev}${p}"
17435 else
17436 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17437 fi
17438 ;;
17439 # The "-l" case would never come before the object being
17440 # linked, so don't bother handling this case.
17441 esac
17442 else
17443 if test -z "$postdeps_CXX"; then
17444 postdeps_CXX="${prev}${p}"
17445 else
17446 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17447 fi
17448 fi
17449 ;;
17450
17451 *.$objext)
17452 # This assumes that the test object file only shows up
17453 # once in the compiler output.
17454 if test "$p" = "conftest.$objext"; then
17455 pre_test_object_deps_done=yes
17456 continue
17457 fi
17458
17459 if test "$pre_test_object_deps_done" = no; then
17460 if test -z "$predep_objects_CXX"; then
17461 predep_objects_CXX="$p"
17462 else
17463 predep_objects_CXX="$predep_objects_CXX $p"
17464 fi
17465 else
17466 if test -z "$postdep_objects_CXX"; then
17467 postdep_objects_CXX="$p"
17468 else
17469 postdep_objects_CXX="$postdep_objects_CXX $p"
17470 fi
17471 fi
17472 ;;
17473
17474 *) ;; # Ignore the rest.
17475
17476 esac
17477 done
17478
17479 # Clean up.
17480 rm -f a.out a.exe
17481else
17482 echo "libtool.m4: error: problem compiling CXX test program"
17483fi
17484
17485$RM -f confest.$objext
17486
17487# PORTME: override above test on systems where it is broken
17488case $host_os in
17489interix[3-9]*)
17490 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17491 # hack all around it, let's just trust "g++" to DTRT.
17492 predep_objects_CXX=
17493 postdep_objects_CXX=
17494 postdeps_CXX=
17495 ;;
17496
17497linux*)
17498 case `$CC -V 2>&1 | sed 5q` in
17499 *Sun\ C*)
17500 # Sun C++ 5.9
17501
17502 # The more standards-conforming stlport4 library is
17503 # incompatible with the Cstd library. Avoid specifying
17504 # it if it's in CXXFLAGS. Ignore libCrun as
17505 # -library=stlport4 depends on it.
17506 case " $CXX $CXXFLAGS " in
17507 *" -library=stlport4 "*)
17508 solaris_use_stlport4=yes
17509 ;;
17510 esac
17511
17512 if test "$solaris_use_stlport4" != yes; then
17513 postdeps_CXX='-library=Cstd -library=Crun'
17514 fi
17515 ;;
17516 esac
17517 ;;
17518
17519solaris*)
17520 case $cc_basename in
17521 CC*)
17522 # The more standards-conforming stlport4 library is
17523 # incompatible with the Cstd library. Avoid specifying
17524 # it if it's in CXXFLAGS. Ignore libCrun as
17525 # -library=stlport4 depends on it.
17526 case " $CXX $CXXFLAGS " in
17527 *" -library=stlport4 "*)
17528 solaris_use_stlport4=yes
17529 ;;
17530 esac
17531
17532 # Adding this requires a known-good setup of shared libraries for
17533 # Sun compiler versions before 5.6, else PIC objects from an old
17534 # archive will be linked into the output, leading to subtle bugs.
17535 if test "$solaris_use_stlport4" != yes; then
17536 postdeps_CXX='-library=Cstd -library=Crun'
17537 fi
17538 ;;
17539 esac
17540 ;;
17541esac
17542
17543
17544case " $postdeps_CXX " in
17545*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17546esac
17547 compiler_lib_search_dirs_CXX=
17548if test -n "${compiler_lib_search_path_CXX}"; then
17549 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17550fi
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582 lt_prog_compiler_wl_CXX=
17583lt_prog_compiler_pic_CXX=
17584lt_prog_compiler_static_CXX=
17585
17586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17587$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17588
17589 # C++ specific cases for pic, static, wl, etc.
17590 if test "$GXX" = yes; then
17591 lt_prog_compiler_wl_CXX='-Wl,'
17592 lt_prog_compiler_static_CXX='-static'
17593
17594 case $host_os in
17595 aix*)
17596 # All AIX code is PIC.
17597 if test "$host_cpu" = ia64; then
17598 # AIX 5 now supports IA64 processor
17599 lt_prog_compiler_static_CXX='-Bstatic'
17600 fi
17601 ;;
17602
17603 amigaos*)
17604 case $host_cpu in
17605 powerpc)
17606 # see comment about AmigaOS4 .so support
17607 lt_prog_compiler_pic_CXX='-fPIC'
17608 ;;
17609 m68k)
17610 # FIXME: we need at least 68020 code to build shared libraries, but
17611 # adding the `-m68020' flag to GCC prevents building anything better,
17612 # like `-m68040'.
17613 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17614 ;;
17615 esac
17616 ;;
17617
17618 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17619 # PIC is the default for these OSes.
17620 ;;
17621 mingw* | cygwin* | os2* | pw32* | cegcc*)
17622 # This hack is so that the source file can tell whether it is being
17623 # built for inclusion in a dll (and should export symbols for example).
17624 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17625 # (--disable-auto-import) libraries
17626 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17627 ;;
17628 darwin* | rhapsody*)
17629 # PIC is the default on this platform
17630 # Common symbols not allowed in MH_DYLIB files
17631 lt_prog_compiler_pic_CXX='-fno-common'
17632 ;;
17633 *djgpp*)
17634 # DJGPP does not support shared libraries at all
17635 lt_prog_compiler_pic_CXX=
17636 ;;
17637 interix[3-9]*)
17638 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17639 # Instead, we relocate shared libraries at runtime.
17640 ;;
17641 sysv4*MP*)
17642 if test -d /usr/nec; then
17643 lt_prog_compiler_pic_CXX=-Kconform_pic
17644 fi
17645 ;;
17646 hpux*)
17647 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17648 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17649 # sets the default TLS model and affects inlining.
17650 case $host_cpu in
17651 hppa*64*)
17652 ;;
17653 *)
17654 lt_prog_compiler_pic_CXX='-fPIC'
17655 ;;
17656 esac
17657 ;;
17658 *qnx* | *nto*)
17659 # QNX uses GNU C++, but need to define -shared option too, otherwise
17660 # it will coredump.
17661 lt_prog_compiler_pic_CXX='-fPIC -shared'
17662 ;;
17663 *)
17664 lt_prog_compiler_pic_CXX='-fPIC'
17665 ;;
17666 esac
17667 else
17668 case $host_os in
17669 aix[4-9]*)
17670 # All AIX code is PIC.
17671 if test "$host_cpu" = ia64; then
17672 # AIX 5 now supports IA64 processor
17673 lt_prog_compiler_static_CXX='-Bstatic'
17674 else
17675 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17676 fi
17677 ;;
17678 chorus*)
17679 case $cc_basename in
17680 cxch68*)
17681 # Green Hills C++ Compiler
17682 # _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"
17683 ;;
17684 esac
17685 ;;
17686 dgux*)
17687 case $cc_basename in
17688 ec++*)
17689 lt_prog_compiler_pic_CXX='-KPIC'
17690 ;;
17691 ghcx*)
17692 # Green Hills C++ Compiler
17693 lt_prog_compiler_pic_CXX='-pic'
17694 ;;
17695 *)
17696 ;;
17697 esac
17698 ;;
17699 freebsd* | dragonfly*)
17700 # FreeBSD uses GNU C++
17701 ;;
17702 hpux9* | hpux10* | hpux11*)
17703 case $cc_basename in
17704 CC*)
17705 lt_prog_compiler_wl_CXX='-Wl,'
17706 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17707 if test "$host_cpu" != ia64; then
17708 lt_prog_compiler_pic_CXX='+Z'
17709 fi
17710 ;;
17711 aCC*)
17712 lt_prog_compiler_wl_CXX='-Wl,'
17713 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17714 case $host_cpu in
17715 hppa*64*|ia64*)
17716 # +Z the default
17717 ;;
17718 *)
17719 lt_prog_compiler_pic_CXX='+Z'
17720 ;;
17721 esac
17722 ;;
17723 *)
17724 ;;
17725 esac
17726 ;;
17727 interix*)
17728 # This is c89, which is MS Visual C++ (no shared libs)
17729 # Anyone wants to do a port?
17730 ;;
17731 irix5* | irix6* | nonstopux*)
17732 case $cc_basename in
17733 CC*)
17734 lt_prog_compiler_wl_CXX='-Wl,'
17735 lt_prog_compiler_static_CXX='-non_shared'
17736 # CC pic flag -KPIC is the default.
17737 ;;
17738 *)
17739 ;;
17740 esac
17741 ;;
17742 linux* | k*bsd*-gnu)
17743 case $cc_basename in
17744 KCC*)
17745 # KAI C++ Compiler
17746 lt_prog_compiler_wl_CXX='--backend -Wl,'
17747 lt_prog_compiler_pic_CXX='-fPIC'
17748 ;;
17749 ecpc* )
17750 # old Intel C++ for x86_64 which still supported -KPIC.
17751 lt_prog_compiler_wl_CXX='-Wl,'
17752 lt_prog_compiler_pic_CXX='-KPIC'
17753 lt_prog_compiler_static_CXX='-static'
17754 ;;
17755 icpc* )
17756 # Intel C++, used to be incompatible with GCC.
17757 # ICC 10 doesn't accept -KPIC any more.
17758 lt_prog_compiler_wl_CXX='-Wl,'
17759 lt_prog_compiler_pic_CXX='-fPIC'
17760 lt_prog_compiler_static_CXX='-static'
17761 ;;
17762 pgCC* | pgcpp*)
17763 # Portland Group C++ compiler
17764 lt_prog_compiler_wl_CXX='-Wl,'
17765 lt_prog_compiler_pic_CXX='-fpic'
17766 lt_prog_compiler_static_CXX='-Bstatic'
17767 ;;
17768 cxx*)
17769 # Compaq C++
17770 # Make sure the PIC flag is empty. It appears that all Alpha
17771 # Linux and Compaq Tru64 Unix objects are PIC.
17772 lt_prog_compiler_pic_CXX=
17773 lt_prog_compiler_static_CXX='-non_shared'
17774 ;;
17775 xlc* | xlC*)
17776 # IBM XL 8.0 on PPC
17777 lt_prog_compiler_wl_CXX='-Wl,'
17778 lt_prog_compiler_pic_CXX='-qpic'
17779 lt_prog_compiler_static_CXX='-qstaticlink'
17780 ;;
17781 *)
17782 case `$CC -V 2>&1 | sed 5q` in
17783 *Sun\ C*)
17784 # Sun C++ 5.9
17785 lt_prog_compiler_pic_CXX='-KPIC'
17786 lt_prog_compiler_static_CXX='-Bstatic'
17787 lt_prog_compiler_wl_CXX='-Qoption ld '
17788 ;;
17789 esac
17790 ;;
17791 esac
17792 ;;
17793 lynxos*)
17794 ;;
17795 m88k*)
17796 ;;
17797 mvs*)
17798 case $cc_basename in
17799 cxx*)
17800 lt_prog_compiler_pic_CXX='-W c,exportall'
17801 ;;
17802 *)
17803 ;;
17804 esac
17805 ;;
17806 netbsd*)
17807 ;;
17808 *qnx* | *nto*)
17809 # QNX uses GNU C++, but need to define -shared option too, otherwise
17810 # it will coredump.
17811 lt_prog_compiler_pic_CXX='-fPIC -shared'
17812 ;;
17813 osf3* | osf4* | osf5*)
17814 case $cc_basename in
17815 KCC*)
17816 lt_prog_compiler_wl_CXX='--backend -Wl,'
17817 ;;
17818 RCC*)
17819 # Rational C++ 2.4.1
17820 lt_prog_compiler_pic_CXX='-pic'
17821 ;;
17822 cxx*)
17823 # Digital/Compaq C++
17824 lt_prog_compiler_wl_CXX='-Wl,'
17825 # Make sure the PIC flag is empty. It appears that all Alpha
17826 # Linux and Compaq Tru64 Unix objects are PIC.
17827 lt_prog_compiler_pic_CXX=
17828 lt_prog_compiler_static_CXX='-non_shared'
17829 ;;
17830 *)
17831 ;;
17832 esac
17833 ;;
17834 psos*)
17835 ;;
17836 solaris*)
17837 case $cc_basename in
17838 CC*)
17839 # Sun C++ 4.2, 5.x and Centerline C++
17840 lt_prog_compiler_pic_CXX='-KPIC'
17841 lt_prog_compiler_static_CXX='-Bstatic'
17842 lt_prog_compiler_wl_CXX='-Qoption ld '
17843 ;;
17844 gcx*)
17845 # Green Hills C++ Compiler
17846 lt_prog_compiler_pic_CXX='-PIC'
17847 ;;
17848 *)
17849 ;;
17850 esac
17851 ;;
17852 sunos4*)
17853 case $cc_basename in
17854 CC*)
17855 # Sun C++ 4.x
17856 lt_prog_compiler_pic_CXX='-pic'
17857 lt_prog_compiler_static_CXX='-Bstatic'
17858 ;;
17859 lcc*)
17860 # Lucid
17861 lt_prog_compiler_pic_CXX='-pic'
17862 ;;
17863 *)
17864 ;;
17865 esac
17866 ;;
17867 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17868 case $cc_basename in
17869 CC*)
17870 lt_prog_compiler_wl_CXX='-Wl,'
17871 lt_prog_compiler_pic_CXX='-KPIC'
17872 lt_prog_compiler_static_CXX='-Bstatic'
17873 ;;
17874 esac
17875 ;;
17876 tandem*)
17877 case $cc_basename in
17878 NCC*)
17879 # NonStop-UX NCC 3.20
17880 lt_prog_compiler_pic_CXX='-KPIC'
17881 ;;
17882 *)
17883 ;;
17884 esac
17885 ;;
17886 vxworks*)
17887 ;;
17888 *)
17889 lt_prog_compiler_can_build_shared_CXX=no
17890 ;;
17891 esac
17892 fi
17893
17894case $host_os in
17895 # For platforms which do not support PIC, -DPIC is meaningless:
17896 *djgpp*)
17897 lt_prog_compiler_pic_CXX=
17898 ;;
17899 *)
17900 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17901 ;;
17902esac
17903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
17904$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17905
17906
17907
17908#
17909# Check to make sure the PIC flag actually works.
17910#
17911if test -n "$lt_prog_compiler_pic_CXX"; then
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17913$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17914if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
17915 $as_echo_n "(cached) " >&6
17916else
17917 lt_cv_prog_compiler_pic_works_CXX=no
17918 ac_outfile=conftest.$ac_objext
17919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17920 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17921 # Insert the option either (1) after the last *FLAGS variable, or
17922 # (2) before a word containing "conftest.", or (3) at the end.
17923 # Note that $ac_compile itself does not contain backslashes and begins
17924 # with a dollar sign (not a hyphen), so the echo should work correctly.
17925 # The option is referenced via a variable to avoid confusing sed.
17926 lt_compile=`echo "$ac_compile" | $SED \
17927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17929 -e 's:$: $lt_compiler_flag:'`
cristy746a5842010-10-22 20:20:08 +000017930 (eval echo "\"\$as_me:17930: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000017931 (eval "$lt_compile" 2>conftest.err)
17932 ac_status=$?
17933 cat conftest.err >&5
cristy746a5842010-10-22 20:20:08 +000017934 echo "$as_me:17934: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000017935 if (exit $ac_status) && test -s "$ac_outfile"; then
17936 # The compiler can only warn and ignore the option if not recognized
17937 # So say no if there are warnings other than the usual output.
17938 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17940 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17941 lt_cv_prog_compiler_pic_works_CXX=yes
17942 fi
17943 fi
17944 $RM conftest*
17945
17946fi
17947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17948$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17949
17950if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17951 case $lt_prog_compiler_pic_CXX in
17952 "" | " "*) ;;
17953 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17954 esac
17955else
17956 lt_prog_compiler_pic_CXX=
17957 lt_prog_compiler_can_build_shared_CXX=no
17958fi
17959
17960fi
17961
17962
17963
17964#
17965# Check to make sure the static flag actually works.
17966#
17967wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17969$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17970if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
17971 $as_echo_n "(cached) " >&6
17972else
17973 lt_cv_prog_compiler_static_works_CXX=no
17974 save_LDFLAGS="$LDFLAGS"
17975 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17976 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17977 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17978 # The linker can only warn and ignore the option if not recognized
17979 # So say no if there are warnings
17980 if test -s conftest.err; then
17981 # Append any errors to the config.log.
17982 cat conftest.err 1>&5
17983 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17984 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17985 if diff conftest.exp conftest.er2 >/dev/null; then
17986 lt_cv_prog_compiler_static_works_CXX=yes
17987 fi
17988 else
17989 lt_cv_prog_compiler_static_works_CXX=yes
17990 fi
17991 fi
17992 $RM -r conftest*
17993 LDFLAGS="$save_LDFLAGS"
17994
17995fi
17996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17997$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17998
17999if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18000 :
18001else
18002 lt_prog_compiler_static_CXX=
18003fi
18004
18005
18006
18007
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18009$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18010if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
18011 $as_echo_n "(cached) " >&6
18012else
18013 lt_cv_prog_compiler_c_o_CXX=no
18014 $RM -r conftest 2>/dev/null
18015 mkdir conftest
18016 cd conftest
18017 mkdir out
18018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18019
18020 lt_compiler_flag="-o out/conftest2.$ac_objext"
18021 # Insert the option either (1) after the last *FLAGS variable, or
18022 # (2) before a word containing "conftest.", or (3) at the end.
18023 # Note that $ac_compile itself does not contain backslashes and begins
18024 # with a dollar sign (not a hyphen), so the echo should work correctly.
18025 lt_compile=`echo "$ac_compile" | $SED \
18026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18028 -e 's:$: $lt_compiler_flag:'`
cristy746a5842010-10-22 20:20:08 +000018029 (eval echo "\"\$as_me:18029: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018030 (eval "$lt_compile" 2>out/conftest.err)
18031 ac_status=$?
18032 cat out/conftest.err >&5
cristy746a5842010-10-22 20:20:08 +000018033 echo "$as_me:18033: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018034 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18035 then
18036 # The compiler can only warn and ignore the option if not recognized
18037 # So say no if there are warnings
18038 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18039 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18040 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18041 lt_cv_prog_compiler_c_o_CXX=yes
18042 fi
18043 fi
18044 chmod u+w . 2>&5
18045 $RM conftest*
18046 # SGI C++ compiler will create directory out/ii_files/ for
18047 # template instantiation
18048 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18049 $RM out/* && rmdir out
18050 cd ..
18051 $RM -r conftest
18052 $RM conftest*
18053
18054fi
18055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18056$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18057
18058
18059
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18061$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18062if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
18063 $as_echo_n "(cached) " >&6
18064else
18065 lt_cv_prog_compiler_c_o_CXX=no
18066 $RM -r conftest 2>/dev/null
18067 mkdir conftest
18068 cd conftest
18069 mkdir out
18070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18071
18072 lt_compiler_flag="-o out/conftest2.$ac_objext"
18073 # Insert the option either (1) after the last *FLAGS variable, or
18074 # (2) before a word containing "conftest.", or (3) at the end.
18075 # Note that $ac_compile itself does not contain backslashes and begins
18076 # with a dollar sign (not a hyphen), so the echo should work correctly.
18077 lt_compile=`echo "$ac_compile" | $SED \
18078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18080 -e 's:$: $lt_compiler_flag:'`
cristy746a5842010-10-22 20:20:08 +000018081 (eval echo "\"\$as_me:18081: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018082 (eval "$lt_compile" 2>out/conftest.err)
18083 ac_status=$?
18084 cat out/conftest.err >&5
cristy746a5842010-10-22 20:20:08 +000018085 echo "$as_me:18085: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018086 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18087 then
18088 # The compiler can only warn and ignore the option if not recognized
18089 # So say no if there are warnings
18090 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18091 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18092 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18093 lt_cv_prog_compiler_c_o_CXX=yes
18094 fi
18095 fi
18096 chmod u+w . 2>&5
18097 $RM conftest*
18098 # SGI C++ compiler will create directory out/ii_files/ for
18099 # template instantiation
18100 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18101 $RM out/* && rmdir out
18102 cd ..
18103 $RM -r conftest
18104 $RM conftest*
18105
18106fi
18107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18108$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18109
18110
18111
18112
18113hard_links="nottested"
18114if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18115 # do not overwrite the value of need_locks provided by the user
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18117$as_echo_n "checking if we can lock with hard links... " >&6; }
18118 hard_links=yes
18119 $RM conftest*
18120 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18121 touch conftest.a
18122 ln conftest.a conftest.b 2>&5 || hard_links=no
18123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18125$as_echo "$hard_links" >&6; }
18126 if test "$hard_links" = no; then
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18128$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18129 need_locks=warn
18130 fi
18131else
18132 need_locks=no
18133fi
18134
18135
18136
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18138$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18139
18140 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18141 case $host_os in
18142 aix[4-9]*)
18143 # If we're using GNU nm, then we don't want the "-C" option.
18144 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18145 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18146 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18147 else
18148 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'
18149 fi
18150 ;;
18151 pw32*)
18152 export_symbols_cmds_CXX="$ltdll_cmds"
18153 ;;
18154 cygwin* | mingw* | cegcc*)
18155 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'
18156 ;;
18157 *)
18158 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18159 ;;
18160 esac
18161 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18162
18163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18164$as_echo "$ld_shlibs_CXX" >&6; }
18165test "$ld_shlibs_CXX" = no && can_build_shared=no
18166
18167with_gnu_ld_CXX=$with_gnu_ld
18168
18169
18170
18171
18172
18173
18174#
18175# Do we need to explicitly link libc?
18176#
18177case "x$archive_cmds_need_lc_CXX" in
18178x|xyes)
18179 # Assume -lc should be added
18180 archive_cmds_need_lc_CXX=yes
18181
18182 if test "$enable_shared" = yes && test "$GCC" = yes; then
18183 case $archive_cmds_CXX in
18184 *'~'*)
18185 # FIXME: we may have to deal with multi-command sequences.
18186 ;;
18187 '$CC '*)
18188 # Test whether the compiler implicitly links with -lc since on some
18189 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18190 # to ld, don't add -lc before -lgcc.
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18192$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18193 $RM conftest*
18194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18195
18196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18197 (eval $ac_compile) 2>&5
18198 ac_status=$?
18199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18200 test $ac_status = 0; } 2>conftest.err; then
18201 soname=conftest
18202 lib=conftest
18203 libobjs=conftest.$ac_objext
18204 deplibs=
18205 wl=$lt_prog_compiler_wl_CXX
18206 pic_flag=$lt_prog_compiler_pic_CXX
18207 compiler_flags=-v
18208 linker_flags=-v
18209 verstring=
18210 output_objdir=.
18211 libname=conftest
18212 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18213 allow_undefined_flag_CXX=
18214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18215 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18216 ac_status=$?
18217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18218 test $ac_status = 0; }
18219 then
18220 archive_cmds_need_lc_CXX=no
18221 else
18222 archive_cmds_need_lc_CXX=yes
18223 fi
18224 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18225 else
18226 cat conftest.err 1>&5
18227 fi
18228 $RM conftest*
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
18230$as_echo "$archive_cmds_need_lc_CXX" >&6; }
18231 ;;
18232 esac
18233 fi
18234 ;;
18235esac
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18301$as_echo_n "checking dynamic linker characteristics... " >&6; }
18302
18303library_names_spec=
18304libname_spec='lib$name'
18305soname_spec=
18306shrext_cmds=".so"
18307postinstall_cmds=
18308postuninstall_cmds=
18309finish_cmds=
18310finish_eval=
18311shlibpath_var=
18312shlibpath_overrides_runpath=unknown
18313version_type=none
18314dynamic_linker="$host_os ld.so"
18315sys_lib_dlsearch_path_spec="/lib /usr/lib"
18316need_lib_prefix=unknown
18317hardcode_into_libs=no
18318
18319# when you set need_version to no, make sure it does not cause -set_version
18320# flags to be left without arguments
18321need_version=unknown
18322
18323case $host_os in
18324aix3*)
18325 version_type=linux
18326 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18327 shlibpath_var=LIBPATH
18328
18329 # AIX 3 has no versioning support, so we append a major version to the name.
18330 soname_spec='${libname}${release}${shared_ext}$major'
18331 ;;
18332
18333aix[4-9]*)
18334 version_type=linux
18335 need_lib_prefix=no
18336 need_version=no
18337 hardcode_into_libs=yes
18338 if test "$host_cpu" = ia64; then
18339 # AIX 5 supports IA64
18340 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18341 shlibpath_var=LD_LIBRARY_PATH
18342 else
18343 # With GCC up to 2.95.x, collect2 would create an import file
18344 # for dependence libraries. The import file would start with
18345 # the line `#! .'. This would cause the generated library to
18346 # depend on `.', always an invalid library. This was fixed in
18347 # development snapshots of GCC prior to 3.0.
18348 case $host_os in
18349 aix4 | aix4.[01] | aix4.[01].*)
18350 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18351 echo ' yes '
18352 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18353 :
18354 else
18355 can_build_shared=no
18356 fi
18357 ;;
18358 esac
18359 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18360 # soname into executable. Probably we can add versioning support to
18361 # collect2, so additional links can be useful in future.
18362 if test "$aix_use_runtimelinking" = yes; then
18363 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18364 # instead of lib<name>.a to let people know that these are not
18365 # typical AIX shared libraries.
18366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18367 else
18368 # We preserve .a as extension for shared libraries through AIX4.2
18369 # and later when we are not doing run time linking.
18370 library_names_spec='${libname}${release}.a $libname.a'
18371 soname_spec='${libname}${release}${shared_ext}$major'
18372 fi
18373 shlibpath_var=LIBPATH
18374 fi
18375 ;;
18376
18377amigaos*)
18378 case $host_cpu in
18379 powerpc)
18380 # Since July 2007 AmigaOS4 officially supports .so libraries.
18381 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18383 ;;
18384 m68k)
18385 library_names_spec='$libname.ixlibrary $libname.a'
18386 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18387 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18388 ;;
18389 esac
18390 ;;
18391
18392beos*)
18393 library_names_spec='${libname}${shared_ext}'
18394 dynamic_linker="$host_os ld.so"
18395 shlibpath_var=LIBRARY_PATH
18396 ;;
18397
18398bsdi[45]*)
18399 version_type=linux
18400 need_version=no
18401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18402 soname_spec='${libname}${release}${shared_ext}$major'
18403 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18404 shlibpath_var=LD_LIBRARY_PATH
18405 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18406 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18407 # the default ld.so.conf also contains /usr/contrib/lib and
18408 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18409 # libtool to hard-code these into programs
18410 ;;
18411
18412cygwin* | mingw* | pw32* | cegcc*)
18413 version_type=windows
18414 shrext_cmds=".dll"
18415 need_version=no
18416 need_lib_prefix=no
18417
18418 case $GCC,$host_os in
18419 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18420 library_names_spec='$libname.dll.a'
18421 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18422 postinstall_cmds='base_file=`basename \${file}`~
18423 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18424 dldir=$destdir/`dirname \$dlpath`~
18425 test -d \$dldir || mkdir -p \$dldir~
18426 $install_prog $dir/$dlname \$dldir/$dlname~
18427 chmod a+x \$dldir/$dlname~
18428 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18429 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18430 fi'
18431 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18432 dlpath=$dir/\$dldll~
18433 $RM \$dlpath'
18434 shlibpath_overrides_runpath=yes
18435
18436 case $host_os in
18437 cygwin*)
18438 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18439 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18440 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18441 ;;
18442 mingw* | cegcc*)
18443 # MinGW DLLs use traditional 'lib' prefix
18444 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18445 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18446 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18447 # It is most probably a Windows format PATH printed by
18448 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18449 # path with ; separators, and with drive letters. We can handle the
18450 # drive letters (cygwin fileutils understands them), so leave them,
18451 # especially as we might pass files found there to a mingw objdump,
18452 # which wouldn't understand a cygwinified path. Ahh.
18453 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18454 else
18455 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18456 fi
18457 ;;
18458 pw32*)
18459 # pw32 DLLs use 'pw' prefix rather than 'lib'
18460 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18461 ;;
18462 esac
18463 ;;
18464
18465 *)
18466 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18467 ;;
18468 esac
18469 dynamic_linker='Win32 ld.exe'
18470 # FIXME: first we should search . and the directory the executable is in
18471 shlibpath_var=PATH
18472 ;;
18473
18474darwin* | rhapsody*)
18475 dynamic_linker="$host_os dyld"
18476 version_type=darwin
18477 need_lib_prefix=no
18478 need_version=no
18479 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18480 soname_spec='${libname}${release}${major}$shared_ext'
18481 shlibpath_overrides_runpath=yes
18482 shlibpath_var=DYLD_LIBRARY_PATH
18483 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18484
18485 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18486 ;;
18487
18488dgux*)
18489 version_type=linux
18490 need_lib_prefix=no
18491 need_version=no
18492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18493 soname_spec='${libname}${release}${shared_ext}$major'
18494 shlibpath_var=LD_LIBRARY_PATH
18495 ;;
18496
18497freebsd1*)
18498 dynamic_linker=no
18499 ;;
18500
18501freebsd* | dragonfly*)
18502 # DragonFly does not have aout. When/if they implement a new
18503 # versioning mechanism, adjust this.
18504 if test -x /usr/bin/objformat; then
18505 objformat=`/usr/bin/objformat`
18506 else
18507 case $host_os in
18508 freebsd[123]*) objformat=aout ;;
18509 *) objformat=elf ;;
18510 esac
18511 fi
18512 version_type=freebsd-$objformat
18513 case $version_type in
18514 freebsd-elf*)
18515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18516 need_version=no
18517 need_lib_prefix=no
18518 ;;
18519 freebsd-*)
18520 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18521 need_version=yes
18522 ;;
18523 esac
18524 shlibpath_var=LD_LIBRARY_PATH
18525 case $host_os in
18526 freebsd2*)
18527 shlibpath_overrides_runpath=yes
18528 ;;
18529 freebsd3.[01]* | freebsdelf3.[01]*)
18530 shlibpath_overrides_runpath=yes
18531 hardcode_into_libs=yes
18532 ;;
18533 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18534 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18535 shlibpath_overrides_runpath=no
18536 hardcode_into_libs=yes
18537 ;;
18538 *) # from 4.6 on, and DragonFly
18539 shlibpath_overrides_runpath=yes
18540 hardcode_into_libs=yes
18541 ;;
18542 esac
18543 ;;
18544
18545gnu*)
18546 version_type=linux
18547 need_lib_prefix=no
18548 need_version=no
18549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18550 soname_spec='${libname}${release}${shared_ext}$major'
18551 shlibpath_var=LD_LIBRARY_PATH
18552 hardcode_into_libs=yes
18553 ;;
18554
18555hpux9* | hpux10* | hpux11*)
18556 # Give a soname corresponding to the major version so that dld.sl refuses to
18557 # link against other versions.
18558 version_type=sunos
18559 need_lib_prefix=no
18560 need_version=no
18561 case $host_cpu in
18562 ia64*)
18563 shrext_cmds='.so'
18564 hardcode_into_libs=yes
18565 dynamic_linker="$host_os dld.so"
18566 shlibpath_var=LD_LIBRARY_PATH
18567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18569 soname_spec='${libname}${release}${shared_ext}$major'
18570 if test "X$HPUX_IA64_MODE" = X32; then
18571 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18572 else
18573 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18574 fi
18575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18576 ;;
18577 hppa*64*)
18578 shrext_cmds='.sl'
18579 hardcode_into_libs=yes
18580 dynamic_linker="$host_os dld.sl"
18581 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18582 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18584 soname_spec='${libname}${release}${shared_ext}$major'
18585 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18586 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18587 ;;
18588 *)
18589 shrext_cmds='.sl'
18590 dynamic_linker="$host_os dld.sl"
18591 shlibpath_var=SHLIB_PATH
18592 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18594 soname_spec='${libname}${release}${shared_ext}$major'
18595 ;;
18596 esac
18597 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18598 postinstall_cmds='chmod 555 $lib'
18599 ;;
18600
18601interix[3-9]*)
18602 version_type=linux
18603 need_lib_prefix=no
18604 need_version=no
18605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18606 soname_spec='${libname}${release}${shared_ext}$major'
18607 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18608 shlibpath_var=LD_LIBRARY_PATH
18609 shlibpath_overrides_runpath=no
18610 hardcode_into_libs=yes
18611 ;;
18612
18613irix5* | irix6* | nonstopux*)
18614 case $host_os in
18615 nonstopux*) version_type=nonstopux ;;
18616 *)
18617 if test "$lt_cv_prog_gnu_ld" = yes; then
18618 version_type=linux
18619 else
18620 version_type=irix
18621 fi ;;
18622 esac
18623 need_lib_prefix=no
18624 need_version=no
18625 soname_spec='${libname}${release}${shared_ext}$major'
18626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18627 case $host_os in
18628 irix5* | nonstopux*)
18629 libsuff= shlibsuff=
18630 ;;
18631 *)
18632 case $LD in # libtool.m4 will add one of these switches to LD
18633 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18634 libsuff= shlibsuff= libmagic=32-bit;;
18635 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18636 libsuff=32 shlibsuff=N32 libmagic=N32;;
18637 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18638 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18639 *) libsuff= shlibsuff= libmagic=never-match;;
18640 esac
18641 ;;
18642 esac
18643 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18644 shlibpath_overrides_runpath=no
18645 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18646 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18647 hardcode_into_libs=yes
18648 ;;
18649
18650# No shared lib support for Linux oldld, aout, or coff.
18651linux*oldld* | linux*aout* | linux*coff*)
18652 dynamic_linker=no
18653 ;;
18654
18655# This must be Linux ELF.
18656linux* | k*bsd*-gnu)
18657 version_type=linux
18658 need_lib_prefix=no
18659 need_version=no
18660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18661 soname_spec='${libname}${release}${shared_ext}$major'
18662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18663 shlibpath_var=LD_LIBRARY_PATH
18664 shlibpath_overrides_runpath=no
18665 # Some binutils ld are patched to set DT_RUNPATH
18666 save_LDFLAGS=$LDFLAGS
18667 save_libdir=$libdir
18668 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18669 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18671/* end confdefs.h. */
18672
18673int
18674main ()
18675{
18676
18677 ;
18678 return 0;
18679}
18680_ACEOF
18681if ac_fn_cxx_try_link "$LINENO"; then :
18682 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18683 shlibpath_overrides_runpath=yes
18684fi
18685fi
18686rm -f core conftest.err conftest.$ac_objext \
18687 conftest$ac_exeext conftest.$ac_ext
18688 LDFLAGS=$save_LDFLAGS
18689 libdir=$save_libdir
18690
18691 # This implies no fast_install, which is unacceptable.
18692 # Some rework will be needed to allow for fast_install
18693 # before this can be enabled.
18694 hardcode_into_libs=yes
18695
18696 # Add ABI-specific directories to the system library path.
18697 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18698
18699 # Append ld.so.conf contents to the search path
18700 if test -f /etc/ld.so.conf; then
18701 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18702 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18703 fi
18704
18705 # We used to test for /lib/ld.so.1 and disable shared libraries on
18706 # powerpc, because MkLinux only supported shared libraries with the
18707 # GNU dynamic linker. Since this was broken with cross compilers,
18708 # most powerpc-linux boxes support dynamic linking these days and
18709 # people can always --disable-shared, the test was removed, and we
18710 # assume the GNU/Linux dynamic linker is in use.
18711 dynamic_linker='GNU/Linux ld.so'
18712 ;;
18713
18714netbsd*)
18715 version_type=sunos
18716 need_lib_prefix=no
18717 need_version=no
18718 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18720 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18721 dynamic_linker='NetBSD (a.out) ld.so'
18722 else
18723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18724 soname_spec='${libname}${release}${shared_ext}$major'
18725 dynamic_linker='NetBSD ld.elf_so'
18726 fi
18727 shlibpath_var=LD_LIBRARY_PATH
18728 shlibpath_overrides_runpath=yes
18729 hardcode_into_libs=yes
18730 ;;
18731
18732newsos6)
18733 version_type=linux
18734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18735 shlibpath_var=LD_LIBRARY_PATH
18736 shlibpath_overrides_runpath=yes
18737 ;;
18738
18739*nto* | *qnx*)
18740 version_type=qnx
18741 need_lib_prefix=no
18742 need_version=no
18743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18744 soname_spec='${libname}${release}${shared_ext}$major'
18745 shlibpath_var=LD_LIBRARY_PATH
18746 shlibpath_overrides_runpath=no
18747 hardcode_into_libs=yes
18748 dynamic_linker='ldqnx.so'
18749 ;;
18750
18751openbsd*)
18752 version_type=sunos
18753 sys_lib_dlsearch_path_spec="/usr/lib"
18754 need_lib_prefix=no
18755 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18756 case $host_os in
18757 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18758 *) need_version=no ;;
18759 esac
18760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18762 shlibpath_var=LD_LIBRARY_PATH
18763 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18764 case $host_os in
18765 openbsd2.[89] | openbsd2.[89].*)
18766 shlibpath_overrides_runpath=no
18767 ;;
18768 *)
18769 shlibpath_overrides_runpath=yes
18770 ;;
18771 esac
18772 else
18773 shlibpath_overrides_runpath=yes
18774 fi
18775 ;;
18776
18777os2*)
18778 libname_spec='$name'
18779 shrext_cmds=".dll"
18780 need_lib_prefix=no
18781 library_names_spec='$libname${shared_ext} $libname.a'
18782 dynamic_linker='OS/2 ld.exe'
18783 shlibpath_var=LIBPATH
18784 ;;
18785
18786osf3* | osf4* | osf5*)
18787 version_type=osf
18788 need_lib_prefix=no
18789 need_version=no
18790 soname_spec='${libname}${release}${shared_ext}$major'
18791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18792 shlibpath_var=LD_LIBRARY_PATH
18793 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18794 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18795 ;;
18796
18797rdos*)
18798 dynamic_linker=no
18799 ;;
18800
18801solaris*)
18802 version_type=linux
18803 need_lib_prefix=no
18804 need_version=no
18805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18806 soname_spec='${libname}${release}${shared_ext}$major'
18807 shlibpath_var=LD_LIBRARY_PATH
18808 shlibpath_overrides_runpath=yes
18809 hardcode_into_libs=yes
18810 # ldd complains unless libraries are executable
18811 postinstall_cmds='chmod +x $lib'
18812 ;;
18813
18814sunos4*)
18815 version_type=sunos
18816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18817 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18818 shlibpath_var=LD_LIBRARY_PATH
18819 shlibpath_overrides_runpath=yes
18820 if test "$with_gnu_ld" = yes; then
18821 need_lib_prefix=no
18822 fi
18823 need_version=yes
18824 ;;
18825
18826sysv4 | sysv4.3*)
18827 version_type=linux
18828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18829 soname_spec='${libname}${release}${shared_ext}$major'
18830 shlibpath_var=LD_LIBRARY_PATH
18831 case $host_vendor in
18832 sni)
18833 shlibpath_overrides_runpath=no
18834 need_lib_prefix=no
18835 runpath_var=LD_RUN_PATH
18836 ;;
18837 siemens)
18838 need_lib_prefix=no
18839 ;;
18840 motorola)
18841 need_lib_prefix=no
18842 need_version=no
18843 shlibpath_overrides_runpath=no
18844 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18845 ;;
18846 esac
18847 ;;
18848
18849sysv4*MP*)
18850 if test -d /usr/nec ;then
18851 version_type=linux
18852 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18853 soname_spec='$libname${shared_ext}.$major'
18854 shlibpath_var=LD_LIBRARY_PATH
18855 fi
18856 ;;
18857
18858sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18859 version_type=freebsd-elf
18860 need_lib_prefix=no
18861 need_version=no
18862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18863 soname_spec='${libname}${release}${shared_ext}$major'
18864 shlibpath_var=LD_LIBRARY_PATH
18865 shlibpath_overrides_runpath=yes
18866 hardcode_into_libs=yes
18867 if test "$with_gnu_ld" = yes; then
18868 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18869 else
18870 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18871 case $host_os in
18872 sco3.2v5*)
18873 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18874 ;;
18875 esac
18876 fi
18877 sys_lib_dlsearch_path_spec='/usr/lib'
18878 ;;
18879
18880tpf*)
18881 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18882 version_type=linux
18883 need_lib_prefix=no
18884 need_version=no
18885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18886 shlibpath_var=LD_LIBRARY_PATH
18887 shlibpath_overrides_runpath=no
18888 hardcode_into_libs=yes
18889 ;;
18890
18891uts4*)
18892 version_type=linux
18893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18894 soname_spec='${libname}${release}${shared_ext}$major'
18895 shlibpath_var=LD_LIBRARY_PATH
18896 ;;
18897
18898*)
18899 dynamic_linker=no
18900 ;;
18901esac
18902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18903$as_echo "$dynamic_linker" >&6; }
18904test "$dynamic_linker" = no && can_build_shared=no
18905
18906variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18907if test "$GCC" = yes; then
18908 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18909fi
18910
18911if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18912 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18913fi
18914if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18915 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18916fi
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18954$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18955hardcode_action_CXX=
18956if test -n "$hardcode_libdir_flag_spec_CXX" ||
18957 test -n "$runpath_var_CXX" ||
18958 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18959
18960 # We can hardcode non-existent directories.
18961 if test "$hardcode_direct_CXX" != no &&
18962 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18963 # have to relink, otherwise we might link with an installed library
18964 # when we should be linking with a yet-to-be-installed one
18965 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18966 test "$hardcode_minus_L_CXX" != no; then
18967 # Linking always hardcodes the temporary library directory.
18968 hardcode_action_CXX=relink
18969 else
18970 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18971 hardcode_action_CXX=immediate
18972 fi
18973else
18974 # We cannot hardcode anything, or else we can only hardcode existing
18975 # directories.
18976 hardcode_action_CXX=unsupported
18977fi
18978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18979$as_echo "$hardcode_action_CXX" >&6; }
18980
18981if test "$hardcode_action_CXX" = relink ||
18982 test "$inherit_rpath_CXX" = yes; then
18983 # Fast installation is not supported
18984 enable_fast_install=no
18985elif test "$shlibpath_overrides_runpath" = yes ||
18986 test "$enable_shared" = no; then
18987 # Fast installation is not necessary
18988 enable_fast_install=needless
18989fi
18990
18991
18992
18993
18994
18995
18996
18997 fi # test -n "$compiler"
18998
18999 CC=$lt_save_CC
19000 LDCXX=$LD
19001 LD=$lt_save_LD
19002 GCC=$lt_save_GCC
19003 with_gnu_ld=$lt_save_with_gnu_ld
19004 lt_cv_path_LDCXX=$lt_cv_path_LD
19005 lt_cv_path_LD=$lt_save_path_LD
19006 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19007 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19008fi # test "$_lt_caught_CXX_error" != yes
19009
19010ac_ext=c
19011ac_cpp='$CPP $CPPFLAGS'
19012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19014ac_compiler_gnu=$ac_cv_c_compiler_gnu
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028 ac_config_commands="$ac_config_commands libtool"
19029
19030
19031
19032
19033# Only expand once:
19034
19035
19036
cristy3ed852e2009-09-05 21:47:34 +000019037
19038
19039# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019040
19041
19042
19043
19044
19045
19046
19047
19048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19049$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
19050if test "${libltdl_cv_shlibext+set}" = set; then :
19051 $as_echo_n "(cached) " >&6
19052else
19053
19054module=yes
19055eval libltdl_cv_shlibext=$shrext_cmds
19056
19057fi
19058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19059$as_echo "$libltdl_cv_shlibext" >&6; }
19060if test -n "$libltdl_cv_shlibext"; then
19061
19062cat >>confdefs.h <<_ACEOF
19063#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19064_ACEOF
19065
19066fi
19067
19068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19069$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
19070if test "${lt_cv_module_path_var+set}" = set; then :
19071 $as_echo_n "(cached) " >&6
19072else
19073 lt_cv_module_path_var="$shlibpath_var"
19074fi
19075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19076$as_echo "$lt_cv_module_path_var" >&6; }
19077if test -n "$lt_cv_module_path_var"; then
19078
19079cat >>confdefs.h <<_ACEOF
19080#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19081_ACEOF
19082
19083fi
19084
19085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19086$as_echo_n "checking for the default library search path... " >&6; }
19087if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
19088 $as_echo_n "(cached) " >&6
19089else
19090 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19091fi
19092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19093$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19094if test -n "$lt_cv_sys_dlsearch_path"; then
19095 sys_dlsearch_path=
19096 for dir in $lt_cv_sys_dlsearch_path; do
19097 if test -z "$sys_dlsearch_path"; then
19098 sys_dlsearch_path="$dir"
19099 else
19100 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19101 fi
19102 done
19103
19104cat >>confdefs.h <<_ACEOF
19105#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19106_ACEOF
19107
19108fi
19109
19110
19111LT_DLLOADERS=
19112
19113
19114ac_ext=c
19115ac_cpp='$CPP $CPPFLAGS'
19116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19118ac_compiler_gnu=$ac_cv_c_compiler_gnu
19119
19120
19121LIBADD_DLOPEN=
19122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19123$as_echo_n "checking for library containing dlopen... " >&6; }
19124if test "${ac_cv_search_dlopen+set}" = set; then :
19125 $as_echo_n "(cached) " >&6
19126else
19127 ac_func_search_save_LIBS=$LIBS
19128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19129/* end confdefs.h. */
19130
19131/* Override any GCC internal prototype to avoid an error.
19132 Use char because int might match the return type of a GCC
19133 builtin and then its argument prototype would still apply. */
19134#ifdef __cplusplus
19135extern "C"
19136#endif
19137char dlopen ();
19138int
19139main ()
19140{
19141return dlopen ();
19142 ;
19143 return 0;
19144}
19145_ACEOF
19146for ac_lib in '' dl; do
19147 if test -z "$ac_lib"; then
19148 ac_res="none required"
19149 else
19150 ac_res=-l$ac_lib
19151 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19152 fi
19153 if ac_fn_c_try_link "$LINENO"; then :
19154 ac_cv_search_dlopen=$ac_res
19155fi
19156rm -f core conftest.err conftest.$ac_objext \
19157 conftest$ac_exeext
19158 if test "${ac_cv_search_dlopen+set}" = set; then :
19159 break
19160fi
19161done
19162if test "${ac_cv_search_dlopen+set}" = set; then :
19163
19164else
19165 ac_cv_search_dlopen=no
19166fi
19167rm conftest.$ac_ext
19168LIBS=$ac_func_search_save_LIBS
19169fi
19170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19171$as_echo "$ac_cv_search_dlopen" >&6; }
19172ac_res=$ac_cv_search_dlopen
19173if test "$ac_res" != no; then :
19174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19175
19176$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19177
19178 if test "$ac_cv_search_dlopen" != "none required" ; then
19179 LIBADD_DLOPEN="-ldl"
19180 fi
19181 libltdl_cv_lib_dl_dlopen="yes"
19182 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19183else
19184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19185/* end confdefs.h. */
19186#if HAVE_DLFCN_H
19187# include <dlfcn.h>
19188#endif
19189
19190int
19191main ()
19192{
19193dlopen(0, 0);
19194 ;
19195 return 0;
19196}
19197_ACEOF
19198if ac_fn_c_try_link "$LINENO"; then :
19199
19200$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19201
19202 libltdl_cv_func_dlopen="yes"
19203 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19204else
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19206$as_echo_n "checking for dlopen in -lsvld... " >&6; }
19207if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
19208 $as_echo_n "(cached) " >&6
19209else
19210 ac_check_lib_save_LIBS=$LIBS
19211LIBS="-lsvld $LIBS"
19212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19213/* end confdefs.h. */
19214
19215/* Override any GCC internal prototype to avoid an error.
19216 Use char because int might match the return type of a GCC
19217 builtin and then its argument prototype would still apply. */
19218#ifdef __cplusplus
19219extern "C"
19220#endif
19221char dlopen ();
19222int
19223main ()
19224{
19225return dlopen ();
19226 ;
19227 return 0;
19228}
19229_ACEOF
19230if ac_fn_c_try_link "$LINENO"; then :
19231 ac_cv_lib_svld_dlopen=yes
19232else
19233 ac_cv_lib_svld_dlopen=no
19234fi
19235rm -f core conftest.err conftest.$ac_objext \
19236 conftest$ac_exeext conftest.$ac_ext
19237LIBS=$ac_check_lib_save_LIBS
19238fi
19239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19240$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19241if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
19242
19243$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19244
19245 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19246 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19247fi
19248
19249fi
19250rm -f core conftest.err conftest.$ac_objext \
19251 conftest$ac_exeext conftest.$ac_ext
19252fi
19253
19254if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19255then
19256 lt_save_LIBS="$LIBS"
19257 LIBS="$LIBS $LIBADD_DLOPEN"
19258 for ac_func in dlerror
19259do :
19260 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19261if test "x$ac_cv_func_dlerror" = x""yes; then :
19262 cat >>confdefs.h <<_ACEOF
19263#define HAVE_DLERROR 1
19264_ACEOF
19265
19266fi
19267done
19268
19269 LIBS="$lt_save_LIBS"
19270fi
19271
19272
19273LIBADD_SHL_LOAD=
19274ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19275if test "x$ac_cv_func_shl_load" = x""yes; then :
19276
19277$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19278
19279 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19280else
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19282$as_echo_n "checking for shl_load in -ldld... " >&6; }
19283if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
19284 $as_echo_n "(cached) " >&6
19285else
19286 ac_check_lib_save_LIBS=$LIBS
19287LIBS="-ldld $LIBS"
19288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19289/* end confdefs.h. */
19290
19291/* Override any GCC internal prototype to avoid an error.
19292 Use char because int might match the return type of a GCC
19293 builtin and then its argument prototype would still apply. */
19294#ifdef __cplusplus
19295extern "C"
19296#endif
19297char shl_load ();
19298int
19299main ()
19300{
19301return shl_load ();
19302 ;
19303 return 0;
19304}
19305_ACEOF
19306if ac_fn_c_try_link "$LINENO"; then :
19307 ac_cv_lib_dld_shl_load=yes
19308else
19309 ac_cv_lib_dld_shl_load=no
19310fi
19311rm -f core conftest.err conftest.$ac_objext \
19312 conftest$ac_exeext conftest.$ac_ext
19313LIBS=$ac_check_lib_save_LIBS
19314fi
19315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19316$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19317if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
19318
19319$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19320
19321 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19322 LIBADD_SHL_LOAD="-ldld"
19323fi
19324
19325fi
19326
19327
19328
19329case $host_os in
19330darwin[1567].*)
19331# We only want this for pre-Mac OS X 10.4.
19332 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19333if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
19334
19335$as_echo "#define HAVE_DYLD 1" >>confdefs.h
19336
19337 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19338fi
19339
19340 ;;
19341beos*)
19342 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19343 ;;
19344cygwin* | mingw* | os2* | pw32*)
19345 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19346"
19347if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19348 ac_have_decl=1
19349else
19350 ac_have_decl=0
19351fi
19352
19353cat >>confdefs.h <<_ACEOF
19354#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
19355_ACEOF
19356
19357 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19358 ;;
19359esac
19360
19361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19362$as_echo_n "checking for dld_link in -ldld... " >&6; }
19363if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
19364 $as_echo_n "(cached) " >&6
19365else
19366 ac_check_lib_save_LIBS=$LIBS
19367LIBS="-ldld $LIBS"
19368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19369/* end confdefs.h. */
19370
19371/* Override any GCC internal prototype to avoid an error.
19372 Use char because int might match the return type of a GCC
19373 builtin and then its argument prototype would still apply. */
19374#ifdef __cplusplus
19375extern "C"
19376#endif
19377char dld_link ();
19378int
19379main ()
19380{
19381return dld_link ();
19382 ;
19383 return 0;
19384}
19385_ACEOF
19386if ac_fn_c_try_link "$LINENO"; then :
19387 ac_cv_lib_dld_dld_link=yes
19388else
19389 ac_cv_lib_dld_dld_link=no
19390fi
19391rm -f core conftest.err conftest.$ac_objext \
19392 conftest$ac_exeext conftest.$ac_ext
19393LIBS=$ac_check_lib_save_LIBS
19394fi
19395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19396$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19397if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
19398
19399$as_echo "#define HAVE_DLD 1" >>confdefs.h
19400
19401 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19402fi
19403
19404
19405
19406
19407LT_DLPREOPEN=
19408if test -n "$LT_DLLOADERS"
19409then
19410 for lt_loader in $LT_DLLOADERS; do
19411 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19412 done
19413
19414$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
19415
19416fi
19417
19418
19419LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19420
19421
19422ac_ext=c
19423ac_cpp='$CPP $CPPFLAGS'
19424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19426ac_compiler_gnu=$ac_cv_c_compiler_gnu
19427
19428
19429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
19430$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
19431if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
19432 $as_echo_n "(cached) " >&6
19433else
19434 lt_cv_sys_symbol_underscore=no
19435 cat > conftest.$ac_ext <<_LT_EOF
19436void nm_test_func(){}
19437int main(){nm_test_func;return 0;}
19438_LT_EOF
19439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19440 (eval $ac_compile) 2>&5
19441 ac_status=$?
19442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19443 test $ac_status = 0; }; then
19444 # Now try to grab the symbols.
19445 ac_nlist=conftest.nm
19446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
19447 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19448 ac_status=$?
19449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19450 test $ac_status = 0; } && test -s "$ac_nlist"; then
19451 # See whether the symbols have a leading underscore.
19452 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19453 lt_cv_sys_symbol_underscore=yes
19454 else
19455 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19456 :
19457 else
19458 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19459 fi
19460 fi
19461 else
19462 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19463 fi
19464 else
19465 echo "configure: failed program was:" >&5
19466 cat conftest.c >&5
19467 fi
19468 rm -rf conftest*
19469
19470fi
19471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
19472$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19473 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19474
19475
19476if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19477 if test x"$libltdl_cv_func_dlopen" = xyes ||
19478 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
19480$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
19481if test "${libltdl_cv_need_uscore+set}" = set; then :
19482 $as_echo_n "(cached) " >&6
19483else
19484 libltdl_cv_need_uscore=unknown
19485 save_LIBS="$LIBS"
19486 LIBS="$LIBS $LIBADD_DLOPEN"
19487 if test "$cross_compiling" = yes; then :
19488 libltdl_cv_need_uscore=cross
19489else
19490 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19491 lt_status=$lt_dlunknown
19492 cat > conftest.$ac_ext <<_LT_EOF
cristy746a5842010-10-22 20:20:08 +000019493#line 19493 "configure"
cristy73bd4a52010-10-05 11:24:23 +000019494#include "confdefs.h"
19495
19496#if HAVE_DLFCN_H
19497#include <dlfcn.h>
19498#endif
19499
19500#include <stdio.h>
19501
19502#ifdef RTLD_GLOBAL
19503# define LT_DLGLOBAL RTLD_GLOBAL
19504#else
19505# ifdef DL_GLOBAL
19506# define LT_DLGLOBAL DL_GLOBAL
19507# else
19508# define LT_DLGLOBAL 0
19509# endif
19510#endif
19511
19512/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19513 find out it does not work in some platform. */
19514#ifndef LT_DLLAZY_OR_NOW
19515# ifdef RTLD_LAZY
19516# define LT_DLLAZY_OR_NOW RTLD_LAZY
19517# else
19518# ifdef DL_LAZY
19519# define LT_DLLAZY_OR_NOW DL_LAZY
19520# else
19521# ifdef RTLD_NOW
19522# define LT_DLLAZY_OR_NOW RTLD_NOW
19523# else
19524# ifdef DL_NOW
19525# define LT_DLLAZY_OR_NOW DL_NOW
19526# else
19527# define LT_DLLAZY_OR_NOW 0
19528# endif
19529# endif
19530# endif
19531# endif
19532#endif
19533
19534void fnord() { int i=42;}
19535int main ()
19536{
19537 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19538 int status = $lt_dlunknown;
19539
19540 if (self)
19541 {
19542 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19543 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19544 /* dlclose (self); */
19545 }
19546 else
19547 puts (dlerror ());
19548
19549 return status;
19550}
19551_LT_EOF
19552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19553 (eval $ac_link) 2>&5
19554 ac_status=$?
19555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19556 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19557 (./conftest; exit; ) >&5 2>/dev/null
19558 lt_status=$?
19559 case x$lt_status in
19560 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19561 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19562 x$lt_dlunknown|x*) ;;
19563 esac
19564 else :
19565 # compilation failed
19566
19567 fi
19568fi
19569rm -fr conftest*
19570
19571 LIBS="$save_LIBS"
19572
19573fi
19574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
19575$as_echo "$libltdl_cv_need_uscore" >&6; }
19576 fi
19577fi
19578
19579if test x"$libltdl_cv_need_uscore" = xyes; then
19580
19581$as_echo "#define NEED_USCORE 1" >>confdefs.h
19582
19583fi
19584
19585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
19586$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
19587if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
19588 $as_echo_n "(cached) " >&6
19589else
19590 # PORTME does your system automatically load deplibs for dlopen?
19591 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19592 # For now, we just catch OSes we know something about -- in the
19593 # future, we'll try test this programmatically.
19594 lt_cv_sys_dlopen_deplibs=unknown
19595 case $host_os in
19596 aix3*|aix4.1.*|aix4.2.*)
19597 # Unknown whether this is true for these versions of AIX, but
19598 # we want this `case' here to explicitly catch those versions.
19599 lt_cv_sys_dlopen_deplibs=unknown
19600 ;;
19601 aix[4-9]*)
19602 lt_cv_sys_dlopen_deplibs=yes
19603 ;;
19604 amigaos*)
19605 case $host_cpu in
19606 powerpc)
19607 lt_cv_sys_dlopen_deplibs=no
19608 ;;
19609 esac
19610 ;;
19611 darwin*)
19612 # Assuming the user has installed a libdl from somewhere, this is true
19613 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19614 lt_cv_sys_dlopen_deplibs=yes
19615 ;;
19616 freebsd* | dragonfly*)
19617 lt_cv_sys_dlopen_deplibs=yes
19618 ;;
19619 gnu* | linux* | k*bsd*-gnu)
19620 # GNU and its variants, using gnu ld.so (Glibc)
19621 lt_cv_sys_dlopen_deplibs=yes
19622 ;;
19623 hpux10*|hpux11*)
19624 lt_cv_sys_dlopen_deplibs=yes
19625 ;;
19626 interix*)
19627 lt_cv_sys_dlopen_deplibs=yes
19628 ;;
19629 irix[12345]*|irix6.[01]*)
19630 # Catch all versions of IRIX before 6.2, and indicate that we don't
19631 # know how it worked for any of those versions.
19632 lt_cv_sys_dlopen_deplibs=unknown
19633 ;;
19634 irix*)
19635 # The case above catches anything before 6.2, and it's known that
19636 # at 6.2 and later dlopen does load deplibs.
19637 lt_cv_sys_dlopen_deplibs=yes
19638 ;;
19639 netbsd*)
19640 lt_cv_sys_dlopen_deplibs=yes
19641 ;;
19642 openbsd*)
19643 lt_cv_sys_dlopen_deplibs=yes
19644 ;;
19645 osf[1234]*)
19646 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19647 # it did *not* use an RPATH in a shared library to find objects the
19648 # library depends on, so we explicitly say `no'.
19649 lt_cv_sys_dlopen_deplibs=no
19650 ;;
19651 osf5.0|osf5.0a|osf5.1)
19652 # dlopen *does* load deplibs and with the right loader patch applied
19653 # it even uses RPATH in a shared library to search for shared objects
19654 # that the library depends on, but there's no easy way to know if that
19655 # patch is installed. Since this is the case, all we can really
19656 # say is unknown -- it depends on the patch being installed. If
19657 # it is, this changes to `yes'. Without it, it would be `no'.
19658 lt_cv_sys_dlopen_deplibs=unknown
19659 ;;
19660 osf*)
19661 # the two cases above should catch all versions of osf <= 5.1. Read
19662 # the comments above for what we know about them.
19663 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19664 # is used to find them so we can finally say `yes'.
19665 lt_cv_sys_dlopen_deplibs=yes
19666 ;;
19667 qnx*)
19668 lt_cv_sys_dlopen_deplibs=yes
19669 ;;
19670 solaris*)
19671 lt_cv_sys_dlopen_deplibs=yes
19672 ;;
19673 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19674 libltdl_cv_sys_dlopen_deplibs=yes
19675 ;;
19676 esac
19677
19678fi
19679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
19680$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19681if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19682
19683$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
19684
19685fi
19686
19687:
19688
19689for ac_header in argz.h
19690do :
19691 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19692"
19693if test "x$ac_cv_header_argz_h" = x""yes; then :
19694 cat >>confdefs.h <<_ACEOF
19695#define HAVE_ARGZ_H 1
19696_ACEOF
19697
19698fi
19699
19700done
19701
19702
19703ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
19704# include <argz.h>
19705#endif
19706"
19707if test "x$ac_cv_type_error_t" = x""yes; then :
19708
19709cat >>confdefs.h <<_ACEOF
19710#define HAVE_ERROR_T 1
19711_ACEOF
19712
19713
19714else
19715
19716$as_echo "#define error_t int" >>confdefs.h
19717
19718
19719$as_echo "#define __error_t_defined 1" >>confdefs.h
19720
19721fi
19722
19723
19724ARGZ_H=
19725for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19726 argz_next argz_stringify
19727do :
19728 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19729ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19730eval as_val=\$$as_ac_var
19731 if test "x$as_val" = x""yes; then :
19732 cat >>confdefs.h <<_ACEOF
19733#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19734_ACEOF
19735
19736else
19737 ARGZ_H=argz.h;
19738
19739 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19740
19741fi
19742done
19743
19744
19745if test -z "$ARGZ_H"; then :
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
19747$as_echo_n "checking if argz actually works... " >&6; }
19748if test "${lt_cv_sys_argz_works+set}" = set; then :
19749 $as_echo_n "(cached) " >&6
19750else
19751 case $host_os in #(
19752 *cygwin*)
19753 lt_cv_sys_argz_works=no
19754 if test "$cross_compiling" != no; then
19755 lt_cv_sys_argz_works="guessing no"
19756 else
19757 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19758 save_IFS=$IFS
19759 IFS=-.
19760 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19761 IFS=$save_IFS
19762 lt_os_major=${2-0}
19763 lt_os_minor=${3-0}
19764 lt_os_micro=${4-0}
19765 if test "$lt_os_major" -gt 1 \
19766 || { test "$lt_os_major" -eq 1 \
19767 && { test "$lt_os_minor" -gt 5 \
19768 || { test "$lt_os_minor" -eq 5 \
19769 && test "$lt_os_micro" -gt 24; }; }; }; then
19770 lt_cv_sys_argz_works=yes
19771 fi
19772 fi
19773 ;; #(
19774 *) lt_cv_sys_argz_works=yes ;;
19775 esac
19776fi
19777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
19778$as_echo "$lt_cv_sys_argz_works" >&6; }
19779 if test $lt_cv_sys_argz_works = yes; then :
19780
19781$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
19782
19783else
19784 ARGZ_H=argz.h
19785
19786
19787 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19788
19789fi
19790fi
19791
19792
19793
19794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
19795$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
19796if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
19797 $as_echo_n "(cached) " >&6
19798else
19799 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19800 libltdl_cv_preloaded_symbols=yes
19801 else
19802 libltdl_cv_preloaded_symbols=no
19803 fi
19804
19805fi
19806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
19807$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19808if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19809
19810$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
19811
19812fi
19813
19814# Set options
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826# Check whether --with-included_ltdl was given.
19827if test "${with_included_ltdl+set}" = set; then :
19828 withval=$with_included_ltdl;
19829fi
19830
19831
19832if test "x$with_included_ltdl" != xyes; then
19833 # We are not being forced to use the included libltdl sources, so
19834 # decide whether there is a useful installed version we can use.
19835 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
19836
19837"
19838if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19839 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
19840 #include <ltdl.h>
19841"
19842if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
19844$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
19845if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
19846 $as_echo_n "(cached) " >&6
19847else
19848 ac_check_lib_save_LIBS=$LIBS
19849LIBS="-lltdl $LIBS"
19850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19851/* end confdefs.h. */
19852
19853/* Override any GCC internal prototype to avoid an error.
19854 Use char because int might match the return type of a GCC
19855 builtin and then its argument prototype would still apply. */
19856#ifdef __cplusplus
19857extern "C"
19858#endif
19859char lt_dladvise_preload ();
19860int
19861main ()
19862{
19863return lt_dladvise_preload ();
19864 ;
19865 return 0;
19866}
19867_ACEOF
19868if ac_fn_c_try_link "$LINENO"; then :
19869 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19870else
19871 ac_cv_lib_ltdl_lt_dladvise_preload=no
19872fi
19873rm -f core conftest.err conftest.$ac_objext \
19874 conftest$ac_exeext conftest.$ac_ext
19875LIBS=$ac_check_lib_save_LIBS
19876fi
19877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
19878$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
19879if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
19880 with_included_ltdl=no
19881else
19882 with_included_ltdl=yes
19883fi
19884
19885else
19886 with_included_ltdl=yes
19887fi
19888
19889else
19890 with_included_ltdl=yes
19891fi
19892
19893
19894fi
19895
19896
19897
19898
19899# Check whether --with-ltdl_include was given.
19900if test "${with_ltdl_include+set}" = set; then :
19901 withval=$with_ltdl_include;
19902fi
19903
19904
19905if test -n "$with_ltdl_include"; then
19906 if test -f "$with_ltdl_include/ltdl.h"; then :
19907 else
19908 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
19909 fi
19910else
19911 with_ltdl_include=no
19912fi
19913
19914
19915# Check whether --with-ltdl_lib was given.
19916if test "${with_ltdl_lib+set}" = set; then :
19917 withval=$with_ltdl_lib;
19918fi
19919
19920
19921if test -n "$with_ltdl_lib"; then
19922 if test -f "$with_ltdl_lib/libltdl.la"; then :
19923 else
19924 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
19925 fi
19926else
19927 with_ltdl_lib=no
19928fi
19929
19930case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19931 ,yes,no,no,)
19932 case $enable_ltdl_convenience in
19933 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
19934 "") enable_ltdl_convenience=yes
19935 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19936esac
19937LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19938LTDLDEPS=$LIBLTDL
19939LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19940
19941
19942
19943
19944
19945# For backwards non-gettext consistent compatibility...
19946INCLTDL="$LTDLINCL"
19947
19948
19949 ;;
19950 ,no,no,no,)
19951 # If the included ltdl is not to be used, then use the
19952 # preinstalled libltdl we found.
19953
19954$as_echo "#define HAVE_LTDL 1" >>confdefs.h
19955
19956 LIBLTDL=-lltdl
19957 LTDLDEPS=
19958 LTDLINCL=
19959 ;;
19960 ,no*,no,*)
19961 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
19962 ;;
19963 *) with_included_ltdl=no
19964 LIBLTDL="-L$with_ltdl_lib -lltdl"
19965 LTDLDEPS=
19966 LTDLINCL="-I$with_ltdl_include"
19967 ;;
19968esac
19969INCLTDL="$LTDLINCL"
19970
19971# Report our decision...
19972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
19973$as_echo_n "checking where to find libltdl headers... " >&6; }
19974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
19975$as_echo "$LTDLINCL" >&6; }
19976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
19977$as_echo_n "checking where to find libltdl library... " >&6; }
19978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
19979$as_echo "$LIBLTDL" >&6; }
19980
19981
19982
19983# Check whether --enable-ltdl-install was given.
19984if test "${enable_ltdl_install+set}" = set; then :
19985 enableval=$enable_ltdl_install;
19986fi
19987
19988
19989case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19990 *yes*) ;;
19991 *) enable_ltdl_convenience=yes ;;
19992esac
19993
19994 if test x"${enable_ltdl_install-no}" != xno; then
19995 INSTALL_LTDL_TRUE=
19996 INSTALL_LTDL_FALSE='#'
19997else
19998 INSTALL_LTDL_TRUE='#'
19999 INSTALL_LTDL_FALSE=
20000fi
20001
20002 if test x"${enable_ltdl_convenience-no}" != xno; then
20003 CONVENIENCE_LTDL_TRUE=
20004 CONVENIENCE_LTDL_FALSE='#'
20005else
20006 CONVENIENCE_LTDL_TRUE='#'
20007 CONVENIENCE_LTDL_FALSE=
20008fi
20009
20010
20011
20012
20013
20014
20015
20016# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20017# the user used. This is so that ltdl.h can pick up the parent projects
20018# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20019# definitions required by ltdl.c.
20020# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20021
20022
20023
20024for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20025do :
20026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20027ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20028"
20029eval as_val=\$$as_ac_Header
20030 if test "x$as_val" = x""yes; then :
20031 cat >>confdefs.h <<_ACEOF
20032#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20033_ACEOF
20034
20035fi
20036
20037done
20038
20039
20040for ac_func in closedir opendir readdir
20041do :
20042 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20043ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20044eval as_val=\$$as_ac_var
20045 if test "x$as_val" = x""yes; then :
20046 cat >>confdefs.h <<_ACEOF
20047#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20048_ACEOF
20049
20050else
20051
20052
20053 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20054
20055fi
20056done
20057
20058for ac_func in strlcat strlcpy
20059do :
20060 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20061ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20062eval as_val=\$$as_ac_var
20063 if test "x$as_val" = x""yes; then :
20064 cat >>confdefs.h <<_ACEOF
20065#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20066_ACEOF
20067
20068else
20069
20070
20071 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20072
20073fi
20074done
20075
20076
20077
20078cat >>confdefs.h <<_ACEOF
20079#define LT_LIBEXT "$libext"
20080_ACEOF
20081
20082
20083name=ltdl
20084LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
20085
20086
20087
20088
20089
20090
20091
20092
20093# Only expand once:
20094
20095
cristy3ed852e2009-09-05 21:47:34 +000020096
20097# Check to see if building shared libraries
20098libtool_build_shared_libs='no'
20099if test "$enable_shared" = 'yes'; then
20100 libtool_build_shared_libs='yes'
20101fi
20102
20103# Check to see if building static libraries
20104libtool_build_static_libs='no'
20105if test "$enable_static" = 'yes'; then
20106 libtool_build_static_libs='yes'
20107fi
20108
cristy73bd4a52010-10-05 11:24:23 +000020109 if test "${libtool_build_shared_libs}" = 'yes'; then
20110 WITH_SHARED_LIBS_TRUE=
20111 WITH_SHARED_LIBS_FALSE='#'
20112else
20113 WITH_SHARED_LIBS_TRUE='#'
20114 WITH_SHARED_LIBS_FALSE=
20115fi
20116
cristy3ed852e2009-09-05 21:47:34 +000020117#
20118# Enable support for building loadable modules
20119#
20120
20121# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020122if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020123 withval=$with_modules; with_modules=$withval
20124else
cristy5a1cefd2010-01-06 20:42:35 +000020125 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020126fi
20127
20128
20129# Only allow building loadable modules if we are building shared libraries
20130if test "$with_modules" != 'no' ; then
20131 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020132 { $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 +000020133$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20134 with_modules='no'
20135 fi
20136fi
20137if test "$with_modules" != 'no'; then
20138
cristy8b350f62009-11-15 23:12:43 +000020139$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020140
20141fi
cristy73bd4a52010-10-05 11:24:23 +000020142 if test "$with_modules" != 'no'; then
20143 WITH_MODULES_TRUE=
20144 WITH_MODULES_FALSE='#'
20145else
20146 WITH_MODULES_TRUE='#'
20147 WITH_MODULES_FALSE=
20148fi
20149
cristy3ed852e2009-09-05 21:47:34 +000020150
20151# Enable building/use of libltdl if we are building shared libraries regardless
20152# of whether modules are built or not.
20153with_ltdl='no'
20154if test "$libtool_build_shared_libs" != 'no'; then
20155 with_ltdl='yes'
20156fi
20157
cristy73bd4a52010-10-05 11:24:23 +000020158 if test "$with_ltdl" != 'no'; then
20159 WITH_LTDL_TRUE=
20160 WITH_LTDL_FALSE='#'
20161else
20162 WITH_LTDL_TRUE='#'
20163 WITH_LTDL_FALSE=
20164fi
20165
cristy3ed852e2009-09-05 21:47:34 +000020166if test "$with_ltdl" != 'no'; then
20167
cristy8b350f62009-11-15 23:12:43 +000020168$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020169
20170
20171 # Set DLLDFLAGS
20172 if test X"$enable_shared" = Xyes; then
20173 DLLDFLAGS=-export-dynamic
20174
20175 fi
20176fi
20177
20178# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000020179# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020180# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020181if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020182 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20183else
20184 enable_delegate_build='no'
20185fi
20186
20187
20188# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020189if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020190 enableval=$enable_deprecated; enable_deprecated=$enableval
20191else
20192 enable_deprecated='no'
20193fi
20194
20195
20196if test "$enable_deprecated" = 'yes'; then
20197
cristy8b350f62009-11-15 23:12:43 +000020198$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020199
20200else
20201 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20202fi
20203
20204# Build a version of ImageMagick which operates uninstalled.
20205# Used to build distributions located via MAGICK_HOME / executable path
20206# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020207if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020208 enableval=$enable_installed; enable_installed=$enableval
20209else
20210 enable_installed='yes'
20211fi
20212
20213
20214if test "$enable_installed" = 'yes'; then
20215
cristy8b350f62009-11-15 23:12:43 +000020216$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020217
20218else
20219 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20220fi
20221
20222# Permit enciphering and deciphering image pixels.
20223# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020224if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020225 enableval=$enable_cipher; enable_cipher=$enableval
20226else
20227 enable_cipher='yes'
20228fi
20229
20230
20231if test "$enable_cipher" = 'yes'; then
20232
cristy8b350f62009-11-15 23:12:43 +000020233$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020234
20235fi
20236
20237# Build an embeddable version of ImageMagick.
20238# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020239if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020240 enableval=$enable_embeddable; enable_embeddable=$enableval
20241else
20242 enable_embeddable='no'
20243fi
20244
20245
20246if test "$enable_embeddable" = 'yes'; then
20247
cristy8b350f62009-11-15 23:12:43 +000020248$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020249
20250fi
20251
20252# Build a high dynamic range version of ImageMagick.
20253# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020254if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020255 enableval=$enable_hdri; enable_hdri=$enableval
20256else
20257 enable_hdri='no'
20258fi
20259
20260
20261MAGICK_HDRI=""
20262if test "$enable_hdri" = 'yes'; then
20263 MAGICK_HDRI="HDRI"
20264
cristy8b350f62009-11-15 23:12:43 +000020265$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020266
cristyfd9dcd42010-08-08 18:07:02 +000020267 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020268fi
20269
cristy3ed852e2009-09-05 21:47:34 +000020270# Build a version of ImageMagick with assert statements.
20271# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020272if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020273 enableval=$enable_assert; enable_assert=$enableval
20274else
20275 enable_assert='yes'
20276fi
20277
20278
20279if test "$enable_assert" = 'no'; then
20280
cristy8b350f62009-11-15 23:12:43 +000020281$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020282
20283fi
20284
20285# Add configure option --enable-maintainer-mode which enables dependency
20286# checking and generation useful to package maintainers. This is made an
20287# option to avoid confusing end users.
cristy73bd4a52010-10-05 11:24:23 +000020288
20289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20290$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20291 # Check whether --enable-maintainer-mode was given.
20292if test "${enable_maintainer_mode+set}" = set; then :
20293 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20294else
20295 USE_MAINTAINER_MODE=no
20296fi
20297
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20299$as_echo "$USE_MAINTAINER_MODE" >&6; }
20300 if test $USE_MAINTAINER_MODE = yes; then
20301 MAINTAINER_MODE_TRUE=
20302 MAINTAINER_MODE_FALSE='#'
20303else
20304 MAINTAINER_MODE_TRUE='#'
20305 MAINTAINER_MODE_FALSE=
20306fi
20307
20308 MAINT=$MAINTAINER_MODE_TRUE
20309
20310
cristy3ed852e2009-09-05 21:47:34 +000020311
20312
20313# Enable ccmalloc memory debugging support
20314# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020315if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020316 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20317else
20318 enable_ccmalloc='no'
20319fi
20320
20321
20322# Enable Electric Fence memory debugging support
20323# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020324if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020325 enableval=$enable_efence; enable_efence=$enableval
20326else
20327 enable_efence='no'
20328fi
20329
20330
20331# Enable prof-based profiling support
20332# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020333if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020334 enableval=$enable_prof; enable_prof=$enableval
20335else
20336 enable_prof='no'
20337fi
20338
20339
20340# Enable gprof-based profiling support
20341# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020342if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020343 enableval=$enable_gprof; enable_gprof=$enableval
20344else
20345 enable_gprof='no'
20346fi
20347
20348
20349# Enable gcov-based profiling support
20350# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020351if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020352 enableval=$enable_gcov; enable_gcov=$enableval
20353else
20354 enable_gcov='no'
20355fi
20356
20357
20358enable_profiling='no'
20359if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20360 enable_profiling='yes'
20361 if test "$libtool_build_shared_libs" = 'yes'; then
20362 echo "Warning: Can not profile code using shared libraries"
20363 fi
20364fi
20365
20366# Magick API method prefix
20367
20368# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020369if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020370 withval=$with_method_prefix; with_method_prefix=$enableval
20371else
20372 with_method_prefix=''
20373fi
20374
20375
20376if test "$with_method_prefix" != ''; then
20377
20378cat >>confdefs.h <<_ACEOF
20379#define NAMESPACE_PREFIX $with_method_prefix
20380_ACEOF
20381
20382fi
20383
20384# Number of bits in a Quantum
20385
20386# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020387if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020388 withval=$with_quantum_depth; with_quantum_depth=$withval
20389else
20390 with_quantum_depth=16
20391fi
20392
20393
20394if test "$with_quantum_depth" != '8'; then
20395 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20396fi
20397
20398case "${with_quantum_depth}" in
20399 8 ) ;;
20400 16 ) ;;
20401 32 ) ;;
20402 64 ) ;;
cristyf6fcb5d2010-09-24 01:19:13 +000020403 * ) { as_fn_set_status 16
20404as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000020405esac
cristycdae12a2010-09-19 02:24:31 +000020406if test "$enable_hdri" = 'yes'; then
20407 with_quantum_depth=16
20408fi
cristy3ed852e2009-09-05 21:47:34 +000020409QUANTUM_DEPTH="$with_quantum_depth"
20410
20411cat >>confdefs.h <<_ACEOF
20412#define QUANTUM_DEPTH $QUANTUM_DEPTH
20413_ACEOF
20414
20415
20416# Set pixel cache threshold
20417
20418# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020419if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020420 withval=$with_cache; with_cache=$withval
20421else
20422 with_cache=''
20423fi
20424
20425
20426if test "$with_cache" != ''; then
20427
20428cat >>confdefs.h <<_ACEOF
20429#define PixelCacheThreshold $with_cache
20430_ACEOF
20431
20432 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20433fi
20434
20435# Disable/Enable support for full delegate paths
20436
20437# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020438if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020439 withval=$with_frozenpaths; with_frozenpaths=$withval
20440else
20441 with_frozenpaths='no'
20442fi
20443
20444
20445# Enable build/install of Magick++
20446
20447# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020448if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020449 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20450else
20451 with_magick_plus_plus='yes'
20452fi
20453
20454
20455# Disable build/install of PerlMagick.
20456
20457# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000020458if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020459 withval=$with_perl; with_perl=$withval
20460else
cristyb5f4e2f2010-04-25 00:49:11 +000020461 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000020462fi
20463
20464
20465# Options to pass when configuring PerlMagick
20466
20467# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000020468if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000020469 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000020470fi
20471
20472
cristy3ed852e2009-09-05 21:47:34 +000020473
20474# Enable umem, object-caching memory allocation library.
20475
20476# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000020477if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020478 withval=$with_umem; with_umem=$withval
20479else
20480 with_umem='no'
20481fi
20482
20483if test "$with_umem" != 'yes' ; then
20484 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20485fi
20486
20487#
20488# Specify path to shared libstdc++ if not in normal location
20489#
20490
20491# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000020492if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020493 withval=$with_libstdc; with_libstdc=$withval
20494else
20495 with_libstdc=''
20496fi
20497
20498
20499if test "$with_libstdc" != ''; then
20500 if test -d "$with_libstdc"; then
20501 LIBSTDCLDFLAGS="-L$with_libstdc"
20502 fi
20503fi
20504
20505
20506# Does gcc required -traditional?
20507if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000020508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020509$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020510if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020511 $as_echo_n "(cached) " >&6
20512else
20513 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000020514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020515/* end confdefs.h. */
20516#include <sgtty.h>
20517Autoconf TIOCGETP
20518_ACEOF
20519if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020520 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020521 ac_cv_prog_gcc_traditional=yes
20522else
20523 ac_cv_prog_gcc_traditional=no
20524fi
20525rm -f conftest*
20526
20527
20528 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000020529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020530/* end confdefs.h. */
20531#include <termio.h>
20532Autoconf TCGETA
20533_ACEOF
20534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020535 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020536 ac_cv_prog_gcc_traditional=yes
20537fi
20538rm -f conftest*
20539
20540 fi
20541fi
cristy8b350f62009-11-15 23:12:43 +000020542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020543$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20544 if test $ac_cv_prog_gcc_traditional = yes; then
20545 CC="$CC -traditional"
20546 fi
20547fi
20548
20549
20550########
20551#
20552# Set defines required to build DLLs and modules using MinGW
20553#
20554########
20555# These options are set for multi-thread DLL module build
20556# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20557# module: _DLL
20558# executable/Magick++: _DLL _MAGICKMOD_
20559MODULE_EXTRA_CPPFLAGS=''
20560LIBRARY_EXTRA_CPPFLAGS=''
20561if test "${native_win32_build}" = 'yes'; then
20562 if test "${libtool_build_shared_libs}" = 'yes'; then
20563 CPPFLAGS="$CPPFLAGS -D_DLL"
20564 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20565 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20566 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20567 if test "$with_modules" = 'yes'; then
20568 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20569 else
20570 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20571 fi
20572 else
20573 CPPFLAGS="$CPPFLAGS -D_LIB"
20574 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20575 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20576 fi
20577 if test "$with_threads" = 'yes'; then
20578 CPPFLAGS="$CPPFLAGS -D_MT"
20579 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20580 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20581 fi
20582fi
20583
20584
20585
20586# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020588$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020589if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020590 $as_echo_n "(cached) " >&6
20591else
cristy8b350f62009-11-15 23:12:43 +000020592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020593/* end confdefs.h. */
20594#include <stdlib.h>
20595#include <stdarg.h>
20596#include <string.h>
20597#include <float.h>
20598
20599int
20600main ()
20601{
20602
20603 ;
20604 return 0;
20605}
20606_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020607if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020608 ac_cv_header_stdc=yes
20609else
cristy8b350f62009-11-15 23:12:43 +000020610 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020611fi
cristy3ed852e2009-09-05 21:47:34 +000020612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20613
20614if test $ac_cv_header_stdc = yes; then
20615 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020617/* end confdefs.h. */
20618#include <string.h>
20619
20620_ACEOF
20621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020622 $EGREP "memchr" >/dev/null 2>&1; then :
20623
cristy3ed852e2009-09-05 21:47:34 +000020624else
20625 ac_cv_header_stdc=no
20626fi
20627rm -f conftest*
20628
20629fi
20630
20631if test $ac_cv_header_stdc = yes; then
20632 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020634/* end confdefs.h. */
20635#include <stdlib.h>
20636
20637_ACEOF
20638if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020639 $EGREP "free" >/dev/null 2>&1; then :
20640
cristy3ed852e2009-09-05 21:47:34 +000020641else
20642 ac_cv_header_stdc=no
20643fi
20644rm -f conftest*
20645
20646fi
20647
20648if test $ac_cv_header_stdc = yes; then
20649 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020650 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020651 :
20652else
cristy8b350f62009-11-15 23:12:43 +000020653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020654/* end confdefs.h. */
20655#include <ctype.h>
20656#include <stdlib.h>
20657#if ((' ' & 0x0FF) == 0x020)
20658# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20659# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20660#else
20661# define ISLOWER(c) \
20662 (('a' <= (c) && (c) <= 'i') \
20663 || ('j' <= (c) && (c) <= 'r') \
20664 || ('s' <= (c) && (c) <= 'z'))
20665# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20666#endif
20667
20668#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20669int
20670main ()
20671{
20672 int i;
20673 for (i = 0; i < 256; i++)
20674 if (XOR (islower (i), ISLOWER (i))
20675 || toupper (i) != TOUPPER (i))
20676 return 2;
20677 return 0;
20678}
20679_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020680if ac_fn_c_try_run "$LINENO"; then :
20681
cristy3ed852e2009-09-05 21:47:34 +000020682else
cristy8b350f62009-11-15 23:12:43 +000020683 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020684fi
cristy8b350f62009-11-15 23:12:43 +000020685rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20686 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020687fi
20688
cristy3ed852e2009-09-05 21:47:34 +000020689fi
20690fi
cristy8b350f62009-11-15 23:12:43 +000020691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020692$as_echo "$ac_cv_header_stdc" >&6; }
20693if test $ac_cv_header_stdc = yes; then
20694
cristy8b350f62009-11-15 23:12:43 +000020695$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020696
20697fi
20698
20699if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020700 { $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 +000020701 header files. Compilation cannot proceed. Please install the ANSI C
20702 headers and rerun this script." >&5
20703$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20704 header files. Compilation cannot proceed. Please install the ANSI C
20705 headers and rerun this script." >&2;};
20706fi
cristya0b81c32010-01-22 02:54:33 +000020707
20708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20709$as_echo_n "checking whether to enable assertions... " >&6; }
20710 # Check whether --enable-assert was given.
20711if test "${enable_assert+set}" = set; then :
20712 enableval=$enable_assert; ac_enable_assert=$enableval
20713 if test "x$enableval" = xno; then :
20714
20715$as_echo "#define NDEBUG 1" >>confdefs.h
20716
20717elif test "x$enableval" != xyes; then :
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20719$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20720 ac_enable_assert=yes
20721fi
20722else
20723 ac_enable_assert=yes
20724fi
20725
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20727$as_echo "$ac_enable_assert" >&6; }
20728
cristy3ed852e2009-09-05 21:47:34 +000020729ac_header_dirent=no
20730for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20731 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020733$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +000020734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000020735 $as_echo_n "(cached) " >&6
20736else
cristy8b350f62009-11-15 23:12:43 +000020737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020738/* end confdefs.h. */
20739#include <sys/types.h>
20740#include <$ac_hdr>
20741
20742int
20743main ()
20744{
20745if ((DIR *) 0)
20746return 0;
20747 ;
20748 return 0;
20749}
20750_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020751if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020752 eval "$as_ac_Header=yes"
20753else
cristy8b350f62009-11-15 23:12:43 +000020754 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020755fi
cristy3ed852e2009-09-05 21:47:34 +000020756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20757fi
cristy8b350f62009-11-15 23:12:43 +000020758eval ac_res=\$$as_ac_Header
20759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020760$as_echo "$ac_res" >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +000020761eval as_val=\$$as_ac_Header
20762 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020763 cat >>confdefs.h <<_ACEOF
20764#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20765_ACEOF
20766
20767ac_header_dirent=$ac_hdr; break
20768fi
20769
20770done
20771# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20772if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020774$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020775if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020776 $as_echo_n "(cached) " >&6
20777else
20778 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020780/* end confdefs.h. */
20781
20782/* Override any GCC internal prototype to avoid an error.
20783 Use char because int might match the return type of a GCC
20784 builtin and then its argument prototype would still apply. */
20785#ifdef __cplusplus
20786extern "C"
20787#endif
20788char opendir ();
20789int
20790main ()
20791{
20792return opendir ();
20793 ;
20794 return 0;
20795}
20796_ACEOF
20797for ac_lib in '' dir; do
20798 if test -z "$ac_lib"; then
20799 ac_res="none required"
20800 else
20801 ac_res=-l$ac_lib
20802 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20803 fi
cristy8b350f62009-11-15 23:12:43 +000020804 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020805 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020806fi
cristy8b350f62009-11-15 23:12:43 +000020807rm -f core conftest.err conftest.$ac_objext \
20808 conftest$ac_exeext
20809 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020810 break
20811fi
20812done
cristy8b350f62009-11-15 23:12:43 +000020813if test "${ac_cv_search_opendir+set}" = set; then :
20814
cristy3ed852e2009-09-05 21:47:34 +000020815else
20816 ac_cv_search_opendir=no
20817fi
20818rm conftest.$ac_ext
20819LIBS=$ac_func_search_save_LIBS
20820fi
cristy8b350f62009-11-15 23:12:43 +000020821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020822$as_echo "$ac_cv_search_opendir" >&6; }
20823ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020824if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20826
20827fi
20828
20829else
cristy8b350f62009-11-15 23:12:43 +000020830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020831$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020832if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020833 $as_echo_n "(cached) " >&6
20834else
20835 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020837/* end confdefs.h. */
20838
20839/* Override any GCC internal prototype to avoid an error.
20840 Use char because int might match the return type of a GCC
20841 builtin and then its argument prototype would still apply. */
20842#ifdef __cplusplus
20843extern "C"
20844#endif
20845char opendir ();
20846int
20847main ()
20848{
20849return opendir ();
20850 ;
20851 return 0;
20852}
20853_ACEOF
20854for ac_lib in '' x; do
20855 if test -z "$ac_lib"; then
20856 ac_res="none required"
20857 else
20858 ac_res=-l$ac_lib
20859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20860 fi
cristy8b350f62009-11-15 23:12:43 +000020861 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020862 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020863fi
cristy8b350f62009-11-15 23:12:43 +000020864rm -f core conftest.err conftest.$ac_objext \
20865 conftest$ac_exeext
20866 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020867 break
20868fi
20869done
cristy8b350f62009-11-15 23:12:43 +000020870if test "${ac_cv_search_opendir+set}" = set; then :
20871
cristy3ed852e2009-09-05 21:47:34 +000020872else
20873 ac_cv_search_opendir=no
20874fi
20875rm conftest.$ac_ext
20876LIBS=$ac_func_search_save_LIBS
20877fi
cristy8b350f62009-11-15 23:12:43 +000020878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020879$as_echo "$ac_cv_search_opendir" >&6; }
20880ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020881if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020882 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20883
20884fi
20885
20886fi
20887
20888
20889# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020890for 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 +000020891do :
20892 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20893ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyf6fcb5d2010-09-24 01:19:13 +000020894eval as_val=\$$as_ac_Header
20895 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020896 cat >>confdefs.h <<_ACEOF
20897#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20898_ACEOF
20899
20900fi
20901
20902done
20903
20904
20905########
20906#
20907# Checks for typedefs, structures, and compiler characteristics.
20908#
20909########
20910
cristy8b350f62009-11-15 23:12:43 +000020911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020912$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020913if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020914 $as_echo_n "(cached) " >&6
20915else
cristy8b350f62009-11-15 23:12:43 +000020916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020917/* end confdefs.h. */
20918
20919#include <stdbool.h>
20920#ifndef bool
20921 "error: bool is not defined"
20922#endif
20923#ifndef false
20924 "error: false is not defined"
20925#endif
20926#if false
20927 "error: false is not 0"
20928#endif
20929#ifndef true
20930 "error: true is not defined"
20931#endif
20932#if true != 1
20933 "error: true is not 1"
20934#endif
20935#ifndef __bool_true_false_are_defined
20936 "error: __bool_true_false_are_defined is not defined"
20937#endif
20938
20939 struct s { _Bool s: 1; _Bool t; } s;
20940
20941 char a[true == 1 ? 1 : -1];
20942 char b[false == 0 ? 1 : -1];
20943 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20944 char d[(bool) 0.5 == true ? 1 : -1];
20945 bool e = &s;
20946 char f[(_Bool) 0.0 == false ? 1 : -1];
20947 char g[true];
20948 char h[sizeof (_Bool)];
20949 char i[sizeof s.t];
20950 enum { j = false, k = true, l = false * true, m = true * 256 };
20951 /* The following fails for
20952 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20953 _Bool n[m];
20954 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20955 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20956# if defined __xlc__ || defined __GNUC__
20957 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20958 reported by James Lemley on 2005-10-05; see
20959 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20960 This test is not quite right, since xlc is allowed to
20961 reject this program, as the initializer for xlcbug is
20962 not one of the forms that C requires support for.
20963 However, doing the test right would require a runtime
20964 test, and that would make cross-compilation harder.
20965 Let us hope that IBM fixes the xlc bug, and also adds
20966 support for this kind of constant expression. In the
20967 meantime, this test will reject xlc, which is OK, since
20968 our stdbool.h substitute should suffice. We also test
20969 this with GCC, where it should work, to detect more
20970 quickly whether someone messes up the test in the
20971 future. */
20972 char digs[] = "0123456789";
20973 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20974# endif
20975 /* Catch a bug in an HP-UX C compiler. See
20976 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20977 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20978 */
20979 _Bool q = true;
20980 _Bool *pq = &q;
20981
20982int
20983main ()
20984{
20985
20986 *pq |= q;
20987 *pq |= ! q;
20988 /* Refer to every declared value, to avoid compiler optimizations. */
20989 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20990 + !m + !n + !o + !p + !q + !pq);
20991
20992 ;
20993 return 0;
20994}
20995_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020996if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020997 ac_cv_header_stdbool_h=yes
20998else
cristy8b350f62009-11-15 23:12:43 +000020999 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021000fi
cristy3ed852e2009-09-05 21:47:34 +000021001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21002fi
cristy8b350f62009-11-15 23:12:43 +000021003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021004$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021005ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21006if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021007
21008cat >>confdefs.h <<_ACEOF
21009#define HAVE__BOOL 1
21010_ACEOF
21011
21012
21013fi
21014
21015if test $ac_cv_header_stdbool_h = yes; then
21016
cristy8b350f62009-11-15 23:12:43 +000021017$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021018
21019fi
21020
cristy8b350f62009-11-15 23:12:43 +000021021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021022$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021023if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021024 $as_echo_n "(cached) " >&6
21025else
cristy8b350f62009-11-15 23:12:43 +000021026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021027/* end confdefs.h. */
21028
21029int
21030main ()
21031{
21032
21033volatile int x;
21034int * volatile y = (int *) 0;
21035return !x && !y;
21036 ;
21037 return 0;
21038}
21039_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021040if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021041 ac_cv_c_volatile=yes
21042else
cristy8b350f62009-11-15 23:12:43 +000021043 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021044fi
cristy3ed852e2009-09-05 21:47:34 +000021045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21046fi
cristy8b350f62009-11-15 23:12:43 +000021047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021048$as_echo "$ac_cv_c_volatile" >&6; }
21049if test $ac_cv_c_volatile = no; then
21050
cristy8b350f62009-11-15 23:12:43 +000021051$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021052
21053fi
21054
cristy8b350f62009-11-15 23:12:43 +000021055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021056$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021057if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021058 $as_echo_n "(cached) " >&6
21059else
cristy8b350f62009-11-15 23:12:43 +000021060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021061/* end confdefs.h. */
21062#define x(y) #y
21063
21064char *s = x(teststring);
21065_ACEOF
21066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021067 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021068 ac_cv_c_stringize=no
21069else
21070 ac_cv_c_stringize=yes
21071fi
21072rm -f conftest*
21073
21074fi
cristy8b350f62009-11-15 23:12:43 +000021075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021076$as_echo "$ac_cv_c_stringize" >&6; }
21077if test $ac_cv_c_stringize = yes; then
21078
cristy8b350f62009-11-15 23:12:43 +000021079$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021080
21081fi
21082
cristy8b350f62009-11-15 23:12:43 +000021083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021084$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021085if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021086 $as_echo_n "(cached) " >&6
21087else
cristy8b350f62009-11-15 23:12:43 +000021088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021089/* end confdefs.h. */
21090#include <sys/types.h>
21091#include <sys/stat.h>
21092
21093#if defined S_ISBLK && defined S_IFDIR
21094extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21095#endif
21096
21097#if defined S_ISBLK && defined S_IFCHR
21098extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21099#endif
21100
21101#if defined S_ISLNK && defined S_IFREG
21102extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21103#endif
21104
21105#if defined S_ISSOCK && defined S_IFREG
21106extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21107#endif
21108
21109_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021110if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021111 ac_cv_header_stat_broken=no
21112else
cristy8b350f62009-11-15 23:12:43 +000021113 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021114fi
cristy3ed852e2009-09-05 21:47:34 +000021115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21116fi
cristy8b350f62009-11-15 23:12:43 +000021117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021118$as_echo "$ac_cv_header_stat_broken" >&6; }
21119if test $ac_cv_header_stat_broken = yes; then
21120
cristy8b350f62009-11-15 23:12:43 +000021121$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021122
21123fi
21124
cristy8b350f62009-11-15 23:12:43 +000021125{ $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 +000021126$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021127if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021128 $as_echo_n "(cached) " >&6
21129else
cristy8b350f62009-11-15 23:12:43 +000021130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021131/* end confdefs.h. */
21132#include <sys/types.h>
21133#include <sys/time.h>
21134#include <time.h>
21135
21136int
21137main ()
21138{
21139if ((struct tm *) 0)
21140return 0;
21141 ;
21142 return 0;
21143}
21144_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021145if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021146 ac_cv_header_time=yes
21147else
cristy8b350f62009-11-15 23:12:43 +000021148 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021149fi
cristy3ed852e2009-09-05 21:47:34 +000021150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21151fi
cristy8b350f62009-11-15 23:12:43 +000021152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021153$as_echo "$ac_cv_header_time" >&6; }
21154if test $ac_cv_header_time = yes; then
21155
cristy8b350f62009-11-15 23:12:43 +000021156$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021157
21158fi
21159
cristy8b350f62009-11-15 23:12:43 +000021160{ $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 +000021161$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021162if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021163 $as_echo_n "(cached) " >&6
21164else
cristy8b350f62009-11-15 23:12:43 +000021165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021166/* end confdefs.h. */
21167#include <sys/types.h>
21168#include <time.h>
21169
21170int
21171main ()
21172{
21173struct tm tm;
21174 int *p = &tm.tm_sec;
21175 return !p;
21176 ;
21177 return 0;
21178}
21179_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021180if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021181 ac_cv_struct_tm=time.h
21182else
cristy8b350f62009-11-15 23:12:43 +000021183 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021184fi
cristy3ed852e2009-09-05 21:47:34 +000021185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21186fi
cristy8b350f62009-11-15 23:12:43 +000021187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021188$as_echo "$ac_cv_struct_tm" >&6; }
21189if test $ac_cv_struct_tm = sys/time.h; then
21190
cristy8b350f62009-11-15 23:12:43 +000021191$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021192
21193fi
21194
cristy92703d82010-04-26 00:18:18 +000021195ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21196#include <$ac_cv_struct_tm>
21197
21198"
21199if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21200
21201cat >>confdefs.h <<_ACEOF
21202#define HAVE_STRUCT_TM_TM_ZONE 1
21203_ACEOF
21204
21205
21206fi
21207
21208if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21209
21210$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21211
21212else
21213 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21214"
21215if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21216 ac_have_decl=1
21217else
21218 ac_have_decl=0
21219fi
21220
21221cat >>confdefs.h <<_ACEOF
21222#define HAVE_DECL_TZNAME $ac_have_decl
21223_ACEOF
21224
21225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21226$as_echo_n "checking for tzname... " >&6; }
21227if test "${ac_cv_var_tzname+set}" = set; then :
21228 $as_echo_n "(cached) " >&6
21229else
21230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21231/* end confdefs.h. */
21232#include <time.h>
21233#if !HAVE_DECL_TZNAME
21234extern char *tzname[];
21235#endif
21236
21237int
21238main ()
21239{
21240return tzname[0][0];
21241 ;
21242 return 0;
21243}
21244_ACEOF
21245if ac_fn_c_try_link "$LINENO"; then :
21246 ac_cv_var_tzname=yes
21247else
21248 ac_cv_var_tzname=no
21249fi
21250rm -f core conftest.err conftest.$ac_objext \
21251 conftest$ac_exeext conftest.$ac_ext
21252fi
21253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21254$as_echo "$ac_cv_var_tzname" >&6; }
21255 if test $ac_cv_var_tzname = yes; then
21256
21257$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21258
21259 fi
21260fi
21261
cristy8b350f62009-11-15 23:12:43 +000021262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021263$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021264if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021265 $as_echo_n "(cached) " >&6
21266else
21267 echo '#! /bin/cat
21268exit 69
21269' >conftest
21270chmod u+x conftest
21271(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21272if test $? -ne 69; then
21273 ac_cv_sys_interpreter=yes
21274else
21275 ac_cv_sys_interpreter=no
21276fi
21277rm -f conftest
21278fi
cristy8b350f62009-11-15 23:12:43 +000021279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021280$as_echo "$ac_cv_sys_interpreter" >&6; }
21281interpval=$ac_cv_sys_interpreter
21282
21283
cristy3ed852e2009-09-05 21:47:34 +000021284# If the C compiler supports the keyword inline, do nothing. Otherwise
21285# define inline to __inline__ or __inline if it accepts one of those,
21286# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021288$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021289if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021290 $as_echo_n "(cached) " >&6
21291else
21292 ac_cv_c_inline=no
21293for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021295/* end confdefs.h. */
21296#ifndef __cplusplus
21297typedef int foo_t;
21298static $ac_kw foo_t static_foo () {return 0; }
21299$ac_kw foo_t foo () {return 0; }
21300#endif
21301
21302_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021303if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021304 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021305fi
cristy3ed852e2009-09-05 21:47:34 +000021306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21307 test "$ac_cv_c_inline" != no && break
21308done
21309
21310fi
cristy8b350f62009-11-15 23:12:43 +000021311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021312$as_echo "$ac_cv_c_inline" >&6; }
21313
cristy3ed852e2009-09-05 21:47:34 +000021314case $ac_cv_c_inline in
21315 inline | yes) ;;
21316 *)
21317 case $ac_cv_c_inline in
21318 no) ac_val=;;
21319 *) ac_val=$ac_cv_c_inline;;
21320 esac
21321 cat >>confdefs.h <<_ACEOF
21322#ifndef __cplusplus
21323#define inline $ac_val
21324#endif
21325_ACEOF
21326 ;;
21327esac
21328
21329
21330# If the C compiler supports the keyword restrict, do nothing. Otherwise
21331# define restrict to __restrict__ or __restrict if it accepts one of those,
21332# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021334$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021335if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021336 $as_echo_n "(cached) " >&6
21337else
21338 ac_cv_c_restrict=no
21339 # The order here caters to the fact that C++ does not require restrict.
21340 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021342/* end confdefs.h. */
21343typedef int * int_ptr;
21344 int foo (int_ptr $ac_kw ip) {
21345 return ip[0];
21346 }
21347int
21348main ()
21349{
21350int s[1];
21351 int * $ac_kw t = s;
21352 t[0] = 0;
21353 return foo(t)
21354 ;
21355 return 0;
21356}
21357_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021358if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021359 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021360fi
cristy3ed852e2009-09-05 21:47:34 +000021361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21362 test "$ac_cv_c_restrict" != no && break
21363 done
21364
21365fi
cristy8b350f62009-11-15 23:12:43 +000021366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021367$as_echo "$ac_cv_c_restrict" >&6; }
21368
cristy3ed852e2009-09-05 21:47:34 +000021369 case $ac_cv_c_restrict in
21370 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021371 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021372 ;;
21373 *) cat >>confdefs.h <<_ACEOF
21374#define restrict $ac_cv_c_restrict
21375_ACEOF
21376 ;;
21377 esac
21378
21379
21380# If words are stored with the most significant byte first (like
21381# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021383$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021384if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021385 $as_echo_n "(cached) " >&6
21386else
21387 ac_cv_c_bigendian=unknown
21388 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021390/* end confdefs.h. */
21391#ifndef __APPLE_CC__
21392 not a universal capable compiler
21393 #endif
21394 typedef int dummy;
21395
21396_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021397if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021398
21399 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021400 # there are at least two -arch flags with different values.
21401 ac_arch=
21402 ac_prev=
21403 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21404 if test -n "$ac_prev"; then
21405 case $ac_word in
21406 i?86 | x86_64 | ppc | ppc64)
21407 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21408 ac_arch=$ac_word
21409 else
21410 ac_cv_c_bigendian=universal
21411 break
21412 fi
21413 ;;
21414 esac
21415 ac_prev=
21416 elif test "x$ac_word" = "x-arch"; then
21417 ac_prev=arch
21418 fi
21419 done
cristy3ed852e2009-09-05 21:47:34 +000021420fi
cristy3ed852e2009-09-05 21:47:34 +000021421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21422 if test $ac_cv_c_bigendian = unknown; then
21423 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021425/* end confdefs.h. */
21426#include <sys/types.h>
21427 #include <sys/param.h>
21428
21429int
21430main ()
21431{
21432#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21433 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21434 && LITTLE_ENDIAN)
21435 bogus endian macros
21436 #endif
21437
21438 ;
21439 return 0;
21440}
21441_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021442if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021443 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021445/* end confdefs.h. */
21446#include <sys/types.h>
21447 #include <sys/param.h>
21448
21449int
21450main ()
21451{
21452#if BYTE_ORDER != BIG_ENDIAN
21453 not big endian
21454 #endif
21455
21456 ;
21457 return 0;
21458}
21459_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021460if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021461 ac_cv_c_bigendian=yes
21462else
cristy8b350f62009-11-15 23:12:43 +000021463 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021464fi
cristy3ed852e2009-09-05 21:47:34 +000021465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021466fi
cristy3ed852e2009-09-05 21:47:34 +000021467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21468 fi
21469 if test $ac_cv_c_bigendian = unknown; then
21470 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000021471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021472/* end confdefs.h. */
21473#include <limits.h>
21474
21475int
21476main ()
21477{
21478#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21479 bogus endian macros
21480 #endif
21481
21482 ;
21483 return 0;
21484}
21485_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021486if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021487 # It does; now see whether it defined to _BIG_ENDIAN or not.
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 <limits.h>
21491
21492int
21493main ()
21494{
21495#ifndef _BIG_ENDIAN
21496 not big endian
21497 #endif
21498
21499 ;
21500 return 0;
21501}
21502_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021503if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021504 ac_cv_c_bigendian=yes
21505else
cristy8b350f62009-11-15 23:12:43 +000021506 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021507fi
cristy3ed852e2009-09-05 21:47:34 +000021508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021509fi
cristy3ed852e2009-09-05 21:47:34 +000021510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21511 fi
21512 if test $ac_cv_c_bigendian = unknown; then
21513 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000021514 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021515 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000021516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021517/* end confdefs.h. */
21518short int ascii_mm[] =
21519 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21520 short int ascii_ii[] =
21521 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21522 int use_ascii (int i) {
21523 return ascii_mm[i] + ascii_ii[i];
21524 }
21525 short int ebcdic_ii[] =
21526 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21527 short int ebcdic_mm[] =
21528 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21529 int use_ebcdic (int i) {
21530 return ebcdic_mm[i] + ebcdic_ii[i];
21531 }
21532 extern int foo;
21533
21534int
21535main ()
21536{
21537return use_ascii (foo) == use_ebcdic (foo);
21538 ;
21539 return 0;
21540}
21541_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021542if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021543 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21544 ac_cv_c_bigendian=yes
21545 fi
21546 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21547 if test "$ac_cv_c_bigendian" = unknown; then
21548 ac_cv_c_bigendian=no
21549 else
21550 # finding both strings is unlikely to happen, but who knows?
21551 ac_cv_c_bigendian=unknown
21552 fi
21553 fi
cristy3ed852e2009-09-05 21:47:34 +000021554fi
cristy3ed852e2009-09-05 21:47:34 +000021555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21556else
cristy8b350f62009-11-15 23:12:43 +000021557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021558/* end confdefs.h. */
21559$ac_includes_default
21560int
21561main ()
21562{
21563
21564 /* Are we little or big endian? From Harbison&Steele. */
21565 union
21566 {
21567 long int l;
21568 char c[sizeof (long int)];
21569 } u;
21570 u.l = 1;
21571 return u.c[sizeof (long int) - 1] == 1;
21572
21573 ;
21574 return 0;
21575}
21576_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021577if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021578 ac_cv_c_bigendian=no
21579else
cristy8b350f62009-11-15 23:12:43 +000021580 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000021581fi
cristy8b350f62009-11-15 23:12:43 +000021582rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21583 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021584fi
21585
cristy3ed852e2009-09-05 21:47:34 +000021586 fi
21587fi
cristy8b350f62009-11-15 23:12:43 +000021588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021589$as_echo "$ac_cv_c_bigendian" >&6; }
21590 case $ac_cv_c_bigendian in #(
21591 yes)
cristy8b350f62009-11-15 23:12:43 +000021592 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021593;; #(
21594 no)
21595 ;; #(
21596 universal)
21597
cristy8b350f62009-11-15 23:12:43 +000021598$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021599
21600 ;; #(
21601 *)
cristyf6fcb5d2010-09-24 01:19:13 +000021602 as_fn_error "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000021603 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021604 esac
21605
21606
21607# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021608ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21609if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021610
cristy3ed852e2009-09-05 21:47:34 +000021611else
21612
21613cat >>confdefs.h <<_ACEOF
21614#define mode_t int
21615_ACEOF
21616
21617fi
21618
21619
21620# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021621ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21622if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021623
cristy3ed852e2009-09-05 21:47:34 +000021624else
21625
21626cat >>confdefs.h <<_ACEOF
21627#define off_t long int
21628_ACEOF
21629
21630fi
21631
21632
21633# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021634ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21635if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021636
cristy3ed852e2009-09-05 21:47:34 +000021637else
21638
21639cat >>confdefs.h <<_ACEOF
21640#define pid_t int
21641_ACEOF
21642
21643fi
21644
21645
21646# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021647ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21648if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021649
cristy3ed852e2009-09-05 21:47:34 +000021650else
21651
21652cat >>confdefs.h <<_ACEOF
21653#define size_t unsigned int
21654_ACEOF
21655
21656fi
21657
21658
21659# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021660ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21661if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021662
cristy3ed852e2009-09-05 21:47:34 +000021663else
21664
21665cat >>confdefs.h <<_ACEOF
21666#define ssize_t int
21667_ACEOF
21668
21669fi
21670
21671
21672# If the C compiler supports a working long double type with more range
21673# or precision than the double type, define HAVE_LONG_DOUBLE.
21674
cristy8b350f62009-11-15 23:12:43 +000021675 { $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 +000021676$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021677if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021678 $as_echo_n "(cached) " >&6
21679else
cristy8b350f62009-11-15 23:12:43 +000021680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021681/* end confdefs.h. */
21682#include <float.h>
21683 long double const a[] =
21684 {
21685 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21686 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21687 };
21688 long double
21689 f (long double x)
21690 {
21691 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21692 + (x ? f (x) : 'c'));
21693 }
21694
21695int
21696main ()
21697{
21698static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21699 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21700 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21701 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21702 && (int) LDBL_EPSILON == 0
21703 )];
21704test_array [0] = 0
21705
21706 ;
21707 return 0;
21708}
21709_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021710if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021711 ac_cv_type_long_double_wider=yes
21712else
cristy8b350f62009-11-15 23:12:43 +000021713 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021714fi
cristy3ed852e2009-09-05 21:47:34 +000021715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21716fi
cristy8b350f62009-11-15 23:12:43 +000021717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021718$as_echo "$ac_cv_type_long_double_wider" >&6; }
21719 if test $ac_cv_type_long_double_wider = yes; then
21720
cristy8b350f62009-11-15 23:12:43 +000021721$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021722
21723 fi
21724
21725
21726# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21727# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021729$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021730if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021731 $as_echo_n "(cached) " >&6
21732else
cristy8b350f62009-11-15 23:12:43 +000021733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021734/* end confdefs.h. */
21735$ac_includes_default
21736int
21737main ()
21738{
21739static int test_array [1 - 2 * !(((char) -1) < 0)];
21740test_array [0] = 0
21741
21742 ;
21743 return 0;
21744}
21745_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021746if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021747 ac_cv_c_char_unsigned=no
21748else
cristy8b350f62009-11-15 23:12:43 +000021749 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021750fi
cristy3ed852e2009-09-05 21:47:34 +000021751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21752fi
cristy8b350f62009-11-15 23:12:43 +000021753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021754$as_echo "$ac_cv_c_char_unsigned" >&6; }
21755if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021756 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021757
21758fi
21759
21760
21761# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21762# The cast to long int works around a bug in the HP C Compiler
21763# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21764# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21765# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021767$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021768if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021769 $as_echo_n "(cached) " >&6
21770else
cristy8b350f62009-11-15 23:12:43 +000021771 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 +000021772
cristy3ed852e2009-09-05 21:47:34 +000021773else
cristy8b350f62009-11-15 23:12:43 +000021774 if test "$ac_cv_type_signed_short" = yes; then
21775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021777{ as_fn_set_status 77
21778as_fn_error "cannot compute sizeof (signed short)
21779See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021780 else
21781 ac_cv_sizeof_signed_short=0
21782 fi
21783fi
cristy8b350f62009-11-15 23:12:43 +000021784
cristy3ed852e2009-09-05 21:47:34 +000021785fi
cristy8b350f62009-11-15 23:12:43 +000021786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021787$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21788
21789
21790
21791cat >>confdefs.h <<_ACEOF
21792#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21793_ACEOF
21794
21795
21796
21797# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21798# The cast to long int works around a bug in the HP C Compiler
21799# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21800# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21801# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021803$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021804if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021805 $as_echo_n "(cached) " >&6
21806else
cristy8b350f62009-11-15 23:12:43 +000021807 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 +000021808
cristy3ed852e2009-09-05 21:47:34 +000021809else
cristy8b350f62009-11-15 23:12:43 +000021810 if test "$ac_cv_type_unsigned_short" = yes; then
21811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021812$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021813{ as_fn_set_status 77
21814as_fn_error "cannot compute sizeof (unsigned short)
21815See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021816 else
21817 ac_cv_sizeof_unsigned_short=0
21818 fi
21819fi
cristy8b350f62009-11-15 23:12:43 +000021820
cristy3ed852e2009-09-05 21:47:34 +000021821fi
cristy8b350f62009-11-15 23:12:43 +000021822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021823$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21824
21825
21826
21827cat >>confdefs.h <<_ACEOF
21828#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21829_ACEOF
21830
21831
21832
21833# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21834# The cast to long int works around a bug in the HP C Compiler
21835# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21836# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21837# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021839$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021840if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021841 $as_echo_n "(cached) " >&6
21842else
cristy8b350f62009-11-15 23:12:43 +000021843 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 +000021844
cristy3ed852e2009-09-05 21:47:34 +000021845else
cristy8b350f62009-11-15 23:12:43 +000021846 if test "$ac_cv_type_signed_int" = yes; then
21847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021848$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021849{ as_fn_set_status 77
21850as_fn_error "cannot compute sizeof (signed int)
21851See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021852 else
21853 ac_cv_sizeof_signed_int=0
21854 fi
21855fi
cristy8b350f62009-11-15 23:12:43 +000021856
cristy3ed852e2009-09-05 21:47:34 +000021857fi
cristy8b350f62009-11-15 23:12:43 +000021858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021859$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21860
21861
21862
21863cat >>confdefs.h <<_ACEOF
21864#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21865_ACEOF
21866
21867
21868
21869# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21870# The cast to long int works around a bug in the HP C Compiler
21871# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21872# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21873# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021875$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021876if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021877 $as_echo_n "(cached) " >&6
21878else
cristy8b350f62009-11-15 23:12:43 +000021879 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 +000021880
cristy3ed852e2009-09-05 21:47:34 +000021881else
cristy8b350f62009-11-15 23:12:43 +000021882 if test "$ac_cv_type_unsigned_int" = yes; then
21883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021884$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021885{ as_fn_set_status 77
21886as_fn_error "cannot compute sizeof (unsigned int)
21887See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021888 else
21889 ac_cv_sizeof_unsigned_int=0
21890 fi
21891fi
cristy8b350f62009-11-15 23:12:43 +000021892
cristy3ed852e2009-09-05 21:47:34 +000021893fi
cristy8b350f62009-11-15 23:12:43 +000021894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021895$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21896
21897
21898
21899cat >>confdefs.h <<_ACEOF
21900#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21901_ACEOF
21902
21903
21904
21905# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21906# The cast to long int works around a bug in the HP C Compiler
21907# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21908# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21909# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021911$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021912if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021913 $as_echo_n "(cached) " >&6
21914else
cristy8b350f62009-11-15 23:12:43 +000021915 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 +000021916
cristy3ed852e2009-09-05 21:47:34 +000021917else
cristy8b350f62009-11-15 23:12:43 +000021918 if test "$ac_cv_type_signed_long" = yes; then
21919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021920$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021921{ as_fn_set_status 77
21922as_fn_error "cannot compute sizeof (signed long)
21923See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021924 else
21925 ac_cv_sizeof_signed_long=0
21926 fi
21927fi
cristy8b350f62009-11-15 23:12:43 +000021928
cristy3ed852e2009-09-05 21:47:34 +000021929fi
cristy8b350f62009-11-15 23:12:43 +000021930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021931$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21932
21933
21934
21935cat >>confdefs.h <<_ACEOF
21936#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21937_ACEOF
21938
21939
21940
21941# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21942# The cast to long int works around a bug in the HP C Compiler
21943# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21944# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21945# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021947$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021948if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021949 $as_echo_n "(cached) " >&6
21950else
cristy8b350f62009-11-15 23:12:43 +000021951 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 +000021952
cristy3ed852e2009-09-05 21:47:34 +000021953else
cristy8b350f62009-11-15 23:12:43 +000021954 if test "$ac_cv_type_unsigned_long" = yes; then
21955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021956$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021957{ as_fn_set_status 77
21958as_fn_error "cannot compute sizeof (unsigned long)
21959See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021960 else
21961 ac_cv_sizeof_unsigned_long=0
21962 fi
21963fi
cristy8b350f62009-11-15 23:12:43 +000021964
cristy3ed852e2009-09-05 21:47:34 +000021965fi
cristy8b350f62009-11-15 23:12:43 +000021966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021967$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21968
21969
21970
21971cat >>confdefs.h <<_ACEOF
21972#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21973_ACEOF
21974
21975
21976
21977# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21978# 'signed long long' is not supported then the value defined is zero.
21979# The cast to long int works around a bug in the HP C Compiler
21980# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21981# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21982# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021984$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021985if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021986 $as_echo_n "(cached) " >&6
21987else
cristy8b350f62009-11-15 23:12:43 +000021988 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 +000021989
cristy3ed852e2009-09-05 21:47:34 +000021990else
cristy8b350f62009-11-15 23:12:43 +000021991 if test "$ac_cv_type_signed_long_long" = yes; then
21992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021993$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021994{ as_fn_set_status 77
21995as_fn_error "cannot compute sizeof (signed long long)
21996See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021997 else
21998 ac_cv_sizeof_signed_long_long=0
21999 fi
22000fi
cristy8b350f62009-11-15 23:12:43 +000022001
cristy3ed852e2009-09-05 21:47:34 +000022002fi
cristy8b350f62009-11-15 23:12:43 +000022003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022004$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
22005
22006
22007
22008cat >>confdefs.h <<_ACEOF
22009#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
22010_ACEOF
22011
22012
22013
22014# Obtain size of a 'unsigned long long' and define as
22015# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
22016# supported then the value defined is zero.
22017# The cast to long int works around a bug in the HP C Compiler
22018# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22019# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22020# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022022$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022023if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022024 $as_echo_n "(cached) " >&6
22025else
cristy8b350f62009-11-15 23:12:43 +000022026 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 +000022027
cristy3ed852e2009-09-05 21:47:34 +000022028else
cristy8b350f62009-11-15 23:12:43 +000022029 if test "$ac_cv_type_unsigned_long_long" = yes; then
22030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000022032{ as_fn_set_status 77
22033as_fn_error "cannot compute sizeof (unsigned long long)
22034See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022035 else
22036 ac_cv_sizeof_unsigned_long_long=0
22037 fi
22038fi
cristy8b350f62009-11-15 23:12:43 +000022039
cristy3ed852e2009-09-05 21:47:34 +000022040fi
cristy8b350f62009-11-15 23:12:43 +000022041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022042$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22043
22044
22045
22046cat >>confdefs.h <<_ACEOF
22047#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22048_ACEOF
22049
22050
22051
22052# Obtain size of off_t and define as SIZEOF_OFF_T
22053# The cast to long int works around a bug in the HP C Compiler
22054# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22055# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22056# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022058$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022059if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022060 $as_echo_n "(cached) " >&6
22061else
cristy8b350f62009-11-15 23:12:43 +000022062 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 +000022063
cristy3ed852e2009-09-05 21:47:34 +000022064else
cristy8b350f62009-11-15 23:12:43 +000022065 if test "$ac_cv_type_off_t" = yes; then
22066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000022068{ as_fn_set_status 77
22069as_fn_error "cannot compute sizeof (off_t)
22070See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022071 else
22072 ac_cv_sizeof_off_t=0
22073 fi
22074fi
cristy8b350f62009-11-15 23:12:43 +000022075
cristy3ed852e2009-09-05 21:47:34 +000022076fi
cristy8b350f62009-11-15 23:12:43 +000022077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022078$as_echo "$ac_cv_sizeof_off_t" >&6; }
22079
22080
22081
22082cat >>confdefs.h <<_ACEOF
22083#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22084_ACEOF
22085
22086
22087
22088# Obtain size of size_t and define as SIZEOF_SIZE_T
22089# The cast to long int works around a bug in the HP C Compiler
22090# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22091# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22092# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022094$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022095if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022096 $as_echo_n "(cached) " >&6
22097else
cristy8b350f62009-11-15 23:12:43 +000022098 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 +000022099
cristy3ed852e2009-09-05 21:47:34 +000022100else
cristy8b350f62009-11-15 23:12:43 +000022101 if test "$ac_cv_type_size_t" = yes; then
22102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022103$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000022104{ as_fn_set_status 77
22105as_fn_error "cannot compute sizeof (size_t)
22106See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022107 else
22108 ac_cv_sizeof_size_t=0
22109 fi
22110fi
cristy8b350f62009-11-15 23:12:43 +000022111
cristy3ed852e2009-09-05 21:47:34 +000022112fi
cristy8b350f62009-11-15 23:12:43 +000022113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022114$as_echo "$ac_cv_sizeof_size_t" >&6; }
22115
22116
22117
22118cat >>confdefs.h <<_ACEOF
22119#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22120_ACEOF
22121
22122
22123
cristy330e9352010-06-01 18:42:49 +000022124# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
22125# The cast to long int works around a bug in the HP C Compiler
22126# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22127# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22128# This bug is HP SR number 8606223364.
22129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
22130$as_echo_n "checking size of ssize_t... " >&6; }
22131if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
22132 $as_echo_n "(cached) " >&6
22133else
22134 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
22135
22136else
22137 if test "$ac_cv_type_ssize_t" = yes; then
22138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000022140{ as_fn_set_status 77
22141as_fn_error "cannot compute sizeof (ssize_t)
22142See \`config.log' for more details." "$LINENO" 5; }; }
cristy330e9352010-06-01 18:42:49 +000022143 else
22144 ac_cv_sizeof_ssize_t=0
22145 fi
22146fi
22147
22148fi
22149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
22150$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
22151
22152
22153
22154cat >>confdefs.h <<_ACEOF
22155#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
22156_ACEOF
22157
22158
22159
cristy3ed852e2009-09-05 21:47:34 +000022160# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
22161# The cast to long int works around a bug in the HP C Compiler
22162# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22163# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22164# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000022166$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022167if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022168 $as_echo_n "(cached) " >&6
22169else
cristy8b350f62009-11-15 23:12:43 +000022170 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 +000022171
cristy3ed852e2009-09-05 21:47:34 +000022172else
cristy8b350f62009-11-15 23:12:43 +000022173 if test "$ac_cv_type_unsigned_intp" = yes; then
22174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000022176{ as_fn_set_status 77
22177as_fn_error "cannot compute sizeof (unsigned int*)
22178See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022179 else
22180 ac_cv_sizeof_unsigned_intp=0
22181 fi
22182fi
cristy8b350f62009-11-15 23:12:43 +000022183
cristy3ed852e2009-09-05 21:47:34 +000022184fi
cristy8b350f62009-11-15 23:12:43 +000022185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022186$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
22187
22188
22189
22190cat >>confdefs.h <<_ACEOF
22191#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22192_ACEOF
22193
22194
22195
22196#
22197# Compute sized types for current CPU and compiler options.
22198#
22199
cristy8b350f62009-11-15 23:12:43 +000022200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022201$as_echo_n "checking for signed 8-bit type... " >&6; }
22202INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000022203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022204$as_echo "$INT8_T" >&6; }
22205
22206
cristy8b350f62009-11-15 23:12:43 +000022207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022208$as_echo_n "checking for unsigned 8-bit type... " >&6; }
22209UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000022210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022211$as_echo "$UINT8_T" >&6; }
22212
22213
cristy8b350f62009-11-15 23:12:43 +000022214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022215$as_echo_n "checking for signed 16-bit type... " >&6; }
22216INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022218$as_echo "$INT16_T" >&6; }
22219
22220
cristy8b350f62009-11-15 23:12:43 +000022221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022222$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22223UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022225$as_echo "$UINT16_T" >&6; }
22226
22227
cristy8b350f62009-11-15 23:12:43 +000022228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022229$as_echo_n "checking for signed 32-bit type... " >&6; }
22230INT32_T='none'
22231if test $ac_cv_sizeof_signed_int -eq 4; then
22232 INT32_T='signed int'
22233elif test $ac_cv_sizeof_signed_long -eq 4; then
22234 INT32_T='signed long'
22235fi
cristy8b350f62009-11-15 23:12:43 +000022236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022237$as_echo "$INT32_T" >&6; }
22238
22239
cristy8b350f62009-11-15 23:12:43 +000022240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022241$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22242UINT32_T='none'
22243if test $ac_cv_sizeof_unsigned_int -eq 4; then
22244 UINT32_T='unsigned int'
22245elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22246 UINT32_T='unsigned long'
22247fi
cristy8b350f62009-11-15 23:12:43 +000022248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022249$as_echo "$UINT32_T" >&6; }
22250
22251
cristy8b350f62009-11-15 23:12:43 +000022252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022253$as_echo_n "checking for signed 64-bit type... " >&6; }
22254INT64_T='none'
22255if test $ac_cv_sizeof_signed_long -eq 8; then
22256 INT64_T='signed long'
22257elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22258 INT64_T='signed long long'
22259fi
cristy8b350f62009-11-15 23:12:43 +000022260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022261$as_echo "$INT64_T" >&6; }
22262
22263
cristy8b350f62009-11-15 23:12:43 +000022264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022265$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22266UINT64_T='none'
22267if test $ac_cv_sizeof_unsigned_long -eq 8; then
22268 UINT64_T='unsigned long'
22269elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22270 UINT64_T='unsigned long long'
22271fi
cristy8b350f62009-11-15 23:12:43 +000022272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022273$as_echo "$UINT64_T" >&6; }
22274
22275
cristy8b350f62009-11-15 23:12:43 +000022276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022277$as_echo_n "checking for unsigned maximum type... " >&6; }
22278UINTMAX_T='none'
22279if test "$UINT64_T" != 'none'; then
22280 UINTMAX_T=$UINT64_T
22281elif test "$UINT32_T" != 'none'; then
22282 UINTMAX_T=$UINT32_T
22283fi
cristy8b350f62009-11-15 23:12:43 +000022284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022285$as_echo "$UINTMAX_T" >&6; }
22286
22287
cristy8b350f62009-11-15 23:12:43 +000022288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022289$as_echo_n "checking for pointer difference type... " >&6; }
22290UINTPTR_T='none'
22291if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22292 UINTPTR_T='unsigned long'
22293elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22294 UINTPTR_T='unsigned long long'
22295fi
cristy8b350f62009-11-15 23:12:43 +000022296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022297$as_echo "$UINTPTR_T" >&6; }
22298
22299
cristy8b350f62009-11-15 23:12:43 +000022300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022301$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022303/* end confdefs.h. */
22304
22305int
22306main ()
22307{
22308{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22309 ;
22310 return 0;
22311}
22312_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022313if ac_fn_c_try_compile "$LINENO"; then :
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022315$as_echo "yes" >&6; }
22316else
cristy8b350f62009-11-15 23:12:43 +000022317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022318$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022320$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022322/* end confdefs.h. */
22323
22324int
22325main ()
22326{
22327{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22328 ;
22329 return 0;
22330}
22331_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022332if ac_fn_c_try_compile "$LINENO"; then :
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022334$as_echo "yes" >&6; }
22335
cristy8b350f62009-11-15 23:12:43 +000022336$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022337
22338else
cristy8b350f62009-11-15 23:12:43 +000022339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022340$as_echo "no" >&6; }
22341
cristy8b350f62009-11-15 23:12:43 +000022342$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022343
22344fi
cristy3ed852e2009-09-05 21:47:34 +000022345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22346fi
cristy3ed852e2009-09-05 21:47:34 +000022347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22348
22349########
22350#
22351# Check for functions
22352#
22353########
cristy73bd4a52010-10-05 11:24:23 +000022354for ac_header in stdlib.h unistd.h
22355do :
22356 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22357ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22358eval as_val=\$$as_ac_Header
22359 if test "x$as_val" = x""yes; then :
22360 cat >>confdefs.h <<_ACEOF
22361#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22362_ACEOF
22363
22364fi
22365
22366done
22367
22368for ac_func in getpagesize
22369do :
22370 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22371if test "x$ac_cv_func_getpagesize" = x""yes; then :
22372 cat >>confdefs.h <<_ACEOF
22373#define HAVE_GETPAGESIZE 1
22374_ACEOF
22375
22376fi
22377done
22378
22379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
22380$as_echo_n "checking for working mmap file i/o... " >&6; }
22381if test "${magick_cv_func_mmap_fileio+set}" = set; then :
22382 $as_echo_n "(cached) " >&6
22383else
22384 if test "$cross_compiling" = yes; then :
22385 magick_cv_func_mmap_fileio=no
22386else
22387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22388/* end confdefs.h. */
22389$ac_includes_default
22390/* malloc might have been renamed as rpl_malloc. */
22391#undef malloc
22392
22393/*
22394 This test is derived from GNU Autoconf's similar macro.
22395 The purpose of this test is to verify that files may be memory
22396 mapped, and that memory mapping and file I/O are coherent.
22397
22398 The test creates a test file, memory maps the file, updates
22399 the file using the memory map, and then reads the file using
22400 file I/O to verify that the file contains the updates.
22401*/
22402
22403#include <fcntl.h>
22404#include <sys/mman.h>
22405
22406#if !STDC_HEADERS && !HAVE_STDLIB_H
22407char *malloc ();
22408#endif
22409
22410/* This mess was copied from the GNU getpagesize.h. */
22411#if !HAVE_GETPAGESIZE
22412/* Assume that all systems that can run configure have sys/param.h. */
22413# if !HAVE_SYS_PARAM_H
22414# define HAVE_SYS_PARAM_H 1
22415# endif
22416
22417# ifdef _SC_PAGESIZE
22418# define getpagesize() sysconf(_SC_PAGESIZE)
22419# else /* no _SC_PAGESIZE */
22420# if HAVE_SYS_PARAM_H
22421# include <sys/param.h>
22422# ifdef EXEC_PAGESIZE
22423# define getpagesize() EXEC_PAGESIZE
22424# else /* no EXEC_PAGESIZE */
22425# ifdef NBPG
22426# define getpagesize() NBPG * CLSIZE
22427# ifndef CLSIZE
22428# define CLSIZE 1
22429# endif /* no CLSIZE */
22430# else /* no NBPG */
22431# ifdef NBPC
22432# define getpagesize() NBPC
22433# else /* no NBPC */
22434# ifdef PAGESIZE
22435# define getpagesize() PAGESIZE
22436# endif /* PAGESIZE */
22437# endif /* no NBPC */
22438# endif /* no NBPG */
22439# endif /* no EXEC_PAGESIZE */
22440# else /* no HAVE_SYS_PARAM_H */
22441# define getpagesize() 8192 /* punt totally */
22442# endif /* no HAVE_SYS_PARAM_H */
22443# endif /* no _SC_PAGESIZE */
22444
22445#endif /* no HAVE_GETPAGESIZE */
22446
22447int
22448main ()
22449{
22450 char *data, *data2, *data3;
22451 int i, pagesize;
22452 int fd;
22453
22454 pagesize = getpagesize ();
22455
22456 /* First, make a file with some known garbage in it. */
22457 data = (char *) malloc (pagesize);
22458 if (!data)
22459 exit (1);
22460 for (i = 0; i < pagesize; ++i)
22461 *(data + i) = rand ();
22462 umask (0);
22463 fd = creat ("conftest.mmap", 0600);
22464 if (fd < 0)
22465 exit (1);
22466 if (write (fd, data, pagesize) != pagesize)
22467 exit (1);
22468 close (fd);
22469
22470 /* Mmap the file as read/write/shared and verify that we see the
22471 same garbage. */
22472 fd = open ("conftest.mmap", O_RDWR);
22473 if (fd < 0)
22474 exit (1);
22475 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22476 if (data2 == 0)
22477 exit (1);
22478 for (i = 0; i < pagesize; ++i)
22479 if (*(data + i) != *(data2 + i))
22480 exit (1);
22481
22482 /* Finally, make sure that changes to the mapped area
22483 percolate back to the file as seen by read(). */
22484 for (i = 0; i < pagesize; ++i)
22485 *(data2 + i) = *(data2 + i) + 1;
22486 data3 = (char *) malloc (pagesize);
22487 if (!data3)
22488 exit (1);
22489 if (read (fd, data3, pagesize) != pagesize)
22490 exit (1);
22491 for (i = 0; i < pagesize; ++i)
22492 if (*(data2 + i) != *(data3 + i))
22493 exit (1);
22494 close (fd);
22495 exit (0);
22496}
22497_ACEOF
22498if ac_fn_c_try_run "$LINENO"; then :
22499 magick_cv_func_mmap_fileio=yes
22500else
22501 magick_cv_func_mmap_fileio=no
22502fi
22503rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22504 conftest.$ac_objext conftest.beam conftest.$ac_ext
22505fi
22506
22507fi
22508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
22509$as_echo "$magick_cv_func_mmap_fileio" >&6; }
22510if test $magick_cv_func_mmap_fileio = yes; then
22511
22512$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
22513
22514fi
22515rm -f conftest.mmap
22516
cristy8b350f62009-11-15 23:12:43 +000022517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022518$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022519if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022520 $as_echo_n "(cached) " >&6
22521else
cristy8b350f62009-11-15 23:12:43 +000022522 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022523 ac_cv_func_closedir_void=yes
22524else
cristy8b350f62009-11-15 23:12:43 +000022525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022526/* end confdefs.h. */
22527$ac_includes_default
22528#include <$ac_header_dirent>
22529#ifndef __cplusplus
22530int closedir ();
22531#endif
22532
22533int
22534main ()
22535{
22536return closedir (opendir (".")) != 0;
22537 ;
22538 return 0;
22539}
22540_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022541if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022542 ac_cv_func_closedir_void=no
22543else
cristy8b350f62009-11-15 23:12:43 +000022544 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000022545fi
cristy8b350f62009-11-15 23:12:43 +000022546rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22547 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022548fi
22549
cristy3ed852e2009-09-05 21:47:34 +000022550fi
cristy8b350f62009-11-15 23:12:43 +000022551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022552$as_echo "$ac_cv_func_closedir_void" >&6; }
22553if test $ac_cv_func_closedir_void = yes; then
22554
cristy8b350f62009-11-15 23:12:43 +000022555$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022556
22557fi
22558
cristycd4c5312009-11-22 01:19:08 +000022559
22560
22561
22562 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000022563do :
22564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000022565ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22566"
cristyf6fcb5d2010-09-24 01:19:13 +000022567eval as_val=\$$as_ac_Header
22568 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022569 cat >>confdefs.h <<_ACEOF
22570#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22571_ACEOF
22572
22573fi
22574
22575done
22576
cristycd4c5312009-11-22 01:19:08 +000022577
22578
22579
22580
22581
22582
22583
cristy3ed852e2009-09-05 21:47:34 +000022584for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022585do :
22586 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22587if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022588 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022589#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022590_ACEOF
22591
22592fi
22593done
22594
cristy8b350f62009-11-15 23:12:43 +000022595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000022596$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022597if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022598 $as_echo_n "(cached) " >&6
22599else
cristy8b350f62009-11-15 23:12:43 +000022600 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022601 ac_cv_func_mmap_fixed_mapped=no
22602else
cristy8b350f62009-11-15 23:12:43 +000022603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022604/* end confdefs.h. */
22605$ac_includes_default
22606/* malloc might have been renamed as rpl_malloc. */
22607#undef malloc
22608
22609/* Thanks to Mike Haertel and Jim Avera for this test.
22610 Here is a matrix of mmap possibilities:
22611 mmap private not fixed
22612 mmap private fixed at somewhere currently unmapped
22613 mmap private fixed at somewhere already mapped
22614 mmap shared not fixed
22615 mmap shared fixed at somewhere currently unmapped
22616 mmap shared fixed at somewhere already mapped
22617 For private mappings, we should verify that changes cannot be read()
22618 back from the file, nor mmap's back from the file at a different
22619 address. (There have been systems where private was not correctly
22620 implemented like the infamous i386 svr4.0, and systems where the
22621 VM page cache was not coherent with the file system buffer cache
22622 like early versions of FreeBSD and possibly contemporary NetBSD.)
22623 For shared mappings, we should conversely verify that changes get
22624 propagated back to all the places they're supposed to be.
22625
22626 Grep wants private fixed already mapped.
22627 The main things grep needs to know about mmap are:
22628 * does it exist and is it safe to write into the mmap'd area
22629 * how to use it (BSD variants) */
22630
22631#include <fcntl.h>
22632#include <sys/mman.h>
22633
22634#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22635char *malloc ();
22636#endif
22637
22638/* This mess was copied from the GNU getpagesize.h. */
22639#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022640# ifdef _SC_PAGESIZE
22641# define getpagesize() sysconf(_SC_PAGESIZE)
22642# else /* no _SC_PAGESIZE */
22643# ifdef HAVE_SYS_PARAM_H
22644# include <sys/param.h>
22645# ifdef EXEC_PAGESIZE
22646# define getpagesize() EXEC_PAGESIZE
22647# else /* no EXEC_PAGESIZE */
22648# ifdef NBPG
22649# define getpagesize() NBPG * CLSIZE
22650# ifndef CLSIZE
22651# define CLSIZE 1
22652# endif /* no CLSIZE */
22653# else /* no NBPG */
22654# ifdef NBPC
22655# define getpagesize() NBPC
22656# else /* no NBPC */
22657# ifdef PAGESIZE
22658# define getpagesize() PAGESIZE
22659# endif /* PAGESIZE */
22660# endif /* no NBPC */
22661# endif /* no NBPG */
22662# endif /* no EXEC_PAGESIZE */
22663# else /* no HAVE_SYS_PARAM_H */
22664# define getpagesize() 8192 /* punt totally */
22665# endif /* no HAVE_SYS_PARAM_H */
22666# endif /* no _SC_PAGESIZE */
22667
22668#endif /* no HAVE_GETPAGESIZE */
22669
22670int
22671main ()
22672{
22673 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022674 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022675 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022676 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022677
22678 pagesize = getpagesize ();
22679
22680 /* First, make a file with some known garbage in it. */
22681 data = (char *) malloc (pagesize);
22682 if (!data)
22683 return 1;
22684 for (i = 0; i < pagesize; ++i)
22685 *(data + i) = rand ();
22686 umask (0);
22687 fd = creat ("conftest.mmap", 0600);
22688 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022689 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022690 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022691 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022692 close (fd);
22693
cristycd4c5312009-11-22 01:19:08 +000022694 /* Next, check that the tail of a page is zero-filled. File must have
22695 non-zero length, otherwise we risk SIGBUS for entire page. */
22696 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22697 if (fd2 < 0)
22698 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022699 cdata2 = "";
22700 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022701 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022702 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022703 if (data2 == MAP_FAILED)
22704 return 6;
22705 for (i = 0; i < pagesize; ++i)
22706 if (*(data2 + i))
22707 return 7;
22708 close (fd2);
22709 if (munmap (data2, pagesize))
22710 return 8;
22711
cristy3ed852e2009-09-05 21:47:34 +000022712 /* Next, try to mmap the file at a fixed address which already has
22713 something else allocated at it. If we can, also make sure that
22714 we see the same garbage. */
22715 fd = open ("conftest.mmap", O_RDWR);
22716 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022717 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022718 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22719 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022720 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022721 for (i = 0; i < pagesize; ++i)
22722 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022723 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022724
22725 /* Finally, make sure that changes to the mapped area do not
22726 percolate back to the file as seen by read(). (This is a bug on
22727 some variants of i386 svr4.0.) */
22728 for (i = 0; i < pagesize; ++i)
22729 *(data2 + i) = *(data2 + i) + 1;
22730 data3 = (char *) malloc (pagesize);
22731 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022732 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022733 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022734 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022735 for (i = 0; i < pagesize; ++i)
22736 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022737 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022738 close (fd);
22739 return 0;
22740}
22741_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022742if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022743 ac_cv_func_mmap_fixed_mapped=yes
22744else
cristy8b350f62009-11-15 23:12:43 +000022745 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022746fi
cristy8b350f62009-11-15 23:12:43 +000022747rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22748 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022749fi
22750
cristy3ed852e2009-09-05 21:47:34 +000022751fi
cristy8b350f62009-11-15 23:12:43 +000022752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022753$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22754if test $ac_cv_func_mmap_fixed_mapped = yes; then
22755
cristy8b350f62009-11-15 23:12:43 +000022756$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022757
22758fi
cristycd4c5312009-11-22 01:19:08 +000022759rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022760
cristy3ed852e2009-09-05 21:47:34 +000022761for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022762do :
22763 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22764if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022765 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022766#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022767_ACEOF
22768
22769fi
22770
22771done
22772
cristy3ed852e2009-09-05 21:47:34 +000022773for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022774do :
22775 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22776ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyf6fcb5d2010-09-24 01:19:13 +000022777eval as_val=\$$as_ac_var
22778 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022779 cat >>confdefs.h <<_ACEOF
22780#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22781_ACEOF
22782
22783fi
22784done
22785
22786if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022788$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022789if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022790 $as_echo_n "(cached) " >&6
22791else
cristy8b350f62009-11-15 23:12:43 +000022792 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022793 ac_cv_func_fork_works=cross
22794else
cristy8b350f62009-11-15 23:12:43 +000022795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022796/* end confdefs.h. */
22797$ac_includes_default
22798int
22799main ()
22800{
22801
22802 /* By Ruediger Kuhlmann. */
22803 return fork () < 0;
22804
22805 ;
22806 return 0;
22807}
22808_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022809if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022810 ac_cv_func_fork_works=yes
22811else
cristy8b350f62009-11-15 23:12:43 +000022812 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022813fi
cristy8b350f62009-11-15 23:12:43 +000022814rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22815 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022816fi
22817
cristy3ed852e2009-09-05 21:47:34 +000022818fi
cristy8b350f62009-11-15 23:12:43 +000022819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022820$as_echo "$ac_cv_func_fork_works" >&6; }
22821
22822else
22823 ac_cv_func_fork_works=$ac_cv_func_fork
22824fi
22825if test "x$ac_cv_func_fork_works" = xcross; then
22826 case $host in
22827 *-*-amigaos* | *-*-msdosdjgpp*)
22828 # Override, as these systems have only a dummy fork() stub
22829 ac_cv_func_fork_works=no
22830 ;;
22831 *)
22832 ac_cv_func_fork_works=yes
22833 ;;
22834 esac
cristy8b350f62009-11-15 23:12:43 +000022835 { $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 +000022836$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22837fi
22838ac_cv_func_vfork_works=$ac_cv_func_vfork
22839if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022841$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022842if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022843 $as_echo_n "(cached) " >&6
22844else
cristy8b350f62009-11-15 23:12:43 +000022845 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022846 ac_cv_func_vfork_works=cross
22847else
cristy8b350f62009-11-15 23:12:43 +000022848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022849/* end confdefs.h. */
22850/* Thanks to Paul Eggert for this test. */
22851$ac_includes_default
22852#include <sys/wait.h>
22853#ifdef HAVE_VFORK_H
22854# include <vfork.h>
22855#endif
22856/* On some sparc systems, changes by the child to local and incoming
22857 argument registers are propagated back to the parent. The compiler
22858 is told about this with #include <vfork.h>, but some compilers
22859 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22860 static variable whose address is put into a register that is
22861 clobbered by the vfork. */
22862static void
22863#ifdef __cplusplus
22864sparc_address_test (int arg)
22865# else
22866sparc_address_test (arg) int arg;
22867#endif
22868{
22869 static pid_t child;
22870 if (!child) {
22871 child = vfork ();
22872 if (child < 0) {
22873 perror ("vfork");
22874 _exit(2);
22875 }
22876 if (!child) {
22877 arg = getpid();
22878 write(-1, "", 0);
22879 _exit (arg);
22880 }
22881 }
22882}
22883
22884int
22885main ()
22886{
22887 pid_t parent = getpid ();
22888 pid_t child;
22889
22890 sparc_address_test (0);
22891
22892 child = vfork ();
22893
22894 if (child == 0) {
22895 /* Here is another test for sparc vfork register problems. This
22896 test uses lots of local variables, at least as many local
22897 variables as main has allocated so far including compiler
22898 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22899 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22900 reuse the register of parent for one of the local variables,
22901 since it will think that parent can't possibly be used any more
22902 in this routine. Assigning to the local variable will thus
22903 munge parent in the parent process. */
22904 pid_t
22905 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22906 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22907 /* Convince the compiler that p..p7 are live; otherwise, it might
22908 use the same hardware register for all 8 local variables. */
22909 if (p != p1 || p != p2 || p != p3 || p != p4
22910 || p != p5 || p != p6 || p != p7)
22911 _exit(1);
22912
22913 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22914 from child file descriptors. If the child closes a descriptor
22915 before it execs or exits, this munges the parent's descriptor
22916 as well. Test for this by closing stdout in the child. */
22917 _exit(close(fileno(stdout)) != 0);
22918 } else {
22919 int status;
22920 struct stat st;
22921
22922 while (wait(&status) != child)
22923 ;
22924 return (
22925 /* Was there some problem with vforking? */
22926 child < 0
22927
22928 /* Did the child fail? (This shouldn't happen.) */
22929 || status
22930
22931 /* Did the vfork/compiler bug occur? */
22932 || parent != getpid()
22933
22934 /* Did the file descriptor bug occur? */
22935 || fstat(fileno(stdout), &st) != 0
22936 );
22937 }
22938}
22939_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022940if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022941 ac_cv_func_vfork_works=yes
22942else
cristy8b350f62009-11-15 23:12:43 +000022943 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022944fi
cristy8b350f62009-11-15 23:12:43 +000022945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22946 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022947fi
22948
cristy3ed852e2009-09-05 21:47:34 +000022949fi
cristy8b350f62009-11-15 23:12:43 +000022950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022951$as_echo "$ac_cv_func_vfork_works" >&6; }
22952
22953fi;
22954if test "x$ac_cv_func_fork_works" = xcross; then
22955 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022956 { $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 +000022957$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22958fi
22959
22960if test "x$ac_cv_func_vfork_works" = xyes; then
22961
cristy8b350f62009-11-15 23:12:43 +000022962$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022963
22964else
22965
cristy8b350f62009-11-15 23:12:43 +000022966$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022967
22968fi
22969if test "x$ac_cv_func_fork_works" = xyes; then
22970
cristy8b350f62009-11-15 23:12:43 +000022971$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022972
22973fi
22974
cristy8b350f62009-11-15 23:12:43 +000022975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022976$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022977if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022978 $as_echo_n "(cached) " >&6
22979else
cristy8b350f62009-11-15 23:12:43 +000022980 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022981 ac_cv_func_memcmp_working=no
22982else
cristy8b350f62009-11-15 23:12:43 +000022983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022984/* end confdefs.h. */
22985$ac_includes_default
22986int
22987main ()
22988{
22989
22990 /* Some versions of memcmp are not 8-bit clean. */
22991 char c0 = '\100', c1 = '\200', c2 = '\201';
22992 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22993 return 1;
22994
22995 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22996 or more and with at least one buffer not starting on a 4-byte boundary.
22997 William Lewis provided this test program. */
22998 {
22999 char foo[21];
23000 char bar[21];
23001 int i;
23002 for (i = 0; i < 4; i++)
23003 {
23004 char *a = foo + i;
23005 char *b = bar + i;
23006 strcpy (a, "--------01111111");
23007 strcpy (b, "--------10000000");
23008 if (memcmp (a, b, 16) >= 0)
23009 return 1;
23010 }
23011 return 0;
23012 }
23013
23014 ;
23015 return 0;
23016}
23017_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023018if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023019 ac_cv_func_memcmp_working=yes
23020else
cristy8b350f62009-11-15 23:12:43 +000023021 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000023022fi
cristy8b350f62009-11-15 23:12:43 +000023023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23024 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023025fi
23026
cristy3ed852e2009-09-05 21:47:34 +000023027fi
cristy8b350f62009-11-15 23:12:43 +000023028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000023029$as_echo "$ac_cv_func_memcmp_working" >&6; }
23030test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23031 *" memcmp.$ac_objext "* ) ;;
23032 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23033 ;;
23034esac
23035
23036
cristy3ed852e2009-09-05 21:47:34 +000023037for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000023038do :
23039 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23040ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyf6fcb5d2010-09-24 01:19:13 +000023041eval as_val=\$$as_ac_Header
23042 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023043 cat >>confdefs.h <<_ACEOF
23044#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23045_ACEOF
23046
23047fi
23048
23049done
23050
cristy8b350f62009-11-15 23:12:43 +000023051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000023052$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023053if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023054 $as_echo_n "(cached) " >&6
23055else
23056 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23057 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23058 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000023059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023060/* end confdefs.h. */
23061$ac_includes_default
23062#ifdef HAVE_SYS_SELECT_H
23063# include <sys/select.h>
23064#endif
23065#ifdef HAVE_SYS_SOCKET_H
23066# include <sys/socket.h>
23067#endif
23068
23069int
23070main ()
23071{
23072extern int select ($ac_arg1,
23073 $ac_arg234, $ac_arg234, $ac_arg234,
23074 $ac_arg5);
23075 ;
23076 return 0;
23077}
23078_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023079if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023080 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000023081fi
cristy3ed852e2009-09-05 21:47:34 +000023082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23083 done
23084 done
23085done
23086# Provide a safe default value.
23087: ${ac_cv_func_select_args='int,int *,struct timeval *'}
23088
23089fi
cristy8b350f62009-11-15 23:12:43 +000023090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000023091$as_echo "$ac_cv_func_select_args" >&6; }
23092ac_save_IFS=$IFS; IFS=','
23093set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23094IFS=$ac_save_IFS
23095shift
23096
23097cat >>confdefs.h <<_ACEOF
23098#define SELECT_TYPE_ARG1 $1
23099_ACEOF
23100
23101
23102cat >>confdefs.h <<_ACEOF
23103#define SELECT_TYPE_ARG234 ($2)
23104_ACEOF
23105
23106
23107cat >>confdefs.h <<_ACEOF
23108#define SELECT_TYPE_ARG5 ($3)
23109_ACEOF
23110
23111rm -f conftest*
23112
cristy8b350f62009-11-15 23:12:43 +000023113if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023114 $as_echo_n "(cached) " >&6
23115else
23116 ac_cv_func_setvbuf_reversed=no
23117fi
23118
23119
cristy8b350f62009-11-15 23:12:43 +000023120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000023121$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023122if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023123 $as_echo_n "(cached) " >&6
23124else
cristy8b350f62009-11-15 23:12:43 +000023125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023126/* end confdefs.h. */
23127#include <sys/types.h>
23128#include <signal.h>
23129
23130int
23131main ()
23132{
23133return *(signal (0, 0)) (0) == 1;
23134 ;
23135 return 0;
23136}
23137_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023138if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023139 ac_cv_type_signal=int
23140else
cristy8b350f62009-11-15 23:12:43 +000023141 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000023142fi
cristy3ed852e2009-09-05 21:47:34 +000023143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23144fi
cristy8b350f62009-11-15 23:12:43 +000023145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000023146$as_echo "$ac_cv_type_signal" >&6; }
23147
23148cat >>confdefs.h <<_ACEOF
23149#define RETSIGTYPE $ac_cv_type_signal
23150_ACEOF
23151
23152
cristy8b350f62009-11-15 23:12:43 +000023153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023154$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023155if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023156 $as_echo_n "(cached) " >&6
23157else
cristy8b350f62009-11-15 23:12:43 +000023158 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023159 ac_cv_func_strtod=no
23160else
cristy8b350f62009-11-15 23:12:43 +000023161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023162/* end confdefs.h. */
23163
23164$ac_includes_default
23165#ifndef strtod
23166double strtod ();
23167#endif
23168int
23169main()
23170{
23171 {
23172 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
23173 char *string = " +69";
23174 char *term;
23175 double value;
23176 value = strtod (string, &term);
23177 if (value != 69 || term != (string + 4))
23178 return 1;
23179 }
23180
23181 {
23182 /* Under Solaris 2.4, strtod returns the wrong value for the
23183 terminating character under some conditions. */
23184 char *string = "NaN";
23185 char *term;
23186 strtod (string, &term);
23187 if (term != string && *(term - 1) == 0)
23188 return 1;
23189 }
23190 return 0;
23191}
23192
23193_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023194if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023195 ac_cv_func_strtod=yes
23196else
cristy8b350f62009-11-15 23:12:43 +000023197 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000023198fi
cristy8b350f62009-11-15 23:12:43 +000023199rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23200 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023201fi
23202
cristy3ed852e2009-09-05 21:47:34 +000023203fi
cristy8b350f62009-11-15 23:12:43 +000023204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023205$as_echo "$ac_cv_func_strtod" >&6; }
23206if test $ac_cv_func_strtod = no; then
23207 case " $LIBOBJS " in
23208 *" strtod.$ac_objext "* ) ;;
23209 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23210 ;;
23211esac
23212
cristy8b350f62009-11-15 23:12:43 +000023213ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23214if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023215
cristy3ed852e2009-09-05 21:47:34 +000023216fi
23217
cristy3ed852e2009-09-05 21:47:34 +000023218if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023220$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023221if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023222 $as_echo_n "(cached) " >&6
23223else
23224 ac_check_lib_save_LIBS=$LIBS
23225LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023227/* end confdefs.h. */
23228
23229/* Override any GCC internal prototype to avoid an error.
23230 Use char because int might match the return type of a GCC
23231 builtin and then its argument prototype would still apply. */
23232#ifdef __cplusplus
23233extern "C"
23234#endif
23235char pow ();
23236int
23237main ()
23238{
23239return pow ();
23240 ;
23241 return 0;
23242}
23243_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023244if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023245 ac_cv_lib_m_pow=yes
23246else
cristy8b350f62009-11-15 23:12:43 +000023247 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023248fi
cristy8b350f62009-11-15 23:12:43 +000023249rm -f core conftest.err conftest.$ac_objext \
23250 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023251LIBS=$ac_check_lib_save_LIBS
23252fi
cristy8b350f62009-11-15 23:12:43 +000023253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023254$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023255if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023256 POW_LIB=-lm
23257else
cristy8b350f62009-11-15 23:12:43 +000023258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023259$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23260fi
23261
23262fi
23263
23264fi
23265
cristy3ed852e2009-09-05 21:47:34 +000023266for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023267do :
23268 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23269if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023270 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023271#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023272_ACEOF
23273
cristy8b350f62009-11-15 23:12:43 +000023274ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23275if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023276
cristy8b350f62009-11-15 23:12:43 +000023277$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023278
23279fi
23280
23281fi
23282done
23283
23284
23285
cristy161b9262010-03-20 19:34:32 +000023286#
23287# Find math library
23288#
23289MATH_LIBS=''
23290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23291$as_echo_n "checking for sqrt in -lm... " >&6; }
23292if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23293 $as_echo_n "(cached) " >&6
23294else
23295 ac_check_lib_save_LIBS=$LIBS
23296LIBS="-lm $LIBS"
23297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23298/* end confdefs.h. */
23299
23300/* Override any GCC internal prototype to avoid an error.
23301 Use char because int might match the return type of a GCC
23302 builtin and then its argument prototype would still apply. */
23303#ifdef __cplusplus
23304extern "C"
23305#endif
23306char sqrt ();
23307int
23308main ()
23309{
23310return sqrt ();
23311 ;
23312 return 0;
23313}
23314_ACEOF
23315if ac_fn_c_try_link "$LINENO"; then :
23316 ac_cv_lib_m_sqrt=yes
23317else
23318 ac_cv_lib_m_sqrt=no
23319fi
23320rm -f core conftest.err conftest.$ac_objext \
23321 conftest$ac_exeext conftest.$ac_ext
23322LIBS=$ac_check_lib_save_LIBS
23323fi
23324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23325$as_echo "$ac_cv_lib_m_sqrt" >&6; }
23326if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23327 MATH_LIBS="-lm"
23328fi
23329
23330LIBS="$MATH_LIBS $LIBS"
23331
23332
cristyf1897e32010-08-29 19:59:09 +000023333for ac_func in atoll atexit cimag clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000023334do :
23335 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23336ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyf6fcb5d2010-09-24 01:19:13 +000023337eval as_val=\$$as_ac_var
23338 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023339 cat >>confdefs.h <<_ACEOF
23340#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23341_ACEOF
23342
23343fi
23344done
23345
23346
cristye43a45e2009-09-28 14:49:00 +000023347#
23348# Check for clock_gettime().
23349#
cristy8b350f62009-11-15 23:12:43 +000023350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023351$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023352if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023353 $as_echo_n "(cached) " >&6
23354else
23355 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023357/* end confdefs.h. */
23358
23359/* Override any GCC internal prototype to avoid an error.
23360 Use char because int might match the return type of a GCC
23361 builtin and then its argument prototype would still apply. */
23362#ifdef __cplusplus
23363extern "C"
23364#endif
23365char clock_gettime ();
23366int
23367main ()
23368{
23369return clock_gettime ();
23370 ;
23371 return 0;
23372}
23373_ACEOF
23374for ac_lib in '' rt; do
23375 if test -z "$ac_lib"; then
23376 ac_res="none required"
23377 else
23378 ac_res=-l$ac_lib
23379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23380 fi
cristy8b350f62009-11-15 23:12:43 +000023381 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023382 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000023383fi
cristy8b350f62009-11-15 23:12:43 +000023384rm -f core conftest.err conftest.$ac_objext \
23385 conftest$ac_exeext
23386 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023387 break
23388fi
23389done
cristy8b350f62009-11-15 23:12:43 +000023390if test "${ac_cv_search_clock_gettime+set}" = set; then :
23391
cristye43a45e2009-09-28 14:49:00 +000023392else
23393 ac_cv_search_clock_gettime=no
23394fi
23395rm conftest.$ac_ext
23396LIBS=$ac_func_search_save_LIBS
23397fi
cristy8b350f62009-11-15 23:12:43 +000023398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023399$as_echo "$ac_cv_search_clock_gettime" >&6; }
23400ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000023401if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000023402 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23403
23404
cristy8b350f62009-11-15 23:12:43 +000023405$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023406
cristy8b350f62009-11-15 23:12:43 +000023407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000023408$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023410/* end confdefs.h. */
23411#include <time.h>
23412int
23413main ()
23414{
23415clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000023416 ;
23417 return 0;
23418}
23419_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023420if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023421
cristy8b350f62009-11-15 23:12:43 +000023422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000023423$as_echo "yes" >&6; }
23424
cristy8b350f62009-11-15 23:12:43 +000023425$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023426
23427
23428else
cristy8b350f62009-11-15 23:12:43 +000023429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000023430$as_echo "no" >&6; }
23431
23432fi
cristye43a45e2009-09-28 14:49:00 +000023433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23434
23435else
23436
cristy8b350f62009-11-15 23:12:43 +000023437 for ac_func in gettimeofday ftime
23438do :
23439 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23440ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyf6fcb5d2010-09-24 01:19:13 +000023441eval as_val=\$$as_ac_var
23442 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000023443 cat >>confdefs.h <<_ACEOF
23444#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23445_ACEOF
23446 break
23447fi
23448done
23449
23450
23451
23452fi
23453
23454
cristy3ed852e2009-09-05 21:47:34 +000023455########
23456#
23457# Check for function prototypes
23458#
23459########
23460
cristy8b350f62009-11-15 23:12:43 +000023461ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000023462#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023463"
23464if test "x$ac_cv_have_decl_pread" = x""yes; then :
23465 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023466else
cristy8b350f62009-11-15 23:12:43 +000023467 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023468fi
23469
cristy3ed852e2009-09-05 21:47:34 +000023470cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023471#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023472_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023473ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000023474#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023475"
23476if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23477 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023478else
cristy8b350f62009-11-15 23:12:43 +000023479 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023480fi
23481
cristy3ed852e2009-09-05 21:47:34 +000023482cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023483#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023484_ACEOF
23485
23486
cristy8b350f62009-11-15 23:12:43 +000023487ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000023488#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000023489"
23490if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23491 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023492else
cristy8b350f62009-11-15 23:12:43 +000023493 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023494fi
23495
cristy3ed852e2009-09-05 21:47:34 +000023496cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023497#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023498_ACEOF
23499
23500
cristy8b350f62009-11-15 23:12:43 +000023501ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000023502#include <stdio.h>
23503#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000023504"
23505if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23506 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023507else
cristy8b350f62009-11-15 23:12:43 +000023508 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023509fi
23510
cristy3ed852e2009-09-05 21:47:34 +000023511cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023512#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023513_ACEOF
23514
23515
cristy3ed852e2009-09-05 21:47:34 +000023516########
23517#
23518# C++ Support Tests (For Magick++)
23519#
23520########
23521have_magick_plus_plus='no'
23522if test "$with_magick_plus_plus" = 'yes'; then
23523 OLIBS="$LIBS"
23524 LIBS=''
23525 ac_ext=cpp
23526ac_cpp='$CXXCPP $CPPFLAGS'
23527ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23528ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23529ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23530
23531
23532 # Full set of headers used...
23533 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23534 # functional iomanip iosfwd iostream iterator list string strstream utility
23535 ac_ext=cpp
23536ac_cpp='$CXXCPP $CPPFLAGS'
23537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23540
23541 ac_ext=cpp
23542ac_cpp='$CXXCPP $CPPFLAGS'
23543ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23544ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23545ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23546if test -z "$CXX"; then
23547 if test -n "$CCC"; then
23548 CXX=$CCC
23549 else
23550 if test -n "$ac_tool_prefix"; then
23551 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23552 do
23553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23554set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023556$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023557if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023558 $as_echo_n "(cached) " >&6
23559else
23560 if test -n "$CXX"; then
23561 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23562else
23563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23564for as_dir in $PATH
23565do
23566 IFS=$as_save_IFS
23567 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023568 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23570 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023572 break 2
23573 fi
23574done
cristy8b350f62009-11-15 23:12:43 +000023575 done
cristy3ed852e2009-09-05 21:47:34 +000023576IFS=$as_save_IFS
23577
23578fi
23579fi
23580CXX=$ac_cv_prog_CXX
23581if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023583$as_echo "$CXX" >&6; }
23584else
cristy8b350f62009-11-15 23:12:43 +000023585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023586$as_echo "no" >&6; }
23587fi
23588
23589
23590 test -n "$CXX" && break
23591 done
23592fi
23593if test -z "$CXX"; then
23594 ac_ct_CXX=$CXX
23595 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23596do
23597 # Extract the first word of "$ac_prog", so it can be a program name with args.
23598set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023600$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023601if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023602 $as_echo_n "(cached) " >&6
23603else
23604 if test -n "$ac_ct_CXX"; then
23605 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23606else
23607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23608for as_dir in $PATH
23609do
23610 IFS=$as_save_IFS
23611 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023612 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23614 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023616 break 2
23617 fi
23618done
cristy8b350f62009-11-15 23:12:43 +000023619 done
cristy3ed852e2009-09-05 21:47:34 +000023620IFS=$as_save_IFS
23621
23622fi
23623fi
23624ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23625if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023627$as_echo "$ac_ct_CXX" >&6; }
23628else
cristy8b350f62009-11-15 23:12:43 +000023629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023630$as_echo "no" >&6; }
23631fi
23632
23633
23634 test -n "$ac_ct_CXX" && break
23635done
23636
23637 if test "x$ac_ct_CXX" = x; then
23638 CXX="g++"
23639 else
23640 case $cross_compiling:$ac_tool_warned in
23641yes:)
cristy8b350f62009-11-15 23:12:43 +000023642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23644ac_tool_warned=yes ;;
23645esac
23646 CXX=$ac_ct_CXX
23647 fi
23648fi
23649
23650 fi
23651fi
23652# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023653$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023654set X $ac_compile
23655ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023656for ac_option in --version -v -V -qversion; do
23657 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023658case "(($ac_try" in
23659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23660 *) ac_try_echo=$ac_try;;
23661esac
cristy8b350f62009-11-15 23:12:43 +000023662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23663$as_echo "$ac_try_echo"; } >&5
23664 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023665 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023666 if test -s conftest.err; then
23667 sed '10a\
23668... rest of stderr output deleted ...
23669 10q' conftest.err >conftest.er1
23670 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023671 fi
cristycd4c5312009-11-22 01:19:08 +000023672 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23674 test $ac_status = 0; }
23675done
cristy3ed852e2009-09-05 21:47:34 +000023676
cristy8b350f62009-11-15 23:12:43 +000023677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023678$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023679if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023680 $as_echo_n "(cached) " >&6
23681else
cristy8b350f62009-11-15 23:12:43 +000023682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023683/* end confdefs.h. */
23684
23685int
23686main ()
23687{
23688#ifndef __GNUC__
23689 choke me
23690#endif
23691
23692 ;
23693 return 0;
23694}
23695_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023696if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023697 ac_compiler_gnu=yes
23698else
cristy8b350f62009-11-15 23:12:43 +000023699 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023700fi
cristy3ed852e2009-09-05 21:47:34 +000023701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23702ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23703
23704fi
cristy8b350f62009-11-15 23:12:43 +000023705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023706$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23707if test $ac_compiler_gnu = yes; then
23708 GXX=yes
23709else
23710 GXX=
23711fi
23712ac_test_CXXFLAGS=${CXXFLAGS+set}
23713ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023715$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023716if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023717 $as_echo_n "(cached) " >&6
23718else
23719 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23720 ac_cxx_werror_flag=yes
23721 ac_cv_prog_cxx_g=no
23722 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023724/* end confdefs.h. */
23725
23726int
23727main ()
23728{
23729
23730 ;
23731 return 0;
23732}
23733_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023734if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023735 ac_cv_prog_cxx_g=yes
23736else
cristy8b350f62009-11-15 23:12:43 +000023737 CXXFLAGS=""
23738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023739/* end confdefs.h. */
23740
23741int
23742main ()
23743{
23744
23745 ;
23746 return 0;
23747}
23748_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023749if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023750
cristy8b350f62009-11-15 23:12:43 +000023751else
23752 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023753 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023755/* end confdefs.h. */
23756
23757int
23758main ()
23759{
23760
23761 ;
23762 return 0;
23763}
23764_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023765if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023766 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023767fi
cristy3ed852e2009-09-05 21:47:34 +000023768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23769fi
cristy3ed852e2009-09-05 21:47:34 +000023770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23771fi
cristy3ed852e2009-09-05 21:47:34 +000023772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23773 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23774fi
cristy8b350f62009-11-15 23:12:43 +000023775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023776$as_echo "$ac_cv_prog_cxx_g" >&6; }
23777if test "$ac_test_CXXFLAGS" = set; then
23778 CXXFLAGS=$ac_save_CXXFLAGS
23779elif test $ac_cv_prog_cxx_g = yes; then
23780 if test "$GXX" = yes; then
23781 CXXFLAGS="-g -O2"
23782 else
23783 CXXFLAGS="-g"
23784 fi
23785else
23786 if test "$GXX" = yes; then
23787 CXXFLAGS="-O2"
23788 else
23789 CXXFLAGS=
23790 fi
23791fi
23792ac_ext=cpp
23793ac_cpp='$CXXCPP $CPPFLAGS'
23794ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23795ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23796ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23797
cristy73bd4a52010-10-05 11:24:23 +000023798depcc="$CXX" am_compiler_list=
23799
23800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23801$as_echo_n "checking dependency style of $depcc... " >&6; }
23802if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
23803 $as_echo_n "(cached) " >&6
23804else
23805 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23806 # We make a subdir and do the tests there. Otherwise we can end up
23807 # making bogus files that we don't know about and never remove. For
23808 # instance it was reported that on HP-UX the gcc test will end up
23809 # making a dummy file named `D' -- because `-MD' means `put the output
23810 # in D'.
23811 mkdir conftest.dir
23812 # Copy depcomp to subdir because otherwise we won't find it if we're
23813 # using a relative directory.
23814 cp "$am_depcomp" conftest.dir
23815 cd conftest.dir
23816 # We will build objects and dependencies in a subdirectory because
23817 # it helps to detect inapplicable dependency modes. For instance
23818 # both Tru64's cc and ICC support -MD to output dependencies as a
23819 # side effect of compilation, but ICC will put the dependencies in
23820 # the current directory while Tru64 will put them in the object
23821 # directory.
23822 mkdir sub
23823
23824 am_cv_CXX_dependencies_compiler_type=none
23825 if test "$am_compiler_list" = ""; then
23826 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23827 fi
23828 am__universal=false
23829 case " $depcc " in #(
23830 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23831 esac
23832
23833 for depmode in $am_compiler_list; do
23834 # Setup a source with many dependencies, because some compilers
23835 # like to wrap large dependency lists on column 80 (with \), and
23836 # we should not choose a depcomp mode which is confused by this.
23837 #
23838 # We need to recreate these files for each test, as the compiler may
23839 # overwrite some of them when testing with obscure command lines.
23840 # This happens at least with the AIX C compiler.
23841 : > sub/conftest.c
23842 for i in 1 2 3 4 5 6; do
23843 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23844 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23845 # Solaris 8's {/usr,}/bin/sh.
23846 touch sub/conftst$i.h
23847 done
23848 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23849
23850 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23851 # mode. It turns out that the SunPro C++ compiler does not properly
23852 # handle `-M -o', and we need to detect this. Also, some Intel
23853 # versions had trouble with output in subdirs
23854 am__obj=sub/conftest.${OBJEXT-o}
23855 am__minus_obj="-o $am__obj"
23856 case $depmode in
23857 gcc)
23858 # This depmode causes a compiler race in universal mode.
23859 test "$am__universal" = false || continue
23860 ;;
23861 nosideeffect)
23862 # after this tag, mechanisms are not by side-effect, so they'll
23863 # only be used when explicitly requested
23864 if test "x$enable_dependency_tracking" = xyes; then
23865 continue
23866 else
23867 break
23868 fi
23869 ;;
23870 msvisualcpp | msvcmsys)
23871 # This compiler won't grok `-c -o', but also, the minuso test has
23872 # not run yet. These depmodes are late enough in the game, and
23873 # so weak that their functioning should not be impacted.
23874 am__obj=conftest.${OBJEXT-o}
23875 am__minus_obj=
23876 ;;
23877 none) break ;;
23878 esac
23879 if depmode=$depmode \
23880 source=sub/conftest.c object=$am__obj \
23881 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23882 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23883 >/dev/null 2>conftest.err &&
23884 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23885 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23886 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23887 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23888 # icc doesn't choke on unknown options, it will just issue warnings
23889 # or remarks (even with -Werror). So we grep stderr for any message
23890 # that says an option was ignored or not supported.
23891 # When given -MP, icc 7.0 and 7.1 complain thusly:
23892 # icc: Command line warning: ignoring option '-M'; no argument required
23893 # The diagnosis changed in icc 8.0:
23894 # icc: Command line remark: option '-MP' not supported
23895 if (grep 'ignoring option' conftest.err ||
23896 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23897 am_cv_CXX_dependencies_compiler_type=$depmode
23898 break
23899 fi
23900 fi
23901 done
23902
23903 cd ..
23904 rm -rf conftest.dir
23905else
23906 am_cv_CXX_dependencies_compiler_type=none
23907fi
23908
23909fi
23910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
23911$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23912CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23913
23914 if
23915 test "x$enable_dependency_tracking" != xno \
23916 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23917 am__fastdepCXX_TRUE=
23918 am__fastdepCXX_FALSE='#'
23919else
23920 am__fastdepCXX_TRUE='#'
23921 am__fastdepCXX_FALSE=
23922fi
23923
23924
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
23926$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
23927if test "${ax_cv_cxx_bool+set}" = set; then :
23928 $as_echo_n "(cached) " >&6
23929else
23930
23931 ac_ext=cpp
23932ac_cpp='$CXXCPP $CPPFLAGS'
23933ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23934ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23935ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23936
23937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23938/* end confdefs.h. */
23939
23940int f(int x){return 1;}
23941int f(char x){return 1;}
23942int f(bool x){return 1;}
23943
23944int
23945main ()
23946{
23947bool b = true; return f(b);
23948 ;
23949 return 0;
23950}
23951_ACEOF
23952if ac_fn_cxx_try_compile "$LINENO"; then :
23953 ax_cv_cxx_bool=yes
23954else
23955 ax_cv_cxx_bool=no
23956fi
23957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23958 ac_ext=cpp
23959ac_cpp='$CXXCPP $CPPFLAGS'
23960ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23961ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23962ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23963
23964
23965fi
23966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23967$as_echo "$ax_cv_cxx_bool" >&6; }
23968if test "$ax_cv_cxx_bool" = yes; then
23969
23970$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
23971
23972fi
23973
23974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
23975$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
23976if test "${ax_cv_cxx_namespaces+set}" = set; then :
23977 $as_echo_n "(cached) " >&6
23978else
23979
23980 ac_ext=cpp
23981ac_cpp='$CXXCPP $CPPFLAGS'
23982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23985
23986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23987/* end confdefs.h. */
23988namespace Outer { namespace Inner { int i = 0; }}
23989int
23990main ()
23991{
23992using namespace Outer::Inner; return i;
23993 ;
23994 return 0;
23995}
23996_ACEOF
23997if ac_fn_cxx_try_compile "$LINENO"; then :
23998 ax_cv_cxx_namespaces=yes
23999else
24000 ax_cv_cxx_namespaces=no
24001fi
24002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24003 ac_ext=cpp
24004ac_cpp='$CXXCPP $CPPFLAGS'
24005ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24006ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24007ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24008
24009
24010fi
24011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
24012$as_echo "$ax_cv_cxx_namespaces" >&6; }
24013if test "$ax_cv_cxx_namespaces" = yes; then
24014
24015$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
24016
24017fi
24018
24019
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
24021$as_echo_n "checking if g++ supports namespace std... " >&6; }
24022if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
24023 $as_echo_n "(cached) " >&6
24024else
24025
24026 ac_ext=cpp
24027ac_cpp='$CXXCPP $CPPFLAGS'
24028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24031
24032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24033/* end confdefs.h. */
24034#include <iostream>
24035 std::istream& is = std::cin;
24036int
24037main ()
24038{
24039
24040 ;
24041 return 0;
24042}
24043_ACEOF
24044if ac_fn_cxx_try_compile "$LINENO"; then :
24045 ax_cv_cxx_have_std_namespace=yes
24046else
24047 ax_cv_cxx_have_std_namespace=no
24048fi
24049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24050 ac_ext=cpp
24051ac_cpp='$CXXCPP $CPPFLAGS'
24052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24055
24056
24057fi
24058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
24059$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
24060 if test "$ax_cv_cxx_have_std_namespace" = yes; then
24061
24062$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
24063
24064 fi
24065
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
24067$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
24068if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
24069 $as_echo_n "(cached) " >&6
24070else
24071
24072
24073 ac_ext=cpp
24074ac_cpp='$CXXCPP $CPPFLAGS'
24075ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24076ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24077ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24078
24079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24080/* end confdefs.h. */
24081#include <iostream>
24082#include <map>
24083#include <iomanip>
24084#include <cmath>
24085#ifdef HAVE_NAMESPACES
24086using namespace std;
24087#endif
24088int
24089main ()
24090{
24091return 0;
24092 ;
24093 return 0;
24094}
24095_ACEOF
24096if ac_fn_cxx_try_compile "$LINENO"; then :
24097 ac_cv_cxx_have_std_libs=yes
24098else
24099 ac_cv_cxx_have_std_libs=no
24100fi
24101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24102 ac_ext=cpp
24103ac_cpp='$CXXCPP $CPPFLAGS'
24104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24107
24108
24109fi
24110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
24111$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
24112if test "$ac_cv_cxx_have_std_libs" = yes; then
24113
24114$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
24115
24116fi
24117
24118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
24119$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
24120if test "${ac_cv_cxx_have_lstring+set}" = set; then :
24121 $as_echo_n "(cached) " >&6
24122else
24123
24124 ac_ext=cpp
24125ac_cpp='$CXXCPP $CPPFLAGS'
24126ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24127ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24128ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24129
24130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24131/* end confdefs.h. */
24132const wchar_t* s=L"wide string";
24133_ACEOF
24134if ac_fn_cxx_try_compile "$LINENO"; then :
24135 ac_cv_cxx_have_lstring=yes
24136else
24137 ac_cv_cxx_have_lstring=no
24138fi
24139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24140 ac_ext=cpp
24141ac_cpp='$CXXCPP $CPPFLAGS'
24142ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24143ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24144ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24145
24146
24147fi
24148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
24149$as_echo "$ac_cv_cxx_have_lstring" >&6; }
24150if test "$ac_cv_cxx_have_lstring" = yes; then
24151
24152$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
24153
24154fi
cristy3ed852e2009-09-05 21:47:34 +000024155
24156
24157 OPENMP_CXXFLAGS=
24158 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000024159if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024160 enableval=$enable_openmp;
24161fi
24162
24163 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000024164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
24165$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024166if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024167 $as_echo_n "(cached) " >&6
24168else
cristy8b350f62009-11-15 23:12:43 +000024169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24170/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024171
24172#ifndef _OPENMP
24173 choke me
24174#endif
24175#include <omp.h>
24176int main () { return omp_get_num_threads (); }
24177
24178_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024179if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024180 ac_cv_prog_cxx_openmp='none needed'
24181else
cristy8b350f62009-11-15 23:12:43 +000024182 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000024183 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
24184 ac_save_CXXFLAGS=$CXXFLAGS
24185 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000024186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24187/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024188
24189#ifndef _OPENMP
24190 choke me
24191#endif
24192#include <omp.h>
24193int main () { return omp_get_num_threads (); }
24194
24195_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024196if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024197 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000024198fi
cristy8b350f62009-11-15 23:12:43 +000024199rm -f core conftest.err conftest.$ac_objext \
24200 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024201 CXXFLAGS=$ac_save_CXXFLAGS
24202 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24203 break
24204 fi
24205 done
24206fi
cristy8b350f62009-11-15 23:12:43 +000024207rm -f core conftest.err conftest.$ac_objext \
24208 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024209fi
cristy8b350f62009-11-15 23:12:43 +000024210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024211$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24212 case $ac_cv_prog_cxx_openmp in #(
24213 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000024214 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000024215 *)
cristy8b350f62009-11-15 23:12:43 +000024216 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024217 esac
24218 fi
24219
24220
24221 ac_ext=c
24222ac_cpp='$CPP $CPPFLAGS'
24223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24225ac_compiler_gnu=$ac_cv_c_compiler_gnu
24226
24227
cristy8b350f62009-11-15 23:12:43 +000024228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024229$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24230 if \
cristy964cb7f2010-04-25 23:18:00 +000024231 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024232 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024233 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024234 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024235 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024236 have_magick_plus_plus='yes'
24237 else
24238 have_magick_plus_plus='no (failed tests)'
24239 fi
cristy8b350f62009-11-15 23:12:43 +000024240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024241$as_echo "$have_magick_plus_plus" >&6; }
24242 LIBS="$OLIBS"
24243fi
cristy73bd4a52010-10-05 11:24:23 +000024244 if test "$have_magick_plus_plus" = 'yes'; then
24245 WITH_MAGICK_PLUS_PLUS_TRUE=
24246 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24247else
24248 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24249 WITH_MAGICK_PLUS_PLUS_FALSE=
24250fi
24251
cristy3ed852e2009-09-05 21:47:34 +000024252
24253# Only check for delegate libraries in subdirectories if requested.
24254if test "$enable_delegate_build" != 'no'; then
24255 # Check for delegate sub-directories and add -I & -L options as required.
24256 # This presumes that delegates are installed as detailed in the ImageMagick
24257 # README. If delegates are installed in a standard location where the
24258 # compiler will automatically find them then these options should not be
24259 # required.
24260
24261 #
24262 # Most delegates have includes in the same directory as the library, but not all...
24263 #
24264 # Includes
cristy5850e4b2010-01-08 14:28:24 +000024265 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000024266 if test -d "$builddir/$dir"; then
24267 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24268 else
24269 if test -d "$srcdirfull/$dir"; then
24270 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24271 fi
24272 fi
24273 done
24274
24275 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000024276 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000024277 if test -d "$builddir/$dir/.libs"; then
24278 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24279 else
24280 if test -d "$srcdirfull/$dir/.libs"; then
24281 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24282 fi
24283 fi
24284 if test -d "$builddir/$dir"; then
24285 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24286 else
24287 if test -d "$srcdirfull/$dir"; then
24288 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24289 fi
24290 fi
24291 done
24292fi
24293
24294# Assume that delegate headers reside under same directory as ImageMagick
24295# installation prefix.
24296MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24297
24298#
24299# Find the X11 RGB database
24300#
cristy8b350f62009-11-15 23:12:43 +000024301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024302$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024303if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024304 $as_echo_n "(cached) " >&6
24305else
24306 # Look for the header file in a standard set of common directories.
24307# Check X11 before X11Rn because it is often a symlink to the current release.
24308 for ac_dir in \
24309 /lib/usr/lib/X11 \
24310 /usr/X11/lib \
24311 /usr/X11R4/lib \
24312 /usr/X11R5/lib \
24313 /usr/X11R6/lib \
24314 /usr/X11R7/lib \
24315 /usr/X386/lib \
24316 /usr/XFree86/lib/X11 \
24317 /usr/athena/lib \
24318 /usr/lib \
24319 /usr/lib/X11 \
24320 /usr/lib/X11R4 \
24321 /usr/lib/X11R5 \
24322 /usr/lib/X11R6 \
24323 /usr/lib/X11R7 \
24324 /usr/local/X11/lib \
24325 /usr/local/X11R4/lib \
24326 /usr/local/X11R5/lib \
24327 /usr/local/X11R6/lib \
24328 /usr/local/lib \
24329 /usr/local/lib/X11 \
24330 /usr/local/lib/X11R4 \
24331 /usr/local/lib/X11R5 \
24332 /usr/local/lib/X11R6 \
24333 /usr/local/lib/X11R7 \
24334 /usr/local/x11r5/lib \
24335 /usr/lpp/Xamples/lib \
24336 /usr/openwin/lib \
24337 /usr/openwin/share/lib \
24338 /usr/unsupported/lib \
24339 /usr/x386/lib \
24340 ; do
24341 if test -f "$ac_dir/X11/rgb.txt"; then
24342 im_cv_x_configure="$ac_dir/X11/"
24343 break
24344 elif test -f "$ac_dir/rgb.txt"; then
24345 im_cv_x_configure="$ac_dir/"
24346 break
24347 fi
24348
24349 done
24350fi
cristy8b350f62009-11-15 23:12:43 +000024351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024352$as_echo "$im_cv_x_configure" >&6; }
24353X11_CONFIGURE_PATH="$im_cv_x_configure"
24354case "${build_os}" in
24355 mingw* )
24356 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24357 ;;
24358esac
24359
24360cat >>confdefs.h <<_ACEOF
24361#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24362_ACEOF
24363
24364
24365#
24366# Find OpenMP library
24367#
24368GOMP_LIBS=''
24369if test "$enable_openmp" != 'no'; then
24370 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024372$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024373if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024374 $as_echo_n "(cached) " >&6
24375else
24376 ac_check_lib_save_LIBS=$LIBS
24377LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024379/* end confdefs.h. */
24380
24381/* Override any GCC internal prototype to avoid an error.
24382 Use char because int might match the return type of a GCC
24383 builtin and then its argument prototype would still apply. */
24384#ifdef __cplusplus
24385extern "C"
24386#endif
24387char GOMP_parallel_start ();
24388int
24389main ()
24390{
24391return GOMP_parallel_start ();
24392 ;
24393 return 0;
24394}
24395_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024396if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024397 ac_cv_lib_gomp_GOMP_parallel_start=yes
24398else
cristy8b350f62009-11-15 23:12:43 +000024399 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024400fi
cristy8b350f62009-11-15 23:12:43 +000024401rm -f core conftest.err conftest.$ac_objext \
24402 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024403LIBS=$ac_check_lib_save_LIBS
24404fi
cristy8b350f62009-11-15 23:12:43 +000024405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024406$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024407if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024408 GOMP_LIBS="-lgomp"
24409fi
24410 # gcc
24411 else
cristy8b350f62009-11-15 23:12:43 +000024412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024413$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024414if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024415 $as_echo_n "(cached) " >&6
24416else
24417 ac_check_lib_save_LIBS=$LIBS
24418LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024420/* end confdefs.h. */
24421
24422/* Override any GCC internal prototype to avoid an error.
24423 Use char because int might match the return type of a GCC
24424 builtin and then its argument prototype would still apply. */
24425#ifdef __cplusplus
24426extern "C"
24427#endif
24428char sunw_mp_register_warn ();
24429int
24430main ()
24431{
24432return sunw_mp_register_warn ();
24433 ;
24434 return 0;
24435}
24436_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024437if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024438 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24439else
cristy8b350f62009-11-15 23:12:43 +000024440 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000024441fi
cristy8b350f62009-11-15 23:12:43 +000024442rm -f core conftest.err conftest.$ac_objext \
24443 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024444LIBS=$ac_check_lib_save_LIBS
24445fi
cristy8b350f62009-11-15 23:12:43 +000024446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000024447$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024448if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024449 GOMP_LIBS="-lmtsk"
24450fi
24451 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000024452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024453$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024454if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024455 $as_echo_n "(cached) " >&6
24456else
24457 ac_check_lib_save_LIBS=$LIBS
24458LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024460/* end confdefs.h. */
24461
24462/* Override any GCC internal prototype to avoid an error.
24463 Use char because int might match the return type of a GCC
24464 builtin and then its argument prototype would still apply. */
24465#ifdef __cplusplus
24466extern "C"
24467#endif
24468char _xlsmpFlush ();
24469int
24470main ()
24471{
24472return _xlsmpFlush ();
24473 ;
24474 return 0;
24475}
24476_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024477if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024478 ac_cv_lib_xlsmp__xlsmpFlush=yes
24479else
cristy8b350f62009-11-15 23:12:43 +000024480 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000024481fi
cristy8b350f62009-11-15 23:12:43 +000024482rm -f core conftest.err conftest.$ac_objext \
24483 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024484LIBS=$ac_check_lib_save_LIBS
24485fi
cristy8b350f62009-11-15 23:12:43 +000024486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000024487$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024488if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024489 GOMP_LIBS="-lxlsmp"
24490fi
24491 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000024492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024493$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024494if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024495 $as_echo_n "(cached) " >&6
24496else
24497 ac_check_lib_save_LIBS=$LIBS
24498LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024500/* end confdefs.h. */
24501
24502/* Override any GCC internal prototype to avoid an error.
24503 Use char because int might match the return type of a GCC
24504 builtin and then its argument prototype would still apply. */
24505#ifdef __cplusplus
24506extern "C"
24507#endif
24508char mp_destroy ();
24509int
24510main ()
24511{
24512return mp_destroy ();
24513 ;
24514 return 0;
24515}
24516_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024517if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024518 ac_cv_lib_mp_mp_destroy=yes
24519else
cristy8b350f62009-11-15 23:12:43 +000024520 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000024521fi
cristy8b350f62009-11-15 23:12:43 +000024522rm -f core conftest.err conftest.$ac_objext \
24523 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024524LIBS=$ac_check_lib_save_LIBS
24525fi
cristy8b350f62009-11-15 23:12:43 +000024526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000024527$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024528if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024529 GOMP_LIBS="-lmp"
24530fi
24531 # SGI IRIX 6.5 MIPSpro C/C++
24532 fi
24533 LIBS="$GOMP_LIBS $LIBS"
24534fi
24535
24536
24537#
24538# Find Posix threads library
24539#
24540THREAD_LIBS=''
24541if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24542
24543 if test "x$PTHREAD_LIBS" = "x"; then
24544 case "${host_cpu}-${host_os}" in
24545 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000024546
24547
24548
24549ac_ext=c
24550ac_cpp='$CPP $CPPFLAGS'
24551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24553ac_compiler_gnu=$ac_cv_c_compiler_gnu
24554
24555magick_pthread_lib_ok=no
24556
24557LIB=-lc_r
24558save_LIBS="$LIBS"
24559LIBS="$LIBS $LIB"
24560
24561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24562$as_echo_n "checking for the pthreads library $LIB... " >&6; }
24563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24564/* end confdefs.h. */
24565#include <pthread.h>
24566int
24567main ()
24568{
24569 pthread_t th;
24570 pthread_join(th, 0);
24571 pthread_attr_init(0);
24572 pthread_cleanup_push(0, 0);
24573 pthread_create(0,0,0,0);
24574 pthread_cleanup_pop(0);
24575 ;
24576 return 0;
24577}
24578_ACEOF
24579if ac_fn_c_try_link "$LINENO"; then :
24580 magick_pthread_lib_ok=yes
24581fi
24582rm -f core conftest.err conftest.$ac_objext \
24583 conftest$ac_exeext conftest.$ac_ext
24584
24585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24586$as_echo "${magick_pthread_lib_ok}" >&6; }
24587if test "$magick_pthread_lib_ok" = yes
24588then
24589 PTHREAD_LIBS=-lc_r
24590 :
24591else
24592
24593 :
24594fi
24595
24596LIBS="$save_LIBS"
24597
24598ac_ext=c
24599ac_cpp='$CPP $CPPFLAGS'
24600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24602ac_compiler_gnu=$ac_cv_c_compiler_gnu
24603
24604 ;;
cristy3ed852e2009-09-05 21:47:34 +000024605 esac
24606 fi
24607
24608 for lib in pthread pthreads; do
24609 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000024610
24611
24612
24613ac_ext=c
24614ac_cpp='$CPP $CPPFLAGS'
24615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24617ac_compiler_gnu=$ac_cv_c_compiler_gnu
24618
24619magick_pthread_lib_ok=no
24620
24621LIB=-l$lib
24622save_LIBS="$LIBS"
24623LIBS="$LIBS $LIB"
24624
24625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24626$as_echo_n "checking for the pthreads library $LIB... " >&6; }
24627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24628/* end confdefs.h. */
24629#include <pthread.h>
24630int
24631main ()
24632{
24633 pthread_t th;
24634 pthread_join(th, 0);
24635 pthread_attr_init(0);
24636 pthread_cleanup_push(0, 0);
24637 pthread_create(0,0,0,0);
24638 pthread_cleanup_pop(0);
24639 ;
24640 return 0;
24641}
24642_ACEOF
24643if ac_fn_c_try_link "$LINENO"; then :
24644 magick_pthread_lib_ok=yes
24645fi
24646rm -f core conftest.err conftest.$ac_objext \
24647 conftest$ac_exeext conftest.$ac_ext
24648
24649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24650$as_echo "${magick_pthread_lib_ok}" >&6; }
24651if test "$magick_pthread_lib_ok" = yes
24652then
24653 PTHREAD_LIBS=-l$lib
24654 :
24655else
24656
24657 :
24658fi
24659
24660LIBS="$save_LIBS"
24661
24662ac_ext=c
24663ac_cpp='$CPP $CPPFLAGS'
24664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24666ac_compiler_gnu=$ac_cv_c_compiler_gnu
24667
24668
cristy3ed852e2009-09-05 21:47:34 +000024669 fi
24670 done
24671
24672 THREAD_LIBS="$PTHREAD_LIBS"
24673 LIBS="$LIBS $THREAD_LIBS"
24674fi
24675
24676
24677#
24678# Check for umem.
24679#
24680have_umem='no'
24681UMEM_LIBS=''
24682if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024684$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024686$as_echo "" >&6; }
24687 failed=0
24688 passed=0
cristy8b350f62009-11-15 23:12:43 +000024689 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24690if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024691 passed=`expr $passed + 1`
24692else
24693 failed=`expr $failed + 1`
24694fi
24695
24696
cristy8b350f62009-11-15 23:12:43 +000024697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024698$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024699if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024700 $as_echo_n "(cached) " >&6
24701else
24702 ac_check_lib_save_LIBS=$LIBS
24703LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024705/* end confdefs.h. */
24706
24707/* Override any GCC internal prototype to avoid an error.
24708 Use char because int might match the return type of a GCC
24709 builtin and then its argument prototype would still apply. */
24710#ifdef __cplusplus
24711extern "C"
24712#endif
24713char umem_alloc ();
24714int
24715main ()
24716{
24717return umem_alloc ();
24718 ;
24719 return 0;
24720}
24721_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024722if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024723 ac_cv_lib_umem_umem_alloc=yes
24724else
cristy8b350f62009-11-15 23:12:43 +000024725 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024726fi
cristy8b350f62009-11-15 23:12:43 +000024727rm -f core conftest.err conftest.$ac_objext \
24728 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024729LIBS=$ac_check_lib_save_LIBS
24730fi
cristy8b350f62009-11-15 23:12:43 +000024731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024732$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024733if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024734 passed=`expr $passed + 1`
24735else
24736 failed=`expr $failed + 1`
24737fi
24738
cristy8b350f62009-11-15 23:12:43 +000024739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024740$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024741if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024742 $as_echo_n "(cached) " >&6
24743else
24744 ac_check_lib_save_LIBS=$LIBS
24745LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024747/* end confdefs.h. */
24748
24749/* Override any GCC internal prototype to avoid an error.
24750 Use char because int might match the return type of a GCC
24751 builtin and then its argument prototype would still apply. */
24752#ifdef __cplusplus
24753extern "C"
24754#endif
24755char umem_free ();
24756int
24757main ()
24758{
24759return umem_free ();
24760 ;
24761 return 0;
24762}
24763_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024764if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024765 ac_cv_lib_umem_umem_free=yes
24766else
cristy8b350f62009-11-15 23:12:43 +000024767 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024768fi
cristy8b350f62009-11-15 23:12:43 +000024769rm -f core conftest.err conftest.$ac_objext \
24770 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024771LIBS=$ac_check_lib_save_LIBS
24772fi
cristy8b350f62009-11-15 23:12:43 +000024773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024774$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024775if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024776 passed=`expr $passed + 1`
24777else
24778 failed=`expr $failed + 1`
24779fi
24780
cristy8b350f62009-11-15 23:12:43 +000024781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024782$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24783 if test $passed -gt 0; then
24784 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024786$as_echo "no -- some components failed test" >&6; }
24787 have_umem='no (failed tests)'
24788 else
24789 UMEM_LIBS='-lumem'
24790 LIBS="$UMEM_LIBS $LIBS"
24791
cristy8b350f62009-11-15 23:12:43 +000024792$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024793
cristy8b350f62009-11-15 23:12:43 +000024794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024795$as_echo "yes" >&6; }
24796 have_umem='yes'
24797 fi
24798 else
cristy8b350f62009-11-15 23:12:43 +000024799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024800$as_echo "no" >&6; }
24801 fi
24802fi
cristy73bd4a52010-10-05 11:24:23 +000024803 if test "$have_umem" = 'yes'; then
24804 HasUMEM_TRUE=
24805 HasUMEM_FALSE='#'
24806else
24807 HasUMEM_TRUE='#'
24808 HasUMEM_FALSE=
24809fi
24810
cristy3ed852e2009-09-05 21:47:34 +000024811
24812
24813#
24814# Add support for ccmalloc memory debugging library if requested
24815#
24816have_ccmalloc='no'
24817CCMALLOC_LIBS=''
24818if test "$enable_ccmalloc" = 'yes'; then
24819 # Extract the first word of "ccmalloc", so it can be a program name with args.
24820set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024822$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024823if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024824 $as_echo_n "(cached) " >&6
24825else
24826 case $CCMALLOCDelegate in
24827 [\\/]* | ?:[\\/]*)
24828 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24829 ;;
24830 *)
24831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24832for as_dir in $PATH
24833do
24834 IFS=$as_save_IFS
24835 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024836 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24838 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024840 break 2
24841 fi
24842done
cristy8b350f62009-11-15 23:12:43 +000024843 done
cristy3ed852e2009-09-05 21:47:34 +000024844IFS=$as_save_IFS
24845
24846 ;;
24847esac
24848fi
24849CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24850if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024852$as_echo "$CCMALLOCDelegate" >&6; }
24853else
cristy8b350f62009-11-15 23:12:43 +000024854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024855$as_echo "no" >&6; }
24856fi
24857
24858
24859 if test -n "$CCMALLOCDelegate"; then
24860 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24861 OLIBS="$LIBS"
24862 # Assume that gcc is used with ccmalloc.
24863 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024865$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024866if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024867 $as_echo_n "(cached) " >&6
24868else
24869 ac_check_lib_save_LIBS=$LIBS
24870LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024872/* end confdefs.h. */
24873
24874/* Override any GCC internal prototype to avoid an error.
24875 Use char because int might match the return type of a GCC
24876 builtin and then its argument prototype would still apply. */
24877#ifdef __cplusplus
24878extern "C"
24879#endif
24880char ccmalloc_malloc ();
24881int
24882main ()
24883{
24884return ccmalloc_malloc ();
24885 ;
24886 return 0;
24887}
24888_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024889if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024890 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24891else
cristy8b350f62009-11-15 23:12:43 +000024892 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024893fi
cristy8b350f62009-11-15 23:12:43 +000024894rm -f core conftest.err conftest.$ac_objext \
24895 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024896LIBS=$ac_check_lib_save_LIBS
24897fi
cristy8b350f62009-11-15 23:12:43 +000024898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024899$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024900if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024901 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24902fi
24903
24904 if test -n "$CCMALLOC_LIBS"; then
24905 LIBS="$OLIBS"
24906 LIBS="$LIBS $CCMALLOC_LIBS"
24907 have_ccmalloc='yes'
24908 else
24909 LIBS="$OLIBS"
24910 fi
24911 fi
24912fi
24913
24914#
24915# Add support for efence memory debugging library if requested
24916#
24917if test "$enable_efence" = 'yes'; then
24918 EFENCE_LIBS='-lefence'
24919 LIBS="$EFENCE_LIBS $LIBS"
24920fi
24921
cristy3ed852e2009-09-05 21:47:34 +000024922
24923#
24924# Check for BZLIB
24925#
24926
24927
24928# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024929if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024930 withval=$with_bzlib; with_bzlib=$withval
24931else
24932 with_bzlib='yes'
24933fi
24934
24935
24936if test "$with_bzlib" != 'yes'; then
24937 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24938fi
24939
24940have_bzlib='no'
24941if test "$with_bzlib" != 'no'; then
24942 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024944$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024946$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024948$as_echo "" >&6; }
24949 failed=0
24950 passed=0
24951 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024952 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24953if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024954 passed=`expr $passed + 1`
24955else
24956 failed=`expr $failed + 1`
24957fi
24958
24959
cristy8b350f62009-11-15 23:12:43 +000024960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024961$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024962if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024963 $as_echo_n "(cached) " >&6
24964else
24965 ac_check_lib_save_LIBS=$LIBS
24966LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024968/* end confdefs.h. */
24969
24970/* Override any GCC internal prototype to avoid an error.
24971 Use char because int might match the return type of a GCC
24972 builtin and then its argument prototype would still apply. */
24973#ifdef __cplusplus
24974extern "C"
24975#endif
24976char BZ2_bzDecompress ();
24977int
24978main ()
24979{
24980return BZ2_bzDecompress ();
24981 ;
24982 return 0;
24983}
24984_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024985if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024986 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24987else
cristy8b350f62009-11-15 23:12:43 +000024988 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024989fi
cristy8b350f62009-11-15 23:12:43 +000024990rm -f core conftest.err conftest.$ac_objext \
24991 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024992LIBS=$ac_check_lib_save_LIBS
24993fi
cristy8b350f62009-11-15 23:12:43 +000024994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024995$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024996if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024997 found_libbz=`expr $found_libbz + 1`
24998fi
24999
25000 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000025002$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025003if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025004 $as_echo_n "(cached) " >&6
25005else
25006 ac_check_lib_save_LIBS=$LIBS
25007LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025009/* end confdefs.h. */
25010
25011/* Override any GCC internal prototype to avoid an error.
25012 Use char because int might match the return type of a GCC
25013 builtin and then its argument prototype would still apply. */
25014#ifdef __cplusplus
25015extern "C"
25016#endif
25017char _imp__BZ2_decompress ();
25018int
25019main ()
25020{
25021return _imp__BZ2_decompress ();
25022 ;
25023 return 0;
25024}
25025_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025026if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025027 ac_cv_lib_bz2__imp__BZ2_decompress=yes
25028else
cristy8b350f62009-11-15 23:12:43 +000025029 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000025030fi
cristy8b350f62009-11-15 23:12:43 +000025031rm -f core conftest.err conftest.$ac_objext \
25032 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025033LIBS=$ac_check_lib_save_LIBS
25034fi
cristy8b350f62009-11-15 23:12:43 +000025035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025036$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025037if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025038 found_libbz=`expr $found_libbz + 1`
25039fi
25040
25041 fi
25042 if test $found_libbz -gt 0; then
25043 passed=`expr $passed + 1`
25044 else
25045 failed=`expr $failed + 1`
25046 fi
cristy8b350f62009-11-15 23:12:43 +000025047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025048$as_echo_n "checking if BZLIB package is complete... " >&6; }
25049 if test $passed -gt 0; then
25050 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025052$as_echo "no -- some components failed test" >&6; }
25053 have_bzlib='no (failed tests)'
25054 else
25055 BZLIB_LIBS='-lbz2'
25056 LIBS="$BZLIB_LIBS $LIBS"
25057
cristy8b350f62009-11-15 23:12:43 +000025058$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025059
cristy8b350f62009-11-15 23:12:43 +000025060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025061$as_echo "yes" >&6; }
25062 have_bzlib='yes'
25063 fi
25064 else
cristy8b350f62009-11-15 23:12:43 +000025065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025066$as_echo "no" >&6; }
25067 fi
25068fi
cristy73bd4a52010-10-05 11:24:23 +000025069 if test "$have_bzlib" = 'yes'; then
25070 BZLIB_DELEGATE_TRUE=
25071 BZLIB_DELEGATE_FALSE='#'
25072else
25073 BZLIB_DELEGATE_TRUE='#'
25074 BZLIB_DELEGATE_FALSE=
25075fi
25076
cristy3ed852e2009-09-05 21:47:34 +000025077
25078
25079#
25080# Find the X11 include and library directories.
25081#
25082IPC_LIBS=''
25083X11_LIBS=''
25084XEXT_LIBS=''
25085XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000025087$as_echo_n "checking for X... " >&6; }
25088
25089
25090# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000025091if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025092 withval=$with_x;
25093fi
25094
25095# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25096if test "x$with_x" = xno; then
25097 # The user explicitly disabled X.
25098 have_x=disabled
25099else
25100 case $x_includes,$x_libraries in #(
cristyf6fcb5d2010-09-24 01:19:13 +000025101 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
cristy8b350f62009-11-15 23:12:43 +000025102 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025103 $as_echo_n "(cached) " >&6
25104else
25105 # One or both of the vars are not set, and there is no cached value.
25106ac_x_includes=no ac_x_libraries=no
25107rm -f -r conftest.dir
25108if mkdir conftest.dir; then
25109 cd conftest.dir
25110 cat >Imakefile <<'_ACEOF'
25111incroot:
25112 @echo incroot='${INCROOT}'
25113usrlibdir:
25114 @echo usrlibdir='${USRLIBDIR}'
25115libdir:
25116 @echo libdir='${LIBDIR}'
25117_ACEOF
25118 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristyf6fcb5d2010-09-24 01:19:13 +000025119 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000025120 for ac_var in incroot usrlibdir libdir; do
25121 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25122 done
25123 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25124 for ac_extension in a so sl dylib la dll; do
25125 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25126 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25127 ac_im_usrlibdir=$ac_im_libdir; break
25128 fi
25129 done
25130 # Screen out bogus values from the imake configuration. They are
25131 # bogus both because they are the default anyway, and because
25132 # using them would break gcc on systems where it needs fixed includes.
25133 case $ac_im_incroot in
25134 /usr/include) ac_x_includes= ;;
25135 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25136 esac
25137 case $ac_im_usrlibdir in
25138 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25139 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25140 esac
25141 fi
25142 cd ..
25143 rm -f -r conftest.dir
25144fi
25145
25146# Standard set of common directories for X headers.
25147# Check X11 before X11Rn because it is often a symlink to the current release.
25148ac_x_header_dirs='
25149/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000025150/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025151/usr/X11R6/include
25152/usr/X11R5/include
25153/usr/X11R4/include
25154
25155/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000025156/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025157/usr/include/X11R6
25158/usr/include/X11R5
25159/usr/include/X11R4
25160
25161/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000025162/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025163/usr/local/X11R6/include
25164/usr/local/X11R5/include
25165/usr/local/X11R4/include
25166
25167/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000025168/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025169/usr/local/include/X11R6
25170/usr/local/include/X11R5
25171/usr/local/include/X11R4
25172
25173/usr/X386/include
25174/usr/x386/include
25175/usr/XFree86/include/X11
25176
25177/usr/include
25178/usr/local/include
25179/usr/unsupported/include
25180/usr/athena/include
25181/usr/local/x11r5/include
25182/usr/lpp/Xamples/include
25183
25184/usr/openwin/include
25185/usr/openwin/share/include'
25186
25187if test "$ac_x_includes" = no; then
25188 # Guess where to find include files, by looking for Xlib.h.
25189 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000025190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025191/* end confdefs.h. */
25192#include <X11/Xlib.h>
25193_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025194if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025195 # We can compile using X headers with no special include directory.
25196ac_x_includes=
25197else
cristyc7083c12009-10-14 03:16:55 +000025198 for ac_dir in $ac_x_header_dirs; do
25199 if test -r "$ac_dir/X11/Xlib.h"; then
25200 ac_x_includes=$ac_dir
25201 break
25202 fi
25203done
25204fi
cristyc7083c12009-10-14 03:16:55 +000025205rm -f conftest.err conftest.$ac_ext
25206fi # $ac_x_includes = no
25207
25208if test "$ac_x_libraries" = no; then
25209 # Check for the libraries.
25210 # See if we find them without any special options.
25211 # Don't add to $LIBS permanently.
25212 ac_save_LIBS=$LIBS
25213 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025215/* end confdefs.h. */
25216#include <X11/Xlib.h>
25217int
25218main ()
25219{
25220XrmInitialize ()
25221 ;
25222 return 0;
25223}
25224_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025225if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025226 LIBS=$ac_save_LIBS
25227# We can link X programs with no special library path.
25228ac_x_libraries=
25229else
cristy8b350f62009-11-15 23:12:43 +000025230 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025231for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25232do
25233 # Don't even attempt the hair of trying to link an X program!
25234 for ac_extension in a so sl dylib la dll; do
25235 if test -r "$ac_dir/libX11.$ac_extension"; then
25236 ac_x_libraries=$ac_dir
25237 break 2
25238 fi
25239 done
25240done
25241fi
cristy8b350f62009-11-15 23:12:43 +000025242rm -f core conftest.err conftest.$ac_objext \
25243 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025244fi # $ac_x_libraries = no
25245
25246case $ac_x_includes,$ac_x_libraries in #(
25247 no,* | *,no | *\'*)
25248 # Didn't find X, or a directory has "'" in its name.
25249 ac_cv_have_x="have_x=no";; #(
25250 *)
25251 # Record where we found X for the cache.
25252 ac_cv_have_x="have_x=yes\
25253 ac_x_includes='$ac_x_includes'\
25254 ac_x_libraries='$ac_x_libraries'"
25255esac
25256fi
25257;; #(
25258 *) have_x=yes;;
25259 esac
25260 eval "$ac_cv_have_x"
25261fi # $with_x != no
25262
25263if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025265$as_echo "$have_x" >&6; }
25266 no_x=yes
25267else
25268 # If each of the values was on the command line, it overrides each guess.
25269 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25270 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25271 # Update the cache value to reflect the command line values.
25272 ac_cv_have_x="have_x=yes\
25273 ac_x_includes='$x_includes'\
25274 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025276$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25277fi
25278
cristy3ed852e2009-09-05 21:47:34 +000025279if test "$no_x" = yes; then
25280 # Not all programs may use this symbol, but it does not hurt to define it.
25281
cristy8b350f62009-11-15 23:12:43 +000025282$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025283
25284 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25285else
25286 if test -n "$x_includes"; then
25287 X_CFLAGS="$X_CFLAGS -I$x_includes"
25288 fi
25289
25290 # It would also be nice to do this for all -L options, not just this one.
25291 if test -n "$x_libraries"; then
25292 X_LIBS="$X_LIBS -L$x_libraries"
25293 # For Solaris; some versions of Sun CC require a space after -R and
25294 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025296$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25297 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25298 ac_xsave_c_werror_flag=$ac_c_werror_flag
25299 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025301/* end confdefs.h. */
25302
25303int
25304main ()
25305{
25306
25307 ;
25308 return 0;
25309}
25310_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025311if ac_fn_c_try_link "$LINENO"; then :
25312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025313$as_echo "no" >&6; }
25314 X_LIBS="$X_LIBS -R$x_libraries"
25315else
cristy8b350f62009-11-15 23:12:43 +000025316 LIBS="$ac_xsave_LIBS -R $x_libraries"
25317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025318/* end confdefs.h. */
25319
25320int
25321main ()
25322{
25323
25324 ;
25325 return 0;
25326}
25327_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025328if ac_fn_c_try_link "$LINENO"; then :
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025330$as_echo "yes" >&6; }
25331 X_LIBS="$X_LIBS -R $x_libraries"
25332else
cristy8b350f62009-11-15 23:12:43 +000025333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025334$as_echo "neither works" >&6; }
25335fi
cristy8b350f62009-11-15 23:12:43 +000025336rm -f core conftest.err conftest.$ac_objext \
25337 conftest$ac_exeext conftest.$ac_ext
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 +000025341 ac_c_werror_flag=$ac_xsave_c_werror_flag
25342 LIBS=$ac_xsave_LIBS
25343 fi
25344
25345 # Check for system-dependent libraries X programs must link with.
25346 # Do this before checking for the system-independent R6 libraries
25347 # (-lICE), since we may need -lsocket or whatever for X linking.
25348
25349 if test "$ISC" = yes; then
25350 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25351 else
25352 # Martyn Johnson says this is needed for Ultrix, if the X
25353 # libraries were built with DECnet support. And Karl Berry says
25354 # the Alpha needs dnet_stub (dnet does not exist).
25355 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025357/* end confdefs.h. */
25358
25359/* Override any GCC internal prototype to avoid an error.
25360 Use char because int might match the return type of a GCC
25361 builtin and then its argument prototype would still apply. */
25362#ifdef __cplusplus
25363extern "C"
25364#endif
25365char XOpenDisplay ();
25366int
25367main ()
25368{
25369return XOpenDisplay ();
25370 ;
25371 return 0;
25372}
25373_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025374if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025375
cristy8b350f62009-11-15 23:12:43 +000025376else
25377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025378$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025379if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025380 $as_echo_n "(cached) " >&6
25381else
25382 ac_check_lib_save_LIBS=$LIBS
25383LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025385/* end confdefs.h. */
25386
25387/* Override any GCC internal prototype to avoid an error.
25388 Use char because int might match the return type of a GCC
25389 builtin and then its argument prototype would still apply. */
25390#ifdef __cplusplus
25391extern "C"
25392#endif
25393char dnet_ntoa ();
25394int
25395main ()
25396{
25397return dnet_ntoa ();
25398 ;
25399 return 0;
25400}
25401_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025402if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025403 ac_cv_lib_dnet_dnet_ntoa=yes
25404else
cristy8b350f62009-11-15 23:12:43 +000025405 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025406fi
cristy8b350f62009-11-15 23:12:43 +000025407rm -f core conftest.err conftest.$ac_objext \
25408 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025409LIBS=$ac_check_lib_save_LIBS
25410fi
cristy8b350f62009-11-15 23:12:43 +000025411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025412$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025413if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025414 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25415fi
25416
25417 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000025418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000025419$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025420if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025421 $as_echo_n "(cached) " >&6
25422else
25423 ac_check_lib_save_LIBS=$LIBS
25424LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025426/* end confdefs.h. */
25427
25428/* Override any GCC internal prototype to avoid an error.
25429 Use char because int might match the return type of a GCC
25430 builtin and then its argument prototype would still apply. */
25431#ifdef __cplusplus
25432extern "C"
25433#endif
25434char dnet_ntoa ();
25435int
25436main ()
25437{
25438return dnet_ntoa ();
25439 ;
25440 return 0;
25441}
25442_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025443if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025444 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25445else
cristy8b350f62009-11-15 23:12:43 +000025446 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025447fi
cristy8b350f62009-11-15 23:12:43 +000025448rm -f core conftest.err conftest.$ac_objext \
25449 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025450LIBS=$ac_check_lib_save_LIBS
25451fi
cristy8b350f62009-11-15 23:12:43 +000025452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025453$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025454if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025455 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25456fi
25457
25458 fi
25459fi
cristy8b350f62009-11-15 23:12:43 +000025460rm -f core conftest.err conftest.$ac_objext \
25461 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025462 LIBS="$ac_xsave_LIBS"
25463
25464 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25465 # to get the SysV transport functions.
25466 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25467 # needs -lnsl.
25468 # The nsl library prevents programs from opening the X display
25469 # on Irix 5.2, according to T.E. Dickey.
25470 # The functions gethostbyname, getservbyname, and inet_addr are
25471 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000025472 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25473if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025474
cristy3ed852e2009-09-05 21:47:34 +000025475fi
25476
cristy3ed852e2009-09-05 21:47:34 +000025477 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025479$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025480if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025481 $as_echo_n "(cached) " >&6
25482else
25483 ac_check_lib_save_LIBS=$LIBS
25484LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025486/* end confdefs.h. */
25487
25488/* Override any GCC internal prototype to avoid an error.
25489 Use char because int might match the return type of a GCC
25490 builtin and then its argument prototype would still apply. */
25491#ifdef __cplusplus
25492extern "C"
25493#endif
25494char gethostbyname ();
25495int
25496main ()
25497{
25498return gethostbyname ();
25499 ;
25500 return 0;
25501}
25502_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025503if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025504 ac_cv_lib_nsl_gethostbyname=yes
25505else
cristy8b350f62009-11-15 23:12:43 +000025506 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025507fi
cristy8b350f62009-11-15 23:12:43 +000025508rm -f core conftest.err conftest.$ac_objext \
25509 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025510LIBS=$ac_check_lib_save_LIBS
25511fi
cristy8b350f62009-11-15 23:12:43 +000025512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025513$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025514if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025515 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25516fi
25517
25518 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000025520$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025521if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025522 $as_echo_n "(cached) " >&6
25523else
25524 ac_check_lib_save_LIBS=$LIBS
25525LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025527/* end confdefs.h. */
25528
25529/* Override any GCC internal prototype to avoid an error.
25530 Use char because int might match the return type of a GCC
25531 builtin and then its argument prototype would still apply. */
25532#ifdef __cplusplus
25533extern "C"
25534#endif
25535char gethostbyname ();
25536int
25537main ()
25538{
25539return gethostbyname ();
25540 ;
25541 return 0;
25542}
25543_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025544if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025545 ac_cv_lib_bsd_gethostbyname=yes
25546else
cristy8b350f62009-11-15 23:12:43 +000025547 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025548fi
cristy8b350f62009-11-15 23:12:43 +000025549rm -f core conftest.err conftest.$ac_objext \
25550 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025551LIBS=$ac_check_lib_save_LIBS
25552fi
cristy8b350f62009-11-15 23:12:43 +000025553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025554$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025555if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025556 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25557fi
25558
25559 fi
25560 fi
25561
25562 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25563 # socket/setsockopt and other routines are undefined under SCO ODT
25564 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25565 # on later versions), says Simon Leinen: it contains gethostby*
25566 # variants that don't use the name server (or something). -lsocket
25567 # must be given before -lnsl if both are needed. We assume that
25568 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000025569 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25570if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025571
cristy3ed852e2009-09-05 21:47:34 +000025572fi
25573
cristy3ed852e2009-09-05 21:47:34 +000025574 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000025575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000025576$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025577if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025578 $as_echo_n "(cached) " >&6
25579else
25580 ac_check_lib_save_LIBS=$LIBS
25581LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025583/* end confdefs.h. */
25584
25585/* Override any GCC internal prototype to avoid an error.
25586 Use char because int might match the return type of a GCC
25587 builtin and then its argument prototype would still apply. */
25588#ifdef __cplusplus
25589extern "C"
25590#endif
25591char connect ();
25592int
25593main ()
25594{
25595return connect ();
25596 ;
25597 return 0;
25598}
25599_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025600if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025601 ac_cv_lib_socket_connect=yes
25602else
cristy8b350f62009-11-15 23:12:43 +000025603 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000025604fi
cristy8b350f62009-11-15 23:12:43 +000025605rm -f core conftest.err conftest.$ac_objext \
25606 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025607LIBS=$ac_check_lib_save_LIBS
25608fi
cristy8b350f62009-11-15 23:12:43 +000025609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000025610$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025611if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025612 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25613fi
25614
25615 fi
25616
25617 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000025618 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25619if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025620
cristy3ed852e2009-09-05 21:47:34 +000025621fi
25622
cristy3ed852e2009-09-05 21:47:34 +000025623 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000025624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000025625$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025626if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025627 $as_echo_n "(cached) " >&6
25628else
25629 ac_check_lib_save_LIBS=$LIBS
25630LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025632/* end confdefs.h. */
25633
25634/* Override any GCC internal prototype to avoid an error.
25635 Use char because int might match the return type of a GCC
25636 builtin and then its argument prototype would still apply. */
25637#ifdef __cplusplus
25638extern "C"
25639#endif
25640char remove ();
25641int
25642main ()
25643{
25644return remove ();
25645 ;
25646 return 0;
25647}
25648_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025649if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025650 ac_cv_lib_posix_remove=yes
25651else
cristy8b350f62009-11-15 23:12:43 +000025652 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025653fi
cristy8b350f62009-11-15 23:12:43 +000025654rm -f core conftest.err conftest.$ac_objext \
25655 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025656LIBS=$ac_check_lib_save_LIBS
25657fi
cristy8b350f62009-11-15 23:12:43 +000025658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025659$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025660if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025661 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25662fi
25663
25664 fi
25665
25666 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025667 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25668if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025669
cristy3ed852e2009-09-05 21:47:34 +000025670fi
25671
cristy3ed852e2009-09-05 21:47:34 +000025672 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025674$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025675if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025676 $as_echo_n "(cached) " >&6
25677else
25678 ac_check_lib_save_LIBS=$LIBS
25679LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025681/* end confdefs.h. */
25682
25683/* Override any GCC internal prototype to avoid an error.
25684 Use char because int might match the return type of a GCC
25685 builtin and then its argument prototype would still apply. */
25686#ifdef __cplusplus
25687extern "C"
25688#endif
25689char shmat ();
25690int
25691main ()
25692{
25693return shmat ();
25694 ;
25695 return 0;
25696}
25697_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025698if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025699 ac_cv_lib_ipc_shmat=yes
25700else
cristy8b350f62009-11-15 23:12:43 +000025701 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025702fi
cristy8b350f62009-11-15 23:12:43 +000025703rm -f core conftest.err conftest.$ac_objext \
25704 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025705LIBS=$ac_check_lib_save_LIBS
25706fi
cristy8b350f62009-11-15 23:12:43 +000025707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025708$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025709if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025710 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25711fi
25712
25713 fi
25714 fi
25715
25716 # Check for libraries that X11R6 Xt/Xaw programs need.
25717 ac_save_LDFLAGS=$LDFLAGS
25718 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25719 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25720 # check for ICE first), but we must link in the order -lSM -lICE or
25721 # we get undefined symbols. So assume we have SM if we have ICE.
25722 # These have to be linked with before -lX11, unlike the other
25723 # libraries we check for below, so use a different variable.
25724 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025726$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025727if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025728 $as_echo_n "(cached) " >&6
25729else
25730 ac_check_lib_save_LIBS=$LIBS
25731LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025733/* end confdefs.h. */
25734
25735/* Override any GCC internal prototype to avoid an error.
25736 Use char because int might match the return type of a GCC
25737 builtin and then its argument prototype would still apply. */
25738#ifdef __cplusplus
25739extern "C"
25740#endif
25741char IceConnectionNumber ();
25742int
25743main ()
25744{
25745return IceConnectionNumber ();
25746 ;
25747 return 0;
25748}
25749_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025750if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025751 ac_cv_lib_ICE_IceConnectionNumber=yes
25752else
cristy8b350f62009-11-15 23:12:43 +000025753 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025754fi
cristy8b350f62009-11-15 23:12:43 +000025755rm -f core conftest.err conftest.$ac_objext \
25756 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025757LIBS=$ac_check_lib_save_LIBS
25758fi
cristy8b350f62009-11-15 23:12:43 +000025759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025760$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025761if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025762 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25763fi
25764
25765 LDFLAGS=$ac_save_LDFLAGS
25766
25767fi
25768
25769if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025771$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025773$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025775$as_echo "" >&6; }
25776 LDFLAGS="$LDFLAGS $X_LIBS"
25777 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25778 LIBS="$X11_LIBS $LIBS"
25779 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25780
25781
cristy8b350f62009-11-15 23:12:43 +000025782$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025783
25784 #
25785 # Check for X11 shared memory extension
25786 #
25787 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025788 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25789if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025790 have_shmctl='yes'
25791fi
25792
25793 if test "$have_shmctl" != 'yes'; then
25794 PERSIST_LIBS=$LIBS
25795 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025797/* end confdefs.h. */
25798
25799/* Override any GCC internal prototype to avoid an error.
25800 Use char because int might match the return type of a GCC
25801 builtin and then its argument prototype would still apply. */
25802#ifdef __cplusplus
25803extern "C"
25804#endif
25805char shmctl ();
25806int
25807main ()
25808{
25809return shmctl ();
25810 ;
25811 return 0;
25812}
25813_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025814if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025815 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025816fi
cristy8b350f62009-11-15 23:12:43 +000025817rm -f core conftest.err conftest.$ac_objext \
25818 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025819 LIBS=$PERSIST_LIBS
25820 fi
25821
25822 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025824$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025825if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025826 $as_echo_n "(cached) " >&6
25827else
25828 ac_check_lib_save_LIBS=$LIBS
25829LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025831/* end confdefs.h. */
25832
25833/* Override any GCC internal prototype to avoid an error.
25834 Use char because int might match the return type of a GCC
25835 builtin and then its argument prototype would still apply. */
25836#ifdef __cplusplus
25837extern "C"
25838#endif
25839char XShmAttach ();
25840int
25841main ()
25842{
25843return XShmAttach ();
25844 ;
25845 return 0;
25846}
25847_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025848if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025849 ac_cv_lib_Xext_XShmAttach=yes
25850else
cristy8b350f62009-11-15 23:12:43 +000025851 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025852fi
cristy8b350f62009-11-15 23:12:43 +000025853rm -f core conftest.err conftest.$ac_objext \
25854 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025855LIBS=$ac_check_lib_save_LIBS
25856fi
cristy8b350f62009-11-15 23:12:43 +000025857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025858$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025859if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025860 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025861$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025862
25863fi
25864
25865 fi
25866
25867 #
25868 # Check for X11 shape extension
25869 #
cristy8b350f62009-11-15 23:12:43 +000025870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025871$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025872if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025873 $as_echo_n "(cached) " >&6
25874else
25875 ac_check_lib_save_LIBS=$LIBS
25876LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025878/* end confdefs.h. */
25879
25880/* Override any GCC internal prototype to avoid an error.
25881 Use char because int might match the return type of a GCC
25882 builtin and then its argument prototype would still apply. */
25883#ifdef __cplusplus
25884extern "C"
25885#endif
25886char XShapeCombineMask ();
25887int
25888main ()
25889{
25890return XShapeCombineMask ();
25891 ;
25892 return 0;
25893}
25894_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025895if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025896 ac_cv_lib_Xext_XShapeCombineMask=yes
25897else
cristy8b350f62009-11-15 23:12:43 +000025898 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025899fi
cristy8b350f62009-11-15 23:12:43 +000025900rm -f core conftest.err conftest.$ac_objext \
25901 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025902LIBS=$ac_check_lib_save_LIBS
25903fi
cristy8b350f62009-11-15 23:12:43 +000025904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025905$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025906if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025907 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025908$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025909
25910fi
25911
cristy8b350f62009-11-15 23:12:43 +000025912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025913$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025914if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025915 $as_echo_n "(cached) " >&6
25916else
25917 ac_check_lib_save_LIBS=$LIBS
25918LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025920/* end confdefs.h. */
25921
25922/* Override any GCC internal prototype to avoid an error.
25923 Use char because int might match the return type of a GCC
25924 builtin and then its argument prototype would still apply. */
25925#ifdef __cplusplus
25926extern "C"
25927#endif
25928char XtSetEventDispatcher ();
25929int
25930main ()
25931{
25932return XtSetEventDispatcher ();
25933 ;
25934 return 0;
25935}
25936_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025937if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025938 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25939else
cristy8b350f62009-11-15 23:12:43 +000025940 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025941fi
cristy8b350f62009-11-15 23:12:43 +000025942rm -f core conftest.err conftest.$ac_objext \
25943 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025944LIBS=$ac_check_lib_save_LIBS
25945fi
cristy8b350f62009-11-15 23:12:43 +000025946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025947$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025948if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025949 XT_LIBS='-lXt'
25950fi
25951
25952 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25953fi
25954if test "$no_x" != 'yes'; then
25955 have_x='yes'
25956else
25957 have_x='no'
25958fi
cristy73bd4a52010-10-05 11:24:23 +000025959 if test "$have_x" = 'yes'; then
25960 X11_DELEGATE_TRUE=
25961 X11_DELEGATE_FALSE='#'
25962else
25963 X11_DELEGATE_TRUE='#'
25964 X11_DELEGATE_FALSE=
25965fi
25966
cristy3ed852e2009-09-05 21:47:34 +000025967
25968
25969
25970
25971#
25972# Check for ZLIB
25973#
25974
25975# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025976if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025977 withval=$with_zlib; with_zlib=$withval
25978else
25979 with_zlib='yes'
25980fi
25981
25982
25983if test "$with_zlib" != 'yes'; then
25984 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25985fi
25986
25987have_zlib='no'
25988ZLIB_LIBS=''
25989if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025991$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025993$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025995$as_echo "" >&6; }
25996 ZLIB_LIBS=''
25997 failed=0
25998 passed=0
cristy8b350f62009-11-15 23:12:43 +000025999 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
26000if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026001 passed=`expr $passed + 1`
26002else
26003 failed=`expr $failed + 1`
26004fi
26005
26006
cristy8b350f62009-11-15 23:12:43 +000026007 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
26008if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026009 passed=`expr $passed + 1`
26010else
26011 failed=`expr $failed + 1`
26012fi
26013
26014
cristy8b350f62009-11-15 23:12:43 +000026015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026016$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026017if test "${ac_cv_lib_z_compress+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 compress ();
26032int
26033main ()
26034{
26035return compress ();
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_compress=yes
26042else
cristy8b350f62009-11-15 23:12:43 +000026043 ac_cv_lib_z_compress=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_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026050$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026051if test "x$ac_cv_lib_z_compress" = 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 for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026058$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026059if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026060 $as_echo_n "(cached) " >&6
26061else
26062 ac_check_lib_save_LIBS=$LIBS
26063LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026065/* end confdefs.h. */
26066
26067/* Override any GCC internal prototype to avoid an error.
26068 Use char because int might match the return type of a GCC
26069 builtin and then its argument prototype would still apply. */
26070#ifdef __cplusplus
26071extern "C"
26072#endif
26073char uncompress ();
26074int
26075main ()
26076{
26077return uncompress ();
26078 ;
26079 return 0;
26080}
26081_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026082if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026083 ac_cv_lib_z_uncompress=yes
26084else
cristy8b350f62009-11-15 23:12:43 +000026085 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000026086fi
cristy8b350f62009-11-15 23:12:43 +000026087rm -f core conftest.err conftest.$ac_objext \
26088 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026089LIBS=$ac_check_lib_save_LIBS
26090fi
cristy8b350f62009-11-15 23:12:43 +000026091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026092$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026093if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026094 passed=`expr $passed + 1`
26095else
26096 failed=`expr $failed + 1`
26097fi
26098
cristy8b350f62009-11-15 23:12:43 +000026099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026100$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026101if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026102 $as_echo_n "(cached) " >&6
26103else
26104 ac_check_lib_save_LIBS=$LIBS
26105LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026107/* end confdefs.h. */
26108
26109/* Override any GCC internal prototype to avoid an error.
26110 Use char because int might match the return type of a GCC
26111 builtin and then its argument prototype would still apply. */
26112#ifdef __cplusplus
26113extern "C"
26114#endif
26115char deflate ();
26116int
26117main ()
26118{
26119return deflate ();
26120 ;
26121 return 0;
26122}
26123_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026124if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026125 ac_cv_lib_z_deflate=yes
26126else
cristy8b350f62009-11-15 23:12:43 +000026127 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000026128fi
cristy8b350f62009-11-15 23:12:43 +000026129rm -f core conftest.err conftest.$ac_objext \
26130 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026131LIBS=$ac_check_lib_save_LIBS
26132fi
cristy8b350f62009-11-15 23:12:43 +000026133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026134$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026135if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026136 passed=`expr $passed + 1`
26137else
26138 failed=`expr $failed + 1`
26139fi
26140
cristy8b350f62009-11-15 23:12:43 +000026141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026142$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026143if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026144 $as_echo_n "(cached) " >&6
26145else
26146 ac_check_lib_save_LIBS=$LIBS
26147LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026149/* end confdefs.h. */
26150
26151/* Override any GCC internal prototype to avoid an error.
26152 Use char because int might match the return type of a GCC
26153 builtin and then its argument prototype would still apply. */
26154#ifdef __cplusplus
26155extern "C"
26156#endif
26157char inflate ();
26158int
26159main ()
26160{
26161return inflate ();
26162 ;
26163 return 0;
26164}
26165_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026166if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026167 ac_cv_lib_z_inflate=yes
26168else
cristy8b350f62009-11-15 23:12:43 +000026169 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000026170fi
cristy8b350f62009-11-15 23:12:43 +000026171rm -f core conftest.err conftest.$ac_objext \
26172 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026173LIBS=$ac_check_lib_save_LIBS
26174fi
cristy8b350f62009-11-15 23:12:43 +000026175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026176$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026177if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026178 passed=`expr $passed + 1`
26179else
26180 failed=`expr $failed + 1`
26181fi
26182
cristy8b350f62009-11-15 23:12:43 +000026183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026184$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026185if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026186 $as_echo_n "(cached) " >&6
26187else
26188 ac_check_lib_save_LIBS=$LIBS
26189LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026191/* end confdefs.h. */
26192
26193/* Override any GCC internal prototype to avoid an error.
26194 Use char because int might match the return type of a GCC
26195 builtin and then its argument prototype would still apply. */
26196#ifdef __cplusplus
26197extern "C"
26198#endif
26199char gzseek ();
26200int
26201main ()
26202{
26203return gzseek ();
26204 ;
26205 return 0;
26206}
26207_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026208if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026209 ac_cv_lib_z_gzseek=yes
26210else
cristy8b350f62009-11-15 23:12:43 +000026211 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000026212fi
cristy8b350f62009-11-15 23:12:43 +000026213rm -f core conftest.err conftest.$ac_objext \
26214 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026215LIBS=$ac_check_lib_save_LIBS
26216fi
cristy8b350f62009-11-15 23:12:43 +000026217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026218$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026219if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026220 passed=`expr $passed + 1`
26221else
26222 failed=`expr $failed + 1`
26223fi
26224
cristy8b350f62009-11-15 23:12:43 +000026225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026226$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026227if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026228 $as_echo_n "(cached) " >&6
26229else
26230 ac_check_lib_save_LIBS=$LIBS
26231LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026233/* end confdefs.h. */
26234
26235/* Override any GCC internal prototype to avoid an error.
26236 Use char because int might match the return type of a GCC
26237 builtin and then its argument prototype would still apply. */
26238#ifdef __cplusplus
26239extern "C"
26240#endif
26241char gztell ();
26242int
26243main ()
26244{
26245return gztell ();
26246 ;
26247 return 0;
26248}
26249_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026250if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026251 ac_cv_lib_z_gztell=yes
26252else
cristy8b350f62009-11-15 23:12:43 +000026253 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026254fi
cristy8b350f62009-11-15 23:12:43 +000026255rm -f core conftest.err conftest.$ac_objext \
26256 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026257LIBS=$ac_check_lib_save_LIBS
26258fi
cristy8b350f62009-11-15 23:12:43 +000026259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026260$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026261if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026262 passed=`expr $passed + 1`
26263else
26264 failed=`expr $failed + 1`
26265fi
26266
cristy8b350f62009-11-15 23:12:43 +000026267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026268$as_echo_n "checking if ZLIB package is complete... " >&6; }
26269 if test $passed -gt 0; then
26270 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026272$as_echo "no -- some components failed test" >&6; }
26273 have_zlib='no (failed tests)'
26274 else
26275 ZLIB_LIBS='-lz'
26276 LIBS="$ZLIB_LIBS $LIBS"
26277
cristy8b350f62009-11-15 23:12:43 +000026278$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026279
cristy8b350f62009-11-15 23:12:43 +000026280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026281$as_echo "yes" >&6; }
26282 have_zlib='yes'
26283 fi
26284 else
cristy8b350f62009-11-15 23:12:43 +000026285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026286$as_echo "no" >&6; }
26287 fi
26288fi
cristy73bd4a52010-10-05 11:24:23 +000026289 if test "$have_zlib" = 'yes'; then
26290 ZLIB_DELEGATE_TRUE=
26291 ZLIB_DELEGATE_FALSE='#'
26292else
26293 ZLIB_DELEGATE_TRUE='#'
26294 ZLIB_DELEGATE_FALSE=
26295fi
26296
cristy3ed852e2009-09-05 21:47:34 +000026297
26298
26299#
26300# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26301#
26302LIB_DL=''
26303if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026305$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026306if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026307 $as_echo_n "(cached) " >&6
26308else
26309 ac_check_lib_save_LIBS=$LIBS
26310LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026312/* end confdefs.h. */
26313
26314/* Override any GCC internal prototype to avoid an error.
26315 Use char because int might match the return type of a GCC
26316 builtin and then its argument prototype would still apply. */
26317#ifdef __cplusplus
26318extern "C"
26319#endif
26320char dlopen ();
26321int
26322main ()
26323{
26324return dlopen ();
26325 ;
26326 return 0;
26327}
26328_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026329if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026330 ac_cv_lib_dl_dlopen=yes
26331else
cristy8b350f62009-11-15 23:12:43 +000026332 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026333fi
cristy8b350f62009-11-15 23:12:43 +000026334rm -f core conftest.err conftest.$ac_objext \
26335 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026336LIBS=$ac_check_lib_save_LIBS
26337fi
cristy8b350f62009-11-15 23:12:43 +000026338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026339$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026340if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026341 LIB_DL='-ldl'
26342fi
26343
26344 LIBS="$LIB_DL $LIBS"
26345fi
26346
26347
26348
26349#
26350# Check for Autotrace delegate library.
26351#
26352
26353# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026354if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026355 withval=$with_autotrace; with_autotrace=$withval
26356else
26357 with_autotrace='no'
26358fi
26359
26360
26361if test "$with_autotrace" != 'yes'; then
26362 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26363fi
26364
26365have_autotrace='no'
26366AUTOTRACE_CFLAGS=""
26367AUTOTRACE_LIBS=""
26368AUTOTRACE_PKG=""
26369if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026371$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000026372
26373pkg_failed=no
26374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
26375$as_echo_n "checking for AUTOTRACE... " >&6; }
26376
26377if test -n "$AUTOTRACE_CFLAGS"; then
26378 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26379 elif test -n "$PKG_CONFIG"; then
26380 if test -n "$PKG_CONFIG" && \
26381 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26382 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26383 ac_status=$?
26384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26385 test $ac_status = 0; }; then
26386 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26387else
26388 pkg_failed=yes
26389fi
26390 else
26391 pkg_failed=untried
26392fi
26393if test -n "$AUTOTRACE_LIBS"; then
26394 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26395 elif test -n "$PKG_CONFIG"; then
26396 if test -n "$PKG_CONFIG" && \
26397 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26398 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26399 ac_status=$?
26400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26401 test $ac_status = 0; }; then
26402 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26403else
26404 pkg_failed=yes
26405fi
26406 else
26407 pkg_failed=untried
26408fi
26409
26410
26411
26412if test $pkg_failed = yes; then
26413
26414if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26415 _pkg_short_errors_supported=yes
26416else
26417 _pkg_short_errors_supported=no
26418fi
26419 if test $_pkg_short_errors_supported = yes; then
26420 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26421 else
26422 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26423 fi
26424 # Put the nasty error message in config.log where it belongs
26425 echo "$AUTOTRACE_PKG_ERRORS" >&5
26426
26427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26428$as_echo "no" >&6; }
26429 have_autotrace=no
26430elif test $pkg_failed = untried; then
26431 have_autotrace=no
26432else
26433 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26434 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
26435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26436$as_echo "yes" >&6; }
26437 have_autotrace=yes
26438fi
cristy8b350f62009-11-15 23:12:43 +000026439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026440$as_echo "" >&6; }
26441fi
26442
26443if test "$have_autotrace" = 'yes'; then
26444 failed=0
26445
cristy8b350f62009-11-15 23:12:43 +000026446$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026447
26448 if test "$with_modules" = 'no'; then
26449 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26450 fi
26451fi
26452
cristy73bd4a52010-10-05 11:24:23 +000026453 if test "$have_autotrace" = 'yes'; then
26454 AUTOTRACE_DELEGATE_TRUE=
26455 AUTOTRACE_DELEGATE_FALSE='#'
26456else
26457 AUTOTRACE_DELEGATE_TRUE='#'
26458 AUTOTRACE_DELEGATE_FALSE=
26459fi
26460
cristy3ed852e2009-09-05 21:47:34 +000026461
26462
26463
26464
26465#
26466# Check for Display Postscript delegate library.
26467#
26468
26469# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000026470if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026471 withval=$with_dps; with_dps=$withval
26472else
26473 with_dps='yes'
26474fi
26475
26476
26477if test "$with_dps" != 'yes'; then
26478 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26479fi
26480
26481have_dps='no'
26482DPS_LIBS=''
26483if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026485$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026487$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026489$as_echo "" >&6; }
26490 failed=0
26491 passed=0
26492 PERSIST_CPPFLAGS="$CPPFLAGS"
26493 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000026494 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26495if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026496 passed=`expr $passed + 1`
26497else
26498 failed=`expr $failed + 1`
26499fi
26500
26501
26502 # DPS issues:
26503 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26504 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26505 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26506 # ImageMagick itself doesn't use -lXt.
26507 have_libdps='no'
26508 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000026509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026510$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026511if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026512 $as_echo_n "(cached) " >&6
26513else
26514 ac_check_lib_save_LIBS=$LIBS
26515LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026517/* end confdefs.h. */
26518
26519/* Override any GCC internal prototype to avoid an error.
26520 Use char because int might match the return type of a GCC
26521 builtin and then its argument prototype would still apply. */
26522#ifdef __cplusplus
26523extern "C"
26524#endif
26525char DPSInitialize ();
26526int
26527main ()
26528{
26529return DPSInitialize ();
26530 ;
26531 return 0;
26532}
26533_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026534if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026535 ac_cv_lib_dps_DPSInitialize=yes
26536else
cristy8b350f62009-11-15 23:12:43 +000026537 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026538fi
cristy8b350f62009-11-15 23:12:43 +000026539rm -f core conftest.err conftest.$ac_objext \
26540 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026541LIBS=$ac_check_lib_save_LIBS
26542fi
cristy8b350f62009-11-15 23:12:43 +000026543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026544$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026545if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026546 have_libdps='yes'
26547else
26548 have_libdps='no'
26549fi
26550
26551 if test "$have_libdps" != 'yes'; then
26552 # Unset cache variable so we can try again.
26553 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000026554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026555$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026556if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026557 $as_echo_n "(cached) " >&6
26558else
26559 ac_check_lib_save_LIBS=$LIBS
26560LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026562/* end confdefs.h. */
26563
26564/* Override any GCC internal prototype to avoid an error.
26565 Use char because int might match the return type of a GCC
26566 builtin and then its argument prototype would still apply. */
26567#ifdef __cplusplus
26568extern "C"
26569#endif
26570char DPSInitialize ();
26571int
26572main ()
26573{
26574return DPSInitialize ();
26575 ;
26576 return 0;
26577}
26578_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026579if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026580 ac_cv_lib_dps_DPSInitialize=yes
26581else
cristy8b350f62009-11-15 23:12:43 +000026582 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026583fi
cristy8b350f62009-11-15 23:12:43 +000026584rm -f core conftest.err conftest.$ac_objext \
26585 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026586LIBS=$ac_check_lib_save_LIBS
26587fi
cristy8b350f62009-11-15 23:12:43 +000026588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026589$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026590if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026591 have_libdps='yes'
26592else
26593 have_libdps='no'
26594fi
26595
26596 if test "$have_libdps" = 'yes'; then
26597 LIBDPS_XT='-lXt'
26598 fi
26599 fi
26600 if test "$have_libdps" = 'yes'; then
26601 passed=`expr $passed + 1`
26602 else
26603 failed=`expr $failed + 1`
26604 fi
cristy8b350f62009-11-15 23:12:43 +000026605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026606$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026607if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026608 $as_echo_n "(cached) " >&6
26609else
26610 ac_check_lib_save_LIBS=$LIBS
26611LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026613/* end confdefs.h. */
26614
26615/* Override any GCC internal prototype to avoid an error.
26616 Use char because int might match the return type of a GCC
26617 builtin and then its argument prototype would still apply. */
26618#ifdef __cplusplus
26619extern "C"
26620#endif
26621char XDPSPixelsPerPoint ();
26622int
26623main ()
26624{
26625return XDPSPixelsPerPoint ();
26626 ;
26627 return 0;
26628}
26629_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026630if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026631 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26632else
cristy8b350f62009-11-15 23:12:43 +000026633 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000026634fi
cristy8b350f62009-11-15 23:12:43 +000026635rm -f core conftest.err conftest.$ac_objext \
26636 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026637LIBS=$ac_check_lib_save_LIBS
26638fi
cristy8b350f62009-11-15 23:12:43 +000026639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026640$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026641if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026642 passed=`expr $passed + 1`
26643else
26644 failed=`expr $failed + 1`
26645fi
26646
cristy8b350f62009-11-15 23:12:43 +000026647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026648$as_echo_n "checking if DPS package is complete... " >&6; }
26649 if test $passed -gt 0; then
26650 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026652$as_echo "no -- some components failed test" >&6; }
26653 have_dps='no (failed tests)'
26654 CPPFLAGS="$PERSIST_CPPFLAGS"
26655 else
26656 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26657 LIBS="$DPS_LIBS $LIBS"
26658
cristy8b350f62009-11-15 23:12:43 +000026659$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026660
cristy8b350f62009-11-15 23:12:43 +000026661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026662$as_echo "yes" >&6; }
26663 have_dps='yes'
26664 fi
26665 else
cristy8b350f62009-11-15 23:12:43 +000026666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026667$as_echo "no" >&6; }
26668 CPPFLAGS=$PERSIST_CPPFLAGS
26669 fi
26670fi
cristy73bd4a52010-10-05 11:24:23 +000026671 if test "$have_dps" = 'yes'; then
26672 DPS_DELEGATE_TRUE=
26673 DPS_DELEGATE_FALSE='#'
26674else
26675 DPS_DELEGATE_TRUE='#'
26676 DPS_DELEGATE_FALSE=
26677fi
26678
cristy3ed852e2009-09-05 21:47:34 +000026679
26680
26681
26682#
26683# Check for DJVU delegate library.
26684#
26685
26686# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026687if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026688 withval=$with_djvu; with_djvu=$withval
26689else
26690 with_djvu='yes'
26691fi
26692
26693
26694if test "$with_djvu" != 'yes'; then
26695 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26696fi
26697
26698have_djvu='no'
26699DJVU_LIBS=''
26700if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026702$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026704$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026706$as_echo "" >&6; }
26707 failed=0
26708 passed=0
cristy8b350f62009-11-15 23:12:43 +000026709 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26710if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026711 passed=`expr $passed + 1`
26712else
26713 failed=`expr $failed + 1`
26714fi
26715
26716
cristy8b350f62009-11-15 23:12:43 +000026717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026718$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026719if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026720 $as_echo_n "(cached) " >&6
26721else
26722 ac_check_lib_save_LIBS=$LIBS
26723LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026725/* end confdefs.h. */
26726
26727/* Override any GCC internal prototype to avoid an error.
26728 Use char because int might match the return type of a GCC
26729 builtin and then its argument prototype would still apply. */
26730#ifdef __cplusplus
26731extern "C"
26732#endif
26733char ddjvu_context_create ();
26734int
26735main ()
26736{
26737return ddjvu_context_create ();
26738 ;
26739 return 0;
26740}
26741_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026742if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026743 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26744else
cristy8b350f62009-11-15 23:12:43 +000026745 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026746fi
cristy8b350f62009-11-15 23:12:43 +000026747rm -f core conftest.err conftest.$ac_objext \
26748 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026749LIBS=$ac_check_lib_save_LIBS
26750fi
cristy8b350f62009-11-15 23:12:43 +000026751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026752$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026753if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026754 passed=`expr $passed + 1`
26755else
26756 failed=`expr $failed + 1`
26757fi
26758
cristy8b350f62009-11-15 23:12:43 +000026759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026760$as_echo_n "checking if DJVU package is complete... " >&6; }
26761 if test $passed -gt 0; then
26762 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026764$as_echo "no -- some components failed test" >&6; }
26765 have_djvu='no (failed tests)'
26766 else
26767 DJVU_LIBS='-ldjvulibre'
26768 LIBS="$DJVU_LIBS $LIBS"
26769
cristy8b350f62009-11-15 23:12:43 +000026770$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026771
cristy8b350f62009-11-15 23:12:43 +000026772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026773$as_echo "yes" >&6; }
26774 have_djvu='yes'
26775 fi
26776 else
cristy8b350f62009-11-15 23:12:43 +000026777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026778$as_echo "no" >&6; }
26779 fi
26780fi
cristy73bd4a52010-10-05 11:24:23 +000026781 if test "$have_djvu" = 'yes'; then
26782 DJVU_DELEGATE_TRUE=
26783 DJVU_DELEGATE_FALSE='#'
26784else
26785 DJVU_DELEGATE_TRUE='#'
26786 DJVU_DELEGATE_FALSE=
26787fi
26788
cristy3ed852e2009-09-05 21:47:34 +000026789
26790
26791
26792#
cristy430a7312010-01-21 20:44:04 +000026793# Set DejaVu font directory.
26794#
26795
26796# Check whether --with-dejavu-font-dir was given.
26797if test "${with_dejavu_font_dir+set}" = set; then :
26798 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26799else
26800 with_dejavu_font_dir='default'
26801fi
26802
26803
26804if test "$with_dejavu_font_dir" != 'default'; then
26805 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26806fi
26807
26808
26809#
cristy3ed852e2009-09-05 21:47:34 +000026810# Check for FFTW delegate library.
26811#
26812
26813# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026814if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026815 withval=$with_fftw; with_fftw=$withval
26816else
26817 with_fftw='yes'
26818fi
26819
26820
26821if test "$with_fftw" != 'yes'; then
26822 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26823fi
26824
26825have_fftw='no'
26826FFTW_LIBS=''
26827if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026829$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026831$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026833$as_echo "" >&6; }
26834 failed=0
26835 passed=0
cristy8b350f62009-11-15 23:12:43 +000026836 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26837if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026838 passed=`expr $passed + 1`
26839else
26840 failed=`expr $failed + 1`
26841fi
26842
26843
cristy8b350f62009-11-15 23:12:43 +000026844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026845$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026846if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026847 $as_echo_n "(cached) " >&6
26848else
26849 ac_check_lib_save_LIBS=$LIBS
26850LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026852/* end confdefs.h. */
26853
26854/* Override any GCC internal prototype to avoid an error.
26855 Use char because int might match the return type of a GCC
26856 builtin and then its argument prototype would still apply. */
26857#ifdef __cplusplus
26858extern "C"
26859#endif
26860char fftw_execute ();
26861int
26862main ()
26863{
26864return fftw_execute ();
26865 ;
26866 return 0;
26867}
26868_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026869if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026870 ac_cv_lib_fftw3_fftw_execute=yes
26871else
cristy8b350f62009-11-15 23:12:43 +000026872 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026873fi
cristy8b350f62009-11-15 23:12:43 +000026874rm -f core conftest.err conftest.$ac_objext \
26875 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026876LIBS=$ac_check_lib_save_LIBS
26877fi
cristy8b350f62009-11-15 23:12:43 +000026878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026879$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026880if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026881 passed=`expr $passed + 1`
26882else
26883 failed=`expr $failed + 1`
26884fi
26885
cristy8b350f62009-11-15 23:12:43 +000026886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026887$as_echo_n "checking if FFTW package is complete... " >&6; }
26888 if test $passed -gt 0; then
26889 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026891$as_echo "no -- some components failed test" >&6; }
26892 have_fftw='no (failed tests)'
26893 else
26894 FFTW_LIBS='-lfftw3'
26895 LIBS="$FFTW_LIBS $LIBS"
26896
cristy8b350f62009-11-15 23:12:43 +000026897$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026898
cristy8b350f62009-11-15 23:12:43 +000026899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026900$as_echo "yes" >&6; }
26901 have_fftw='yes'
26902 fi
26903 else
cristy8b350f62009-11-15 23:12:43 +000026904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026905$as_echo "no" >&6; }
26906 fi
26907fi
cristy73bd4a52010-10-05 11:24:23 +000026908 if test "$have_fftw" = 'yes'; then
26909 FFTW_DELEGATE_TRUE=
26910 FFTW_DELEGATE_FALSE='#'
26911else
26912 FFTW_DELEGATE_TRUE='#'
26913 FFTW_DELEGATE_FALSE=
26914fi
26915
cristy3ed852e2009-09-05 21:47:34 +000026916
26917
26918
26919#
26920# Check for FlashPIX delegate library.
26921#
26922
26923# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026924if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026925 withval=$with_fpx; with_fpx=$withval
26926else
26927 with_fpx='yes'
26928fi
26929
26930
26931if test "$with_fpx" != 'yes'; then
26932 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26933fi
26934
26935have_fpx='no'
26936FPX_LIBS=''
26937if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026939$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026941$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026943$as_echo "" >&6; }
26944 failed=0
26945 passed=0
26946 ac_ext=cpp
26947ac_cpp='$CXXCPP $CPPFLAGS'
26948ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26949ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26950ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26951
26952
cristy8b350f62009-11-15 23:12:43 +000026953ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26954if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026955 passed=`expr $passed + 1`
26956else
26957 failed=`expr $failed + 1`
26958fi
26959
26960
cristy8b350f62009-11-15 23:12:43 +000026961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026962$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026963if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026964 $as_echo_n "(cached) " >&6
26965else
26966 ac_check_lib_save_LIBS=$LIBS
26967LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026969/* end confdefs.h. */
26970
26971/* Override any GCC internal prototype to avoid an error.
26972 Use char because int might match the return type of a GCC
26973 builtin and then its argument prototype would still apply. */
26974#ifdef __cplusplus
26975extern "C"
26976#endif
26977char FPX_OpenImageByFilename ();
26978int
26979main ()
26980{
26981return FPX_OpenImageByFilename ();
26982 ;
26983 return 0;
26984}
26985_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026986if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026987 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26988else
cristy8b350f62009-11-15 23:12:43 +000026989 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026990fi
cristy8b350f62009-11-15 23:12:43 +000026991rm -f core conftest.err conftest.$ac_objext \
26992 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026993LIBS=$ac_check_lib_save_LIBS
26994fi
cristy8b350f62009-11-15 23:12:43 +000026995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026996$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026997if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026998 passed=`expr $passed + 1`
26999else
27000 failed=`expr $failed + 1`
27001fi
27002
27003 ac_ext=c
27004ac_cpp='$CPP $CPPFLAGS'
27005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27007ac_compiler_gnu=$ac_cv_c_compiler_gnu
27008
cristy8b350f62009-11-15 23:12:43 +000027009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027010$as_echo_n "checking if FlashPIX package is complete... " >&6; }
27011 if test $passed -gt 0; then
27012 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027014$as_echo "no -- some components failed test" >&6; }
27015 have_fpx='no (failed tests)'
27016 else
27017 FPX_LIBS='-lfpx'
27018
cristy8b350f62009-11-15 23:12:43 +000027019$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027020
cristy8b350f62009-11-15 23:12:43 +000027021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027022$as_echo "yes" >&6; }
27023 have_fpx='yes'
27024 PERLMAINCC="$CXX"
27025 fi
27026 else
cristy8b350f62009-11-15 23:12:43 +000027027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027028$as_echo "no" >&6; }
27029 fi
27030fi
cristy73bd4a52010-10-05 11:24:23 +000027031 if test "$have_fpx" = 'yes'; then
27032 FPX_DELEGATE_TRUE=
27033 FPX_DELEGATE_FALSE='#'
27034else
27035 FPX_DELEGATE_TRUE='#'
27036 FPX_DELEGATE_FALSE=
27037fi
27038
cristy3ed852e2009-09-05 21:47:34 +000027039
27040
27041
27042#
27043# Check for fontconfig delegate library.
27044#
27045
27046# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000027047if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027048 withval=$with_fontconfig; with_fontconfig=$withval
27049else
27050 with_fontconfig=$have_x
27051fi
27052
27053
27054if test "$with_fontconfig" != 'yes'; then
27055 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
27056fi
27057
27058have_fontconfig='no'
27059FONTCONFIG_CFLAGS=""
27060FONTCONFIG_LIBS=""
27061FONTCONFIG_PKG=""
27062if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027064$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027065
27066pkg_failed=no
27067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
27068$as_echo_n "checking for FONTCONFIG... " >&6; }
27069
27070if test -n "$FONTCONFIG_CFLAGS"; then
27071 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
27072 elif test -n "$PKG_CONFIG"; then
27073 if test -n "$PKG_CONFIG" && \
27074 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27075 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27076 ac_status=$?
27077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27078 test $ac_status = 0; }; then
27079 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
27080else
27081 pkg_failed=yes
27082fi
27083 else
27084 pkg_failed=untried
27085fi
27086if test -n "$FONTCONFIG_LIBS"; then
27087 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
27088 elif test -n "$PKG_CONFIG"; then
27089 if test -n "$PKG_CONFIG" && \
27090 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27091 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27092 ac_status=$?
27093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27094 test $ac_status = 0; }; then
27095 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
27096else
27097 pkg_failed=yes
27098fi
27099 else
27100 pkg_failed=untried
27101fi
27102
27103
27104
27105if test $pkg_failed = yes; then
27106
27107if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27108 _pkg_short_errors_supported=yes
27109else
27110 _pkg_short_errors_supported=no
27111fi
27112 if test $_pkg_short_errors_supported = yes; then
27113 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
27114 else
27115 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
27116 fi
27117 # Put the nasty error message in config.log where it belongs
27118 echo "$FONTCONFIG_PKG_ERRORS" >&5
27119
27120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27121$as_echo "no" >&6; }
27122 have_fontconfig=no
27123elif test $pkg_failed = untried; then
27124 have_fontconfig=no
27125else
27126 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
27127 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
27128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27129$as_echo "yes" >&6; }
27130 have_fontconfig=yes
27131fi
cristy8b350f62009-11-15 23:12:43 +000027132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027133$as_echo "" >&6; }
27134fi
27135
27136if test "$have_fontconfig" = 'yes'; then
27137
cristy8b350f62009-11-15 23:12:43 +000027138$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027139
cristyd09bcf92010-03-25 03:04:45 +000027140 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000027141 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000027142 fi
cristy3ed852e2009-09-05 21:47:34 +000027143fi
27144
cristy73bd4a52010-10-05 11:24:23 +000027145 if test "$have_fontconfig" = 'yes'; then
27146 FONTCONFIG_DELEGATE_TRUE=
27147 FONTCONFIG_DELEGATE_FALSE='#'
27148else
27149 FONTCONFIG_DELEGATE_TRUE='#'
27150 FONTCONFIG_DELEGATE_FALSE=
27151fi
27152
cristy3ed852e2009-09-05 21:47:34 +000027153
27154
27155
27156
27157#
27158# Check for freetype delegate library.
27159#
27160
27161# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000027162if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027163 withval=$with_freetype; with_freetype=$withval
27164else
27165 with_freetype='yes'
27166fi
27167
27168
27169
27170if test "$with_freetype" != 'yes'; then
27171 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
27172fi
27173
27174have_freetype='no'
27175FREETYPE_LIBS=''
27176if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027178$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000027180$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027182$as_echo "" >&6; }
27183 failed=0
27184 passed=0
cristy66291112009-10-03 22:44:36 +000027185 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027186 PERSIST_CPPFLAGS="$CPPFLAGS"
27187 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
27188 :
27189 else
27190 freetype_config=''
27191 for ac_prog in freetype-config
27192do
27193 # Extract the first word of "$ac_prog", so it can be a program name with args.
27194set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027196$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027197if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027198 $as_echo_n "(cached) " >&6
27199else
27200 if test -n "$freetype_config"; then
27201 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27202else
27203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27204for as_dir in $PATH
27205do
27206 IFS=$as_save_IFS
27207 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027208 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27210 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027212 break 2
27213 fi
27214done
cristy8b350f62009-11-15 23:12:43 +000027215 done
cristy3ed852e2009-09-05 21:47:34 +000027216IFS=$as_save_IFS
27217
27218fi
27219fi
27220freetype_config=$ac_cv_prog_freetype_config
27221if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027223$as_echo "$freetype_config" >&6; }
27224else
cristy8b350f62009-11-15 23:12:43 +000027225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027226$as_echo "no" >&6; }
27227fi
27228
27229
27230 test -n "$freetype_config" && break
27231done
27232 if test -n "$freetype_config"; then
27233 freetype_cflags=`$freetype_config --cflags`
27234 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027235 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027236 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27237 fi
27238 fi
27239
27240 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027242$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027243if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027244 $as_echo_n "(cached) " >&6
27245else
27246 ac_check_lib_save_LIBS=$LIBS
27247LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027249/* end confdefs.h. */
27250
27251/* Override any GCC internal prototype to avoid an error.
27252 Use char because int might match the return type of a GCC
27253 builtin and then its argument prototype would still apply. */
27254#ifdef __cplusplus
27255extern "C"
27256#endif
27257char FT_Init_FreeType ();
27258int
27259main ()
27260{
27261return FT_Init_FreeType ();
27262 ;
27263 return 0;
27264}
27265_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027266if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027267 ac_cv_lib_freetype_FT_Init_FreeType=yes
27268else
cristy8b350f62009-11-15 23:12:43 +000027269 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027270fi
cristy8b350f62009-11-15 23:12:43 +000027271rm -f core conftest.err conftest.$ac_objext \
27272 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027273LIBS=$ac_check_lib_save_LIBS
27274fi
cristy8b350f62009-11-15 23:12:43 +000027275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027276$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027277if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027278 FREETYPE_LIBS='-lfreetype'
27279fi
27280
27281 if test "$FREETYPE_LIBS" != ''; then
27282 passed=`expr $passed + 1`
27283 else
27284 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027285 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027286 fi
27287 fi
27288
cristy8b350f62009-11-15 23:12:43 +000027289 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27290if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027291 FT2BUILD_H='#include <ft2build.h>'
27292else
27293 ft2build=''
27294fi
27295
27296
cristy8b350f62009-11-15 23:12:43 +000027297 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27298"
27299if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027300 have_freetype_h='yes'
27301else
27302 have_freetype_h='no'
27303fi
27304
27305
27306 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27307 passed=`expr $passed + 1`
27308 else
27309 failed=`expr $failed + 1`
27310 CPPFLAGS="$PERSIST_CPPFLAGS"
27311 fi
27312
cristy8b350f62009-11-15 23:12:43 +000027313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027314$as_echo_n "checking if FreeType package is complete... " >&6; }
27315 if test $passed -gt 0; then
27316 if test $failed -gt 0; then
27317 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027319$as_echo "no -- some components failed test" >&6; }
27320 have_freetype='no (failed tests)'
27321 else
27322 LIBS="$FREETYPE_LIBS $LIBS"
27323
cristy8b350f62009-11-15 23:12:43 +000027324$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027325
27326 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27327
cristy8b350f62009-11-15 23:12:43 +000027328$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027329
27330 fi
cristy8b350f62009-11-15 23:12:43 +000027331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027332$as_echo "yes" >&6; }
27333 have_freetype='yes'
27334 fi
27335 else
cristy8b350f62009-11-15 23:12:43 +000027336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027337$as_echo "no" >&6; }
27338 fi
27339fi
cristy73bd4a52010-10-05 11:24:23 +000027340 if test "$have_freetype" = 'yes'; then
27341 FREETYPE_DELEGATE_TRUE=
27342 FREETYPE_DELEGATE_FALSE='#'
27343else
27344 FREETYPE_DELEGATE_TRUE='#'
27345 FREETYPE_DELEGATE_FALSE=
27346fi
27347
cristy3ed852e2009-09-05 21:47:34 +000027348
27349
27350
27351
27352#
27353# Check for Ghostscript library or framework.
27354#
27355# Test for iapi.h & test for gsapi_new_instance in -lgs
27356# or -framework Ghostscript
27357
27358
27359# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027360if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027361 withval=$with_gslib; with_gslib=$withval
27362else
27363 with_gslib='no'
27364fi
27365
27366
cristyb7931f12009-09-25 10:22:21 +000027367gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027368if test "$with_gslib" != 'yes'; then
27369 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27370fi
27371
27372have_gslib='no'
27373GS_LIBS=''
27374if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027376$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027378$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027380$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027381 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027382 failed=0
27383 passed=0
cristy8b350f62009-11-15 23:12:43 +000027384 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27385if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027386 passed=`expr $passed + 1`
27387else
27388 failed=`expr $failed + 1`
27389fi
27390
27391
cristy8b350f62009-11-15 23:12:43 +000027392 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27393if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027394 passed=`expr $passed + 1`
27395else
27396 failed=`expr $failed + 1`
27397fi
27398
27399
cristy73bd4a52010-10-05 11:24:23 +000027400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
27401$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
27402if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
27403 $as_echo_n "(cached) " >&6
27404else
27405 ac_check_framework_save_LIBS=$LIBS
27406LIBS="-framework Ghostscript $LIBS"
27407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27408/* end confdefs.h. */
27409
27410/* Override any GCC internal prototype to avoid an error.
27411 Use char because int might match the return type of a GCC
27412 builtin and then its argument prototype would still apply. */
27413#ifdef __cplusplus
27414extern "C"
27415#endif
27416char gsapi_new_instance ();
27417int
27418main ()
27419{
27420return gsapi_new_instance ();
27421 ;
27422 return 0;
27423}
27424_ACEOF
27425if ac_fn_c_try_link "$LINENO"; then :
27426 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27427else
27428 ac_cv_framework_Ghostscript_gsapi_new_instance=no
27429fi
27430rm -f core conftest.err conftest.$ac_objext \
27431 conftest$ac_exeext conftest.$ac_ext
27432LIBS=$ac_check_framework_save_LIBS
27433fi
27434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
27435$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
27436if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
27437 framework=`expr $framework + 1`
27438else
27439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027440$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027441if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027442 $as_echo_n "(cached) " >&6
27443else
27444 ac_check_lib_save_LIBS=$LIBS
27445LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027447/* end confdefs.h. */
27448
27449/* Override any GCC internal prototype to avoid an error.
27450 Use char because int might match the return type of a GCC
27451 builtin and then its argument prototype would still apply. */
27452#ifdef __cplusplus
27453extern "C"
27454#endif
27455char gsapi_new_instance ();
27456int
27457main ()
27458{
27459return gsapi_new_instance ();
27460 ;
27461 return 0;
27462}
27463_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027464if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027465 ac_cv_lib_gs_gsapi_new_instance=yes
27466else
cristy8b350f62009-11-15 23:12:43 +000027467 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027468fi
cristy8b350f62009-11-15 23:12:43 +000027469rm -f core conftest.err conftest.$ac_objext \
27470 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027471LIBS=$ac_check_lib_save_LIBS
27472fi
cristy8b350f62009-11-15 23:12:43 +000027473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027474$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027475if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027476 passed=`expr $passed + 1`
27477else
27478 failed=`expr $failed + 1`
27479fi
cristy73bd4a52010-10-05 11:24:23 +000027480
27481fi
cristy8b350f62009-11-15 23:12:43 +000027482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027483$as_echo_n "checking if Ghostscript package is complete... " >&6; }
27484 if test $passed -gt 0; then
27485 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027487$as_echo "no -- some components failed test" >&6; }
27488 have_gslib='no (failed tests)'
27489 else
27490 if test $framework -gt 0; then
27491 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000027492 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000027493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000027494$as_echo "yes, using framework." >&6; }
27495 else
cristy8b350f62009-11-15 23:12:43 +000027496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000027497$as_echo "yes, using library." >&6; }
27498 GS_LIBS='-lgs'
27499 fi
27500 LIBS="$GS_LIBS $LIBS"
27501
cristy8b350f62009-11-15 23:12:43 +000027502$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027503
27504 have_gslib='yes'
27505 fi
27506 else
cristy8b350f62009-11-15 23:12:43 +000027507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027508$as_echo "no" >&6; }
27509 fi
27510fi
cristy73bd4a52010-10-05 11:24:23 +000027511 if test "$have_gslib" = 'yes'; then
27512 GS_DELEGATE_TRUE=
27513 GS_DELEGATE_FALSE='#'
27514else
27515 GS_DELEGATE_TRUE='#'
27516 GS_DELEGATE_FALSE=
27517fi
27518
cristy3ed852e2009-09-05 21:47:34 +000027519
27520
27521# Set default font search path
27522
27523# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000027524if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027525 withval=$with_fontpath; with_fontpath=$withval
27526else
27527 with_fontpath=''
27528fi
27529
27530
27531if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27532 with_fontpath=''
27533else
27534
27535cat >>confdefs.h <<_ACEOF
27536#define MAGICK_FONT_PATH "$with_fontpath"
27537_ACEOF
27538
27539fi
27540if test "$with_fontpath=" != ''; then
27541 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27542fi
27543
27544# Set Ghostscript font directory
27545
27546# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027547if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027548 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27549else
27550 with_gs_font_dir='default'
27551fi
27552
27553
27554if test "$with_gs_font_dir" != 'default'; then
27555 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27556fi
27557
27558
27559#
27560# Check for GVC delegate library.
27561#
27562
27563# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000027564if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027565 withval=$with_gvc; with_gvc=$withval
27566else
27567 with_gvc='yes'
27568fi
27569
27570
27571if test "$with_gvc" != 'yes'; then
27572 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27573fi
27574
27575GVC_PKG=""
27576if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027578$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027579
27580pkg_failed=no
27581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
27582$as_echo_n "checking for GVC... " >&6; }
27583
27584if test -n "$GVC_CFLAGS"; then
27585 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27586 elif test -n "$PKG_CONFIG"; then
27587 if test -n "$PKG_CONFIG" && \
27588 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27589 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27590 ac_status=$?
27591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27592 test $ac_status = 0; }; then
27593 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27594else
27595 pkg_failed=yes
27596fi
27597 else
27598 pkg_failed=untried
27599fi
27600if test -n "$GVC_LIBS"; then
27601 pkg_cv_GVC_LIBS="$GVC_LIBS"
27602 elif test -n "$PKG_CONFIG"; then
27603 if test -n "$PKG_CONFIG" && \
27604 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27605 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27606 ac_status=$?
27607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27608 test $ac_status = 0; }; then
27609 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27610else
27611 pkg_failed=yes
27612fi
27613 else
27614 pkg_failed=untried
27615fi
27616
27617
27618
27619if test $pkg_failed = yes; then
27620
27621if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27622 _pkg_short_errors_supported=yes
27623else
27624 _pkg_short_errors_supported=no
27625fi
27626 if test $_pkg_short_errors_supported = yes; then
27627 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27628 else
27629 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27630 fi
27631 # Put the nasty error message in config.log where it belongs
27632 echo "$GVC_PKG_ERRORS" >&5
27633
27634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27635$as_echo "no" >&6; }
27636 have_gvc=no
27637elif test $pkg_failed = untried; then
27638 have_gvc=no
27639else
27640 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27641 GVC_LIBS=$pkg_cv_GVC_LIBS
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27643$as_echo "yes" >&6; }
27644 have_gvc=yes
27645fi
cristy8b350f62009-11-15 23:12:43 +000027646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027647$as_echo "" >&6; }
27648fi
27649
27650if test "$have_gvc" = 'yes'; then
27651
cristy8b350f62009-11-15 23:12:43 +000027652$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027653
27654 if test "$with_modules" = 'no'; then
27655 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27656 fi
27657fi
27658
cristy73bd4a52010-10-05 11:24:23 +000027659 if test "$have_gvc" = 'yes'; then
27660 GVC_DELEGATE_TRUE=
27661 GVC_DELEGATE_FALSE='#'
27662else
27663 GVC_DELEGATE_TRUE='#'
27664 GVC_DELEGATE_FALSE=
27665fi
27666
cristy3ed852e2009-09-05 21:47:34 +000027667
27668
27669
27670
27671#
27672# Check for JBIG delegate library.
27673#
27674
27675
27676# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027677if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027678 withval=$with_jbig; with_jbig=$withval
27679else
27680 with_jbig='yes'
27681fi
27682
27683
27684have_jbig='no'
27685JBIG_LIBS=''
27686if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027688$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027690$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027692$as_echo "" >&6; }
27693 failed=0
27694 passed=0
cristy8b350f62009-11-15 23:12:43 +000027695 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27696if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027697 passed=`expr $passed + 1`
27698else
27699 failed=`expr $failed + 1`
27700fi
27701
27702
cristy8b350f62009-11-15 23:12:43 +000027703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027704$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027705if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027706 $as_echo_n "(cached) " >&6
27707else
27708 ac_check_lib_save_LIBS=$LIBS
27709LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027711/* end confdefs.h. */
27712
27713/* Override any GCC internal prototype to avoid an error.
27714 Use char because int might match the return type of a GCC
27715 builtin and then its argument prototype would still apply. */
27716#ifdef __cplusplus
27717extern "C"
27718#endif
27719char jbg_dec_init ();
27720int
27721main ()
27722{
27723return jbg_dec_init ();
27724 ;
27725 return 0;
27726}
27727_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027728if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027729 ac_cv_lib_jbig_jbg_dec_init=yes
27730else
cristy8b350f62009-11-15 23:12:43 +000027731 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027732fi
cristy8b350f62009-11-15 23:12:43 +000027733rm -f core conftest.err conftest.$ac_objext \
27734 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027735LIBS=$ac_check_lib_save_LIBS
27736fi
cristy8b350f62009-11-15 23:12:43 +000027737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027738$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027739if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027740 passed=`expr $passed + 1`
27741else
27742 failed=`expr $failed + 1`
27743fi
27744
cristy8b350f62009-11-15 23:12:43 +000027745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027746$as_echo_n "checking if JBIG package is complete... " >&6; }
27747 if test $passed -gt 0; then
27748 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027750$as_echo "no -- some components failed test" >&6; }
27751 have_jbig='no (failed tests)'
27752 else
27753 JBIG_LIBS='-ljbig'
27754 LIBS="$JBIG_LIBS $LIBS"
27755
cristy8b350f62009-11-15 23:12:43 +000027756$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027757
cristy8b350f62009-11-15 23:12:43 +000027758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027759$as_echo "yes" >&6; }
27760 have_jbig='yes'
27761 fi
27762 else
cristy8b350f62009-11-15 23:12:43 +000027763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027764$as_echo "no" >&6; }
27765 fi
27766fi
cristy73bd4a52010-10-05 11:24:23 +000027767 if test "$have_jbig" = 'yes'; then
27768 JBIG_DELEGATE_TRUE=
27769 JBIG_DELEGATE_FALSE='#'
27770else
27771 JBIG_DELEGATE_TRUE='#'
27772 JBIG_DELEGATE_FALSE=
27773fi
27774
cristy3ed852e2009-09-05 21:47:34 +000027775
27776
27777
27778#
27779# Check for JPEG delegate library.
27780#
27781
27782# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027783if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027784 withval=$with_jpeg; with_jpeg=$withval
27785else
27786 with_jpeg='yes'
27787fi
27788
27789
27790if test "$with_jpeg" != 'yes'; then
27791 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27792fi
27793
27794have_jpeg='no'
27795JPEG_LIBS=''
27796if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027798$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027800$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027802$as_echo "" >&6; }
27803 failed=0
27804 passed=0
cristy8b350f62009-11-15 23:12:43 +000027805 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27806if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027807 passed=`expr $passed + 1`
27808else
27809 failed=`expr $failed + 1`
27810fi
27811
27812
cristy8b350f62009-11-15 23:12:43 +000027813 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27814if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027815 passed=`expr $passed + 1`
27816else
27817 failed=`expr $failed + 1`
27818fi
27819
27820
cristy8b350f62009-11-15 23:12:43 +000027821 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27822if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027823 passed=`expr $passed + 1`
27824else
27825 failed=`expr $failed + 1`
27826fi
27827
27828
cristy8b350f62009-11-15 23:12:43 +000027829 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27830if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027831 passed=`expr $passed + 1`
27832else
27833 failed=`expr $failed + 1`
27834fi
27835
27836
cristy8b350f62009-11-15 23:12:43 +000027837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027838$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027839if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027840 $as_echo_n "(cached) " >&6
27841else
27842 ac_check_lib_save_LIBS=$LIBS
27843LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027845/* end confdefs.h. */
27846
27847/* Override any GCC internal prototype to avoid an error.
27848 Use char because int might match the return type of a GCC
27849 builtin and then its argument prototype would still apply. */
27850#ifdef __cplusplus
27851extern "C"
27852#endif
27853char jpeg_read_header ();
27854int
27855main ()
27856{
27857return jpeg_read_header ();
27858 ;
27859 return 0;
27860}
27861_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027862if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027863 ac_cv_lib_jpeg_jpeg_read_header=yes
27864else
cristy8b350f62009-11-15 23:12:43 +000027865 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027866fi
cristy8b350f62009-11-15 23:12:43 +000027867rm -f core conftest.err conftest.$ac_objext \
27868 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027869LIBS=$ac_check_lib_save_LIBS
27870fi
cristy8b350f62009-11-15 23:12:43 +000027871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027872$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027873if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027874 passed=`expr $passed + 1`
27875else
27876 failed=`expr $failed + 1`
27877fi
27878
27879
27880# Test for compatible JPEG library
27881if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027883$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027884if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027885 $as_echo_n "(cached) " >&6
27886else
cristy8b350f62009-11-15 23:12:43 +000027887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027888/* end confdefs.h. */
27889#include <stdio.h>
27890#include <stdlib.h>
27891#include <jpeglib.h>
27892
27893int
27894main ()
27895{
27896
27897#if JPEG_LIB_VERSION < 62
27898#error IJG JPEG library must be version 6b or newer!
27899#endif
27900return 0;
27901
27902 ;
27903 return 0;
27904}
27905_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027906if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027907 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27908else
cristy8b350f62009-11-15 23:12:43 +000027909 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027910fi
cristy3ed852e2009-09-05 21:47:34 +000027911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27912fi
cristy8b350f62009-11-15 23:12:43 +000027913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027914$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27915fi
cristy8b350f62009-11-15 23:12:43 +000027916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027917$as_echo_n "checking if JPEG package is complete... " >&6; }
27918 if test $passed -gt 0; then
27919 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027921$as_echo "no -- some components failed test" >&6; }
27922 have_jpeg='no (failed tests)'
27923 else
27924 JPEG_LIBS='-ljpeg'
27925 LIBS="$JPEG_LIBS $LIBS"
27926
cristy8b350f62009-11-15 23:12:43 +000027927$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027928
cristy8b350f62009-11-15 23:12:43 +000027929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027930$as_echo "yes" >&6; }
27931 have_jpeg='yes'
27932 fi
27933 else
cristy8b350f62009-11-15 23:12:43 +000027934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027935$as_echo "no" >&6; }
27936 fi
27937fi
cristy73bd4a52010-10-05 11:24:23 +000027938 if test "$have_jpeg" = 'yes'; then
27939 JPEG_DELEGATE_TRUE=
27940 JPEG_DELEGATE_FALSE='#'
27941else
27942 JPEG_DELEGATE_TRUE='#'
27943 JPEG_DELEGATE_FALSE=
27944fi
27945
cristy3ed852e2009-09-05 21:47:34 +000027946
27947
27948
27949#
27950# Check for JPEG Version 2 delegate library.
27951#
27952
27953# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027954if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027955 withval=$with_jp2; with_jp2=$withval
27956else
27957 with_jp2='yes'
27958fi
27959
27960
27961if test "$with_jp2" != 'yes'; then
27962 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27963fi
27964
27965have_jp2='no'
27966JP2_LIBS=''
27967if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027969$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027971$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027973$as_echo "" >&6; }
27974 failed=0
27975 passed=0
cristy8b350f62009-11-15 23:12:43 +000027976 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27977if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027978 passed=`expr $passed + 1`
27979else
27980 failed=`expr $failed + 1`
27981fi
27982
27983
cristy8b350f62009-11-15 23:12:43 +000027984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027985$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027986if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027987 $as_echo_n "(cached) " >&6
27988else
27989 ac_check_lib_save_LIBS=$LIBS
27990LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027992/* end confdefs.h. */
27993
27994/* Override any GCC internal prototype to avoid an error.
27995 Use char because int might match the return type of a GCC
27996 builtin and then its argument prototype would still apply. */
27997#ifdef __cplusplus
27998extern "C"
27999#endif
28000char jas_stream_fopen ();
28001int
28002main ()
28003{
28004return jas_stream_fopen ();
28005 ;
28006 return 0;
28007}
28008_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028009if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028010 ac_cv_lib_jasper_jas_stream_fopen=yes
28011else
cristy8b350f62009-11-15 23:12:43 +000028012 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000028013fi
cristy8b350f62009-11-15 23:12:43 +000028014rm -f core conftest.err conftest.$ac_objext \
28015 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028016LIBS=$ac_check_lib_save_LIBS
28017fi
cristy8b350f62009-11-15 23:12:43 +000028018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028019$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028020if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028021 passed=`expr $passed + 1`
28022else
28023 failed=`expr $failed + 1`
28024fi
28025
cristy8b350f62009-11-15 23:12:43 +000028026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028027$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
28028 if test $passed -gt 0; then
28029 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028031$as_echo "no -- some components failed test" >&6; }
28032 have_jp2='no (failed tests)'
28033 else
28034 JP2_LIBS='-ljasper'
28035 LIBS="$JP2_LIBS $LIBS"
28036
cristy8b350f62009-11-15 23:12:43 +000028037$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028038
cristy8b350f62009-11-15 23:12:43 +000028039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028040$as_echo "yes" >&6; }
28041 have_jp2='yes'
28042 fi
28043 else
cristy8b350f62009-11-15 23:12:43 +000028044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028045$as_echo "no" >&6; }
28046 fi
28047fi
cristy73bd4a52010-10-05 11:24:23 +000028048 if test "$have_jp2" = 'yes'; then
28049 JP2_DELEGATE_TRUE=
28050 JP2_DELEGATE_FALSE='#'
28051else
28052 JP2_DELEGATE_TRUE='#'
28053 JP2_DELEGATE_FALSE=
28054fi
28055
cristy3ed852e2009-09-05 21:47:34 +000028056
28057
28058
28059#
28060# Check for LCMS delegate library.
28061#
cristy71203402010-06-18 13:12:03 +000028062# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000028063
28064# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000028065if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028066 withval=$with_lcms; with_lcms=$withval
28067else
28068 with_lcms='yes'
28069fi
28070
cristy71203402010-06-18 13:12:03 +000028071if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000028072 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
28073fi
28074
cristy71203402010-06-18 13:12:03 +000028075# Disable LCMS2.
28076
28077# Check whether --with-lcms2 was given.
28078if test "${with_lcms2+set}" = set; then :
28079 withval=$with_lcms2; with_lcms2=$withval
28080else
28081 with_lcms2='yes'
28082fi
28083
28084if test "$with_lcms2" != 'yes' ; then
28085 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
28086fi
28087
28088have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000028089LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000028090if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028092$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
28094$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028096$as_echo "" >&6; }
28097 failed=0
28098 passed=0
28099 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028100
28101 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000028102 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
28103if test "x$ac_cv_header_lcms2_h" = x""yes; then :
28104 have_lcms_header='yes'
28105fi
28106
28107
28108 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000028109
28110$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
28111
cristy71203402010-06-18 13:12:03 +000028112 passed=`expr $passed + 1`
28113 fi
28114
28115 # Check for <lcms2/lcms2.h)
28116 if test "$have_lcms_header" != 'yes'; then
28117 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
28118if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000028119 have_lcms_header='yes'
28120fi
28121
28122
cristy71203402010-06-18 13:12:03 +000028123 if test "$have_lcms_header" = 'yes'; then
28124 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000028125
cristy71203402010-06-18 13:12:03 +000028126$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000028127
cristy71203402010-06-18 13:12:03 +000028128 fi
cristyd09bcf92010-03-25 03:04:45 +000028129 fi
cristy71203402010-06-18 13:12:03 +000028130
28131 # Failed to find lcms header?
28132 if test "$have_lcms_header" != 'yes'; then
28133 failed=`expr $failed + 1`
28134 fi
28135
28136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
28137$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
28138if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
cristyd09bcf92010-03-25 03:04:45 +000028139 $as_echo_n "(cached) " >&6
28140else
28141 ac_check_lib_save_LIBS=$LIBS
28142LIBS="-llcms2 $LIBS"
28143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28144/* end confdefs.h. */
28145
28146/* Override any GCC internal prototype to avoid an error.
28147 Use char because int might match the return type of a GCC
28148 builtin and then its argument prototype would still apply. */
28149#ifdef __cplusplus
28150extern "C"
28151#endif
cristy71203402010-06-18 13:12:03 +000028152char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028153int
28154main ()
28155{
cristy71203402010-06-18 13:12:03 +000028156return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028157 ;
28158 return 0;
28159}
28160_ACEOF
28161if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028162 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000028163else
cristy71203402010-06-18 13:12:03 +000028164 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000028165fi
28166rm -f core conftest.err conftest.$ac_objext \
28167 conftest$ac_exeext conftest.$ac_ext
28168LIBS=$ac_check_lib_save_LIBS
28169fi
cristy71203402010-06-18 13:12:03 +000028170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
28171$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
28172if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000028173 passed=`expr $passed + 1`
28174else
28175 failed=`expr $failed + 1`
28176fi
28177
cristy71203402010-06-18 13:12:03 +000028178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
28179$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028180 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028181 if test $failed -gt 0; then
28182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000028183$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028184 have_lcms2='no (failed tests)'
28185 else
28186 LCMS_LIBS='-llcms2'
28187 LIBS="$LCMS_LIBS $LIBS"
28188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000028189$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028190 have_lcms2='yes'
28191 fi
cristyd09bcf92010-03-25 03:04:45 +000028192 else
cristy71203402010-06-18 13:12:03 +000028193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000028194$as_echo "no" >&6; }
28195 fi
28196fi
28197
cristy71203402010-06-18 13:12:03 +000028198#
28199# Check for LCMS v1 (1.11 or later)
28200#
28201if test $have_lcms2 = 'yes'; then
28202 with_lcms='no'
28203fi
28204
28205have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000028206if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000028207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28208$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
28210$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28212$as_echo "" >&6; }
28213 failed=0
28214 passed=0
28215 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028216
28217 # Check for <lcms.h>
28218 if test "$have_lcms_header" != 'yes'; then
28219 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristy8b350f62009-11-15 23:12:43 +000028220if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028221 have_lcms_header='yes'
28222fi
28223
28224
cristy71203402010-06-18 13:12:03 +000028225 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028226 passed=`expr $passed + 1`
28227
cristy8b350f62009-11-15 23:12:43 +000028228$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028229
cristy71203402010-06-18 13:12:03 +000028230 fi
28231 fi
28232
28233 # Check for <lcms/lcms.h>
28234 if test "$have_lcms_header" != 'yes'; then
28235 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 +000028236if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028237 have_lcms_header='yes'
28238fi
28239
28240
cristy71203402010-06-18 13:12:03 +000028241 if test "$have_lcms_header" = 'yes'; then
28242 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028243
cristy8b350f62009-11-15 23:12:43 +000028244$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028245
cristy71203402010-06-18 13:12:03 +000028246 fi
cristy3ed852e2009-09-05 21:47:34 +000028247 fi
cristy71203402010-06-18 13:12:03 +000028248
28249 # Failed to find lcms header?
28250 if test "$have_lcms_header" != 'yes'; then
28251 failed=`expr $failed + 1`
28252 fi
28253
28254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28255$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28256if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028257 $as_echo_n "(cached) " >&6
28258else
28259 ac_check_lib_save_LIBS=$LIBS
28260LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028262/* end confdefs.h. */
28263
28264/* Override any GCC internal prototype to avoid an error.
28265 Use char because int might match the return type of a GCC
28266 builtin and then its argument prototype would still apply. */
28267#ifdef __cplusplus
28268extern "C"
28269#endif
cristy71203402010-06-18 13:12:03 +000028270char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028271int
28272main ()
28273{
cristy71203402010-06-18 13:12:03 +000028274return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028275 ;
28276 return 0;
28277}
28278_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028279if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028280 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028281else
cristy71203402010-06-18 13:12:03 +000028282 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028283fi
cristy8b350f62009-11-15 23:12:43 +000028284rm -f core conftest.err conftest.$ac_objext \
28285 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028286LIBS=$ac_check_lib_save_LIBS
28287fi
cristy71203402010-06-18 13:12:03 +000028288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28289$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28290if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028291 passed=`expr $passed + 1`
28292else
28293 failed=`expr $failed + 1`
28294fi
28295
cristy8b350f62009-11-15 23:12:43 +000028296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028297$as_echo_n "checking if LCMS package is complete... " >&6; }
28298 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028299 if test $failed -gt 0; then
28300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028301$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028302 have_lcms='no (failed tests)'
28303 else
28304 LCMS_LIBS='-llcms'
28305 LIBS="$LCMS_LIBS $LIBS"
28306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028307$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028308 have_lcms='yes'
28309 fi
cristy3ed852e2009-09-05 21:47:34 +000028310 else
cristy71203402010-06-18 13:12:03 +000028311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028312$as_echo "no" >&6; }
28313 fi
28314fi
cristy71203402010-06-18 13:12:03 +000028315
cristy73bd4a52010-10-05 11:24:23 +000028316 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28317 LCMS_DELEGATE_TRUE=
28318 LCMS_DELEGATE_FALSE='#'
28319else
28320 LCMS_DELEGATE_TRUE='#'
28321 LCMS_DELEGATE_FALSE=
28322fi
28323
cristy71203402010-06-18 13:12:03 +000028324if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28325
28326$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28327
28328fi
28329
cristy3ed852e2009-09-05 21:47:34 +000028330
28331
28332
28333#
28334# Check for the LQR (Liquid Rescale) delegate library.
28335#
28336
28337# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028338if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028339 withval=$with_lqr; with_lqr=$withval
28340else
28341 with_lqr='yes'
28342fi
28343
28344
28345if test "$with_lqr" != 'yes'; then
28346 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28347fi
28348
28349have_lqr='no'
28350LQR_CFLAGS=""
28351LQR_LIBS=""
28352LQR_PKG=""
28353if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028355$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028356
28357pkg_failed=no
28358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28359$as_echo_n "checking for LQR... " >&6; }
28360
28361if test -n "$LQR_CFLAGS"; then
28362 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28363 elif test -n "$PKG_CONFIG"; then
28364 if test -n "$PKG_CONFIG" && \
28365 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28366 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28367 ac_status=$?
28368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28369 test $ac_status = 0; }; then
28370 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28371else
28372 pkg_failed=yes
28373fi
28374 else
28375 pkg_failed=untried
28376fi
28377if test -n "$LQR_LIBS"; then
28378 pkg_cv_LQR_LIBS="$LQR_LIBS"
28379 elif test -n "$PKG_CONFIG"; then
28380 if test -n "$PKG_CONFIG" && \
28381 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28382 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28383 ac_status=$?
28384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28385 test $ac_status = 0; }; then
28386 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28387else
28388 pkg_failed=yes
28389fi
28390 else
28391 pkg_failed=untried
28392fi
28393
28394
28395
28396if test $pkg_failed = yes; then
28397
28398if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28399 _pkg_short_errors_supported=yes
28400else
28401 _pkg_short_errors_supported=no
28402fi
28403 if test $_pkg_short_errors_supported = yes; then
28404 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28405 else
28406 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28407 fi
28408 # Put the nasty error message in config.log where it belongs
28409 echo "$LQR_PKG_ERRORS" >&5
28410
28411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28412$as_echo "no" >&6; }
28413 have_lqr=no
28414elif test $pkg_failed = untried; then
28415 have_lqr=no
28416else
28417 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28418 LQR_LIBS=$pkg_cv_LQR_LIBS
28419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28420$as_echo "yes" >&6; }
28421 have_lqr=yes
28422fi
cristy8b350f62009-11-15 23:12:43 +000028423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028424$as_echo "" >&6; }
28425fi
28426
28427if test "$have_lqr" = 'yes'; then
28428
cristy8b350f62009-11-15 23:12:43 +000028429$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028430
28431 CFLAGS="$LQR_CFLAGS $CFLAGS"
28432fi
28433
cristy73bd4a52010-10-05 11:24:23 +000028434 if test "$have_lqr" = 'yes'; then
28435 LQR_DELEGATE_TRUE=
28436 LQR_DELEGATE_FALSE='#'
28437else
28438 LQR_DELEGATE_TRUE='#'
28439 LQR_DELEGATE_FALSE=
28440fi
28441
cristy3ed852e2009-09-05 21:47:34 +000028442
28443
28444
28445
28446#
28447# Check for the OpenEXR delegate library.
28448#
28449
28450# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000028451if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028452 withval=$with_openexr; with_openexr=$withval
28453else
28454 with_openexr='yes'
28455fi
28456
28457
28458if test "$with_openexr" != 'yes'; then
28459 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28460fi
28461
28462have_openexr='no'
28463OPENEXR_CFLAGS=""
28464OPENEXR_LIBS=""
28465OPENEXR_PKG=""
28466if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028468$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028469
28470pkg_failed=no
28471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
28472$as_echo_n "checking for OPENEXR... " >&6; }
28473
28474if test -n "$OPENEXR_CFLAGS"; then
28475 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28476 elif test -n "$PKG_CONFIG"; then
28477 if test -n "$PKG_CONFIG" && \
28478 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28479 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28480 ac_status=$?
28481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28482 test $ac_status = 0; }; then
28483 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28484else
28485 pkg_failed=yes
28486fi
28487 else
28488 pkg_failed=untried
28489fi
28490if test -n "$OPENEXR_LIBS"; then
28491 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28492 elif test -n "$PKG_CONFIG"; then
28493 if test -n "$PKG_CONFIG" && \
28494 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28495 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28496 ac_status=$?
28497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28498 test $ac_status = 0; }; then
28499 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28500else
28501 pkg_failed=yes
28502fi
28503 else
28504 pkg_failed=untried
28505fi
28506
28507
28508
28509if test $pkg_failed = yes; then
28510
28511if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28512 _pkg_short_errors_supported=yes
28513else
28514 _pkg_short_errors_supported=no
28515fi
28516 if test $_pkg_short_errors_supported = yes; then
28517 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28518 else
28519 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28520 fi
28521 # Put the nasty error message in config.log where it belongs
28522 echo "$OPENEXR_PKG_ERRORS" >&5
28523
28524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28525$as_echo "no" >&6; }
28526 have_openexr=no
28527elif test $pkg_failed = untried; then
28528 have_openexr=no
28529else
28530 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28531 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
28532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28533$as_echo "yes" >&6; }
28534 have_openexr=yes
28535fi
cristy8b350f62009-11-15 23:12:43 +000028536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028537$as_echo "" >&6; }
28538fi
28539
28540if test "$have_openexr" = 'yes'; then
28541
cristy8b350f62009-11-15 23:12:43 +000028542$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028543
28544 if test "$with_modules" = 'no'; then
28545 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28546 fi
28547fi
28548
cristy73bd4a52010-10-05 11:24:23 +000028549 if test "$have_openexr" = 'yes'; then
28550 OPENEXR_DELEGATE_TRUE=
28551 OPENEXR_DELEGATE_FALSE='#'
28552else
28553 OPENEXR_DELEGATE_TRUE='#'
28554 OPENEXR_DELEGATE_FALSE=
28555fi
28556
cristy3ed852e2009-09-05 21:47:34 +000028557
28558
28559
28560
28561#
28562# Check for PNG delegate library.
28563#
28564
28565# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000028566if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028567 withval=$with_png; with_png=$withval
28568else
28569 with_png='yes'
28570fi
28571
28572
28573if test "$with_png" != 'yes'; then
28574 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28575fi
28576
28577have_png='no'
28578PNG_LIBS=''
28579if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028581$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028583$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028585$as_echo "" >&6; }
28586 failed=0
28587 passed=0
cristy8b350f62009-11-15 23:12:43 +000028588 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28589if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028590 passed=`expr $passed + 1`
28591else
28592 failed=`expr $failed + 1`
28593fi
28594
28595
cristy8b350f62009-11-15 23:12:43 +000028596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000028597$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028598if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028599 $as_echo_n "(cached) " >&6
28600else
28601 ac_check_lib_save_LIBS=$LIBS
28602LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028604/* end confdefs.h. */
28605
28606/* Override any GCC internal prototype to avoid an error.
28607 Use char because int might match the return type of a GCC
28608 builtin and then its argument prototype would still apply. */
28609#ifdef __cplusplus
28610extern "C"
28611#endif
28612char png_get_io_ptr ();
28613int
28614main ()
28615{
28616return png_get_io_ptr ();
28617 ;
28618 return 0;
28619}
28620_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028621if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028622 ac_cv_lib_png_png_get_io_ptr=yes
28623else
cristy8b350f62009-11-15 23:12:43 +000028624 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000028625fi
cristy8b350f62009-11-15 23:12:43 +000028626rm -f core conftest.err conftest.$ac_objext \
28627 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028628LIBS=$ac_check_lib_save_LIBS
28629fi
cristy8b350f62009-11-15 23:12:43 +000028630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000028631$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028632if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028633 passed=`expr $passed + 1`
28634else
28635 failed=`expr $failed + 1`
28636fi
28637
cristy8b350f62009-11-15 23:12:43 +000028638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028639$as_echo_n "checking if PNG package is complete... " >&6; }
28640 if test $passed -gt 0; then
28641 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028643$as_echo "no -- some components failed test" >&6; }
28644 have_png='no (failed tests)'
28645 else
28646 PNG_LIBS='-lpng'
28647 LIBS="$PNG_LIBS $LIBS"
28648
cristy8b350f62009-11-15 23:12:43 +000028649$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028650
cristy8b350f62009-11-15 23:12:43 +000028651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028652$as_echo "yes" >&6; }
28653 have_png='yes'
28654 fi
28655 else
cristy8b350f62009-11-15 23:12:43 +000028656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028657$as_echo "no" >&6; }
28658 fi
28659fi
cristy73bd4a52010-10-05 11:24:23 +000028660 if test "$have_png" = 'yes'; then
28661 PNG_DELEGATE_TRUE=
28662 PNG_DELEGATE_FALSE='#'
28663else
28664 PNG_DELEGATE_TRUE='#'
28665 PNG_DELEGATE_FALSE=
28666fi
28667
cristy3ed852e2009-09-05 21:47:34 +000028668
28669
28670
28671#
28672# Check for RSVG delegate library.
28673#
28674
28675# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000028676if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028677 withval=$with_rsvg; with_rsvg=$withval
28678else
28679 with_rsvg=$have_x
28680fi
28681
28682
28683if test "$with_rsvg" != 'yes'; then
28684 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28685fi
28686
28687have_rsvg='no'
28688have_cairo='no'
28689RSVG_CFLAGS=""
28690RSVG_LIBS=""
28691RSVG_PKG=""
28692if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028694$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028695
28696pkg_failed=no
28697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
28698$as_echo_n "checking for RSVG... " >&6; }
28699
28700if test -n "$RSVG_CFLAGS"; then
28701 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28702 elif test -n "$PKG_CONFIG"; then
28703 if test -n "$PKG_CONFIG" && \
28704 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28705 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28706 ac_status=$?
28707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28708 test $ac_status = 0; }; then
28709 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28710else
28711 pkg_failed=yes
28712fi
28713 else
28714 pkg_failed=untried
28715fi
28716if test -n "$RSVG_LIBS"; then
28717 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28718 elif test -n "$PKG_CONFIG"; then
28719 if test -n "$PKG_CONFIG" && \
28720 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28721 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28722 ac_status=$?
28723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28724 test $ac_status = 0; }; then
28725 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28726else
28727 pkg_failed=yes
28728fi
28729 else
28730 pkg_failed=untried
28731fi
28732
28733
28734
28735if test $pkg_failed = yes; then
28736
28737if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28738 _pkg_short_errors_supported=yes
28739else
28740 _pkg_short_errors_supported=no
28741fi
28742 if test $_pkg_short_errors_supported = yes; then
28743 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28744 else
28745 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28746 fi
28747 # Put the nasty error message in config.log where it belongs
28748 echo "$RSVG_PKG_ERRORS" >&5
28749
28750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28751$as_echo "no" >&6; }
28752 have_rsvg=no
28753elif test $pkg_failed = untried; then
28754 have_rsvg=no
28755else
28756 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28757 RSVG_LIBS=$pkg_cv_RSVG_LIBS
28758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28759$as_echo "yes" >&6; }
28760 have_rsvg=yes
28761fi
cristy8b350f62009-11-15 23:12:43 +000028762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028763$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028764
28765pkg_failed=no
28766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
28767$as_echo_n "checking for CAIRO_SVG... " >&6; }
28768
28769if test -n "$CAIRO_SVG_CFLAGS"; then
28770 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28771 elif test -n "$PKG_CONFIG"; then
28772 if test -n "$PKG_CONFIG" && \
28773 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28774 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28775 ac_status=$?
28776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28777 test $ac_status = 0; }; then
28778 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28779else
28780 pkg_failed=yes
28781fi
28782 else
28783 pkg_failed=untried
28784fi
28785if test -n "$CAIRO_SVG_LIBS"; then
28786 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28787 elif test -n "$PKG_CONFIG"; then
28788 if test -n "$PKG_CONFIG" && \
28789 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28790 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28791 ac_status=$?
28792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28793 test $ac_status = 0; }; then
28794 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28795else
28796 pkg_failed=yes
28797fi
28798 else
28799 pkg_failed=untried
28800fi
28801
28802
28803
28804if test $pkg_failed = yes; then
28805
28806if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28807 _pkg_short_errors_supported=yes
28808else
28809 _pkg_short_errors_supported=no
28810fi
28811 if test $_pkg_short_errors_supported = yes; then
28812 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28813 else
28814 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28815 fi
28816 # Put the nasty error message in config.log where it belongs
28817 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28818
28819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28820$as_echo "no" >&6; }
28821 have_cairo=no
28822elif test $pkg_failed = untried; then
28823 have_cairo=no
28824else
28825 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28826 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
28827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28828$as_echo "yes" >&6; }
28829 have_cairo=yes
28830fi
cristy8b350f62009-11-15 23:12:43 +000028831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028832$as_echo "" >&6; }
28833fi
28834
28835if test "$have_rsvg" = 'yes'; then
28836
cristy8b350f62009-11-15 23:12:43 +000028837$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028838
28839 if test "$with_modules" = 'no'; then
28840 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28841 fi
28842fi
28843
28844if test "$have_cairo" = 'yes'; then
28845
cristy8b350f62009-11-15 23:12:43 +000028846$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028847
28848 if test "$with_modules" = 'no'; then
28849 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28850 fi
28851fi
28852
cristy73bd4a52010-10-05 11:24:23 +000028853 if test "$have_rsvg" = 'yes'; then
28854 RSVG_DELEGATE_TRUE=
28855 RSVG_DELEGATE_FALSE='#'
28856else
28857 RSVG_DELEGATE_TRUE='#'
28858 RSVG_DELEGATE_FALSE=
28859fi
28860
28861 if test "$have_cairo" = 'yes'; then
28862 CAIRO_DELEGATE_TRUE=
28863 CAIRO_DELEGATE_FALSE='#'
28864else
28865 CAIRO_DELEGATE_TRUE='#'
28866 CAIRO_DELEGATE_FALSE=
28867fi
28868
cristy3ed852e2009-09-05 21:47:34 +000028869
28870
28871
28872
28873#
28874# Check for TIFF delegate library.
28875#
28876
28877# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028878if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028879 withval=$with_tiff; with_tiff=$withval
28880else
28881 with_tiff='yes'
28882fi
28883
28884
28885if test "$with_tiff" != 'yes'; then
28886 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28887fi
28888
28889have_tiff='no'
28890TIFF_LIBS=''
28891if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028893$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028895$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028897$as_echo "" >&6; }
28898 failed=0
28899 passed=0
cristy8b350f62009-11-15 23:12:43 +000028900 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28901if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028902 passed=`expr $passed + 1`
28903else
28904 failed=`expr $failed + 1`
28905fi
28906
28907
cristy8b350f62009-11-15 23:12:43 +000028908 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28909if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028910 passed=`expr $passed + 1`
28911else
28912 failed=`expr $failed + 1`
28913fi
28914
28915
cristy8b350f62009-11-15 23:12:43 +000028916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028917$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028918if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028919 $as_echo_n "(cached) " >&6
28920else
28921 ac_check_lib_save_LIBS=$LIBS
28922LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028924/* end confdefs.h. */
28925
28926/* Override any GCC internal prototype to avoid an error.
28927 Use char because int might match the return type of a GCC
28928 builtin and then its argument prototype would still apply. */
28929#ifdef __cplusplus
28930extern "C"
28931#endif
28932char TIFFOpen ();
28933int
28934main ()
28935{
28936return TIFFOpen ();
28937 ;
28938 return 0;
28939}
28940_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028941if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028942 ac_cv_lib_tiff_TIFFOpen=yes
28943else
cristy8b350f62009-11-15 23:12:43 +000028944 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028945fi
cristy8b350f62009-11-15 23:12:43 +000028946rm -f core conftest.err conftest.$ac_objext \
28947 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028948LIBS=$ac_check_lib_save_LIBS
28949fi
cristy8b350f62009-11-15 23:12:43 +000028950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028951$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028952if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028953 passed=`expr $passed + 1`
28954else
28955 failed=`expr $failed + 1`
28956fi
28957
cristy8b350f62009-11-15 23:12:43 +000028958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028959$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028960if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028961 $as_echo_n "(cached) " >&6
28962else
28963 ac_check_lib_save_LIBS=$LIBS
28964LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028966/* end confdefs.h. */
28967
28968/* Override any GCC internal prototype to avoid an error.
28969 Use char because int might match the return type of a GCC
28970 builtin and then its argument prototype would still apply. */
28971#ifdef __cplusplus
28972extern "C"
28973#endif
28974char TIFFClientOpen ();
28975int
28976main ()
28977{
28978return TIFFClientOpen ();
28979 ;
28980 return 0;
28981}
28982_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028983if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028984 ac_cv_lib_tiff_TIFFClientOpen=yes
28985else
cristy8b350f62009-11-15 23:12:43 +000028986 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028987fi
cristy8b350f62009-11-15 23:12:43 +000028988rm -f core conftest.err conftest.$ac_objext \
28989 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028990LIBS=$ac_check_lib_save_LIBS
28991fi
cristy8b350f62009-11-15 23:12:43 +000028992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028993$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028994if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028995 passed=`expr $passed + 1`
28996else
28997 failed=`expr $failed + 1`
28998fi
28999
cristyb97f1002010-07-26 14:02:57 +000029000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
29001$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
29002if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then :
29003 $as_echo_n "(cached) " >&6
29004else
29005 ac_check_lib_save_LIBS=$LIBS
29006LIBS="-ltiff $LIBS"
29007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29008/* end confdefs.h. */
29009
29010/* Override any GCC internal prototype to avoid an error.
29011 Use char because int might match the return type of a GCC
29012 builtin and then its argument prototype would still apply. */
29013#ifdef __cplusplus
29014extern "C"
29015#endif
29016char TIFFIsBigEndian ();
29017int
29018main ()
29019{
29020return TIFFIsBigEndian ();
29021 ;
29022 return 0;
29023}
29024_ACEOF
29025if ac_fn_c_try_link "$LINENO"; then :
29026 ac_cv_lib_tiff_TIFFIsBigEndian=yes
29027else
29028 ac_cv_lib_tiff_TIFFIsBigEndian=no
29029fi
29030rm -f core conftest.err conftest.$ac_objext \
29031 conftest$ac_exeext conftest.$ac_ext
29032LIBS=$ac_check_lib_save_LIBS
29033fi
29034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
29035$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
29036if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then :
29037 passed=`expr $passed + 1`
29038else
29039 failed=`expr $failed + 1`
29040fi
29041
cristy8b350f62009-11-15 23:12:43 +000029042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029043$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029044if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029045 $as_echo_n "(cached) " >&6
29046else
29047 ac_check_lib_save_LIBS=$LIBS
29048LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029050/* end confdefs.h. */
29051
29052/* Override any GCC internal prototype to avoid an error.
29053 Use char because int might match the return type of a GCC
29054 builtin and then its argument prototype would still apply. */
29055#ifdef __cplusplus
29056extern "C"
29057#endif
29058char TIFFIsByteSwapped ();
29059int
29060main ()
29061{
29062return TIFFIsByteSwapped ();
29063 ;
29064 return 0;
29065}
29066_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029067if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029068 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
29069else
cristy8b350f62009-11-15 23:12:43 +000029070 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000029071fi
cristy8b350f62009-11-15 23:12:43 +000029072rm -f core conftest.err conftest.$ac_objext \
29073 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029074LIBS=$ac_check_lib_save_LIBS
29075fi
cristy8b350f62009-11-15 23:12:43 +000029076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000029077$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029078if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029079 passed=`expr $passed + 1`
29080else
29081 failed=`expr $failed + 1`
29082fi
29083
cristy8b350f62009-11-15 23:12:43 +000029084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029085$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029086if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029087 $as_echo_n "(cached) " >&6
29088else
29089 ac_check_lib_save_LIBS=$LIBS
29090LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029092/* end confdefs.h. */
29093
29094/* Override any GCC internal prototype to avoid an error.
29095 Use char because int might match the return type of a GCC
29096 builtin and then its argument prototype would still apply. */
29097#ifdef __cplusplus
29098extern "C"
29099#endif
29100char TIFFReadRGBATile ();
29101int
29102main ()
29103{
29104return TIFFReadRGBATile ();
29105 ;
29106 return 0;
29107}
29108_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029109if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029110 ac_cv_lib_tiff_TIFFReadRGBATile=yes
29111else
cristy8b350f62009-11-15 23:12:43 +000029112 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000029113fi
cristy8b350f62009-11-15 23:12:43 +000029114rm -f core conftest.err conftest.$ac_objext \
29115 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029116LIBS=$ac_check_lib_save_LIBS
29117fi
cristy8b350f62009-11-15 23:12:43 +000029118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000029119$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029120if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029121 passed=`expr $passed + 1`
29122else
29123 failed=`expr $failed + 1`
29124fi
29125
cristy8b350f62009-11-15 23:12:43 +000029126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029127$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029128if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029129 $as_echo_n "(cached) " >&6
29130else
29131 ac_check_lib_save_LIBS=$LIBS
29132LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029134/* end confdefs.h. */
29135
29136/* Override any GCC internal prototype to avoid an error.
29137 Use char because int might match the return type of a GCC
29138 builtin and then its argument prototype would still apply. */
29139#ifdef __cplusplus
29140extern "C"
29141#endif
29142char TIFFReadRGBAStrip ();
29143int
29144main ()
29145{
29146return TIFFReadRGBAStrip ();
29147 ;
29148 return 0;
29149}
29150_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029151if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029152 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29153else
cristy8b350f62009-11-15 23:12:43 +000029154 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000029155fi
cristy8b350f62009-11-15 23:12:43 +000029156rm -f core conftest.err conftest.$ac_objext \
29157 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029158LIBS=$ac_check_lib_save_LIBS
29159fi
cristy8b350f62009-11-15 23:12:43 +000029160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000029161$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029162if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029163 passed=`expr $passed + 1`
29164else
29165 failed=`expr $failed + 1`
29166fi
29167
cristy8b350f62009-11-15 23:12:43 +000029168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029169$as_echo_n "checking if TIFF package is complete... " >&6; }
29170 if test $passed -gt 0; then
29171 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029173$as_echo "no -- some components failed test" >&6; }
29174 have_tiff='no (failed tests)'
29175 else
29176 TIFF_LIBS='-ltiff'
29177 LIBS="$TIFF_LIBS $LIBS"
29178
cristy8b350f62009-11-15 23:12:43 +000029179$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029180
cristy8b350f62009-11-15 23:12:43 +000029181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029182$as_echo "yes" >&6; }
29183 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000029184 for ac_header in tiffconf.h
29185do :
29186 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
29187if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029188 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029189#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000029190_ACEOF
29191
29192fi
29193
29194done
29195
cristy8b350f62009-11-15 23:12:43 +000029196 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000029197 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29198 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000029199do :
29200 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29201ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyf6fcb5d2010-09-24 01:19:13 +000029202eval as_val=\$$as_ac_var
29203 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029204 cat >>confdefs.h <<_ACEOF
29205#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29206_ACEOF
29207
29208fi
29209done
29210
29211 fi
29212 else
cristy8b350f62009-11-15 23:12:43 +000029213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029214$as_echo "no" >&6; }
29215 fi
29216fi
cristy73bd4a52010-10-05 11:24:23 +000029217 if test "$have_tiff" = 'yes'; then
29218 TIFF_DELEGATE_TRUE=
29219 TIFF_DELEGATE_FALSE='#'
29220else
29221 TIFF_DELEGATE_TRUE='#'
29222 TIFF_DELEGATE_FALSE=
29223fi
29224
cristy3ed852e2009-09-05 21:47:34 +000029225
29226
29227
29228#
29229# Set Windows font directory.
29230#
29231
29232# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029233if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029234 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29235else
29236 with_windows_font_dir=''
29237fi
29238
29239if test "$with_windows_font_dir" != '' ; then
29240 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29241fi
29242
29243
29244#
29245# Check for WMF delegate library.
29246#
29247
29248# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000029249if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029250 withval=$with_wmf; with_wmf=$withval
29251else
cristy8d63d1d2010-01-06 20:38:37 +000029252 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000029253fi
29254
29255
29256if test "$with_wmf" != 'yes'; then
29257 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29258fi
29259
29260have_wmf='no'
29261WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000029262if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029264$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029266$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029268$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000029269 failed=0
29270 passed=0
29271 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29272if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29273 passed=`expr $passed + 1`
29274else
29275 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029276fi
29277
29278
cristy735e8942010-04-02 20:32:57 +000029279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29280$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29281if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029282 $as_echo_n "(cached) " >&6
29283else
29284 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000029285LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029287/* end confdefs.h. */
29288
29289/* Override any GCC internal prototype to avoid an error.
29290 Use char because int might match the return type of a GCC
29291 builtin and then its argument prototype would still apply. */
29292#ifdef __cplusplus
29293extern "C"
29294#endif
cristy735e8942010-04-02 20:32:57 +000029295char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029296int
29297main ()
29298{
cristy735e8942010-04-02 20:32:57 +000029299return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029300 ;
29301 return 0;
29302}
29303_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029304if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000029305 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000029306else
cristy735e8942010-04-02 20:32:57 +000029307 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000029308fi
cristy8b350f62009-11-15 23:12:43 +000029309rm -f core conftest.err conftest.$ac_objext \
29310 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029311LIBS=$ac_check_lib_save_LIBS
29312fi
cristy735e8942010-04-02 20:32:57 +000029313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29314$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29315if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29316 passed=`expr $passed + 1`
29317else
29318 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029319fi
29320
cristy735e8942010-04-02 20:32:57 +000029321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29322$as_echo_n "checking if WMF package is complete... " >&6; }
29323 if test $passed -gt 0; then
29324 if test $failed -gt 0; then
29325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29326$as_echo "no -- some components failed test" >&6; }
29327 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000029328 else
cristy735e8942010-04-02 20:32:57 +000029329 WMF_LIBS='-lwmf -lwmflite'
29330 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029331
cristy8b350f62009-11-15 23:12:43 +000029332$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029333
cristy735e8942010-04-02 20:32:57 +000029334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029335$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000029336 have_wmf='yes'
29337 fi
cristy3ed852e2009-09-05 21:47:34 +000029338 else
cristy8b350f62009-11-15 23:12:43 +000029339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029340$as_echo "no" >&6; }
29341 fi
29342fi
cristy73bd4a52010-10-05 11:24:23 +000029343 if test "$have_wmf" = 'yes'; then
29344 WMF_DELEGATE_TRUE=
29345 WMF_DELEGATE_FALSE='#'
29346else
29347 WMF_DELEGATE_TRUE='#'
29348 WMF_DELEGATE_FALSE=
29349fi
29350
cristy3ed852e2009-09-05 21:47:34 +000029351
29352
29353
29354
cristy735e8942010-04-02 20:32:57 +000029355
cristy3ed852e2009-09-05 21:47:34 +000029356#
29357# Check for XML delegate library.
29358#
29359
29360# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000029361if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029362 withval=$with_xml; with_xml=$withval
29363else
29364 with_xml=$have_x
29365fi
29366
29367
29368if test "$with_xml" != 'yes' ; then
29369 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29370fi
29371
29372have_xml='no'
29373XML_LIBS=''
29374if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029376$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000029378$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029380$as_echo "" >&6; }
29381 PERSIST_LDFLAGS=$LDFLAGS
29382 PERSIST_CPPFLAGS=$CPPFLAGS
29383 xml2_config=''
29384 for ac_prog in xml2-config
29385do
29386 # Extract the first word of "$ac_prog", so it can be a program name with args.
29387set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029389$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029390if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029391 $as_echo_n "(cached) " >&6
29392else
29393 if test -n "$xml2_config"; then
29394 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29395else
29396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29397for as_dir in $PATH
29398do
29399 IFS=$as_save_IFS
29400 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029401 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29403 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029405 break 2
29406 fi
29407done
cristy8b350f62009-11-15 23:12:43 +000029408 done
cristy3ed852e2009-09-05 21:47:34 +000029409IFS=$as_save_IFS
29410
29411fi
29412fi
29413xml2_config=$ac_cv_prog_xml2_config
29414if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000029415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000029416$as_echo "$xml2_config" >&6; }
29417else
cristy8b350f62009-11-15 23:12:43 +000029418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029419$as_echo "no" >&6; }
29420fi
29421
29422
29423 test -n "$xml2_config" && break
29424done
29425 if test -n "$xml2_config"; then
29426 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29427 # the shared library installed under /usr/lib, whereas the package
29428 # installs itself under $prefix/libxml and $prefix/lib.
29429 xml2_prefix=`xml2-config --prefix`
29430 if test -d "${xml2_prefix}/include/libxml2"; then
29431 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29432 fi
29433 if test "${xml2_prefix}" != '/usr'; then
29434 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29435 fi
29436 fi
29437 failed=0
29438 passed=0
cristy8b350f62009-11-15 23:12:43 +000029439 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29440if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029441 passed=`expr $passed + 1`
29442else
29443 failed=`expr $failed + 1`
29444fi
29445
29446
cristy8b350f62009-11-15 23:12:43 +000029447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029448$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029449if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029450 $as_echo_n "(cached) " >&6
29451else
29452 ac_check_lib_save_LIBS=$LIBS
29453LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029455/* end confdefs.h. */
29456
29457/* Override any GCC internal prototype to avoid an error.
29458 Use char because int might match the return type of a GCC
29459 builtin and then its argument prototype would still apply. */
29460#ifdef __cplusplus
29461extern "C"
29462#endif
29463char xmlParseExternalEntity ();
29464int
29465main ()
29466{
29467return xmlParseExternalEntity ();
29468 ;
29469 return 0;
29470}
29471_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029472if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029473 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29474else
cristy8b350f62009-11-15 23:12:43 +000029475 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000029476fi
cristy8b350f62009-11-15 23:12:43 +000029477rm -f core conftest.err conftest.$ac_objext \
29478 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029479LIBS=$ac_check_lib_save_LIBS
29480fi
cristy8b350f62009-11-15 23:12:43 +000029481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000029482$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029483if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029484 passed=`expr $passed + 1`
29485else
29486 failed=`expr $failed + 1`
29487fi
29488
cristy8b350f62009-11-15 23:12:43 +000029489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029490$as_echo_n "checking if XML package is complete... " >&6; }
29491 if test $passed -gt 0; then
29492 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029494$as_echo "no -- some components failed test" >&6; }
29495 have_xml='no (failed tests)'
29496 LDFLAGS="$PERSIST_LDFLAGS"
29497 CPPFLAGS="$PERSIST_CPPFLAGS"
29498 else
29499 XML_LIBS='-lxml2'
29500 LIBS="$XML_LIBS $LIBS"
29501
cristy8b350f62009-11-15 23:12:43 +000029502$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029503
cristy8b350f62009-11-15 23:12:43 +000029504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029505$as_echo "yes" >&6; }
29506 have_xml='yes'
29507 fi
29508 else
cristy8b350f62009-11-15 23:12:43 +000029509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029510$as_echo "no" >&6; }
29511 fi
29512fi
cristy73bd4a52010-10-05 11:24:23 +000029513 if test "$have_xml" = 'yes'; then
29514 XML_DELEGATE_TRUE=
29515 XML_DELEGATE_FALSE='#'
29516else
29517 XML_DELEGATE_TRUE='#'
29518 XML_DELEGATE_FALSE=
29519fi
29520
cristy3ed852e2009-09-05 21:47:34 +000029521
29522
29523
29524# Substitute compiler name to build/link PerlMagick
29525#
29526
29527
29528#
29529# Configure install Paths
29530#
29531
29532# Subdirectory under lib to place ImageMagick lib files
29533LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29534
29535cat >>confdefs.h <<_ACEOF
29536#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29537_ACEOF
29538
29539
29540# Path to ImageMagick bin directory
29541EXECUTABLE_PATH="${BIN_DIR}"
29542DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29543case "${build_os}" in
29544 mingw* )
29545 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29546 ;;
29547esac
29548
29549cat >>confdefs.h <<_ACEOF
29550#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29551_ACEOF
29552
29553
29554
29555# Path to ImageMagick lib
29556LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29557DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29558case "${build_os}" in
29559 mingw* )
29560 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29561 ;;
29562esac
29563
29564cat >>confdefs.h <<_ACEOF
29565#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29566_ACEOF
29567
29568
29569
29570# Subdirectory under lib to place ImageMagick configuration files
29571CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29572
29573cat >>confdefs.h <<_ACEOF
29574#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29575_ACEOF
29576
29577CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29578DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29579case "${build_os}" in
29580 mingw* )
29581 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29582 ;;
29583esac
29584
29585cat >>confdefs.h <<_ACEOF
29586#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29587_ACEOF
29588
29589
29590
29591#
29592# Subdirectory under lib to place ImageMagick coder module files
29593CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29594
29595cat >>confdefs.h <<_ACEOF
29596#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29597_ACEOF
29598
29599CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29600DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29601case "${build_os}" in
29602 mingw* )
29603 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29604 ;;
29605esac
29606
29607cat >>confdefs.h <<_ACEOF
29608#define CODER_PATH "$DEFINE_CODER_PATH"
29609_ACEOF
29610
29611
29612
29613#
29614# Subdirectory under lib to place ImageMagick filter module files
29615FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29616
29617cat >>confdefs.h <<_ACEOF
29618#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29619_ACEOF
29620
29621FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29622DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29623case "${build_os}" in
29624 mingw* )
29625 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29626 ;;
29627esac
29628
29629cat >>confdefs.h <<_ACEOF
29630#define FILTER_PATH "$DEFINE_FILTER_PATH"
29631_ACEOF
29632
29633
29634
29635#
29636# Path to ImageMagick documentation files
29637DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29638DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29639DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29640case "${build_os}" in
29641 mingw* )
29642 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29643 ;;
29644esac
29645
29646cat >>confdefs.h <<_ACEOF
29647#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29648_ACEOF
29649
29650
29651
29652#
29653# Path to ImageMagick share files
29654SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29655SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29656DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29657case "${build_os}" in
29658 mingw* )
29659 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29660 ;;
29661esac
29662
29663cat >>confdefs.h <<_ACEOF
29664#define SHARE_PATH "$DEFINE_SHARE_PATH"
29665_ACEOF
29666
29667
29668
29669# Subdirectory under share to place ImageMagick configuration files
29670SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29671
29672cat >>confdefs.h <<_ACEOF
29673#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29674_ACEOF
29675
29676SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29677DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29678case "${build_os}" in
29679 mingw* )
29680 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29681 ;;
29682esac
29683
29684cat >>confdefs.h <<_ACEOF
29685#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29686_ACEOF
29687
29688
29689
29690#
29691# program_transform_name is formed for use in a Makefile, so create a
29692# modified version for use in a shell script.
29693configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29694
29695# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000029696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029697$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029699$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029701$as_echo "" >&6; }
29702AutotraceDecodeDelegateDefault='autotrace'
29703AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000029704BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000029705BZIPDelegateDefault='bzip2'
29706BrowseDelegateDefault='xdg-open'
29707CGMDecodeDelegateDefault='ralcgm'
29708CatDelegateDefault='cat'
29709DNGDecodeDelegateDefault='ufraw-batch'
29710GVCDecodeDelegateDefault='dot'
29711DVIDecodeDelegateDefault='dvips'
29712EchoDelegateDefault='echo'
29713EditorDelegateDefault='xterm'
29714FIGDecodeDelegateDefault='fig2dev'
29715ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29716DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29717MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29718GnuplotDecodeDelegateDefault='gnuplot'
29719HDRDecodeDelegateDefault='ra_pfm'
29720HPGLDecodeDelegateDefault='hp2xx'
29721HTMLDecodeDelegateDefault='html2ps'
29722ILBMDecodeDelegateDefault='ilbmtoppm'
29723ILBMEncodeDelegateDefault='ppmtoilbm'
29724LPDelegateDefault='lp'
29725LPRDelegateDefault='lpr'
29726LZWDecodeDelegateDefault='uncompress'
29727LZWEncodeDelegateDefault='compress'
29728LaunchDelegateDefault='gimp'
29729MANDelegateDefault='groff'
29730MPEGDecodeDelegateDefault='ffmpeg'
29731MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000029732MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000029733MVDelegateDefault='mv'
29734PCLDelegateDefault='pcl6'
29735PGPDecodeDelegateDefault='pgpv'
29736POVDelegateDefault='povray'
29737if test "$native_win32_build" = 'yes'; then
29738 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029739elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029740 PSDelegateDefault='gsc'
29741else
29742 PSDelegateDefault='gs'
29743fi
29744RLEEncodeDelegateDefault='rawtorle'
29745RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029746RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029747SCANDecodeDelegateDefault='scanimage'
29748TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000029749UniconvertorDelegateDefault='uniconvertor'
cristy23f7a922010-10-11 00:27:48 +000029750WEBPDelegateDefault='webpconv'
cristy3ed852e2009-09-05 21:47:34 +000029751WMFDecodeDelegateDefault='wmf2eps'
29752WWWDecodeDelegateDefault='curl'
29753XPSDelegateDefault='gxps'
29754ZipDelegateDefault='gzip'
29755
29756# Search for delegates
29757# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29758set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029760$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029761if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029762 $as_echo_n "(cached) " >&6
29763else
29764 case $AutotraceDecodeDelegate in
29765 [\\/]* | ?:[\\/]*)
29766 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29767 ;;
29768 *)
29769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29770for as_dir in $PATH
29771do
29772 IFS=$as_save_IFS
29773 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029774 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29776 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029778 break 2
29779 fi
29780done
cristy8b350f62009-11-15 23:12:43 +000029781 done
cristy3ed852e2009-09-05 21:47:34 +000029782IFS=$as_save_IFS
29783
29784 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29785 ;;
29786esac
29787fi
29788AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29789if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029791$as_echo "$AutotraceDecodeDelegate" >&6; }
29792else
cristy8b350f62009-11-15 23:12:43 +000029793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029794$as_echo "no" >&6; }
29795fi
29796
29797
29798# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29799set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029801$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029802if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029803 $as_echo_n "(cached) " >&6
29804else
29805 case $AVIDecodeDelegate in
29806 [\\/]* | ?:[\\/]*)
29807 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29808 ;;
29809 *)
29810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29811for as_dir in $PATH
29812do
29813 IFS=$as_save_IFS
29814 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029815 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29817 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029819 break 2
29820 fi
29821done
cristy8b350f62009-11-15 23:12:43 +000029822 done
cristy3ed852e2009-09-05 21:47:34 +000029823IFS=$as_save_IFS
29824
29825 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29826 ;;
29827esac
29828fi
29829AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29830if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029832$as_echo "$AVIDecodeDelegate" >&6; }
29833else
cristy8b350f62009-11-15 23:12:43 +000029834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029835$as_echo "no" >&6; }
29836fi
29837
29838
29839# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29840set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029842$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029843if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029844 $as_echo_n "(cached) " >&6
29845else
29846 case $BlenderDecodeDelegate in
29847 [\\/]* | ?:[\\/]*)
29848 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29849 ;;
29850 *)
29851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29852for as_dir in $PATH
29853do
29854 IFS=$as_save_IFS
29855 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029856 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29858 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029860 break 2
29861 fi
29862done
cristy8b350f62009-11-15 23:12:43 +000029863 done
cristy3ed852e2009-09-05 21:47:34 +000029864IFS=$as_save_IFS
29865
29866 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29867 ;;
29868esac
29869fi
29870BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29871if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029873$as_echo "$BlenderDecodeDelegate" >&6; }
29874else
cristy8b350f62009-11-15 23:12:43 +000029875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029876$as_echo "no" >&6; }
29877fi
29878
29879
29880# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29881set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029883$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029884if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029885 $as_echo_n "(cached) " >&6
29886else
29887 case $BZIPDelegate in
29888 [\\/]* | ?:[\\/]*)
29889 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29890 ;;
29891 *)
29892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29893for as_dir in $PATH
29894do
29895 IFS=$as_save_IFS
29896 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029897 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29899 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029901 break 2
29902 fi
29903done
cristy8b350f62009-11-15 23:12:43 +000029904 done
cristy3ed852e2009-09-05 21:47:34 +000029905IFS=$as_save_IFS
29906
29907 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29908 ;;
29909esac
29910fi
29911BZIPDelegate=$ac_cv_path_BZIPDelegate
29912if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029914$as_echo "$BZIPDelegate" >&6; }
29915else
cristy8b350f62009-11-15 23:12:43 +000029916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029917$as_echo "no" >&6; }
29918fi
29919
29920
29921# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29922set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029924$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029925if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029926 $as_echo_n "(cached) " >&6
29927else
29928 case $BrowseDelegate in
29929 [\\/]* | ?:[\\/]*)
29930 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29931 ;;
29932 *)
29933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29934for as_dir in $PATH
29935do
29936 IFS=$as_save_IFS
29937 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029938 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29940 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029942 break 2
29943 fi
29944done
cristy8b350f62009-11-15 23:12:43 +000029945 done
cristy3ed852e2009-09-05 21:47:34 +000029946IFS=$as_save_IFS
29947
29948 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29949 ;;
29950esac
29951fi
29952BrowseDelegate=$ac_cv_path_BrowseDelegate
29953if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029955$as_echo "$BrowseDelegate" >&6; }
29956else
cristy8b350f62009-11-15 23:12:43 +000029957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029958$as_echo "no" >&6; }
29959fi
29960
29961
29962# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29963set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029965$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029966if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029967 $as_echo_n "(cached) " >&6
29968else
29969 case $CGMDecodeDelegate in
29970 [\\/]* | ?:[\\/]*)
29971 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29972 ;;
29973 *)
29974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29975for as_dir in $PATH
29976do
29977 IFS=$as_save_IFS
29978 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029979 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29981 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029983 break 2
29984 fi
29985done
cristy8b350f62009-11-15 23:12:43 +000029986 done
cristy3ed852e2009-09-05 21:47:34 +000029987IFS=$as_save_IFS
29988
29989 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29990 ;;
29991esac
29992fi
29993CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29994if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029996$as_echo "$CGMDecodeDelegate" >&6; }
29997else
cristy8b350f62009-11-15 23:12:43 +000029998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029999$as_echo "no" >&6; }
30000fi
30001
30002
30003# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
30004set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030006$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030007if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030008 $as_echo_n "(cached) " >&6
30009else
30010 case $CatDelegate in
30011 [\\/]* | ?:[\\/]*)
30012 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
30013 ;;
30014 *)
30015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30016for as_dir in $PATH
30017do
30018 IFS=$as_save_IFS
30019 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030020 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30022 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030024 break 2
30025 fi
30026done
cristy8b350f62009-11-15 23:12:43 +000030027 done
cristy3ed852e2009-09-05 21:47:34 +000030028IFS=$as_save_IFS
30029
30030 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
30031 ;;
30032esac
30033fi
30034CatDelegate=$ac_cv_path_CatDelegate
30035if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030037$as_echo "$CatDelegate" >&6; }
30038else
cristy8b350f62009-11-15 23:12:43 +000030039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030040$as_echo "no" >&6; }
30041fi
30042
30043
30044# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
30045set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030047$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030048if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030049 $as_echo_n "(cached) " >&6
30050else
30051 case $DNGDecodeDelegate in
30052 [\\/]* | ?:[\\/]*)
30053 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
30054 ;;
30055 *)
30056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30057for as_dir in $PATH
30058do
30059 IFS=$as_save_IFS
30060 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030061 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30063 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030065 break 2
30066 fi
30067done
cristy8b350f62009-11-15 23:12:43 +000030068 done
cristy3ed852e2009-09-05 21:47:34 +000030069IFS=$as_save_IFS
30070
30071 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
30072 ;;
30073esac
30074fi
30075DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
30076if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030078$as_echo "$DNGDecodeDelegate" >&6; }
30079else
cristy8b350f62009-11-15 23:12:43 +000030080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030081$as_echo "no" >&6; }
30082fi
30083
30084
30085# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
30086set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030088$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030089if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030090 $as_echo_n "(cached) " >&6
30091else
30092 case $GVCDecodeDelegate in
30093 [\\/]* | ?:[\\/]*)
30094 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
30095 ;;
30096 *)
30097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30098for as_dir in $PATH
30099do
30100 IFS=$as_save_IFS
30101 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030102 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30104 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030106 break 2
30107 fi
30108done
cristy8b350f62009-11-15 23:12:43 +000030109 done
cristy3ed852e2009-09-05 21:47:34 +000030110IFS=$as_save_IFS
30111
30112 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
30113 ;;
30114esac
30115fi
30116GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
30117if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030119$as_echo "$GVCDecodeDelegate" >&6; }
30120else
cristy8b350f62009-11-15 23:12:43 +000030121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030122$as_echo "no" >&6; }
30123fi
30124
30125
30126# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
30127set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030129$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030130if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030131 $as_echo_n "(cached) " >&6
30132else
30133 case $DVIDecodeDelegate in
30134 [\\/]* | ?:[\\/]*)
30135 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
30136 ;;
30137 *)
30138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30139for as_dir in $PATH
30140do
30141 IFS=$as_save_IFS
30142 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030143 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30145 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030147 break 2
30148 fi
30149done
cristy8b350f62009-11-15 23:12:43 +000030150 done
cristy3ed852e2009-09-05 21:47:34 +000030151IFS=$as_save_IFS
30152
30153 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30154 ;;
30155esac
30156fi
30157DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30158if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030160$as_echo "$DVIDecodeDelegate" >&6; }
30161else
cristy8b350f62009-11-15 23:12:43 +000030162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030163$as_echo "no" >&6; }
30164fi
30165
30166
30167# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30168set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030170$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030171if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030172 $as_echo_n "(cached) " >&6
30173else
30174 case $EchoDelegate in
30175 [\\/]* | ?:[\\/]*)
30176 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30177 ;;
30178 *)
30179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30180for as_dir in $PATH
30181do
30182 IFS=$as_save_IFS
30183 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030184 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30186 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030188 break 2
30189 fi
30190done
cristy8b350f62009-11-15 23:12:43 +000030191 done
cristy3ed852e2009-09-05 21:47:34 +000030192IFS=$as_save_IFS
30193
30194 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30195 ;;
30196esac
30197fi
30198EchoDelegate=$ac_cv_path_EchoDelegate
30199if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030201$as_echo "$EchoDelegate" >&6; }
30202else
cristy8b350f62009-11-15 23:12:43 +000030203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030204$as_echo "no" >&6; }
30205fi
30206
30207
30208# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30209set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030211$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030212if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030213 $as_echo_n "(cached) " >&6
30214else
30215 case $EditorDelegate in
30216 [\\/]* | ?:[\\/]*)
30217 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30218 ;;
30219 *)
30220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30221for as_dir in $PATH
30222do
30223 IFS=$as_save_IFS
30224 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030225 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30227 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030229 break 2
30230 fi
30231done
cristy8b350f62009-11-15 23:12:43 +000030232 done
cristy3ed852e2009-09-05 21:47:34 +000030233IFS=$as_save_IFS
30234
30235 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30236 ;;
30237esac
30238fi
30239EditorDelegate=$ac_cv_path_EditorDelegate
30240if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030242$as_echo "$EditorDelegate" >&6; }
30243else
cristy8b350f62009-11-15 23:12:43 +000030244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030245$as_echo "no" >&6; }
30246fi
30247
30248
30249# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30250set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030252$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030253if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030254 $as_echo_n "(cached) " >&6
30255else
30256 case $FIGDecodeDelegate in
30257 [\\/]* | ?:[\\/]*)
30258 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30259 ;;
30260 *)
30261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30262for as_dir in $PATH
30263do
30264 IFS=$as_save_IFS
30265 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030266 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30268 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030270 break 2
30271 fi
30272done
cristy8b350f62009-11-15 23:12:43 +000030273 done
cristy3ed852e2009-09-05 21:47:34 +000030274IFS=$as_save_IFS
30275
30276 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30277 ;;
30278esac
30279fi
30280FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30281if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030283$as_echo "$FIGDecodeDelegate" >&6; }
30284else
cristy8b350f62009-11-15 23:12:43 +000030285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030286$as_echo "no" >&6; }
30287fi
30288
30289
30290# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30291set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030293$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030294if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030295 $as_echo_n "(cached) " >&6
30296else
30297 case $ConvertDelegate in
30298 [\\/]* | ?:[\\/]*)
30299 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30300 ;;
30301 *)
30302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30303for as_dir in $PATH
30304do
30305 IFS=$as_save_IFS
30306 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030307 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30309 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030311 break 2
30312 fi
30313done
cristy8b350f62009-11-15 23:12:43 +000030314 done
cristy3ed852e2009-09-05 21:47:34 +000030315IFS=$as_save_IFS
30316
30317 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30318 ;;
30319esac
30320fi
30321ConvertDelegate=$ac_cv_path_ConvertDelegate
30322if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030324$as_echo "$ConvertDelegate" >&6; }
30325else
cristy8b350f62009-11-15 23:12:43 +000030326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030327$as_echo "no" >&6; }
30328fi
30329
30330
30331# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30332set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030334$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030335if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030336 $as_echo_n "(cached) " >&6
30337else
30338 case $DisplayDelegate in
30339 [\\/]* | ?:[\\/]*)
30340 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30341 ;;
30342 *)
30343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30344for as_dir in $PATH
30345do
30346 IFS=$as_save_IFS
30347 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030348 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30350 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030352 break 2
30353 fi
30354done
cristy8b350f62009-11-15 23:12:43 +000030355 done
cristy3ed852e2009-09-05 21:47:34 +000030356IFS=$as_save_IFS
30357
30358 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30359 ;;
30360esac
30361fi
30362DisplayDelegate=$ac_cv_path_DisplayDelegate
30363if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030365$as_echo "$DisplayDelegate" >&6; }
30366else
cristy8b350f62009-11-15 23:12:43 +000030367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030368$as_echo "no" >&6; }
30369fi
30370
30371
30372# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30373set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030375$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030376if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030377 $as_echo_n "(cached) " >&6
30378else
30379 case $MogrifyDelegate in
30380 [\\/]* | ?:[\\/]*)
30381 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30382 ;;
30383 *)
30384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30385for as_dir in $PATH
30386do
30387 IFS=$as_save_IFS
30388 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030389 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30391 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030393 break 2
30394 fi
30395done
cristy8b350f62009-11-15 23:12:43 +000030396 done
cristy3ed852e2009-09-05 21:47:34 +000030397IFS=$as_save_IFS
30398
30399 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30400 ;;
30401esac
30402fi
30403MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30404if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030406$as_echo "$MogrifyDelegate" >&6; }
30407else
cristy8b350f62009-11-15 23:12:43 +000030408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030409$as_echo "no" >&6; }
30410fi
30411
30412
30413# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30414set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030416$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030417if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030418 $as_echo_n "(cached) " >&6
30419else
30420 case $GnuplotDecodeDelegate in
30421 [\\/]* | ?:[\\/]*)
30422 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30423 ;;
30424 *)
30425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30426for as_dir in $PATH
30427do
30428 IFS=$as_save_IFS
30429 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030430 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30432 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030434 break 2
30435 fi
30436done
cristy8b350f62009-11-15 23:12:43 +000030437 done
cristy3ed852e2009-09-05 21:47:34 +000030438IFS=$as_save_IFS
30439
30440 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30441 ;;
30442esac
30443fi
30444GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30445if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030447$as_echo "$GnuplotDecodeDelegate" >&6; }
30448else
cristy8b350f62009-11-15 23:12:43 +000030449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030450$as_echo "no" >&6; }
30451fi
30452
30453
30454# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30455set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030457$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030458if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030459 $as_echo_n "(cached) " >&6
30460else
30461 case $HDRDecodeDelegate in
30462 [\\/]* | ?:[\\/]*)
30463 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30464 ;;
30465 *)
30466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30467for as_dir in $PATH
30468do
30469 IFS=$as_save_IFS
30470 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030471 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30473 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030475 break 2
30476 fi
30477done
cristy8b350f62009-11-15 23:12:43 +000030478 done
cristy3ed852e2009-09-05 21:47:34 +000030479IFS=$as_save_IFS
30480
30481 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30482 ;;
30483esac
30484fi
30485HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30486if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030488$as_echo "$HDRDecodeDelegate" >&6; }
30489else
cristy8b350f62009-11-15 23:12:43 +000030490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030491$as_echo "no" >&6; }
30492fi
30493
30494
30495# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30496set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030498$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030499if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030500 $as_echo_n "(cached) " >&6
30501else
30502 case $HPGLDecodeDelegate in
30503 [\\/]* | ?:[\\/]*)
30504 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30505 ;;
30506 *)
30507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30508for as_dir in $PATH
30509do
30510 IFS=$as_save_IFS
30511 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030512 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30514 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030516 break 2
30517 fi
30518done
cristy8b350f62009-11-15 23:12:43 +000030519 done
cristy3ed852e2009-09-05 21:47:34 +000030520IFS=$as_save_IFS
30521
30522 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30523 ;;
30524esac
30525fi
30526HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30527if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030529$as_echo "$HPGLDecodeDelegate" >&6; }
30530else
cristy8b350f62009-11-15 23:12:43 +000030531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030532$as_echo "no" >&6; }
30533fi
30534
30535
30536# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30537set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030539$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030540if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030541 $as_echo_n "(cached) " >&6
30542else
30543 case $HTMLDecodeDelegate in
30544 [\\/]* | ?:[\\/]*)
30545 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30546 ;;
30547 *)
30548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30549for as_dir in $PATH
30550do
30551 IFS=$as_save_IFS
30552 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030553 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30555 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030557 break 2
30558 fi
30559done
cristy8b350f62009-11-15 23:12:43 +000030560 done
cristy3ed852e2009-09-05 21:47:34 +000030561IFS=$as_save_IFS
30562
30563 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30564 ;;
30565esac
30566fi
30567HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30568if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030570$as_echo "$HTMLDecodeDelegate" >&6; }
30571else
cristy8b350f62009-11-15 23:12:43 +000030572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030573$as_echo "no" >&6; }
30574fi
30575
30576
30577# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30578set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030580$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030581if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030582 $as_echo_n "(cached) " >&6
30583else
30584 case $ILBMDecodeDelegate in
30585 [\\/]* | ?:[\\/]*)
30586 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30587 ;;
30588 *)
30589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30590for as_dir in $PATH
30591do
30592 IFS=$as_save_IFS
30593 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030594 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30596 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030598 break 2
30599 fi
30600done
cristy8b350f62009-11-15 23:12:43 +000030601 done
cristy3ed852e2009-09-05 21:47:34 +000030602IFS=$as_save_IFS
30603
30604 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30605 ;;
30606esac
30607fi
30608ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30609if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030611$as_echo "$ILBMDecodeDelegate" >&6; }
30612else
cristy8b350f62009-11-15 23:12:43 +000030613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030614$as_echo "no" >&6; }
30615fi
30616
30617
30618# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30619set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030621$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030622if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030623 $as_echo_n "(cached) " >&6
30624else
30625 case $ILBMEncodeDelegate in
30626 [\\/]* | ?:[\\/]*)
30627 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30628 ;;
30629 *)
30630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30631for as_dir in $PATH
30632do
30633 IFS=$as_save_IFS
30634 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030635 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30637 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030639 break 2
30640 fi
30641done
cristy8b350f62009-11-15 23:12:43 +000030642 done
cristy3ed852e2009-09-05 21:47:34 +000030643IFS=$as_save_IFS
30644
30645 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30646 ;;
30647esac
30648fi
30649ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30650if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030652$as_echo "$ILBMEncodeDelegate" >&6; }
30653else
cristy8b350f62009-11-15 23:12:43 +000030654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030655$as_echo "no" >&6; }
30656fi
30657
30658
30659# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30660set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030662$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030663if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030664 $as_echo_n "(cached) " >&6
30665else
30666 case $LPDelegate in
30667 [\\/]* | ?:[\\/]*)
30668 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30669 ;;
30670 *)
30671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30672for as_dir in $PATH
30673do
30674 IFS=$as_save_IFS
30675 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030676 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30678 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030680 break 2
30681 fi
30682done
cristy8b350f62009-11-15 23:12:43 +000030683 done
cristy3ed852e2009-09-05 21:47:34 +000030684IFS=$as_save_IFS
30685
30686 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30687 ;;
30688esac
30689fi
30690LPDelegate=$ac_cv_path_LPDelegate
30691if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030693$as_echo "$LPDelegate" >&6; }
30694else
cristy8b350f62009-11-15 23:12:43 +000030695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030696$as_echo "no" >&6; }
30697fi
30698
30699
30700# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30701set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030703$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030704if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030705 $as_echo_n "(cached) " >&6
30706else
30707 case $LPRDelegate in
30708 [\\/]* | ?:[\\/]*)
30709 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30710 ;;
30711 *)
30712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30713for as_dir in $PATH
30714do
30715 IFS=$as_save_IFS
30716 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030717 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30719 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030721 break 2
30722 fi
30723done
cristy8b350f62009-11-15 23:12:43 +000030724 done
cristy3ed852e2009-09-05 21:47:34 +000030725IFS=$as_save_IFS
30726
30727 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30728 ;;
30729esac
30730fi
30731LPRDelegate=$ac_cv_path_LPRDelegate
30732if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030734$as_echo "$LPRDelegate" >&6; }
30735else
cristy8b350f62009-11-15 23:12:43 +000030736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030737$as_echo "no" >&6; }
30738fi
30739
30740
30741# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30742set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030744$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030745if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030746 $as_echo_n "(cached) " >&6
30747else
30748 case $LZWDecodeDelegate in
30749 [\\/]* | ?:[\\/]*)
30750 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30751 ;;
30752 *)
30753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30754for as_dir in $PATH
30755do
30756 IFS=$as_save_IFS
30757 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030758 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30760 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030762 break 2
30763 fi
30764done
cristy8b350f62009-11-15 23:12:43 +000030765 done
cristy3ed852e2009-09-05 21:47:34 +000030766IFS=$as_save_IFS
30767
30768 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30769 ;;
30770esac
30771fi
30772LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30773if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030775$as_echo "$LZWDecodeDelegate" >&6; }
30776else
cristy8b350f62009-11-15 23:12:43 +000030777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030778$as_echo "no" >&6; }
30779fi
30780
30781
30782# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30783set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030785$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030786if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030787 $as_echo_n "(cached) " >&6
30788else
30789 case $LZWEncodeDelegate in
30790 [\\/]* | ?:[\\/]*)
30791 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30792 ;;
30793 *)
30794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30795for as_dir in $PATH
30796do
30797 IFS=$as_save_IFS
30798 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030799 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30801 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030803 break 2
30804 fi
30805done
cristy8b350f62009-11-15 23:12:43 +000030806 done
cristy3ed852e2009-09-05 21:47:34 +000030807IFS=$as_save_IFS
30808
30809 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30810 ;;
30811esac
30812fi
30813LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30814if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030816$as_echo "$LZWEncodeDelegate" >&6; }
30817else
cristy8b350f62009-11-15 23:12:43 +000030818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030819$as_echo "no" >&6; }
30820fi
30821
30822
30823# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30824set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030826$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030827if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030828 $as_echo_n "(cached) " >&6
30829else
30830 case $LaunchDelegate in
30831 [\\/]* | ?:[\\/]*)
30832 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30833 ;;
30834 *)
30835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30836for as_dir in $PATH
30837do
30838 IFS=$as_save_IFS
30839 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030840 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30842 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030844 break 2
30845 fi
30846done
cristy8b350f62009-11-15 23:12:43 +000030847 done
cristy3ed852e2009-09-05 21:47:34 +000030848IFS=$as_save_IFS
30849
30850 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30851 ;;
30852esac
30853fi
30854LaunchDelegate=$ac_cv_path_LaunchDelegate
30855if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030857$as_echo "$LaunchDelegate" >&6; }
30858else
cristy8b350f62009-11-15 23:12:43 +000030859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030860$as_echo "no" >&6; }
30861fi
30862
30863
30864# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30865set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030867$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030868if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030869 $as_echo_n "(cached) " >&6
30870else
30871 case $MANDelegate in
30872 [\\/]* | ?:[\\/]*)
30873 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30874 ;;
30875 *)
30876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30877for as_dir in $PATH
30878do
30879 IFS=$as_save_IFS
30880 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030881 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30883 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030885 break 2
30886 fi
30887done
cristy8b350f62009-11-15 23:12:43 +000030888 done
cristy3ed852e2009-09-05 21:47:34 +000030889IFS=$as_save_IFS
30890
30891 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30892 ;;
30893esac
30894fi
30895MANDelegate=$ac_cv_path_MANDelegate
30896if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030898$as_echo "$MANDelegate" >&6; }
30899else
cristy8b350f62009-11-15 23:12:43 +000030900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030901$as_echo "no" >&6; }
30902fi
30903
30904
30905# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30906set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030908$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030909if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030910 $as_echo_n "(cached) " >&6
30911else
30912 case $MPEGDecodeDelegate in
30913 [\\/]* | ?:[\\/]*)
30914 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30915 ;;
30916 *)
30917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30918for as_dir in $PATH
30919do
30920 IFS=$as_save_IFS
30921 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030922 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30924 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030926 break 2
30927 fi
30928done
cristy8b350f62009-11-15 23:12:43 +000030929 done
cristy3ed852e2009-09-05 21:47:34 +000030930IFS=$as_save_IFS
30931
30932 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30933 ;;
30934esac
30935fi
30936MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30937if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030939$as_echo "$MPEGDecodeDelegate" >&6; }
30940else
cristy8b350f62009-11-15 23:12:43 +000030941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030942$as_echo "no" >&6; }
30943fi
30944
30945
30946# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30947set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030949$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030950if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030951 $as_echo_n "(cached) " >&6
30952else
30953 case $MPEGEncodeDelegate in
30954 [\\/]* | ?:[\\/]*)
30955 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30956 ;;
30957 *)
30958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30959for as_dir in $PATH
30960do
30961 IFS=$as_save_IFS
30962 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030963 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30965 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030967 break 2
30968 fi
30969done
cristy8b350f62009-11-15 23:12:43 +000030970 done
cristy3ed852e2009-09-05 21:47:34 +000030971IFS=$as_save_IFS
30972
30973 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30974 ;;
30975esac
30976fi
30977MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30978if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030980$as_echo "$MPEGEncodeDelegate" >&6; }
30981else
cristy8b350f62009-11-15 23:12:43 +000030982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030983$as_echo "no" >&6; }
30984fi
30985
30986
cristy935c86e2010-06-05 23:50:07 +000030987# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30988set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30990$as_echo_n "checking for $ac_word... " >&6; }
30991if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30992 $as_echo_n "(cached) " >&6
30993else
30994 case $MrSIDDecodeDelegate in
30995 [\\/]* | ?:[\\/]*)
30996 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30997 ;;
30998 *)
30999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31000for as_dir in $PATH
31001do
31002 IFS=$as_save_IFS
31003 test -z "$as_dir" && as_dir=.
31004 for ac_exec_ext in '' $ac_executable_extensions; do
31005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31006 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31008 break 2
31009 fi
31010done
31011 done
31012IFS=$as_save_IFS
31013
31014 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
31015 ;;
31016esac
31017fi
31018MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
31019if test -n "$MrSIDDecodeDelegate"; then
31020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
31021$as_echo "$MrSIDDecodeDelegate" >&6; }
31022else
31023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31024$as_echo "no" >&6; }
31025fi
31026
31027
cristy3ed852e2009-09-05 21:47:34 +000031028# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
31029set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031031$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031032if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031033 $as_echo_n "(cached) " >&6
31034else
31035 case $MVDelegate in
31036 [\\/]* | ?:[\\/]*)
31037 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
31038 ;;
31039 *)
31040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31041for as_dir in $PATH
31042do
31043 IFS=$as_save_IFS
31044 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031045 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31047 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031049 break 2
31050 fi
31051done
cristy8b350f62009-11-15 23:12:43 +000031052 done
cristy3ed852e2009-09-05 21:47:34 +000031053IFS=$as_save_IFS
31054
31055 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
31056 ;;
31057esac
31058fi
31059MVDelegate=$ac_cv_path_MVDelegate
31060if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031062$as_echo "$MVDelegate" >&6; }
31063else
cristy8b350f62009-11-15 23:12:43 +000031064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031065$as_echo "no" >&6; }
31066fi
31067
31068
31069# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
31070set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031072$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031073if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031074 $as_echo_n "(cached) " >&6
31075else
31076 case $PCLDelegate in
31077 [\\/]* | ?:[\\/]*)
31078 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
31079 ;;
31080 *)
31081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31082for as_dir in $PATH
31083do
31084 IFS=$as_save_IFS
31085 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031086 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31088 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031090 break 2
31091 fi
31092done
cristy8b350f62009-11-15 23:12:43 +000031093 done
cristy3ed852e2009-09-05 21:47:34 +000031094IFS=$as_save_IFS
31095
31096 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
31097 ;;
31098esac
31099fi
31100PCLDelegate=$ac_cv_path_PCLDelegate
31101if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031103$as_echo "$PCLDelegate" >&6; }
31104else
cristy8b350f62009-11-15 23:12:43 +000031105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031106$as_echo "no" >&6; }
31107fi
31108
31109
31110# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
31111set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031113$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031114if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031115 $as_echo_n "(cached) " >&6
31116else
31117 case $PGPDecodeDelegate in
31118 [\\/]* | ?:[\\/]*)
31119 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
31120 ;;
31121 *)
31122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31123for as_dir in $PATH
31124do
31125 IFS=$as_save_IFS
31126 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031127 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31129 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031131 break 2
31132 fi
31133done
cristy8b350f62009-11-15 23:12:43 +000031134 done
cristy3ed852e2009-09-05 21:47:34 +000031135IFS=$as_save_IFS
31136
31137 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
31138 ;;
31139esac
31140fi
31141PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
31142if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031144$as_echo "$PGPDecodeDelegate" >&6; }
31145else
cristy8b350f62009-11-15 23:12:43 +000031146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031147$as_echo "no" >&6; }
31148fi
31149
31150
31151# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31152set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031154$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031155if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031156 $as_echo_n "(cached) " >&6
31157else
31158 case $POVDelegate in
31159 [\\/]* | ?:[\\/]*)
31160 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31161 ;;
31162 *)
31163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31164for as_dir in $PATH
31165do
31166 IFS=$as_save_IFS
31167 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031168 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31170 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031172 break 2
31173 fi
31174done
cristy8b350f62009-11-15 23:12:43 +000031175 done
cristy3ed852e2009-09-05 21:47:34 +000031176IFS=$as_save_IFS
31177
31178 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31179 ;;
31180esac
31181fi
31182POVDelegate=$ac_cv_path_POVDelegate
31183if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031185$as_echo "$POVDelegate" >&6; }
31186else
cristy8b350f62009-11-15 23:12:43 +000031187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031188$as_echo "no" >&6; }
31189fi
31190
31191
31192for ac_prog in gsx gsc "$PSDelegateDefault"
31193do
31194 # Extract the first word of "$ac_prog", so it can be a program name with args.
31195set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031197$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031198if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031199 $as_echo_n "(cached) " >&6
31200else
31201 case $PSDelegate in
31202 [\\/]* | ?:[\\/]*)
31203 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31204 ;;
31205 *)
31206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31207for as_dir in $PATH
31208do
31209 IFS=$as_save_IFS
31210 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031211 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31213 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031215 break 2
31216 fi
31217done
cristy8b350f62009-11-15 23:12:43 +000031218 done
cristy3ed852e2009-09-05 21:47:34 +000031219IFS=$as_save_IFS
31220
31221 ;;
31222esac
31223fi
31224PSDelegate=$ac_cv_path_PSDelegate
31225if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031227$as_echo "$PSDelegate" >&6; }
31228else
cristy8b350f62009-11-15 23:12:43 +000031229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031230$as_echo "no" >&6; }
31231fi
31232
31233
31234 test -n "$PSDelegate" && break
31235done
31236test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31237
31238# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31239set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031241$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031242if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031243 $as_echo_n "(cached) " >&6
31244else
31245 case $RLEEncodeDelegate in
31246 [\\/]* | ?:[\\/]*)
31247 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31248 ;;
31249 *)
31250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31251for as_dir in $PATH
31252do
31253 IFS=$as_save_IFS
31254 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031255 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31257 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031259 break 2
31260 fi
31261done
cristy8b350f62009-11-15 23:12:43 +000031262 done
cristy3ed852e2009-09-05 21:47:34 +000031263IFS=$as_save_IFS
31264
31265 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31266 ;;
31267esac
31268fi
31269RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31270if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031272$as_echo "$RLEEncodeDelegate" >&6; }
31273else
cristy8b350f62009-11-15 23:12:43 +000031274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031275$as_echo "no" >&6; }
31276fi
31277
31278
31279# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31280set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031282$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031283if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031284 $as_echo_n "(cached) " >&6
31285else
31286 case $RMDelegate in
31287 [\\/]* | ?:[\\/]*)
31288 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31289 ;;
31290 *)
31291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31292for as_dir in $PATH
31293do
31294 IFS=$as_save_IFS
31295 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031296 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31298 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031300 break 2
31301 fi
31302done
cristy8b350f62009-11-15 23:12:43 +000031303 done
cristy3ed852e2009-09-05 21:47:34 +000031304IFS=$as_save_IFS
31305
31306 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31307 ;;
31308esac
31309fi
31310RMDelegate=$ac_cv_path_RMDelegate
31311if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031313$as_echo "$RMDelegate" >&6; }
31314else
cristy8b350f62009-11-15 23:12:43 +000031315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031316$as_echo "no" >&6; }
31317fi
31318
31319
cristy4689cf02010-02-17 21:15:45 +000031320# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31321set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31323$as_echo_n "checking for $ac_word... " >&6; }
31324if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31325 $as_echo_n "(cached) " >&6
31326else
31327 case $RSVGDecodeDelegate in
31328 [\\/]* | ?:[\\/]*)
31329 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31330 ;;
31331 *)
31332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31333for as_dir in $PATH
31334do
31335 IFS=$as_save_IFS
31336 test -z "$as_dir" && as_dir=.
31337 for ac_exec_ext in '' $ac_executable_extensions; do
31338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31339 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31341 break 2
31342 fi
31343done
31344 done
31345IFS=$as_save_IFS
31346
31347 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31348 ;;
31349esac
31350fi
31351RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31352if test -n "$RSVGDecodeDelegate"; then
31353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31354$as_echo "$RSVGDecodeDelegate" >&6; }
31355else
31356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31357$as_echo "no" >&6; }
31358fi
31359
31360
cristy3ed852e2009-09-05 21:47:34 +000031361# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31362set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031364$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031365if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031366 $as_echo_n "(cached) " >&6
31367else
31368 case $SCANDecodeDelegate in
31369 [\\/]* | ?:[\\/]*)
31370 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31371 ;;
31372 *)
31373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31374for as_dir in $PATH
31375do
31376 IFS=$as_save_IFS
31377 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031378 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31380 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031382 break 2
31383 fi
31384done
cristy8b350f62009-11-15 23:12:43 +000031385 done
cristy3ed852e2009-09-05 21:47:34 +000031386IFS=$as_save_IFS
31387
31388 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31389 ;;
31390esac
31391fi
31392SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31393if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031395$as_echo "$SCANDecodeDelegate" >&6; }
31396else
cristy8b350f62009-11-15 23:12:43 +000031397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031398$as_echo "no" >&6; }
31399fi
31400
31401
31402# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31403set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031405$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031406if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031407 $as_echo_n "(cached) " >&6
31408else
31409 case $TXTDelegate in
31410 [\\/]* | ?:[\\/]*)
31411 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31412 ;;
31413 *)
31414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31415for as_dir in $PATH
31416do
31417 IFS=$as_save_IFS
31418 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031419 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31421 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031423 break 2
31424 fi
31425done
cristy8b350f62009-11-15 23:12:43 +000031426 done
cristy3ed852e2009-09-05 21:47:34 +000031427IFS=$as_save_IFS
31428
31429 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31430 ;;
31431esac
31432fi
31433TXTDelegate=$ac_cv_path_TXTDelegate
31434if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031436$as_echo "$TXTDelegate" >&6; }
31437else
cristy8b350f62009-11-15 23:12:43 +000031438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031439$as_echo "no" >&6; }
31440fi
31441
31442
cristy5ac9ac82010-07-29 13:24:24 +000031443# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
31444set dummy "$UniconvertorDelegateDefault"; ac_word=$2
31445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31446$as_echo_n "checking for $ac_word... " >&6; }
31447if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then :
31448 $as_echo_n "(cached) " >&6
31449else
31450 case $UniconvertorDelegate in
31451 [\\/]* | ?:[\\/]*)
31452 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
31453 ;;
31454 *)
31455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31456for as_dir in $PATH
31457do
31458 IFS=$as_save_IFS
31459 test -z "$as_dir" && as_dir=.
31460 for ac_exec_ext in '' $ac_executable_extensions; do
31461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31462 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
31463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31464 break 2
31465 fi
31466done
31467 done
31468IFS=$as_save_IFS
31469
31470 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
31471 ;;
31472esac
31473fi
31474UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
31475if test -n "$UniconvertorDelegate"; then
31476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
31477$as_echo "$UniconvertorDelegate" >&6; }
31478else
31479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31480$as_echo "no" >&6; }
31481fi
31482
31483
cristy23f7a922010-10-11 00:27:48 +000031484# Extract the first word of ""$WEBPDelegateDefault"", so it can be a program name with args.
31485set dummy "$WEBPDelegateDefault"; ac_word=$2
31486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31487$as_echo_n "checking for $ac_word... " >&6; }
31488if test "${ac_cv_path_WEBPDelegate+set}" = set; then :
31489 $as_echo_n "(cached) " >&6
31490else
31491 case $WEBPDelegate in
31492 [\\/]* | ?:[\\/]*)
31493 ac_cv_path_WEBPDelegate="$WEBPDelegate" # Let the user override the test with a path.
31494 ;;
31495 *)
31496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31497for as_dir in $PATH
31498do
31499 IFS=$as_save_IFS
31500 test -z "$as_dir" && as_dir=.
31501 for ac_exec_ext in '' $ac_executable_extensions; do
31502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31503 ac_cv_path_WEBPDelegate="$as_dir/$ac_word$ac_exec_ext"
31504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31505 break 2
31506 fi
31507done
31508 done
31509IFS=$as_save_IFS
31510
31511 test -z "$ac_cv_path_WEBPDelegate" && ac_cv_path_WEBPDelegate=""$WEBPDelegateDefault""
31512 ;;
31513esac
31514fi
31515WEBPDelegate=$ac_cv_path_WEBPDelegate
31516if test -n "$WEBPDelegate"; then
31517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WEBPDelegate" >&5
31518$as_echo "$WEBPDelegate" >&6; }
31519else
31520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31521$as_echo "no" >&6; }
31522fi
31523
31524
cristy3ed852e2009-09-05 21:47:34 +000031525# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31526set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031528$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031529if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031530 $as_echo_n "(cached) " >&6
31531else
31532 case $WMFDecodeDelegate in
31533 [\\/]* | ?:[\\/]*)
31534 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31535 ;;
31536 *)
31537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31538for as_dir in $PATH
31539do
31540 IFS=$as_save_IFS
31541 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031542 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31544 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031546 break 2
31547 fi
31548done
cristy8b350f62009-11-15 23:12:43 +000031549 done
cristy3ed852e2009-09-05 21:47:34 +000031550IFS=$as_save_IFS
31551
31552 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31553 ;;
31554esac
31555fi
31556WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31557if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031559$as_echo "$WMFDecodeDelegate" >&6; }
31560else
cristy8b350f62009-11-15 23:12:43 +000031561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031562$as_echo "no" >&6; }
31563fi
31564
31565
31566# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31567set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031569$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031570if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031571 $as_echo_n "(cached) " >&6
31572else
31573 case $WWWDecodeDelegate in
31574 [\\/]* | ?:[\\/]*)
31575 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31576 ;;
31577 *)
31578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31579for as_dir in $PATH
31580do
31581 IFS=$as_save_IFS
31582 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031583 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31585 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031587 break 2
31588 fi
31589done
cristy8b350f62009-11-15 23:12:43 +000031590 done
cristy3ed852e2009-09-05 21:47:34 +000031591IFS=$as_save_IFS
31592
31593 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31594 ;;
31595esac
31596fi
31597WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31598if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031600$as_echo "$WWWDecodeDelegate" >&6; }
31601else
cristy8b350f62009-11-15 23:12:43 +000031602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031603$as_echo "no" >&6; }
31604fi
31605
31606
31607# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31608set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031610$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031611if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031612 $as_echo_n "(cached) " >&6
31613else
31614 case $XPSDelegate in
31615 [\\/]* | ?:[\\/]*)
31616 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31617 ;;
31618 *)
31619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31620for as_dir in $PATH
31621do
31622 IFS=$as_save_IFS
31623 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031624 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31626 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031628 break 2
31629 fi
31630done
cristy8b350f62009-11-15 23:12:43 +000031631 done
cristy3ed852e2009-09-05 21:47:34 +000031632IFS=$as_save_IFS
31633
31634 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31635 ;;
31636esac
31637fi
31638XPSDelegate=$ac_cv_path_XPSDelegate
31639if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031641$as_echo "$XPSDelegate" >&6; }
31642else
cristy8b350f62009-11-15 23:12:43 +000031643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031644$as_echo "no" >&6; }
31645fi
31646
31647
31648# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31649set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031651$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031652if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031653 $as_echo_n "(cached) " >&6
31654else
31655 case $ZipDelegate in
31656 [\\/]* | ?:[\\/]*)
31657 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31658 ;;
31659 *)
31660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31661for as_dir in $PATH
31662do
31663 IFS=$as_save_IFS
31664 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031665 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31667 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031669 break 2
31670 fi
31671done
cristy8b350f62009-11-15 23:12:43 +000031672 done
cristy3ed852e2009-09-05 21:47:34 +000031673IFS=$as_save_IFS
31674
31675 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31676 ;;
31677esac
31678fi
31679ZipDelegate=$ac_cv_path_ZipDelegate
31680if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031682$as_echo "$ZipDelegate" >&6; }
31683else
cristy8b350f62009-11-15 23:12:43 +000031684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031685$as_echo "no" >&6; }
31686fi
31687
31688
31689
31690# Prefer lpr to lp; lp needs options tacked on.
31691if test "$LPRDelegate" != no; then
31692 PrintDelegate="$LPRDelegate"
31693else
31694 PrintDelegate="$LPDelegate -c -s"
31695fi
31696
31697
31698# Installed ImageMagick utiltity paths
31699ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31700DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31701MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31702
31703# Set delegate booleans
31704have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31705have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31706have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31707have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31708have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31709have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000031710have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000031711have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31712have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31713have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31714have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31715have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31716
31717#
31718# Test for font directories
31719#
31720type_include_files=''
31721
cristy430a7312010-01-21 20:44:04 +000031722# Dejavu fonts.
31723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31724$as_echo_n "checking for Dejavu fonts directory... " >&6; }
31725dejavu_font_dir=''
31726if test "${with_dejavu_font_dir}" != 'default'; then
31727 dejavu_font_dir="${with_dejavu_font_dir}/"
31728else
31729 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31730 if test -f "${font_dir}DejaVuSerif.ttf"; then
31731 dejavu_font_dir="${font_dir}"
31732 break 1
31733 fi
31734 done
31735fi
31736if test "${dejavu_font_dir}x" != 'x'; then
31737 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31739$as_echo "$dejavu_font_dir" >&6; }
31740else
31741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31742$as_echo "not found!" >&6; };
31743fi
31744
31745
cristy3ed852e2009-09-05 21:47:34 +000031746# Windows
31747windows_font_dir=''
31748if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31749 windows_font_dir="${with_windows_font_dir}/"
31750fi
cristy430a7312010-01-21 20:44:04 +000031751if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031752 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31753 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31754 fi
31755 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31756 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31757 fi
31758 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31759 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31760 fi
31761fi
cristy430a7312010-01-21 20:44:04 +000031762if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031763 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31764fi
31765
31766
31767# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000031768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000031769$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31770ghostscript_font_dir=''
31771if test "${with_gs_font_dir}" != 'default'; then
31772 ghostscript_font_dir="${with_gs_font_dir}/"
31773else
31774 if test "${native_win32_build}" = 'yes'; then
31775 # Native Windows Build
31776 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31777 if test -f "${font_dir}a010013l.pfb"; then
31778 ghostscript_font_dir="$font_dir"
31779 break 1
31780 fi
31781 done
31782 if test "${PSDelegate}" != 'gswin32c'; then
31783 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31784 fi
31785 else
31786 # Linux / Mac OS X / Unix Build
31787 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
31788 if test -f "${font_dir}a010013l.pfb"; then
31789 ghostscript_font_dir="${font_dir}"
31790 break 1
31791 fi
31792 done
31793 if test "${ghostscript_font_dir}x" = 'x'; then
31794 if test "$PSDelegate" != 'gs'; then
31795 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31796 fi
31797 fi
31798 fi
31799fi
31800if test "${ghostscript_font_dir}x" != 'x'; then
31801 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000031802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000031803$as_echo "$ghostscript_font_dir" >&6; }
31804else
cristy8b350f62009-11-15 23:12:43 +000031805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000031806$as_echo "not found!" >&6; };
31807fi
31808
31809case "${build_os}" in
31810 mingw* )
31811 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31812 ;;
31813esac
31814
31815
31816
31817#
31818# Handle case where user doesn't want frozen paths
31819#
31820if test "$with_frozenpaths" != 'yes'; then
31821 # Re-set delegate definitions to default (no paths)
31822 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31823 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31824 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31825 BZIPDelegate="$BZIPDelegateDefault"
31826 BrowseDelegate="$BrowseDelegateDefault"
31827 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31828 CatDelegate="$CatDelegateDefault"
31829 ConvertDelegate="$ConvertDelegateDefault"
31830 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31831 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31832 EchoDelegate="$EchoDelegateDefault"
31833 EditorDelegate="$EditorDelegateDefault"
31834 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31835 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31836 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31837 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31838 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31839 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31840 LPDelegate="$LPDelegateDefault"
31841 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31842 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31843 LaunchDelegate="$LaunchDelegateDefault"
31844 MANDelegate="$MANDelegateDefault"
31845 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31846 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031847 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000031848 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31849 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031850 PCLDelegate="$PCLDelegateDefault"
31851 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31852 POVDelegate="$POVDelegateDefault"
31853 PSDelegate="$PSDelegateDefault"
31854 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31855 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31856 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031857 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031858 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31859 ShowImageDelegate="$ShowImageDelegateDefault"
31860 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000031861 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy23f7a922010-10-11 00:27:48 +000031862 WEBPDelegate="$WEBPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031863 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31864 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31865 XPSDelegate="$XPSDelegateDefault"
31866 ZipDelegate="$ZipDelegateDefault"
31867fi
31868
31869# Delegate substitutions
31870
31871
31872
31873
31874
31875
31876
31877
31878
31879
31880
31881
31882
31883
31884
31885
31886
31887
31888
31889
31890
31891
31892
31893
31894
31895
31896
31897
31898
31899
31900
31901
31902
31903
31904
31905
31906
31907
31908
31909
31910
31911
cristy935c86e2010-06-05 23:50:07 +000031912
cristy5ac9ac82010-07-29 13:24:24 +000031913
cristy23f7a922010-10-11 00:27:48 +000031914
cristy3ed852e2009-09-05 21:47:34 +000031915#
31916# RPM support.
31917#
31918RPM=''
31919for ac_prog in gnutar gtar tar
31920do
31921 # Extract the first word of "$ac_prog", so it can be a program name with args.
31922set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031924$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031925if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031926 $as_echo_n "(cached) " >&6
31927else
31928 if test -n "$TAR"; then
31929 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31930else
31931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31932for as_dir in $PATH
31933do
31934 IFS=$as_save_IFS
31935 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031936 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31938 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031940 break 2
31941 fi
31942done
cristy8b350f62009-11-15 23:12:43 +000031943 done
cristy3ed852e2009-09-05 21:47:34 +000031944IFS=$as_save_IFS
31945
31946fi
31947fi
31948TAR=$ac_cv_prog_TAR
31949if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031951$as_echo "$TAR" >&6; }
31952else
cristy8b350f62009-11-15 23:12:43 +000031953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031954$as_echo "no" >&6; }
31955fi
31956
31957
31958 test -n "$TAR" && break
31959done
31960
31961for ac_prog in perl
31962do
31963 # Extract the first word of "$ac_prog", so it can be a program name with args.
31964set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031966$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031967if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031968 $as_echo_n "(cached) " >&6
31969else
31970 if test -n "$PERL"; then
31971 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31972else
31973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31974for as_dir in $PATH
31975do
31976 IFS=$as_save_IFS
31977 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031978 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31980 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031982 break 2
31983 fi
31984done
cristy8b350f62009-11-15 23:12:43 +000031985 done
cristy3ed852e2009-09-05 21:47:34 +000031986IFS=$as_save_IFS
31987
31988fi
31989fi
31990PERL=$ac_cv_prog_PERL
31991if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031993$as_echo "$PERL" >&6; }
31994else
cristy8b350f62009-11-15 23:12:43 +000031995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031996$as_echo "no" >&6; }
31997fi
31998
31999
32000 test -n "$PERL" && break
32001done
32002
32003for ac_prog in rpmbuild rpm
32004do
32005 # Extract the first word of "$ac_prog", so it can be a program name with args.
32006set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032008$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032009if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032010 $as_echo_n "(cached) " >&6
32011else
32012 if test -n "$RPM"; then
32013 ac_cv_prog_RPM="$RPM" # Let the user override the test.
32014else
32015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32016for as_dir in $PATH
32017do
32018 IFS=$as_save_IFS
32019 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032020 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32022 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032024 break 2
32025 fi
32026done
cristy8b350f62009-11-15 23:12:43 +000032027 done
cristy3ed852e2009-09-05 21:47:34 +000032028IFS=$as_save_IFS
32029
32030fi
32031fi
32032RPM=$ac_cv_prog_RPM
32033if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000032034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000032035$as_echo "$RPM" >&6; }
32036else
cristy8b350f62009-11-15 23:12:43 +000032037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032038$as_echo "no" >&6; }
32039fi
32040
32041
32042 test -n "$RPM" && break
32043done
32044
32045
cristy73bd4a52010-10-05 11:24:23 +000032046ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
32047
32048
32049AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
32050
32051
32052AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
32053
32054
32055AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
32056
32057
32058 if test "x$RPM" != "x" ; then
32059 RPM_DELEGATE_TRUE=
32060 RPM_DELEGATE_FALSE='#'
32061else
32062 RPM_DELEGATE_TRUE='#'
32063 RPM_DELEGATE_FALSE=
32064fi
32065
cristy3ed852e2009-09-05 21:47:34 +000032066
32067#
32068# 7ZIP support (http://p7zip.sourceforge.net/)
32069#
32070P7ZIP=''
32071for ac_prog in 7za
32072do
32073 # Extract the first word of "$ac_prog", so it can be a program name with args.
32074set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032076$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032077if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032078 $as_echo_n "(cached) " >&6
32079else
32080 if test -n "$P7ZIP"; then
32081 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
32082else
32083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32084for as_dir in $PATH
32085do
32086 IFS=$as_save_IFS
32087 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032088 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32090 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032092 break 2
32093 fi
32094done
cristy8b350f62009-11-15 23:12:43 +000032095 done
cristy3ed852e2009-09-05 21:47:34 +000032096IFS=$as_save_IFS
32097
32098fi
32099fi
32100P7ZIP=$ac_cv_prog_P7ZIP
32101if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032103$as_echo "$P7ZIP" >&6; }
32104else
cristy8b350f62009-11-15 23:12:43 +000032105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032106$as_echo "no" >&6; }
32107fi
32108
32109
32110 test -n "$P7ZIP" && break
32111done
32112
32113
cristy73bd4a52010-10-05 11:24:23 +000032114 if test "x$P7ZIP" != "x" ; then
32115 P7ZIP_DELEGATE_TRUE=
32116 P7ZIP_DELEGATE_FALSE='#'
32117else
32118 P7ZIP_DELEGATE_TRUE='#'
32119 P7ZIP_DELEGATE_FALSE=
32120fi
32121
cristy3ed852e2009-09-05 21:47:34 +000032122
32123#
32124# ZIP support (http://www.info-zip.org/Zip.html)
32125#
32126ZIP=''
32127for ac_prog in zip
32128do
32129 # Extract the first word of "$ac_prog", so it can be a program name with args.
32130set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032132$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032133if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032134 $as_echo_n "(cached) " >&6
32135else
32136 if test -n "$ZIP"; then
32137 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
32138else
32139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32140for as_dir in $PATH
32141do
32142 IFS=$as_save_IFS
32143 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032144 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32146 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032148 break 2
32149 fi
32150done
cristy8b350f62009-11-15 23:12:43 +000032151 done
cristy3ed852e2009-09-05 21:47:34 +000032152IFS=$as_save_IFS
32153
32154fi
32155fi
32156ZIP=$ac_cv_prog_ZIP
32157if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032159$as_echo "$ZIP" >&6; }
32160else
cristy8b350f62009-11-15 23:12:43 +000032161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032162$as_echo "no" >&6; }
32163fi
32164
32165
32166 test -n "$ZIP" && break
32167done
32168
32169
cristy73bd4a52010-10-05 11:24:23 +000032170 if test "x$ZIP" != "x" ; then
32171 ZIP_DELEGATE_TRUE=
32172 ZIP_DELEGATE_FALSE='#'
32173else
32174 ZIP_DELEGATE_TRUE='#'
32175 ZIP_DELEGATE_FALSE=
32176fi
32177
cristy3ed852e2009-09-05 21:47:34 +000032178
32179#
32180# GhostPCL related configuration.
32181#
32182PCLColorDevice=ppmraw
32183PCLCMYKDevice=bmpsep8
32184PCLMonoDevice=pbmraw
32185if test -z "$PCLVersion"; then
32186 PCLVersion='unknown'
32187fi
32188if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032190$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032192$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032194$as_echo "" >&6; }
32195 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000032196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032197$as_echo_n "checking for pcl color device... " >&6; }
32198 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32199 :
32200 else
32201 PCLColorDevice=ppmraw
32202 fi
cristy8b350f62009-11-15 23:12:43 +000032203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032204$as_echo "$PCLColorDevice" >&6; }
32205
32206 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032208$as_echo_n "checking for pcl CMYK device... " >&6; }
32209 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32210 :
32211 else
32212 PCLCMYKDevice=$PCLColorDevice
32213 fi
cristy8b350f62009-11-15 23:12:43 +000032214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032215$as_echo "$PCLCMYKDevice" >&6; }
32216
32217 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032219$as_echo_n "checking for pcl mono device... " >&6; }
32220 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32221 :
32222 else
32223 PCLMonoDevice=$PCLColorDevice
32224 fi
cristy8b350f62009-11-15 23:12:43 +000032225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032226$as_echo "$PCLMonoDevice" >&6; }
32227fi
32228
32229
32230
32231
32232
32233
32234#
32235# GhostXPS related configuration.
32236#
32237XPSColorDevice=ppmraw
32238XPSCMYKDevice=bmpsep8
32239XPSMonoDevice=pbmraw
32240if test -z "$XPSVersion"; then
32241 XPSVersion='unknown'
32242fi
32243if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032245$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032247$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032249$as_echo "" >&6; }
32250 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032252$as_echo_n "checking for xps color device... " >&6; }
32253 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32254 :
32255 else
32256 XPSColorDevice=ppmraw
32257 fi
cristy8b350f62009-11-15 23:12:43 +000032258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032259$as_echo "$XPSColorDevice" >&6; }
32260
32261 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032263$as_echo_n "checking for xps CMYK device... " >&6; }
32264 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32265 :
32266 else
32267 XPSCMYKDevice=$XPSColorDevice
32268 fi
cristy8b350f62009-11-15 23:12:43 +000032269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032270$as_echo "$XPSCMYKDevice" >&6; }
32271
32272 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032274$as_echo_n "checking for xps mono device... " >&6; }
32275 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32276 :
32277 else
32278 XPSMonoDevice=$XPSColorDevice
32279 fi
cristy8b350f62009-11-15 23:12:43 +000032280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032281$as_echo "$XPSMonoDevice" >&6; }
32282fi
32283
32284
32285
32286
32287
32288
32289#
32290# Ghostscript related configuration.
32291#
32292if test "$have_png" = 'yes'; then
32293 GSAlphaDevice=pngalpha
32294else
32295 GSAlphaDevice=pnmraw
32296fi
32297GSColorDevice=pnmraw
32298GSCMYKDevice=pam
32299GSMonoDevice=pbmraw
32300GSPDFDevice=pdfwrite
32301GSPSDevice=pswrite
32302GSEPSDevice=epswrite
32303GSVersion='unknown'
32304if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032306$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032308$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032310$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032312$as_echo_n "checking for Ghostscript version... " >&6; }
32313 if GSVersion=`$PSDelegate --version`; then
32314 :
32315 else
32316 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32317 fi
cristy8b350f62009-11-15 23:12:43 +000032318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032319$as_echo "$GSVersion" >&6; }
32320
32321 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032323$as_echo_n "checking for gs alpha device... " >&6; }
32324 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32325 :
32326 else
32327 GSAlphaDevice=pnmraw
32328 fi
cristy8b350f62009-11-15 23:12:43 +000032329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032330$as_echo "$GSAlphaDevice" >&6; }
32331
32332 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032334$as_echo_n "checking for gs color device... " >&6; }
32335 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32336 :
32337 else
32338 GSColorDevice=pnmraw
32339 fi
cristy8b350f62009-11-15 23:12:43 +000032340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032341$as_echo "$GSColorDevice" >&6; }
32342
32343 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032345$as_echo_n "checking for gs CMYK device... " >&6; }
32346 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32347 :
32348 else
32349 GSCMYKDevice=bmpsep8
32350 fi
cristy8b350f62009-11-15 23:12:43 +000032351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032352$as_echo "$GSCMYKDevice" >&6; }
32353
32354 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032356$as_echo_n "checking for gs mono device... " >&6; }
32357 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32358 :
32359 else
32360 GSMonoDevice=$GSColorDevice
32361 fi
cristy8b350f62009-11-15 23:12:43 +000032362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032363$as_echo "$GSMonoDevice" >&6; }
32364
32365 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000032366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032367$as_echo_n "checking for gs PDF writing device... " >&6; }
32368 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32369 :
32370 else
32371 GSPDFDevice=nodevice
32372 fi
cristy8b350f62009-11-15 23:12:43 +000032373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032374$as_echo "$GSPDFDevice" >&6; }
32375
32376 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000032377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032378$as_echo_n "checking for gs PS writing device... " >&6; }
32379 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32380 :
32381 else
32382 GSPSDevice=nodevice
32383 fi
cristy8b350f62009-11-15 23:12:43 +000032384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032385$as_echo "$GSPSDevice" >&6; }
32386
32387 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000032388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032389$as_echo_n "checking for gs EPS writing device... " >&6; }
32390 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32391 :
32392 else
32393 GSEPSDevice=nodevice
32394 fi
cristy8b350f62009-11-15 23:12:43 +000032395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032396$as_echo "$GSEPSDevice" >&6; }
32397fi
32398
32399
32400
32401
32402
32403
32404
32405
32406
32407
32408#
32409# PerlMagick-related configuration
32410#
32411
32412# Look for PERL if PerlMagick requested
32413# If name/path of desired PERL interpreter is specified, look for that one first
32414have_perl='no'
32415if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000032416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032417$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032419$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032421$as_echo "" >&6; }
32422 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032424$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032425if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032426 $as_echo_n "(cached) " >&6
32427else
32428 ac_cv_path_PERL="$with_perl"
32429fi
cristy8b350f62009-11-15 23:12:43 +000032430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032431$as_echo "$ac_cv_path_PERL" >&6; };
32432 PERL=$ac_cv_path_PERL
32433 have_perl="$ac_cv_path_PERL"
32434 else
32435 for ac_prog in perl perl5
32436do
32437 # Extract the first word of "$ac_prog", so it can be a program name with args.
32438set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032440$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032441if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032442 $as_echo_n "(cached) " >&6
32443else
32444 case $PERL in
32445 [\\/]* | ?:[\\/]*)
32446 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32447 ;;
32448 *)
32449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32450for as_dir in $PATH
32451do
32452 IFS=$as_save_IFS
32453 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032454 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32456 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032458 break 2
32459 fi
32460done
cristy8b350f62009-11-15 23:12:43 +000032461 done
cristy3ed852e2009-09-05 21:47:34 +000032462IFS=$as_save_IFS
32463
32464 ;;
32465esac
32466fi
32467PERL=$ac_cv_path_PERL
32468if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032470$as_echo "$PERL" >&6; }
32471else
cristy8b350f62009-11-15 23:12:43 +000032472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032473$as_echo "no" >&6; }
32474fi
32475
32476
32477 test -n "$PERL" && break
32478done
32479 if test "$ac_cv_path_PERL"; then
32480 have_perl="$ac_cv_path_PERL"
32481 fi
32482 fi
32483fi
32484
cristy949301e2010-01-06 01:38:40 +000032485if test "$with_perl" != 'yes' ; then
32486 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32487fi
32488
32489PERL_SUPPORTS_DESTDIR='no'
32490
cristy3ed852e2009-09-05 21:47:34 +000032491with_perl_static='no'
32492with_perl_dynamic='no'
32493if test "$have_perl" != 'no'; then
32494 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32495 with_perl_static='yes'
32496 fi
32497 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32498 with_perl_dynamic='yes'
32499 fi
32500 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000032501
32502
32503
32504
32505 if test -n "$PERL"; then :
32506
32507 ax_perl_version="5.8.1"
32508
32509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32510$as_echo_n "checking for perl version... " >&6; }
32511
32512 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32513
32514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32515$as_echo "$perl_version" >&6; }
32516
32517 PERL_VERSION=$perl_version
32518
32519
32520
32521
32522
32523 # Used to indicate true or false condition
32524 ax_compare_version=false
32525
32526 # Convert the two version strings to be compared into a format that
32527 # allows a simple string comparison. The end result is that a version
32528 # string of the form 1.12.5-r617 will be converted to the form
32529 # 0001001200050617. In other words, each number is zero padded to four
32530 # digits, and non digits are removed.
32531
32532 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32533 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32534 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32535 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32536 -e 's/[^0-9]//g'`
32537
32538
32539 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32540 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32541 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32542 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32543 -e 's/[^0-9]//g'`
32544
32545
32546 ax_compare_version=`echo "x$ax_compare_version_A
32547x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32548
32549
32550
32551 if test "$ax_compare_version" = "true" ; then
32552
32553 :
32554 PERL_SUPPORTS_DESTDIR='yes'
32555
32556 else
32557 :
32558 PERL_SUPPORTS_DESTDIR='no'
32559
32560 fi
32561
32562
32563else
32564
32565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32566$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32567 PERL_SUPPORTS_DESTDIR='no'
32568
cristy3ed852e2009-09-05 21:47:34 +000032569fi
cristy73bd4a52010-10-05 11:24:23 +000032570
32571fi
32572 if test "$have_perl" != 'no'; then
32573 WITH_PERL_TRUE=
32574 WITH_PERL_FALSE='#'
32575else
32576 WITH_PERL_TRUE='#'
32577 WITH_PERL_FALSE=
32578fi
32579
32580 if test $with_perl_static = 'yes'; then
32581 WITH_PERL_STATIC_TRUE=
32582 WITH_PERL_STATIC_FALSE='#'
32583else
32584 WITH_PERL_STATIC_TRUE='#'
32585 WITH_PERL_STATIC_FALSE=
32586fi
32587
32588 if test $with_perl_dynamic = 'yes'; then
32589 WITH_PERL_DYNAMIC_TRUE=
32590 WITH_PERL_DYNAMIC_FALSE='#'
32591else
32592 WITH_PERL_DYNAMIC_TRUE='#'
32593 WITH_PERL_DYNAMIC_FALSE=
32594fi
32595
cristy3ed852e2009-09-05 21:47:34 +000032596
32597
32598# Determine path to pick up MagickCore library from for use with building PerlMagick
32599MAGICKCORE_PATH="${LIB_DIR}"
32600if test $with_perl_static = 'yes'; then
32601 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32602 libtool_objdir=$objdir
32603
32604 # Linker search path to library, followed by -lMagickCore
32605 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32606fi
32607
32608
32609# Create a simple string containing format names for all delegate libraries
32610DELEGATES=''
32611if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32612if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32613if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32614if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32615if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32616if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32617if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32618if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32619if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32620if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32621if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32622if test "$have_jpeg" = 'yes'; then
32623 DELEGATES="$DELEGATES jpeg";
32624 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32625fi
32626if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000032627if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000032628if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32629if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32630if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32631if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32632if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32633if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32634if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32635if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32636if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32637if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32638if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32639
32640
32641
32642#
32643# Handle special compiler flags
32644#
32645
32646# Add '-p' if prof source profiling support enabled
32647if test "$enable_prof" = 'yes'; then
32648 CFLAGS="-p $CFLAGS"
32649 CXXFLAGS="-p $CXXFLAGS"
32650 LDFLAGS="-p $LDFLAGS"
32651fi
32652
32653# Add '-pg' if gprof source profiling support enabled
32654if test "$enable_gprof" = 'yes'; then
32655 CFLAGS="-pg $CFLAGS"
32656 CXXFLAGS="-pg $CXXFLAGS"
32657 LDFLAGS="-pg $LDFLAGS"
32658fi
32659
32660# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32661# This is a gcc-specific feature
32662if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032664$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032665if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032666 $as_echo_n "(cached) " >&6
32667else
32668 ac_check_lib_save_LIBS=$LIBS
32669LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032671/* end confdefs.h. */
32672
32673/* Override any GCC internal prototype to avoid an error.
32674 Use char because int might match the return type of a GCC
32675 builtin and then its argument prototype would still apply. */
32676#ifdef __cplusplus
32677extern "C"
32678#endif
32679char _gcov_init ();
32680int
32681main ()
32682{
32683return _gcov_init ();
32684 ;
32685 return 0;
32686}
32687_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032688if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032689 ac_cv_lib_gcov__gcov_init=yes
32690else
cristy8b350f62009-11-15 23:12:43 +000032691 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032692fi
cristy8b350f62009-11-15 23:12:43 +000032693rm -f core conftest.err conftest.$ac_objext \
32694 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032695LIBS=$ac_check_lib_save_LIBS
32696fi
cristy8b350f62009-11-15 23:12:43 +000032697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032698$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032699if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032700 cat >>confdefs.h <<_ACEOF
32701#define HAVE_LIBGCOV 1
32702_ACEOF
32703
32704 LIBS="-lgcov $LIBS"
32705
32706fi
32707
cristy8b350f62009-11-15 23:12:43 +000032708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032709$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032710if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032711 $as_echo_n "(cached) " >&6
32712else
32713 ac_check_lib_save_LIBS=$LIBS
32714LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032716/* end confdefs.h. */
32717
32718/* Override any GCC internal prototype to avoid an error.
32719 Use char because int might match the return type of a GCC
32720 builtin and then its argument prototype would still apply. */
32721#ifdef __cplusplus
32722extern "C"
32723#endif
32724char __gcov_init ();
32725int
32726main ()
32727{
32728return __gcov_init ();
32729 ;
32730 return 0;
32731}
32732_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032733if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032734 ac_cv_lib_gcov___gcov_init=yes
32735else
cristy8b350f62009-11-15 23:12:43 +000032736 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032737fi
cristy8b350f62009-11-15 23:12:43 +000032738rm -f core conftest.err conftest.$ac_objext \
32739 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032740LIBS=$ac_check_lib_save_LIBS
32741fi
cristy8b350f62009-11-15 23:12:43 +000032742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032743$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032744if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032745 cat >>confdefs.h <<_ACEOF
32746#define HAVE_LIBGCOV 1
32747_ACEOF
32748
32749 LIBS="-lgcov $LIBS"
32750
32751fi
32752
32753 case "$target_os" in
32754 darwin*)
32755 OSX_GCOV_LDFLAG="-Wl,-single_module"
32756 ;;
32757 *)
32758 OSX_GCOV_LDFLAG=""
32759 ;;
32760 esac
32761
32762 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32763 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32764 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32765fi
32766
32767#
32768# Build library dependency list for libMagickCore
32769#
32770
32771MAGICK_LIBLTDL='' # Libltdl for build
32772MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32773MAGICK_LTDLDEPS='' # extra libltdl dependencies
32774if test "$with_ltdl" != 'no'
32775then
32776 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32777 MAGICK_API_LIBLTDL='-lltdl'
32778 fi
32779 MAGICK_LIBLTDL=${LIBLTDL}
32780 MAGICK_LTDLDEPS=${LTDLDEPS}
32781fi
32782
32783
32784
32785if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000032786 MAGICK_DEP_LIBS="$LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032787else
cristy2e8b51d2009-10-17 18:26:15 +000032788 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $BZLIB_LIBS $OPENEXR_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032789fi
32790
32791
32792#
32793# Remove extraneous spaces from output variables (asthetic)
32794#
32795X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32796X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32797X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32798X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32799
32800CC=`echo $CC | sed -e 's/ */ /g'`
32801CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32802CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32803CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32804DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32805DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32806LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32807TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32808MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32809#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32810
32811# Pass only user-provided LIBS as "global" libraries
32812LIBS=$USER_LIBS
32813
32814#AC_SUBST(CPPFLAGS)
32815
32816#AC_SUBST(LDFLAGS)
32817#AC_SUBST(X_PRE_LIBS)
32818#AC_SUBST(X_LIBS)
32819#AC_SUBST(X_EXTRA_LIBS)
32820
32821MAGICK_CFLAGS=$CFLAGS
32822MAGICK_CXXFLAGS="$CXXFLAGS"
32823MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32824MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32825MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32826MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32827
32828
32829
32830
32831
32832
32833
32834
cristyfd9dcd42010-08-08 18:07:02 +000032835
cristy3ed852e2009-09-05 21:47:34 +000032836# Set configured scripts to executable.
32837ac_config_commands="$ac_config_commands default"
32838
32839ac_config_commands="$ac_config_commands MagickCore-config.in"
32840
32841ac_config_commands="$ac_config_commands Magick-config.in"
32842
32843ac_config_commands="$ac_config_commands MagickWand-config.in"
32844
32845ac_config_commands="$ac_config_commands Wand-config.in"
32846
32847ac_config_commands="$ac_config_commands Magick++-config.in"
32848
32849ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32850
32851
cristy8b350f62009-11-15 23:12:43 +000032852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032853$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032855$as_echo "Update ImageMagick configuration" >&6; }
32856cat >confcache <<\_ACEOF
32857# This file is a shell script that caches the results of configure
32858# tests run on this system so they can be shared between configure
32859# scripts and configure runs, see configure's option --config-cache.
32860# It is not useful on other systems. If it contains results you don't
32861# want to keep, you may remove or edit it.
32862#
32863# config.status only pays attention to the cache file if you give it
32864# the --recheck option to rerun configure.
32865#
32866# `ac_cv_env_foo' variables (set or unset) will be overridden when
32867# loading this file, other *unset* `ac_cv_foo' will be assigned the
32868# following values.
32869
32870_ACEOF
32871
32872# The following way of writing the cache mishandles newlines in values,
32873# but we know of no workaround that is simple, portable, and efficient.
32874# So, we kill variables containing newlines.
32875# Ultrix sh set writes to stderr and can't be redirected directly,
32876# and sets the high bit in the cache file unless we assign to the vars.
32877(
32878 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32879 eval ac_val=\$$ac_var
32880 case $ac_val in #(
32881 *${as_nl}*)
32882 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032883 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032884$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32885 esac
32886 case $ac_var in #(
32887 _ | IFS | as_nl) ;; #(
32888 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032889 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032890 esac ;;
32891 esac
32892 done
32893
32894 (set) 2>&1 |
32895 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32896 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032897 # `set' does not quote correctly, so add quotes: double-quote
32898 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032899 sed -n \
32900 "s/'/'\\\\''/g;
32901 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32902 ;; #(
32903 *)
32904 # `set' quotes correctly as required by POSIX, so do not add quotes.
32905 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32906 ;;
32907 esac |
32908 sort
32909) |
32910 sed '
32911 /^ac_cv_env_/b end
32912 t clear
32913 :clear
32914 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32915 t end
32916 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32917 :end' >>confcache
32918if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32919 if test -w "$cache_file"; then
32920 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032921 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032922$as_echo "$as_me: updating cache $cache_file" >&6;}
32923 cat confcache >$cache_file
32924 else
cristy8b350f62009-11-15 23:12:43 +000032925 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032926$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32927 fi
32928fi
32929rm -f confcache
32930
32931test "x$prefix" = xNONE && prefix=$ac_default_prefix
32932# Let make expand exec_prefix.
32933test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32934
32935DEFS=-DHAVE_CONFIG_H
32936
32937ac_libobjs=
32938ac_ltlibobjs=
32939for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32940 # 1. Remove the extension, and $U if already installed.
32941 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32942 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32943 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32944 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032945 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32946 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032947done
32948LIBOBJS=$ac_libobjs
32949
32950LTLIBOBJS=$ac_ltlibobjs
32951
32952
cristy73bd4a52010-10-05 11:24:23 +000032953 if test -n "$EXEEXT"; then
32954 am__EXEEXT_TRUE=
32955 am__EXEEXT_FALSE='#'
32956else
32957 am__EXEEXT_TRUE='#'
32958 am__EXEEXT_FALSE=
32959fi
cristy3ed852e2009-09-05 21:47:34 +000032960
cristy73bd4a52010-10-05 11:24:23 +000032961if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32962 as_fn_error "conditional \"AMDEP\" was never defined.
32963Usually this means the macro was only invoked conditionally." "$LINENO" 5
32964fi
32965if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32966 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32967Usually this means the macro was only invoked conditionally." "$LINENO" 5
32968fi
32969if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32970 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32971Usually this means the macro was only invoked conditionally." "$LINENO" 5
32972fi
32973if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32974 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32975Usually this means the macro was only invoked conditionally." "$LINENO" 5
32976fi
32977if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
32978 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
32979Usually this means the macro was only invoked conditionally." "$LINENO" 5
32980fi
32981if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
32982 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
32983Usually this means the macro was only invoked conditionally." "$LINENO" 5
32984fi
32985if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
32986 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
32987Usually this means the macro was only invoked conditionally." "$LINENO" 5
32988fi
32989if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
32990 as_fn_error "conditional \"USING_CL\" was never defined.
32991Usually this means the macro was only invoked conditionally." "$LINENO" 5
32992fi
32993if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32994 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32995Usually this means the macro was only invoked conditionally." "$LINENO" 5
32996fi
32997if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32998 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
32999Usually this means the macro was only invoked conditionally." "$LINENO" 5
33000fi
33001if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33002 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
33003Usually this means the macro was only invoked conditionally." "$LINENO" 5
33004fi
33005LT_CONFIG_H=config/config.h
33006
33007 _ltdl_libobjs=
33008 _ltdl_ltlibobjs=
33009 if test -n "$_LT_LIBOBJS"; then
33010 # Remove the extension.
33011 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
33012 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
33013 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
33014 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
33015 done
33016 fi
33017 ltdl_LIBOBJS=$_ltdl_libobjs
33018
33019 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
33020
33021
33022if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
33023 as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
33024Usually this means the macro was only invoked conditionally." "$LINENO" 5
33025fi
33026if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
33027 as_fn_error "conditional \"WITH_MODULES\" was never defined.
33028Usually this means the macro was only invoked conditionally." "$LINENO" 5
33029fi
33030if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
33031 as_fn_error "conditional \"WITH_LTDL\" was never defined.
33032Usually this means the macro was only invoked conditionally." "$LINENO" 5
33033fi
33034if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
33035 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
33036Usually this means the macro was only invoked conditionally." "$LINENO" 5
33037fi
33038
33039if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
33040 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
33041Usually this means the macro was only invoked conditionally." "$LINENO" 5
33042fi
33043if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
33044 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
33045Usually this means the macro was only invoked conditionally." "$LINENO" 5
33046fi
33047if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
33048 as_fn_error "conditional \"HasUMEM\" was never defined.
33049Usually this means the macro was only invoked conditionally." "$LINENO" 5
33050fi
33051if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
33052 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
33053Usually this means the macro was only invoked conditionally." "$LINENO" 5
33054fi
33055if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
33056 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
33057Usually this means the macro was only invoked conditionally." "$LINENO" 5
33058fi
33059if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
33060 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
33061Usually this means the macro was only invoked conditionally." "$LINENO" 5
33062fi
33063if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
33064 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
33065Usually this means the macro was only invoked conditionally." "$LINENO" 5
33066fi
33067if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
33068 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
33069Usually this means the macro was only invoked conditionally." "$LINENO" 5
33070fi
33071if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
33072 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
33073Usually this means the macro was only invoked conditionally." "$LINENO" 5
33074fi
33075if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
33076 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
33077Usually this means the macro was only invoked conditionally." "$LINENO" 5
33078fi
33079if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
33080 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
33081Usually this means the macro was only invoked conditionally." "$LINENO" 5
33082fi
33083if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
33084 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
33085Usually this means the macro was only invoked conditionally." "$LINENO" 5
33086fi
33087if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
33088 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
33089Usually this means the macro was only invoked conditionally." "$LINENO" 5
33090fi
33091if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
33092 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
33093Usually this means the macro was only invoked conditionally." "$LINENO" 5
33094fi
33095if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
33096 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
33097Usually this means the macro was only invoked conditionally." "$LINENO" 5
33098fi
33099if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
33100 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
33101Usually this means the macro was only invoked conditionally." "$LINENO" 5
33102fi
33103if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
33104 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
33105Usually this means the macro was only invoked conditionally." "$LINENO" 5
33106fi
33107if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
33108 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
33109Usually this means the macro was only invoked conditionally." "$LINENO" 5
33110fi
33111if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
33112 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
33113Usually this means the macro was only invoked conditionally." "$LINENO" 5
33114fi
33115if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
33116 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
33117Usually this means the macro was only invoked conditionally." "$LINENO" 5
33118fi
33119if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
33120 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
33121Usually this means the macro was only invoked conditionally." "$LINENO" 5
33122fi
33123if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
33124 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
33125Usually this means the macro was only invoked conditionally." "$LINENO" 5
33126fi
33127if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
33128 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
33129Usually this means the macro was only invoked conditionally." "$LINENO" 5
33130fi
33131if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
33132 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
33133Usually this means the macro was only invoked conditionally." "$LINENO" 5
33134fi
33135if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
33136 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
33137Usually this means the macro was only invoked conditionally." "$LINENO" 5
33138fi
33139if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
33140 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
33141Usually this means the macro was only invoked conditionally." "$LINENO" 5
33142fi
33143if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
33144 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
33145Usually this means the macro was only invoked conditionally." "$LINENO" 5
33146fi
33147if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
33148 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
33149Usually this means the macro was only invoked conditionally." "$LINENO" 5
33150fi
33151if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
33152 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
33153Usually this means the macro was only invoked conditionally." "$LINENO" 5
33154fi
33155if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
33156 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
33157Usually this means the macro was only invoked conditionally." "$LINENO" 5
33158fi
33159if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
33160 as_fn_error "conditional \"WITH_PERL\" was never defined.
33161Usually this means the macro was only invoked conditionally." "$LINENO" 5
33162fi
33163if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
33164 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
33165Usually this means the macro was only invoked conditionally." "$LINENO" 5
33166fi
33167if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
33168 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
33169Usually this means the macro was only invoked conditionally." "$LINENO" 5
33170fi
cristy3ed852e2009-09-05 21:47:34 +000033171
33172: ${CONFIG_STATUS=./config.status}
33173ac_write_fail=0
33174ac_clean_files_save=$ac_clean_files
33175ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000033176{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000033177$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000033178as_write_fail=0
33179cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033180#! $SHELL
33181# Generated by $as_me.
33182# Run this file to recreate the current configuration.
33183# Compiler output produced by configure, useful for debugging
33184# configure, is in config.log if it exists.
33185
33186debug=false
33187ac_cs_recheck=false
33188ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000033189
cristy8b350f62009-11-15 23:12:43 +000033190SHELL=\${CONFIG_SHELL-$SHELL}
33191export SHELL
33192_ASEOF
33193cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33194## -------------------- ##
33195## M4sh Initialization. ##
33196## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000033197
33198# Be more Bourne compatible
33199DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000033200if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000033201 emulate sh
33202 NULLCMD=:
33203 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33204 # is contrary to our usage. Disable this feature.
33205 alias -g '${1+"$@"}'='"$@"'
33206 setopt NO_GLOB_SUBST
33207else
cristy8b350f62009-11-15 23:12:43 +000033208 case `(set -o) 2>/dev/null` in #(
33209 *posix*) :
33210 set -o posix ;; #(
33211 *) :
33212 ;;
cristy3ed852e2009-09-05 21:47:34 +000033213esac
cristy3ed852e2009-09-05 21:47:34 +000033214fi
33215
33216
cristy3ed852e2009-09-05 21:47:34 +000033217as_nl='
33218'
33219export as_nl
33220# Printing a long string crashes Solaris 7 /usr/bin/printf.
33221as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33222as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33223as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000033224# Prefer a ksh shell builtin over an external printf program on Solaris,
33225# but without wasting forks for bash or zsh.
33226if test -z "$BASH_VERSION$ZSH_VERSION" \
33227 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33228 as_echo='print -r --'
33229 as_echo_n='print -rn --'
33230elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000033231 as_echo='printf %s\n'
33232 as_echo_n='printf %s'
33233else
33234 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33235 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33236 as_echo_n='/usr/ucb/echo -n'
33237 else
33238 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33239 as_echo_n_body='eval
33240 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000033241 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000033242 *"$as_nl"*)
33243 expr "X$arg" : "X\\(.*\\)$as_nl";
33244 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33245 esac;
33246 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33247 '
33248 export as_echo_n_body
33249 as_echo_n='sh -c $as_echo_n_body as_echo'
33250 fi
33251 export as_echo_body
33252 as_echo='sh -c $as_echo_body as_echo'
33253fi
33254
33255# The user is always right.
33256if test "${PATH_SEPARATOR+set}" != set; then
33257 PATH_SEPARATOR=:
33258 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33259 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33260 PATH_SEPARATOR=';'
33261 }
33262fi
33263
cristy3ed852e2009-09-05 21:47:34 +000033264
33265# IFS
33266# We need space, tab and new line, in precisely that order. Quoting is
33267# there to prevent editors from complaining about space-tab.
33268# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33269# splitting by setting IFS to empty value.)
33270IFS=" "" $as_nl"
33271
33272# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000033273case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033274 *[\\/]* ) as_myself=$0 ;;
33275 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33276for as_dir in $PATH
33277do
33278 IFS=$as_save_IFS
33279 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033280 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33281 done
cristy3ed852e2009-09-05 21:47:34 +000033282IFS=$as_save_IFS
33283
33284 ;;
33285esac
33286# We did not find ourselves, most probably we were run as `sh COMMAND'
33287# in which case we are not to be found in the path.
33288if test "x$as_myself" = x; then
33289 as_myself=$0
33290fi
33291if test ! -f "$as_myself"; then
33292 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033293 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033294fi
33295
cristy8b350f62009-11-15 23:12:43 +000033296# Unset variables that we do not need and which cause bugs (e.g. in
33297# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33298# suppresses any "Segmentation fault" message there. '((' could
33299# trigger a bug in pdksh 5.2.14.
33300for as_var in BASH_ENV ENV MAIL MAILPATH
33301do eval test x\${$as_var+set} = xset \
33302 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033303done
33304PS1='$ '
33305PS2='> '
33306PS4='+ '
33307
33308# NLS nuisances.
33309LC_ALL=C
33310export LC_ALL
33311LANGUAGE=C
33312export LANGUAGE
33313
cristy8b350f62009-11-15 23:12:43 +000033314# CDPATH.
33315(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33316
33317
cristyf6fcb5d2010-09-24 01:19:13 +000033318# as_fn_error ERROR [LINENO LOG_FD]
33319# ---------------------------------
cristy8b350f62009-11-15 23:12:43 +000033320# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33321# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristyf6fcb5d2010-09-24 01:19:13 +000033322# script with status $?, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000033323as_fn_error ()
33324{
cristyf6fcb5d2010-09-24 01:19:13 +000033325 as_status=$?; test $as_status -eq 0 && as_status=1
33326 if test "$3"; then
33327 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33328 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
cristy8b350f62009-11-15 23:12:43 +000033329 fi
cristyf6fcb5d2010-09-24 01:19:13 +000033330 $as_echo "$as_me: error: $1" >&2
cristy8b350f62009-11-15 23:12:43 +000033331 as_fn_exit $as_status
33332} # as_fn_error
33333
33334
33335# as_fn_set_status STATUS
33336# -----------------------
33337# Set $? to STATUS, without forking.
33338as_fn_set_status ()
33339{
33340 return $1
33341} # as_fn_set_status
33342
33343# as_fn_exit STATUS
33344# -----------------
33345# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33346as_fn_exit ()
33347{
33348 set +e
33349 as_fn_set_status $1
33350 exit $1
33351} # as_fn_exit
33352
33353# as_fn_unset VAR
33354# ---------------
33355# Portably unset VAR.
33356as_fn_unset ()
33357{
33358 { eval $1=; unset $1;}
33359}
33360as_unset=as_fn_unset
33361# as_fn_append VAR VALUE
33362# ----------------------
33363# Append the text in VALUE to the end of the definition contained in VAR. Take
33364# advantage of any shell optimizations that allow amortized linear growth over
33365# repeated appends, instead of the typical quadratic growth present in naive
33366# implementations.
33367if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33368 eval 'as_fn_append ()
33369 {
33370 eval $1+=\$2
33371 }'
33372else
33373 as_fn_append ()
33374 {
33375 eval $1=\$$1\$2
33376 }
33377fi # as_fn_append
33378
33379# as_fn_arith ARG...
33380# ------------------
33381# Perform arithmetic evaluation on the ARGs, and store the result in the
33382# global $as_val. Take advantage of shells that can avoid forks. The arguments
33383# must be portable across $(()) and expr.
33384if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33385 eval 'as_fn_arith ()
33386 {
33387 as_val=$(( $* ))
33388 }'
33389else
33390 as_fn_arith ()
33391 {
33392 as_val=`expr "$@" || test $? -eq 1`
33393 }
33394fi # as_fn_arith
33395
33396
cristy3ed852e2009-09-05 21:47:34 +000033397if expr a : '\(a\)' >/dev/null 2>&1 &&
33398 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33399 as_expr=expr
33400else
33401 as_expr=false
33402fi
33403
33404if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33405 as_basename=basename
33406else
33407 as_basename=false
33408fi
33409
cristy8b350f62009-11-15 23:12:43 +000033410if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33411 as_dirname=dirname
33412else
33413 as_dirname=false
33414fi
cristy3ed852e2009-09-05 21:47:34 +000033415
cristy3ed852e2009-09-05 21:47:34 +000033416as_me=`$as_basename -- "$0" ||
33417$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33418 X"$0" : 'X\(//\)$' \| \
33419 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33420$as_echo X/"$0" |
33421 sed '/^.*\/\([^/][^/]*\)\/*$/{
33422 s//\1/
33423 q
33424 }
33425 /^X\/\(\/\/\)$/{
33426 s//\1/
33427 q
33428 }
33429 /^X\/\(\/\).*/{
33430 s//\1/
33431 q
33432 }
33433 s/.*/./; q'`
33434
cristy8b350f62009-11-15 23:12:43 +000033435# Avoid depending upon Character Ranges.
33436as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33437as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33438as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33439as_cr_digits='0123456789'
33440as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000033441
33442ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000033443case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000033444-n*)
cristy8b350f62009-11-15 23:12:43 +000033445 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000033446 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000033447 xy) ECHO_C='\c';;
33448 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33449 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000033450 esac;;
33451*)
33452 ECHO_N='-n';;
33453esac
cristy3ed852e2009-09-05 21:47:34 +000033454
33455rm -f conf$$ conf$$.exe conf$$.file
33456if test -d conf$$.dir; then
33457 rm -f conf$$.dir/conf$$.file
33458else
33459 rm -f conf$$.dir
33460 mkdir conf$$.dir 2>/dev/null
33461fi
33462if (echo >conf$$.file) 2>/dev/null; then
33463 if ln -s conf$$.file conf$$ 2>/dev/null; then
33464 as_ln_s='ln -s'
33465 # ... but there are two gotchas:
33466 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33467 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33468 # In both cases, we have to default to `cp -p'.
33469 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33470 as_ln_s='cp -p'
33471 elif ln conf$$.file conf$$ 2>/dev/null; then
33472 as_ln_s=ln
33473 else
33474 as_ln_s='cp -p'
33475 fi
33476else
33477 as_ln_s='cp -p'
33478fi
33479rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33480rmdir conf$$.dir 2>/dev/null
33481
cristy8b350f62009-11-15 23:12:43 +000033482
33483# as_fn_mkdir_p
33484# -------------
33485# Create "$as_dir" as a directory, including parents if necessary.
33486as_fn_mkdir_p ()
33487{
33488
33489 case $as_dir in #(
33490 -*) as_dir=./$as_dir;;
33491 esac
33492 test -d "$as_dir" || eval $as_mkdir_p || {
33493 as_dirs=
33494 while :; do
33495 case $as_dir in #(
33496 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33497 *) as_qdir=$as_dir;;
33498 esac
33499 as_dirs="'$as_qdir' $as_dirs"
33500 as_dir=`$as_dirname -- "$as_dir" ||
33501$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33502 X"$as_dir" : 'X\(//\)[^/]' \| \
33503 X"$as_dir" : 'X\(//\)$' \| \
33504 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33505$as_echo X"$as_dir" |
33506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33507 s//\1/
33508 q
33509 }
33510 /^X\(\/\/\)[^/].*/{
33511 s//\1/
33512 q
33513 }
33514 /^X\(\/\/\)$/{
33515 s//\1/
33516 q
33517 }
33518 /^X\(\/\).*/{
33519 s//\1/
33520 q
33521 }
33522 s/.*/./; q'`
33523 test -d "$as_dir" && break
33524 done
33525 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristyf6fcb5d2010-09-24 01:19:13 +000033526 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000033527
33528
33529} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033530if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033531 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000033532else
33533 test -d ./-p && rmdir ./-p
33534 as_mkdir_p=false
33535fi
33536
33537if test -x / >/dev/null 2>&1; then
33538 as_test_x='test -x'
33539else
33540 if ls -dL / >/dev/null 2>&1; then
33541 as_ls_L_option=L
33542 else
33543 as_ls_L_option=
33544 fi
33545 as_test_x='
33546 eval sh -c '\''
33547 if test -d "$1"; then
33548 test -d "$1/.";
33549 else
cristy8b350f62009-11-15 23:12:43 +000033550 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000033551 -*)set "./$1";;
33552 esac;
cristy8b350f62009-11-15 23:12:43 +000033553 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000033554 ???[sx]*):;;*)false;;esac;fi
33555 '\'' sh
33556 '
33557fi
33558as_executable_p=$as_test_x
33559
33560# Sed expression to map a string onto a valid CPP name.
33561as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33562
33563# Sed expression to map a string onto a valid variable name.
33564as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33565
33566
33567exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000033568## ----------------------------------- ##
33569## Main body of $CONFIG_STATUS script. ##
33570## ----------------------------------- ##
33571_ASEOF
33572test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033573
cristy8b350f62009-11-15 23:12:43 +000033574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33575# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000033576# report actual input values of CONFIG_FILES etc. instead of their
33577# values after options handling.
33578ac_log="
cristy56225732010-09-04 23:44:25 +000033579This file was extended by ImageMagick $as_me 6.6.4, which was
cristyf6fcb5d2010-09-24 01:19:13 +000033580generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000033581
33582 CONFIG_FILES = $CONFIG_FILES
33583 CONFIG_HEADERS = $CONFIG_HEADERS
33584 CONFIG_LINKS = $CONFIG_LINKS
33585 CONFIG_COMMANDS = $CONFIG_COMMANDS
33586 $ $0 $@
33587
33588on `(hostname || uname -n) 2>/dev/null | sed 1q`
33589"
33590
33591_ACEOF
33592
33593case $ac_config_files in *"
33594"*) set x $ac_config_files; shift; ac_config_files=$*;;
33595esac
33596
33597case $ac_config_headers in *"
33598"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33599esac
33600
33601
33602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33603# Files that config.status was made for.
33604config_files="$ac_config_files"
33605config_headers="$ac_config_headers"
33606config_commands="$ac_config_commands"
33607
33608_ACEOF
33609
33610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33611ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000033612\`$as_me' instantiates files and other configuration actions
33613from templates according to the current configuration. Unless the files
33614and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000033615
cristy8b350f62009-11-15 23:12:43 +000033616Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000033617
33618 -h, --help print this help, then exit
33619 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000033620 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000033621 -q, --quiet, --silent
33622 do not print progress messages
33623 -d, --debug don't remove temporary files
33624 --recheck update $as_me by reconfiguring in the same conditions
33625 --file=FILE[:TEMPLATE]
33626 instantiate the configuration file FILE
33627 --header=FILE[:TEMPLATE]
33628 instantiate the configuration header FILE
33629
33630Configuration files:
33631$config_files
33632
33633Configuration headers:
33634$config_headers
33635
33636Configuration commands:
33637$config_commands
33638
cristy8b350f62009-11-15 23:12:43 +000033639Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000033640
33641_ACEOF
33642cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000033643ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000033644ac_cs_version="\\
cristy56225732010-09-04 23:44:25 +000033645ImageMagick config.status 6.6.4
cristyf6fcb5d2010-09-24 01:19:13 +000033646configured by $0, generated by GNU Autoconf 2.65,
cristycd4c5312009-11-22 01:19:08 +000033647 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000033648
cristyf6fcb5d2010-09-24 01:19:13 +000033649Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033650This config.status script is free software; the Free Software Foundation
33651gives unlimited permission to copy, distribute and modify it."
33652
33653ac_pwd='$ac_pwd'
33654srcdir='$srcdir'
33655INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000033656MKDIR_P='$MKDIR_P'
33657AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000033658test -n "\$AWK" || AWK=awk
33659_ACEOF
33660
33661cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33662# The default lists apply if the user does not specify any file.
33663ac_need_defaults=:
33664while test $# != 0
33665do
33666 case $1 in
33667 --*=*)
33668 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33669 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33670 ac_shift=:
33671 ;;
33672 *)
33673 ac_option=$1
33674 ac_optarg=$2
33675 ac_shift=shift
33676 ;;
33677 esac
33678
33679 case $ac_option in
33680 # Handling of the options.
33681 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33682 ac_cs_recheck=: ;;
33683 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33684 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000033685 --config | --confi | --conf | --con | --co | --c )
33686 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000033687 --debug | --debu | --deb | --de | --d | -d )
33688 debug=: ;;
33689 --file | --fil | --fi | --f )
33690 $ac_shift
33691 case $ac_optarg in
33692 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33693 esac
cristy8b350f62009-11-15 23:12:43 +000033694 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033695 ac_need_defaults=false;;
33696 --header | --heade | --head | --hea )
33697 $ac_shift
33698 case $ac_optarg in
33699 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33700 esac
cristy8b350f62009-11-15 23:12:43 +000033701 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033702 ac_need_defaults=false;;
33703 --he | --h)
33704 # Conflict between --help and --header
cristyf6fcb5d2010-09-24 01:19:13 +000033705 as_fn_error "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033706Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000033707 --help | --hel | -h )
33708 $as_echo "$ac_cs_usage"; exit ;;
33709 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33710 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33711 ac_cs_silent=: ;;
33712
33713 # This is an error.
cristyf6fcb5d2010-09-24 01:19:13 +000033714 -*) as_fn_error "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033715Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000033716
cristy8b350f62009-11-15 23:12:43 +000033717 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000033718 ac_need_defaults=false ;;
33719
33720 esac
33721 shift
33722done
33723
33724ac_configure_extra_args=
33725
33726if $ac_cs_silent; then
33727 exec 6>/dev/null
33728 ac_configure_extra_args="$ac_configure_extra_args --silent"
33729fi
33730
33731_ACEOF
33732cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33733if \$ac_cs_recheck; then
33734 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33735 shift
33736 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33737 CONFIG_SHELL='$SHELL'
33738 export CONFIG_SHELL
33739 exec "\$@"
33740fi
33741
33742_ACEOF
33743cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33744exec 5>>config.log
33745{
33746 echo
33747 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33748## Running $as_me. ##
33749_ASBOX
33750 $as_echo "$ac_log"
33751} >&5
33752
33753_ACEOF
33754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000033755#
33756# INIT-COMMANDS
33757#
33758PACKAGE="$PACKAGE"
33759AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33760
33761
33762# The HP-UX ksh and POSIX shell print the target directory to stdout
33763# if CDPATH is set.
33764(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33765
33766sed_quote_subst='$sed_quote_subst'
33767double_quote_subst='$double_quote_subst'
33768delay_variable_subst='$delay_variable_subst'
33769SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
33770Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
33771GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
33772EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
33773FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
33774LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
33775macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
33776macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
33777AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
33778DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33779OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
33780enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
33781enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
33782pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
33783enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
33784host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
33785host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
33786host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
33787build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
33788build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
33789build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
33790NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
33791LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
33792max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
33793ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
33794exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
33795lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
33796lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
33797lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
33798reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
33799reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33800deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
33801file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
33802AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
33803AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33804STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
33805RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
33806old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33807old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33808old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33809CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
33810CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33811compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
33812GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
33813lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
33814lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
33815lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
33816lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33817objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
33818SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
33819ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
33820MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
33821lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
33822lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
33823lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
33824lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
33825lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
33826need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
33827DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
33828NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
33829LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
33830OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33831OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
33832libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
33833shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33834extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33835archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
33836enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
33837export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33838whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33839compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
33840old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33841old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33842archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33843archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33844module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33845module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33846with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
33847allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33848no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33849hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33850hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
33851hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
33852hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
33853hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
33854hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
33855hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33856hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
33857inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
33858link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
33859fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
33860always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
33861export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33862exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33863include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33864prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33865file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
33866variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
33867need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33868need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
33869version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
33870runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33871shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33872shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
33873libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33874library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
33875soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33876postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33877postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33878finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33879finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
33880hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
33881sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33882sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33883hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
33884enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
33885enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
33886enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
33887old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
33888striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
33889compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
33890predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33891postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33892predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
33893postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
33894compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
33895LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33896old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33897compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33898GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33899lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33900lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33901lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33902lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33903lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33904archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33905enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33906export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33907whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33908compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33909old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33910old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33911archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33912archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33913module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33914module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33915with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33916allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33917no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33918hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33919hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33920hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33921hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33922hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33923hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33924hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33925hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33926inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33927link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33928fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33929always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33930export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33931exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33932include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33933prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33934file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33935hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33936compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33937predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33938postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33939predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33940postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33941compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33942
33943LTCC='$LTCC'
33944LTCFLAGS='$LTCFLAGS'
33945compiler='$compiler_DEFAULT'
33946
33947# Quote evaled strings.
33948for var in SED \
33949GREP \
33950EGREP \
33951FGREP \
33952LD \
33953NM \
33954LN_S \
33955lt_SP2NL \
33956lt_NL2SP \
33957reload_flag \
33958deplibs_check_method \
33959file_magic_cmd \
33960AR \
33961AR_FLAGS \
33962STRIP \
33963RANLIB \
33964CC \
33965CFLAGS \
33966compiler \
33967lt_cv_sys_global_symbol_pipe \
33968lt_cv_sys_global_symbol_to_cdecl \
33969lt_cv_sys_global_symbol_to_c_name_address \
33970lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33971SHELL \
33972ECHO \
33973lt_prog_compiler_no_builtin_flag \
33974lt_prog_compiler_wl \
33975lt_prog_compiler_pic \
33976lt_prog_compiler_static \
33977lt_cv_prog_compiler_c_o \
33978need_locks \
33979DSYMUTIL \
33980NMEDIT \
33981LIPO \
33982OTOOL \
33983OTOOL64 \
33984shrext_cmds \
33985export_dynamic_flag_spec \
33986whole_archive_flag_spec \
33987compiler_needs_object \
33988with_gnu_ld \
33989allow_undefined_flag \
33990no_undefined_flag \
33991hardcode_libdir_flag_spec \
33992hardcode_libdir_flag_spec_ld \
33993hardcode_libdir_separator \
33994fix_srcfile_path \
33995exclude_expsyms \
33996include_expsyms \
33997file_list_spec \
33998variables_saved_for_relink \
33999libname_spec \
34000library_names_spec \
34001soname_spec \
34002finish_eval \
34003old_striplib \
34004striplib \
34005compiler_lib_search_dirs \
34006predep_objects \
34007postdep_objects \
34008predeps \
34009postdeps \
34010compiler_lib_search_path \
34011LD_CXX \
34012compiler_CXX \
34013lt_prog_compiler_no_builtin_flag_CXX \
34014lt_prog_compiler_wl_CXX \
34015lt_prog_compiler_pic_CXX \
34016lt_prog_compiler_static_CXX \
34017lt_cv_prog_compiler_c_o_CXX \
34018export_dynamic_flag_spec_CXX \
34019whole_archive_flag_spec_CXX \
34020compiler_needs_object_CXX \
34021with_gnu_ld_CXX \
34022allow_undefined_flag_CXX \
34023no_undefined_flag_CXX \
34024hardcode_libdir_flag_spec_CXX \
34025hardcode_libdir_flag_spec_ld_CXX \
34026hardcode_libdir_separator_CXX \
34027fix_srcfile_path_CXX \
34028exclude_expsyms_CXX \
34029include_expsyms_CXX \
34030file_list_spec_CXX \
34031compiler_lib_search_dirs_CXX \
34032predep_objects_CXX \
34033postdep_objects_CXX \
34034predeps_CXX \
34035postdeps_CXX \
34036compiler_lib_search_path_CXX; do
34037 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
34038 *[\\\\\\\`\\"\\\$]*)
34039 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
34040 ;;
34041 *)
34042 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34043 ;;
34044 esac
34045done
34046
34047# Double-quote double-evaled strings.
34048for var in reload_cmds \
34049old_postinstall_cmds \
34050old_postuninstall_cmds \
34051old_archive_cmds \
34052extract_expsyms_cmds \
34053old_archive_from_new_cmds \
34054old_archive_from_expsyms_cmds \
34055archive_cmds \
34056archive_expsym_cmds \
34057module_cmds \
34058module_expsym_cmds \
34059export_symbols_cmds \
34060prelink_cmds \
34061postinstall_cmds \
34062postuninstall_cmds \
34063finish_cmds \
34064sys_lib_search_path_spec \
34065sys_lib_dlsearch_path_spec \
34066old_archive_cmds_CXX \
34067old_archive_from_new_cmds_CXX \
34068old_archive_from_expsyms_cmds_CXX \
34069archive_cmds_CXX \
34070archive_expsym_cmds_CXX \
34071module_cmds_CXX \
34072module_expsym_cmds_CXX \
34073export_symbols_cmds_CXX \
34074prelink_cmds_CXX; do
34075 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
34076 *[\\\\\\\`\\"\\\$]*)
34077 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
34078 ;;
34079 *)
34080 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34081 ;;
34082 esac
34083done
34084
34085# Fix-up fallback echo if it was mangled by the above quoting rules.
34086case \$lt_ECHO in
34087*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
34088 ;;
34089esac
34090
34091ac_aux_dir='$ac_aux_dir'
34092xsi_shell='$xsi_shell'
34093lt_shell_append='$lt_shell_append'
34094
34095# See if we are running on zsh, and set the options which allow our
34096# commands through without removal of \ escapes INIT.
34097if test -n "\${ZSH_VERSION+set}" ; then
34098 setopt NO_GLOB_SUBST
34099fi
34100
34101
34102 PACKAGE='$PACKAGE'
34103 VERSION='$VERSION'
34104 TIMESTAMP='$TIMESTAMP'
34105 RM='$RM'
34106 ofile='$ofile'
34107
34108
34109
34110
34111
34112
cristy3ed852e2009-09-05 21:47:34 +000034113_ACEOF
34114
34115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34116
34117# Handling of arguments.
34118for ac_config_target in $ac_config_targets
34119do
34120 case $ac_config_target in
34121 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy73bd4a52010-10-05 11:24:23 +000034122 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000034123 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
34124 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
34125 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
34126 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
34127 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000034128 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000034129 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
34130 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
34131 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
34132 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
34133 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
34134 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
34135 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
34136 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
34137 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
34138 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
34139 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
34140 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
34141 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34142 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
34143 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
34144 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
34145 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
34146 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
34147 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
34148 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
34149 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
34150 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
34151 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
34152 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
34153 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
34154 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
34155 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
34156 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
34157 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
34158 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
34159 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
34160 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
34161 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000034162 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34163 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000034164 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34165 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
34166 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
34167 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
34168 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
34169 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
34170 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
34171
cristyf6fcb5d2010-09-24 01:19:13 +000034172 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034173 esac
34174done
34175
34176
34177# If the user did not use the arguments to specify the items to instantiate,
34178# then the envvar interface is used. Set only those that are not.
34179# We use the long form for the default assignment because of an extremely
34180# bizarre bug on SunOS 4.1.3.
34181if $ac_need_defaults; then
34182 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34183 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34184 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34185fi
34186
34187# Have a temporary directory for convenience. Make it in the build tree
34188# simply because there is no reason against having it here, and in addition,
34189# creating and moving files from /tmp can sometimes cause problems.
34190# Hook for its removal unless debugging.
34191# Note that there is a small window in which the directory will not be cleaned:
34192# after its creation but before its name has been assigned to `$tmp'.
34193$debug ||
34194{
34195 tmp=
34196 trap 'exit_status=$?
34197 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34198' 0
cristy8b350f62009-11-15 23:12:43 +000034199 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000034200}
34201# Create a (secure) tmp directory for tmp files.
34202
34203{
34204 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34205 test -n "$tmp" && test -d "$tmp"
34206} ||
34207{
34208 tmp=./conf$$-$RANDOM
34209 (umask 077 && mkdir "$tmp")
cristyf6fcb5d2010-09-24 01:19:13 +000034210} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034211
34212# Set up the scripts for CONFIG_FILES section.
34213# No need to generate them if there are no CONFIG_FILES.
34214# This happens for instance with `./config.status config.h'.
34215if test -n "$CONFIG_FILES"; then
34216
34217
cristy8b350f62009-11-15 23:12:43 +000034218ac_cr=`echo X | tr X '\015'`
34219# On cygwin, bash can eat \r inside `` if the user requested igncr.
34220# But we know of no other shell where ac_cr would be empty at this
34221# point, so we can use a bashism as a fallback.
34222if test "x$ac_cr" = x; then
34223 eval ac_cr=\$\'\\r\'
34224fi
cristy3ed852e2009-09-05 21:47:34 +000034225ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34226if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristyf6fcb5d2010-09-24 01:19:13 +000034227 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000034228else
34229 ac_cs_awk_cr=$ac_cr
34230fi
34231
34232echo 'BEGIN {' >"$tmp/subs1.awk" &&
34233_ACEOF
34234
34235
34236{
34237 echo "cat >conf$$subs.awk <<_ACEOF" &&
34238 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34239 echo "_ACEOF"
34240} >conf$$subs.sh ||
cristyf6fcb5d2010-09-24 01:19:13 +000034241 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
34242ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
cristy3ed852e2009-09-05 21:47:34 +000034243ac_delim='%!_!# '
34244for ac_last_try in false false false false false :; do
34245 . ./conf$$subs.sh ||
cristyf6fcb5d2010-09-24 01:19:13 +000034246 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034247
34248 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34249 if test $ac_delim_n = $ac_delim_num; then
34250 break
34251 elif $ac_last_try; then
cristyf6fcb5d2010-09-24 01:19:13 +000034252 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034253 else
34254 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34255 fi
34256done
34257rm -f conf$$subs.sh
34258
34259cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34260cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34261_ACEOF
34262sed -n '
34263h
34264s/^/S["/; s/!.*/"]=/
34265p
34266g
34267s/^[^!]*!//
34268:repl
34269t repl
34270s/'"$ac_delim"'$//
34271t delim
34272:nl
34273h
cristycd4c5312009-11-22 01:19:08 +000034274s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034275t more1
34276s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34277p
34278n
34279b repl
34280:more1
34281s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34282p
34283g
34284s/.\{148\}//
34285t nl
34286:delim
34287h
cristycd4c5312009-11-22 01:19:08 +000034288s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034289t more2
34290s/["\\]/\\&/g; s/^/"/; s/$/"/
34291p
34292b
34293:more2
34294s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34295p
34296g
34297s/.\{148\}//
34298t delim
34299' <conf$$subs.awk | sed '
34300/^[^""]/{
34301 N
34302 s/\n//
34303}
34304' >>$CONFIG_STATUS || ac_write_fail=1
34305rm -f conf$$subs.awk
34306cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34307_ACAWK
34308cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34309 for (key in S) S_is_set[key] = 1
34310 FS = ""
34311
34312}
34313{
34314 line = $ 0
34315 nfields = split(line, field, "@")
34316 substed = 0
34317 len = length(field[1])
34318 for (i = 2; i < nfields; i++) {
34319 key = field[i]
34320 keylen = length(key)
34321 if (S_is_set[key]) {
34322 value = S[key]
34323 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34324 len += length(value) + length(field[++i])
34325 substed = 1
34326 } else
34327 len += 1 + keylen
34328 }
34329
34330 print line
34331}
34332
34333_ACAWK
34334_ACEOF
34335cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34336if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34337 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34338else
34339 cat
34340fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristyf6fcb5d2010-09-24 01:19:13 +000034341 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034342_ACEOF
34343
cristyf6fcb5d2010-09-24 01:19:13 +000034344# VPATH may cause trouble with some makes, so we remove $(srcdir),
34345# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000034346# trailing colons and then remove the whole line if VPATH becomes empty
34347# (actually we leave an empty line to preserve line numbers).
34348if test "x$srcdir" = x.; then
cristyf6fcb5d2010-09-24 01:19:13 +000034349 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34350s/:*\$(srcdir):*/:/
34351s/:*\${srcdir}:*/:/
34352s/:*@srcdir@:*/:/
34353s/^\([^=]*=[ ]*\):*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034354s/:*$//
34355s/^[^=]*=[ ]*$//
34356}'
34357fi
34358
34359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34360fi # test -n "$CONFIG_FILES"
34361
34362# Set up the scripts for CONFIG_HEADERS section.
34363# No need to generate them if there are no CONFIG_HEADERS.
34364# This happens for instance with `./config.status Makefile'.
34365if test -n "$CONFIG_HEADERS"; then
34366cat >"$tmp/defines.awk" <<\_ACAWK ||
34367BEGIN {
34368_ACEOF
34369
34370# Transform confdefs.h into an awk script `defines.awk', embedded as
34371# here-document in config.status, that substitutes the proper values into
34372# config.h.in to produce config.h.
34373
34374# Create a delimiter string that does not exist in confdefs.h, to ease
34375# handling of long lines.
34376ac_delim='%!_!# '
34377for ac_last_try in false false :; do
34378 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34379 if test -z "$ac_t"; then
34380 break
34381 elif $ac_last_try; then
cristyf6fcb5d2010-09-24 01:19:13 +000034382 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034383 else
34384 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34385 fi
34386done
34387
34388# For the awk script, D is an array of macro values keyed by name,
34389# likewise P contains macro parameters if any. Preserve backslash
34390# newline sequences.
34391
34392ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34393sed -n '
34394s/.\{148\}/&'"$ac_delim"'/g
34395t rset
34396:rset
34397s/^[ ]*#[ ]*define[ ][ ]*/ /
34398t def
34399d
34400:def
34401s/\\$//
34402t bsnl
34403s/["\\]/\\&/g
34404s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34405D["\1"]=" \3"/p
34406s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34407d
34408:bsnl
34409s/["\\]/\\&/g
34410s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34411D["\1"]=" \3\\\\\\n"\\/p
34412t cont
34413s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34414t cont
34415d
34416:cont
34417n
34418s/.\{148\}/&'"$ac_delim"'/g
34419t clear
34420:clear
34421s/\\$//
34422t bsnlc
34423s/["\\]/\\&/g; s/^/"/; s/$/"/p
34424d
34425:bsnlc
34426s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34427b cont
34428' <confdefs.h | sed '
34429s/'"$ac_delim"'/"\\\
34430"/g' >>$CONFIG_STATUS || ac_write_fail=1
34431
34432cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34433 for (key in D) D_is_set[key] = 1
34434 FS = ""
34435}
34436/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34437 line = \$ 0
34438 split(line, arg, " ")
34439 if (arg[1] == "#") {
34440 defundef = arg[2]
34441 mac1 = arg[3]
34442 } else {
34443 defundef = substr(arg[1], 2)
34444 mac1 = arg[2]
34445 }
34446 split(mac1, mac2, "(") #)
34447 macro = mac2[1]
34448 prefix = substr(line, 1, index(line, defundef) - 1)
34449 if (D_is_set[macro]) {
34450 # Preserve the white space surrounding the "#".
34451 print prefix "define", macro P[macro] D[macro]
34452 next
34453 } else {
34454 # Replace #undef with comments. This is necessary, for example,
34455 # in the case of _POSIX_SOURCE, which is predefined and required
34456 # on some systems where configure will not decide to define it.
34457 if (defundef == "undef") {
34458 print "/*", prefix defundef, macro, "*/"
34459 next
34460 }
34461 }
34462}
34463{ print }
34464_ACAWK
34465_ACEOF
34466cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristyf6fcb5d2010-09-24 01:19:13 +000034467 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034468fi # test -n "$CONFIG_HEADERS"
34469
34470
34471eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34472shift
34473for ac_tag
34474do
34475 case $ac_tag in
34476 :[FHLC]) ac_mode=$ac_tag; continue;;
34477 esac
34478 case $ac_mode$ac_tag in
34479 :[FHL]*:*);;
cristyf6fcb5d2010-09-24 01:19:13 +000034480 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034481 :[FH]-) ac_tag=-:-;;
34482 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34483 esac
34484 ac_save_IFS=$IFS
34485 IFS=:
34486 set x $ac_tag
34487 IFS=$ac_save_IFS
34488 shift
34489 ac_file=$1
34490 shift
34491
34492 case $ac_mode in
34493 :L) ac_source=$1;;
34494 :[FH])
34495 ac_file_inputs=
34496 for ac_f
34497 do
34498 case $ac_f in
34499 -) ac_f="$tmp/stdin";;
34500 *) # Look for the file first in the build tree, then in the source tree
34501 # (if the path is not absolute). The absolute path cannot be DOS-style,
34502 # because $ac_f cannot contain `:'.
34503 test -f "$ac_f" ||
34504 case $ac_f in
34505 [\\/$]*) false;;
34506 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34507 esac ||
cristyf6fcb5d2010-09-24 01:19:13 +000034508 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034509 esac
34510 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000034511 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000034512 done
34513
34514 # Let's still pretend it is `configure' which instantiates (i.e., don't
34515 # use $as_me), people would be surprised to read:
34516 # /* config.h. Generated by config.status. */
34517 configure_input='Generated from '`
34518 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34519 `' by configure.'
34520 if test x"$ac_file" != x-; then
34521 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000034522 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034523$as_echo "$as_me: creating $ac_file" >&6;}
34524 fi
34525 # Neutralize special characters interpreted by sed in replacement strings.
34526 case $configure_input in #(
34527 *\&* | *\|* | *\\* )
34528 ac_sed_conf_input=`$as_echo "$configure_input" |
34529 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34530 *) ac_sed_conf_input=$configure_input;;
34531 esac
34532
34533 case $ac_tag in
34534 *:-:* | *:-) cat >"$tmp/stdin" \
cristyf6fcb5d2010-09-24 01:19:13 +000034535 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000034536 esac
34537 ;;
34538 esac
34539
34540 ac_dir=`$as_dirname -- "$ac_file" ||
34541$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34542 X"$ac_file" : 'X\(//\)[^/]' \| \
34543 X"$ac_file" : 'X\(//\)$' \| \
34544 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34545$as_echo X"$ac_file" |
34546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34547 s//\1/
34548 q
34549 }
34550 /^X\(\/\/\)[^/].*/{
34551 s//\1/
34552 q
34553 }
34554 /^X\(\/\/\)$/{
34555 s//\1/
34556 q
34557 }
34558 /^X\(\/\).*/{
34559 s//\1/
34560 q
34561 }
34562 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034563 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034564 ac_builddir=.
34565
34566case "$ac_dir" in
34567.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34568*)
34569 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34570 # A ".." for each directory in $ac_dir_suffix.
34571 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34572 case $ac_top_builddir_sub in
34573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34575 esac ;;
34576esac
34577ac_abs_top_builddir=$ac_pwd
34578ac_abs_builddir=$ac_pwd$ac_dir_suffix
34579# for backward compatibility:
34580ac_top_builddir=$ac_top_build_prefix
34581
34582case $srcdir in
34583 .) # We are building in place.
34584 ac_srcdir=.
34585 ac_top_srcdir=$ac_top_builddir_sub
34586 ac_abs_top_srcdir=$ac_pwd ;;
34587 [\\/]* | ?:[\\/]* ) # Absolute name.
34588 ac_srcdir=$srcdir$ac_dir_suffix;
34589 ac_top_srcdir=$srcdir
34590 ac_abs_top_srcdir=$srcdir ;;
34591 *) # Relative name.
34592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34593 ac_top_srcdir=$ac_top_build_prefix$srcdir
34594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34595esac
34596ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34597
34598
34599 case $ac_mode in
34600 :F)
34601 #
34602 # CONFIG_FILE
34603 #
34604
34605 case $INSTALL in
34606 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34607 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34608 esac
cristy73bd4a52010-10-05 11:24:23 +000034609 ac_MKDIR_P=$MKDIR_P
34610 case $MKDIR_P in
34611 [\\/$]* | ?:[\\/]* ) ;;
34612 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34613 esac
cristy3ed852e2009-09-05 21:47:34 +000034614_ACEOF
34615
34616cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34617# If the template does not know about datarootdir, expand it.
34618# FIXME: This hack should be removed a few years after 2.60.
34619ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000034620ac_sed_dataroot='
34621/datarootdir/ {
34622 p
34623 q
34624}
34625/@datadir@/p
34626/@docdir@/p
34627/@infodir@/p
34628/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000034629/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000034630case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34631*datarootdir*) ac_datarootdir_seen=yes;;
34632*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000034633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000034634$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34635_ACEOF
34636cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34637 ac_datarootdir_hack='
34638 s&@datadir@&$datadir&g
34639 s&@docdir@&$docdir&g
34640 s&@infodir@&$infodir&g
34641 s&@localedir@&$localedir&g
34642 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000034643 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000034644esac
34645_ACEOF
34646
34647# Neutralize VPATH when `$srcdir' = `.'.
34648# Shell code in configure.ac might set extrasub.
34649# FIXME: do we really want to maintain this feature?
34650cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34651ac_sed_extra="$ac_vpsub
34652$extrasub
34653_ACEOF
34654cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34655:t
34656/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34657s|@configure_input@|$ac_sed_conf_input|;t t
34658s&@top_builddir@&$ac_top_builddir_sub&;t t
34659s&@top_build_prefix@&$ac_top_build_prefix&;t t
34660s&@srcdir@&$ac_srcdir&;t t
34661s&@abs_srcdir@&$ac_abs_srcdir&;t t
34662s&@top_srcdir@&$ac_top_srcdir&;t t
34663s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34664s&@builddir@&$ac_builddir&;t t
34665s&@abs_builddir@&$ac_abs_builddir&;t t
34666s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34667s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000034668s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000034669$ac_datarootdir_hack
34670"
34671eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristyf6fcb5d2010-09-24 01:19:13 +000034672 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034673
34674test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34675 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34676 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000034677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristyf6fcb5d2010-09-24 01:19:13 +000034678which seems to be undefined. Please make sure it is defined." >&5
cristy3ed852e2009-09-05 21:47:34 +000034679$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristyf6fcb5d2010-09-24 01:19:13 +000034680which seems to be undefined. Please make sure it is defined." >&2;}
cristy3ed852e2009-09-05 21:47:34 +000034681
34682 rm -f "$tmp/stdin"
34683 case $ac_file in
34684 -) cat "$tmp/out" && rm -f "$tmp/out";;
34685 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34686 esac \
cristyf6fcb5d2010-09-24 01:19:13 +000034687 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034688 ;;
34689 :H)
34690 #
34691 # CONFIG_HEADER
34692 #
34693 if test x"$ac_file" != x-; then
34694 {
34695 $as_echo "/* $configure_input */" \
34696 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34697 } >"$tmp/config.h" \
cristyf6fcb5d2010-09-24 01:19:13 +000034698 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034699 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000034700 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034701$as_echo "$as_me: $ac_file is unchanged" >&6;}
34702 else
34703 rm -f "$ac_file"
34704 mv "$tmp/config.h" "$ac_file" \
cristyf6fcb5d2010-09-24 01:19:13 +000034705 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034706 fi
34707 else
34708 $as_echo "/* $configure_input */" \
34709 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristyf6fcb5d2010-09-24 01:19:13 +000034710 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034711 fi
cristy73bd4a52010-10-05 11:24:23 +000034712# Compute "$ac_file"'s index in $config_headers.
34713_am_arg="$ac_file"
34714_am_stamp_count=1
34715for _am_header in $config_headers :; do
34716 case $_am_header in
34717 $_am_arg | $_am_arg:* )
34718 break ;;
34719 * )
34720 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34721 esac
34722done
34723echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34724$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34725 X"$_am_arg" : 'X\(//\)[^/]' \| \
34726 X"$_am_arg" : 'X\(//\)$' \| \
34727 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34728$as_echo X"$_am_arg" |
34729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34730 s//\1/
34731 q
34732 }
34733 /^X\(\/\/\)[^/].*/{
34734 s//\1/
34735 q
34736 }
34737 /^X\(\/\/\)$/{
34738 s//\1/
34739 q
34740 }
34741 /^X\(\/\).*/{
34742 s//\1/
34743 q
34744 }
34745 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000034746 ;;
34747
cristy8b350f62009-11-15 23:12:43 +000034748 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000034749$as_echo "$as_me: executing $ac_file commands" >&6;}
34750 ;;
34751 esac
34752
34753
34754 case $ac_file$ac_mode in
cristy73bd4a52010-10-05 11:24:23 +000034755 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34756ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34757ac_prefix_conf_PKG=`echo MagickCore`
34758ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34759ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34760ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34761if test ".$ac_prefix_conf_INP" = "."; then
34762 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34763 case "$ac_file" in
34764 *.h) ac_prefix_conf_INP=$ac_file ;;
34765 *)
34766 esac
34767 test ".$ac_prefix_conf_INP" != "." && break
34768 done
34769fi
34770if test ".$ac_prefix_conf_INP" = "."; then
34771 case "$ac_prefix_conf_OUT" in
34772 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34773 ;;
34774 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34775 ;;
34776 *) ac_prefix_conf_INP=config.h
34777 ;;
34778 esac
34779fi
34780if test -z "$ac_prefix_conf_PKG" ; then
34781 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
34782else
34783 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34784 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34785 fi fi
34786 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
34787$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34788 if test -f $ac_prefix_conf_INP ; then
34789 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34790 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
34791 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34792 echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
34793 echo "#endif/" >>conftest.prefix
34794 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34795 echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
34796 echo "#endif/" >> conftest.prefix
34797 # now executing _script on _DEF input to create _OUT output file
34798 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34799 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34800 echo ' ' >>$tmp/pconfig.h
34801 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34802
34803 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34804 echo ' ' >>$tmp/pconfig.h
34805 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34806 echo "#endif" >>$tmp/pconfig.h
34807 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
34808 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
34809$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34810 else
34811 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34812$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34813 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34814 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34815 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34816$as_echo X"$ac_prefix_conf_OUT" |
34817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34818 s//\1/
34819 q
34820 }
34821 /^X\(\/\/\)[^/].*/{
34822 s//\1/
34823 q
34824 }
34825 /^X\(\/\/\)$/{
34826 s//\1/
34827 q
34828 }
34829 /^X\(\/\).*/{
34830 s//\1/
34831 q
34832 }
34833 s/.*/./; q'`
34834 as_dir="$ac_dir"; as_fn_mkdir_p
34835 rm -f "$ac_prefix_conf_OUT"
34836 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34837 fi
34838 cp conftest.prefix _configs.sed
34839 else
34840 as_fn_error "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
34841 fi
34842 rm -f conftest.*
34843fi
34844 ;;
34845 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34846 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34847 # are listed without --file. Let's play safe and only enable the eval
34848 # if we detect the quoting.
34849 case $CONFIG_FILES in
34850 *\'*) eval set x "$CONFIG_FILES" ;;
34851 *) set x $CONFIG_FILES ;;
34852 esac
34853 shift
34854 for mf
34855 do
34856 # Strip MF so we end up with the name of the file.
34857 mf=`echo "$mf" | sed -e 's/:.*$//'`
34858 # Check whether this is an Automake generated Makefile or not.
34859 # We used to match only the files named `Makefile.in', but
34860 # some people rename them; so instead we look at the file content.
34861 # Grep'ing the first line is not enough: some people post-process
34862 # each Makefile.in and add a new line on top of each file to say so.
34863 # Grep'ing the whole file is not good either: AIX grep has a line
34864 # limit of 2048, but all sed's we know have understand at least 4000.
34865 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34866 dirpart=`$as_dirname -- "$mf" ||
34867$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34868 X"$mf" : 'X\(//\)[^/]' \| \
34869 X"$mf" : 'X\(//\)$' \| \
34870 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34871$as_echo X"$mf" |
34872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34873 s//\1/
34874 q
34875 }
34876 /^X\(\/\/\)[^/].*/{
34877 s//\1/
34878 q
34879 }
34880 /^X\(\/\/\)$/{
34881 s//\1/
34882 q
34883 }
34884 /^X\(\/\).*/{
34885 s//\1/
34886 q
34887 }
34888 s/.*/./; q'`
34889 else
34890 continue
34891 fi
34892 # Extract the definition of DEPDIR, am__include, and am__quote
34893 # from the Makefile without running `make'.
34894 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34895 test -z "$DEPDIR" && continue
34896 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34897 test -z "am__include" && continue
34898 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34899 # When using ansi2knr, U may be empty or an underscore; expand it
34900 U=`sed -n 's/^U = //p' < "$mf"`
34901 # Find all dependency output files, they are included files with
34902 # $(DEPDIR) in their names. We invoke sed twice because it is the
34903 # simplest approach to changing $(DEPDIR) to its actual value in the
34904 # expansion.
34905 for file in `sed -n "
34906 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34907 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34908 # Make sure the directory exists.
34909 test -f "$dirpart/$file" && continue
34910 fdir=`$as_dirname -- "$file" ||
34911$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34912 X"$file" : 'X\(//\)[^/]' \| \
34913 X"$file" : 'X\(//\)$' \| \
34914 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34915$as_echo X"$file" |
34916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34917 s//\1/
34918 q
34919 }
34920 /^X\(\/\/\)[^/].*/{
34921 s//\1/
34922 q
34923 }
34924 /^X\(\/\/\)$/{
34925 s//\1/
34926 q
34927 }
34928 /^X\(\/\).*/{
34929 s//\1/
34930 q
34931 }
34932 s/.*/./; q'`
34933 as_dir=$dirpart/$fdir; as_fn_mkdir_p
34934 # echo "creating $dirpart/$file"
34935 echo '# dummy' > "$dirpart/$file"
34936 done
34937 done
34938}
34939 ;;
34940 "libtool":C)
34941
34942 # See if we are running on zsh, and set the options which allow our
34943 # commands through without removal of \ escapes.
34944 if test -n "${ZSH_VERSION+set}" ; then
34945 setopt NO_GLOB_SUBST
34946 fi
34947
34948 cfgfile="${ofile}T"
34949 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34950 $RM "$cfgfile"
34951
34952 cat <<_LT_EOF >> "$cfgfile"
34953#! $SHELL
34954
34955# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34956# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34957# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34958# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34959#
34960# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34961# 2006, 2007, 2008 Free Software Foundation, Inc.
34962# Written by Gordon Matzigkeit, 1996
34963#
34964# This file is part of GNU Libtool.
34965#
34966# GNU Libtool is free software; you can redistribute it and/or
34967# modify it under the terms of the GNU General Public License as
34968# published by the Free Software Foundation; either version 2 of
34969# the License, or (at your option) any later version.
34970#
34971# As a special exception to the GNU General Public License,
34972# if you distribute this file as part of a program or library that
34973# is built using GNU Libtool, you may include this file under the
34974# same distribution terms that you use for the rest of that program.
34975#
34976# GNU Libtool is distributed in the hope that it will be useful,
34977# but WITHOUT ANY WARRANTY; without even the implied warranty of
34978# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34979# GNU General Public License for more details.
34980#
34981# You should have received a copy of the GNU General Public License
34982# along with GNU Libtool; see the file COPYING. If not, a copy
34983# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34984# obtained by writing to the Free Software Foundation, Inc.,
34985# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34986
34987
34988# The names of the tagged configurations supported by this script.
34989available_tags="CXX "
34990
34991# ### BEGIN LIBTOOL CONFIG
34992
34993# A sed program that does not truncate output.
34994SED=$lt_SED
34995
34996# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34997Xsed="\$SED -e 1s/^X//"
34998
34999# A grep program that handles long lines.
35000GREP=$lt_GREP
35001
35002# An ERE matcher.
35003EGREP=$lt_EGREP
35004
35005# A literal string matcher.
35006FGREP=$lt_FGREP
35007
35008# Which release of libtool.m4 was used?
35009macro_version=$macro_version
35010macro_revision=$macro_revision
35011
35012# Assembler program.
35013AS=$AS
35014
35015# DLL creation program.
35016DLLTOOL=$DLLTOOL
35017
35018# Object dumper program.
35019OBJDUMP=$OBJDUMP
35020
35021# Whether or not to build shared libraries.
35022build_libtool_libs=$enable_shared
35023
35024# Whether or not to build static libraries.
35025build_old_libs=$enable_static
35026
35027# What type of objects to build.
35028pic_mode=$pic_mode
35029
35030# Whether or not to optimize for fast installation.
35031fast_install=$enable_fast_install
35032
35033# The host system.
35034host_alias=$host_alias
35035host=$host
35036host_os=$host_os
35037
35038# The build system.
35039build_alias=$build_alias
35040build=$build
35041build_os=$build_os
35042
35043# A BSD- or MS-compatible name lister.
35044NM=$lt_NM
35045
35046# Whether we need soft or hard links.
35047LN_S=$lt_LN_S
35048
35049# What is the maximum length of a command?
35050max_cmd_len=$max_cmd_len
35051
35052# Object file suffix (normally "o").
35053objext=$ac_objext
35054
35055# Executable file suffix (normally "").
35056exeext=$exeext
35057
35058# whether the shell understands "unset".
35059lt_unset=$lt_unset
35060
35061# turn spaces into newlines.
35062SP2NL=$lt_lt_SP2NL
35063
35064# turn newlines into spaces.
35065NL2SP=$lt_lt_NL2SP
35066
35067# How to create reloadable object files.
35068reload_flag=$lt_reload_flag
35069reload_cmds=$lt_reload_cmds
35070
35071# Method to check whether dependent libraries are shared objects.
35072deplibs_check_method=$lt_deplibs_check_method
35073
35074# Command to use when deplibs_check_method == "file_magic".
35075file_magic_cmd=$lt_file_magic_cmd
35076
35077# The archiver.
35078AR=$lt_AR
35079AR_FLAGS=$lt_AR_FLAGS
35080
35081# A symbol stripping program.
35082STRIP=$lt_STRIP
35083
35084# Commands used to install an old-style archive.
35085RANLIB=$lt_RANLIB
35086old_postinstall_cmds=$lt_old_postinstall_cmds
35087old_postuninstall_cmds=$lt_old_postuninstall_cmds
35088
35089# A C compiler.
35090LTCC=$lt_CC
35091
35092# LTCC compiler flags.
35093LTCFLAGS=$lt_CFLAGS
35094
35095# Take the output of nm and produce a listing of raw symbols and C names.
35096global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35097
35098# Transform the output of nm in a proper C declaration.
35099global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35100
35101# Transform the output of nm in a C name address pair.
35102global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35103
35104# Transform the output of nm in a C name address pair when lib prefix is needed.
35105global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35106
35107# The name of the directory that contains temporary libtool files.
35108objdir=$objdir
35109
35110# Shell to use when invoking shell scripts.
35111SHELL=$lt_SHELL
35112
35113# An echo program that does not interpret backslashes.
35114ECHO=$lt_ECHO
35115
35116# Used to examine libraries when file_magic_cmd begins with "file".
35117MAGIC_CMD=$MAGIC_CMD
35118
35119# Must we lock files when doing compilation?
35120need_locks=$lt_need_locks
35121
35122# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35123DSYMUTIL=$lt_DSYMUTIL
35124
35125# Tool to change global to local symbols on Mac OS X.
35126NMEDIT=$lt_NMEDIT
35127
35128# Tool to manipulate fat objects and archives on Mac OS X.
35129LIPO=$lt_LIPO
35130
35131# ldd/readelf like tool for Mach-O binaries on Mac OS X.
35132OTOOL=$lt_OTOOL
35133
35134# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35135OTOOL64=$lt_OTOOL64
35136
35137# Old archive suffix (normally "a").
35138libext=$libext
35139
35140# Shared library suffix (normally ".so").
35141shrext_cmds=$lt_shrext_cmds
35142
35143# The commands to extract the exported symbol list from a shared archive.
35144extract_expsyms_cmds=$lt_extract_expsyms_cmds
35145
35146# Variables whose values should be saved in libtool wrapper scripts and
35147# restored at link time.
35148variables_saved_for_relink=$lt_variables_saved_for_relink
35149
35150# Do we need the "lib" prefix for modules?
35151need_lib_prefix=$need_lib_prefix
35152
35153# Do we need a version for libraries?
35154need_version=$need_version
35155
35156# Library versioning type.
35157version_type=$version_type
35158
35159# Shared library runtime path variable.
35160runpath_var=$runpath_var
35161
35162# Shared library path variable.
35163shlibpath_var=$shlibpath_var
35164
35165# Is shlibpath searched before the hard-coded library search path?
35166shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35167
35168# Format of library name prefix.
35169libname_spec=$lt_libname_spec
35170
35171# List of archive names. First name is the real one, the rest are links.
35172# The last name is the one that the linker finds with -lNAME
35173library_names_spec=$lt_library_names_spec
35174
35175# The coded name of the library, if different from the real name.
35176soname_spec=$lt_soname_spec
35177
35178# Command to use after installation of a shared archive.
35179postinstall_cmds=$lt_postinstall_cmds
35180
35181# Command to use after uninstallation of a shared archive.
35182postuninstall_cmds=$lt_postuninstall_cmds
35183
35184# Commands used to finish a libtool library installation in a directory.
35185finish_cmds=$lt_finish_cmds
35186
35187# As "finish_cmds", except a single script fragment to be evaled but
35188# not shown.
35189finish_eval=$lt_finish_eval
35190
35191# Whether we should hardcode library paths into libraries.
35192hardcode_into_libs=$hardcode_into_libs
35193
35194# Compile-time system search path for libraries.
35195sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35196
35197# Run-time system search path for libraries.
35198sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35199
35200# Whether dlopen is supported.
35201dlopen_support=$enable_dlopen
35202
35203# Whether dlopen of programs is supported.
35204dlopen_self=$enable_dlopen_self
35205
35206# Whether dlopen of statically linked programs is supported.
35207dlopen_self_static=$enable_dlopen_self_static
35208
35209# Commands to strip libraries.
35210old_striplib=$lt_old_striplib
35211striplib=$lt_striplib
35212
35213
35214# The linker used to build libraries.
35215LD=$lt_LD
35216
35217# Commands used to build an old-style archive.
35218old_archive_cmds=$lt_old_archive_cmds
35219
35220# A language specific compiler.
35221CC=$lt_compiler
35222
35223# Is the compiler the GNU compiler?
35224with_gcc=$GCC
35225
35226# Compiler flag to turn off builtin functions.
35227no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35228
35229# How to pass a linker flag through the compiler.
35230wl=$lt_lt_prog_compiler_wl
35231
35232# Additional compiler flags for building library objects.
35233pic_flag=$lt_lt_prog_compiler_pic
35234
35235# Compiler flag to prevent dynamic linking.
35236link_static_flag=$lt_lt_prog_compiler_static
35237
35238# Does compiler simultaneously support -c and -o options?
35239compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35240
35241# Whether or not to add -lc for building shared libraries.
35242build_libtool_need_lc=$archive_cmds_need_lc
35243
35244# Whether or not to disallow shared libs when runtime libs are static.
35245allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35246
35247# Compiler flag to allow reflexive dlopens.
35248export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35249
35250# Compiler flag to generate shared objects directly from archives.
35251whole_archive_flag_spec=$lt_whole_archive_flag_spec
35252
35253# Whether the compiler copes with passing no objects directly.
35254compiler_needs_object=$lt_compiler_needs_object
35255
35256# Create an old-style archive from a shared archive.
35257old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35258
35259# Create a temporary old-style archive to link instead of a shared archive.
35260old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35261
35262# Commands used to build a shared archive.
35263archive_cmds=$lt_archive_cmds
35264archive_expsym_cmds=$lt_archive_expsym_cmds
35265
35266# Commands used to build a loadable module if different from building
35267# a shared archive.
35268module_cmds=$lt_module_cmds
35269module_expsym_cmds=$lt_module_expsym_cmds
35270
35271# Whether we are building with GNU ld or not.
35272with_gnu_ld=$lt_with_gnu_ld
35273
35274# Flag that allows shared libraries with undefined symbols to be built.
35275allow_undefined_flag=$lt_allow_undefined_flag
35276
35277# Flag that enforces no undefined symbols.
35278no_undefined_flag=$lt_no_undefined_flag
35279
35280# Flag to hardcode \$libdir into a binary during linking.
35281# This must work even if \$libdir does not exist
35282hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35283
35284# If ld is used when linking, flag to hardcode \$libdir into a binary
35285# during linking. This must work even if \$libdir does not exist.
35286hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35287
35288# Whether we need a single "-rpath" flag with a separated argument.
35289hardcode_libdir_separator=$lt_hardcode_libdir_separator
35290
35291# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35292# DIR into the resulting binary.
35293hardcode_direct=$hardcode_direct
35294
35295# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35296# DIR into the resulting binary and the resulting library dependency is
35297# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35298# library is relocated.
35299hardcode_direct_absolute=$hardcode_direct_absolute
35300
35301# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35302# into the resulting binary.
35303hardcode_minus_L=$hardcode_minus_L
35304
35305# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35306# into the resulting binary.
35307hardcode_shlibpath_var=$hardcode_shlibpath_var
35308
35309# Set to "yes" if building a shared library automatically hardcodes DIR
35310# into the library and all subsequent libraries and executables linked
35311# against it.
35312hardcode_automatic=$hardcode_automatic
35313
35314# Set to yes if linker adds runtime paths of dependent libraries
35315# to runtime path list.
35316inherit_rpath=$inherit_rpath
35317
35318# Whether libtool must link a program against all its dependency libraries.
35319link_all_deplibs=$link_all_deplibs
35320
35321# Fix the shell variable \$srcfile for the compiler.
35322fix_srcfile_path=$lt_fix_srcfile_path
35323
35324# Set to "yes" if exported symbols are required.
35325always_export_symbols=$always_export_symbols
35326
35327# The commands to list exported symbols.
35328export_symbols_cmds=$lt_export_symbols_cmds
35329
35330# Symbols that should not be listed in the preloaded symbols.
35331exclude_expsyms=$lt_exclude_expsyms
35332
35333# Symbols that must always be exported.
35334include_expsyms=$lt_include_expsyms
35335
35336# Commands necessary for linking programs (against libraries) with templates.
35337prelink_cmds=$lt_prelink_cmds
35338
35339# Specify filename containing input files.
35340file_list_spec=$lt_file_list_spec
35341
35342# How to hardcode a shared library path into an executable.
35343hardcode_action=$hardcode_action
35344
35345# The directories searched by this compiler when creating a shared library.
35346compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35347
35348# Dependencies to place before and after the objects being linked to
35349# create a shared library.
35350predep_objects=$lt_predep_objects
35351postdep_objects=$lt_postdep_objects
35352predeps=$lt_predeps
35353postdeps=$lt_postdeps
35354
35355# The library search path used internally by the compiler when linking
35356# a shared library.
35357compiler_lib_search_path=$lt_compiler_lib_search_path
35358
35359# ### END LIBTOOL CONFIG
35360
35361_LT_EOF
35362
35363 case $host_os in
35364 aix3*)
35365 cat <<\_LT_EOF >> "$cfgfile"
35366# AIX sometimes has problems with the GCC collect2 program. For some
35367# reason, if we set the COLLECT_NAMES environment variable, the problems
35368# vanish in a puff of smoke.
35369if test "X${COLLECT_NAMES+set}" != Xset; then
35370 COLLECT_NAMES=
35371 export COLLECT_NAMES
35372fi
35373_LT_EOF
35374 ;;
35375 esac
35376
35377
35378ltmain="$ac_aux_dir/ltmain.sh"
35379
35380
35381 # We use sed instead of cat because bash on DJGPP gets confused if
35382 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35383 # text mode, it properly converts lines to CR/LF. This bash problem
35384 # is reportedly fixed, but why not run on old versions too?
35385 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35386 || (rm -f "$cfgfile"; exit 1)
35387
35388 case $xsi_shell in
35389 yes)
35390 cat << \_LT_EOF >> "$cfgfile"
35391
35392# func_dirname file append nondir_replacement
35393# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35394# otherwise set result to NONDIR_REPLACEMENT.
35395func_dirname ()
35396{
35397 case ${1} in
35398 */*) func_dirname_result="${1%/*}${2}" ;;
35399 * ) func_dirname_result="${3}" ;;
35400 esac
35401}
35402
35403# func_basename file
35404func_basename ()
35405{
35406 func_basename_result="${1##*/}"
35407}
35408
35409# func_dirname_and_basename file append nondir_replacement
35410# perform func_basename and func_dirname in a single function
35411# call:
35412# dirname: Compute the dirname of FILE. If nonempty,
35413# add APPEND to the result, otherwise set result
35414# to NONDIR_REPLACEMENT.
35415# value returned in "$func_dirname_result"
35416# basename: Compute filename of FILE.
35417# value retuned in "$func_basename_result"
35418# Implementation must be kept synchronized with func_dirname
35419# and func_basename. For efficiency, we do not delegate to
35420# those functions but instead duplicate the functionality here.
35421func_dirname_and_basename ()
35422{
35423 case ${1} in
35424 */*) func_dirname_result="${1%/*}${2}" ;;
35425 * ) func_dirname_result="${3}" ;;
35426 esac
35427 func_basename_result="${1##*/}"
35428}
35429
35430# func_stripname prefix suffix name
35431# strip PREFIX and SUFFIX off of NAME.
35432# PREFIX and SUFFIX must not contain globbing or regex special
35433# characters, hashes, percent signs, but SUFFIX may contain a leading
35434# dot (in which case that matches only a dot).
35435func_stripname ()
35436{
35437 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35438 # positional parameters, so assign one to ordinary parameter first.
35439 func_stripname_result=${3}
35440 func_stripname_result=${func_stripname_result#"${1}"}
35441 func_stripname_result=${func_stripname_result%"${2}"}
35442}
35443
35444# func_opt_split
35445func_opt_split ()
35446{
35447 func_opt_split_opt=${1%%=*}
35448 func_opt_split_arg=${1#*=}
35449}
35450
35451# func_lo2o object
35452func_lo2o ()
35453{
35454 case ${1} in
35455 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35456 *) func_lo2o_result=${1} ;;
35457 esac
35458}
35459
35460# func_xform libobj-or-source
35461func_xform ()
35462{
35463 func_xform_result=${1%.*}.lo
35464}
35465
35466# func_arith arithmetic-term...
35467func_arith ()
35468{
35469 func_arith_result=$(( $* ))
35470}
35471
35472# func_len string
35473# STRING may not start with a hyphen.
35474func_len ()
35475{
35476 func_len_result=${#1}
35477}
35478
35479_LT_EOF
35480 ;;
35481 *) # Bourne compatible functions.
35482 cat << \_LT_EOF >> "$cfgfile"
35483
35484# func_dirname file append nondir_replacement
35485# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35486# otherwise set result to NONDIR_REPLACEMENT.
35487func_dirname ()
35488{
35489 # Extract subdirectory from the argument.
35490 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
35491 if test "X$func_dirname_result" = "X${1}"; then
35492 func_dirname_result="${3}"
35493 else
35494 func_dirname_result="$func_dirname_result${2}"
35495 fi
35496}
35497
35498# func_basename file
35499func_basename ()
35500{
35501 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
35502}
35503
35504
35505# func_stripname prefix suffix name
35506# strip PREFIX and SUFFIX off of NAME.
35507# PREFIX and SUFFIX must not contain globbing or regex special
35508# characters, hashes, percent signs, but SUFFIX may contain a leading
35509# dot (in which case that matches only a dot).
35510# func_strip_suffix prefix name
35511func_stripname ()
35512{
35513 case ${2} in
35514 .*) func_stripname_result=`$ECHO "X${3}" \
35515 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
35516 *) func_stripname_result=`$ECHO "X${3}" \
35517 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
35518 esac
35519}
35520
35521# sed scripts:
35522my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35523my_sed_long_arg='1s/^-[^=]*=//'
35524
35525# func_opt_split
35526func_opt_split ()
35527{
35528 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
35529 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
35530}
35531
35532# func_lo2o object
35533func_lo2o ()
35534{
35535 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
35536}
35537
35538# func_xform libobj-or-source
35539func_xform ()
35540{
35541 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
35542}
35543
35544# func_arith arithmetic-term...
35545func_arith ()
35546{
35547 func_arith_result=`expr "$@"`
35548}
35549
35550# func_len string
35551# STRING may not start with a hyphen.
35552func_len ()
35553{
35554 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35555}
35556
35557_LT_EOF
35558esac
35559
35560case $lt_shell_append in
35561 yes)
35562 cat << \_LT_EOF >> "$cfgfile"
35563
35564# func_append var value
35565# Append VALUE to the end of shell variable VAR.
35566func_append ()
35567{
35568 eval "$1+=\$2"
35569}
35570_LT_EOF
35571 ;;
35572 *)
35573 cat << \_LT_EOF >> "$cfgfile"
35574
35575# func_append var value
35576# Append VALUE to the end of shell variable VAR.
35577func_append ()
35578{
35579 eval "$1=\$$1\$2"
35580}
35581
35582_LT_EOF
35583 ;;
35584 esac
35585
35586
35587 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35588 || (rm -f "$cfgfile"; exit 1)
35589
35590 mv -f "$cfgfile" "$ofile" ||
35591 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35592 chmod +x "$ofile"
35593
35594
35595 cat <<_LT_EOF >> "$ofile"
35596
35597# ### BEGIN LIBTOOL TAG CONFIG: CXX
35598
35599# The linker used to build libraries.
35600LD=$lt_LD_CXX
35601
35602# Commands used to build an old-style archive.
35603old_archive_cmds=$lt_old_archive_cmds_CXX
35604
35605# A language specific compiler.
35606CC=$lt_compiler_CXX
35607
35608# Is the compiler the GNU compiler?
35609with_gcc=$GCC_CXX
35610
35611# Compiler flag to turn off builtin functions.
35612no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35613
35614# How to pass a linker flag through the compiler.
35615wl=$lt_lt_prog_compiler_wl_CXX
35616
35617# Additional compiler flags for building library objects.
35618pic_flag=$lt_lt_prog_compiler_pic_CXX
35619
35620# Compiler flag to prevent dynamic linking.
35621link_static_flag=$lt_lt_prog_compiler_static_CXX
35622
35623# Does compiler simultaneously support -c and -o options?
35624compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35625
35626# Whether or not to add -lc for building shared libraries.
35627build_libtool_need_lc=$archive_cmds_need_lc_CXX
35628
35629# Whether or not to disallow shared libs when runtime libs are static.
35630allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35631
35632# Compiler flag to allow reflexive dlopens.
35633export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35634
35635# Compiler flag to generate shared objects directly from archives.
35636whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35637
35638# Whether the compiler copes with passing no objects directly.
35639compiler_needs_object=$lt_compiler_needs_object_CXX
35640
35641# Create an old-style archive from a shared archive.
35642old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35643
35644# Create a temporary old-style archive to link instead of a shared archive.
35645old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35646
35647# Commands used to build a shared archive.
35648archive_cmds=$lt_archive_cmds_CXX
35649archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35650
35651# Commands used to build a loadable module if different from building
35652# a shared archive.
35653module_cmds=$lt_module_cmds_CXX
35654module_expsym_cmds=$lt_module_expsym_cmds_CXX
35655
35656# Whether we are building with GNU ld or not.
35657with_gnu_ld=$lt_with_gnu_ld_CXX
35658
35659# Flag that allows shared libraries with undefined symbols to be built.
35660allow_undefined_flag=$lt_allow_undefined_flag_CXX
35661
35662# Flag that enforces no undefined symbols.
35663no_undefined_flag=$lt_no_undefined_flag_CXX
35664
35665# Flag to hardcode \$libdir into a binary during linking.
35666# This must work even if \$libdir does not exist
35667hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35668
35669# If ld is used when linking, flag to hardcode \$libdir into a binary
35670# during linking. This must work even if \$libdir does not exist.
35671hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35672
35673# Whether we need a single "-rpath" flag with a separated argument.
35674hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35675
35676# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35677# DIR into the resulting binary.
35678hardcode_direct=$hardcode_direct_CXX
35679
35680# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35681# DIR into the resulting binary and the resulting library dependency is
35682# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35683# library is relocated.
35684hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35685
35686# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35687# into the resulting binary.
35688hardcode_minus_L=$hardcode_minus_L_CXX
35689
35690# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35691# into the resulting binary.
35692hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35693
35694# Set to "yes" if building a shared library automatically hardcodes DIR
35695# into the library and all subsequent libraries and executables linked
35696# against it.
35697hardcode_automatic=$hardcode_automatic_CXX
35698
35699# Set to yes if linker adds runtime paths of dependent libraries
35700# to runtime path list.
35701inherit_rpath=$inherit_rpath_CXX
35702
35703# Whether libtool must link a program against all its dependency libraries.
35704link_all_deplibs=$link_all_deplibs_CXX
35705
35706# Fix the shell variable \$srcfile for the compiler.
35707fix_srcfile_path=$lt_fix_srcfile_path_CXX
35708
35709# Set to "yes" if exported symbols are required.
35710always_export_symbols=$always_export_symbols_CXX
35711
35712# The commands to list exported symbols.
35713export_symbols_cmds=$lt_export_symbols_cmds_CXX
35714
35715# Symbols that should not be listed in the preloaded symbols.
35716exclude_expsyms=$lt_exclude_expsyms_CXX
35717
35718# Symbols that must always be exported.
35719include_expsyms=$lt_include_expsyms_CXX
35720
35721# Commands necessary for linking programs (against libraries) with templates.
35722prelink_cmds=$lt_prelink_cmds_CXX
35723
35724# Specify filename containing input files.
35725file_list_spec=$lt_file_list_spec_CXX
35726
35727# How to hardcode a shared library path into an executable.
35728hardcode_action=$hardcode_action_CXX
35729
35730# The directories searched by this compiler when creating a shared library.
35731compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35732
35733# Dependencies to place before and after the objects being linked to
35734# create a shared library.
35735predep_objects=$lt_predep_objects_CXX
35736postdep_objects=$lt_postdep_objects_CXX
35737predeps=$lt_predeps_CXX
35738postdeps=$lt_postdeps_CXX
35739
35740# The library search path used internally by the compiler when linking
35741# a shared library.
35742compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35743
35744# ### END LIBTOOL TAG CONFIG: CXX
35745_LT_EOF
35746
35747 ;;
cristy3ed852e2009-09-05 21:47:34 +000035748 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35749 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35750 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35751 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35752 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35753 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35754
35755 esac
35756done # for ac_tag
35757
35758
cristy8b350f62009-11-15 23:12:43 +000035759as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000035760_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000035761ac_clean_files=$ac_clean_files_save
35762
35763test $ac_write_fail = 0 ||
cristyf6fcb5d2010-09-24 01:19:13 +000035764 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035765
35766
35767# configure is writing to config.log, and then calls config.status.
35768# config.status does its own redirection, appending to config.log.
35769# Unfortunately, on DOS this fails, as config.log is still kept open
35770# by configure, so config.status won't be able to write to it; its
35771# output is simply discarded. So we exec the FD to /dev/null,
35772# effectively closing config.log, so it can be properly (re)opened and
35773# appended to by config.status. When coming back to configure, we
35774# need to make the FD available again.
35775if test "$no_create" != yes; then
35776 ac_cs_success=:
35777 ac_config_status_args=
35778 test "$silent" = yes &&
35779 ac_config_status_args="$ac_config_status_args --quiet"
35780 exec 5>/dev/null
35781 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35782 exec 5>>config.log
35783 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35784 # would make configure fail if this is the last instruction.
cristyf6fcb5d2010-09-24 01:19:13 +000035785 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000035786fi
35787if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000035788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000035789$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35790fi
35791
35792
35793rm -f magick-version
35794
cristy430a7312010-01-21 20:44:04 +000035795result_dejavu_font_dir='none'
35796if test "${dejavu_font_dir}x" != 'x'; then
35797 result_dejavu_font_dir=$dejavu_font_dir
35798fi
35799
cristy3ed852e2009-09-05 21:47:34 +000035800result_ghostscript_font_dir='none'
35801if test "${ghostscript_font_dir}x" != 'x'; then
35802 result_ghostscript_font_dir=$ghostscript_font_dir
35803fi
35804
35805result_windows_font_dir='none'
35806if test "${windows_font_dir}x" != 'x'; then
35807 result_windows_font_dir=${windows_font_dir}
35808fi
35809
cristy8b350f62009-11-15 23:12:43 +000035810{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000035811ImageMagick is configured as follows. Please verify that this configuration
35812matches your expectations.
35813
35814Host system type: $host
35815Build system type: $build
35816
35817 Option Value
35818-------------------------------------------------------------------------------
35819Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35820Static libraries --enable-static=$enable_static $libtool_build_static_libs
35821Module support --with-modules=$with_modules $with_modules
35822GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35823Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35824High Dynamic Range Imagery
35825 --enable-hdri=$enable_hdri $enable_hdri
35826
35827Delegate Configuration:
35828BZLIB --with-bzlib=$with_bzlib $have_bzlib
35829Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035830Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035831DJVU --with-djvu=$with_djvu $have_djvu
35832DPS --with-dps=$with_dps $have_dps
35833FFTW --with-fftw=$with_fftw $have_fftw
35834FlashPIX --with-fpx=$with_fpx $have_fpx
35835FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35836FreeType --with-freetype=$with_freetype $have_freetype
35837GhostPCL None $PCLDelegate ($PCLVersion)
35838GhostXPS None $XPSDelegate ($XPSVersion)
35839Ghostscript None $PSDelegate ($GSVersion)
35840Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35841Ghostscript lib --with-gslib=$with_gslib $have_gslib
35842Graphviz --with-gvc=$with_gvc $have_gvc
35843JBIG --with-jbig=$with_jbig $have_jbig
35844JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35845JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035846LCMS v1 --with-lcms=$with_lcms $have_lcms
35847LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035848LQR --with-lqr=$with_lqr $have_lqr
35849Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35850OpenEXR --with-openexr=$with_openexr $have_openexr
35851PERL --with-perl=$with_perl $have_perl
35852PNG --with-png=$with_png $have_png
35853RSVG --with-rsvg=$with_rsvg $have_rsvg
35854TIFF --with-tiff=$with_tiff $have_tiff
35855Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35856WMF --with-wmf=$with_wmf $have_wmf
35857X11 --with-x=$with_x $have_x
35858XML --with-xml=$with_xml $have_xml
35859ZLIB --with-zlib=$with_zlib $have_zlib
35860
35861X11 Configuration:
35862 X_CFLAGS = $X_CFLAGS
35863 X_PRE_LIBS = $X_PRE_LIBS
35864 X_LIBS = $X_LIBS
35865 X_EXTRA_LIBS = $X_EXTRA_LIBS
35866
35867Options used to compile and link:
35868 PREFIX = $PREFIX_DIR
35869 EXEC-PREFIX = $EXEC_PREFIX_DIR
35870 VERSION = $PACKAGE_VERSION
35871 CC = $CC
35872 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035873 CPPFLAGS = $MAGICK_CPPFLAGS
35874 PCFLAGS = $MAGICK_PCFLAGS
35875 DEFS = $DEFS
35876 LDFLAGS = $LDFLAGS
35877 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35878 LIBS = $MAGICK_LIBS
35879 CXX = $CXX
35880 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035881 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035882" >&5
35883$as_echo "
35884ImageMagick is configured as follows. Please verify that this configuration
35885matches your expectations.
35886
35887Host system type: $host
35888Build system type: $build
35889
35890 Option Value
35891-------------------------------------------------------------------------------
35892Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35893Static libraries --enable-static=$enable_static $libtool_build_static_libs
35894Module support --with-modules=$with_modules $with_modules
35895GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35896Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35897High Dynamic Range Imagery
35898 --enable-hdri=$enable_hdri $enable_hdri
35899
35900Delegate Configuration:
35901BZLIB --with-bzlib=$with_bzlib $have_bzlib
35902Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035903Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035904DJVU --with-djvu=$with_djvu $have_djvu
35905DPS --with-dps=$with_dps $have_dps
35906FFTW --with-fftw=$with_fftw $have_fftw
35907FlashPIX --with-fpx=$with_fpx $have_fpx
35908FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35909FreeType --with-freetype=$with_freetype $have_freetype
35910GhostPCL None $PCLDelegate ($PCLVersion)
35911GhostXPS None $XPSDelegate ($XPSVersion)
35912Ghostscript None $PSDelegate ($GSVersion)
35913Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35914Ghostscript lib --with-gslib=$with_gslib $have_gslib
35915Graphviz --with-gvc=$with_gvc $have_gvc
35916JBIG --with-jbig=$with_jbig $have_jbig
35917JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35918JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035919LCMS v1 --with-lcms=$with_lcms $have_lcms
35920LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035921LQR --with-lqr=$with_lqr $have_lqr
35922Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35923OpenEXR --with-openexr=$with_openexr $have_openexr
35924PERL --with-perl=$with_perl $have_perl
35925PNG --with-png=$with_png $have_png
35926RSVG --with-rsvg=$with_rsvg $have_rsvg
35927TIFF --with-tiff=$with_tiff $have_tiff
35928Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35929WMF --with-wmf=$with_wmf $have_wmf
35930X11 --with-x=$with_x $have_x
35931XML --with-xml=$with_xml $have_xml
35932ZLIB --with-zlib=$with_zlib $have_zlib
35933
35934X11 Configuration:
35935 X_CFLAGS = $X_CFLAGS
35936 X_PRE_LIBS = $X_PRE_LIBS
35937 X_LIBS = $X_LIBS
35938 X_EXTRA_LIBS = $X_EXTRA_LIBS
35939
35940Options used to compile and link:
35941 PREFIX = $PREFIX_DIR
35942 EXEC-PREFIX = $EXEC_PREFIX_DIR
35943 VERSION = $PACKAGE_VERSION
35944 CC = $CC
35945 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035946 CPPFLAGS = $MAGICK_CPPFLAGS
35947 PCFLAGS = $MAGICK_PCFLAGS
35948 DEFS = $DEFS
35949 LDFLAGS = $LDFLAGS
35950 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35951 LIBS = $MAGICK_LIBS
35952 CXX = $CXX
35953 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035954 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035955" >&6; }