blob: 65008be0f3c8bdea1ee13617a71157ab535939f5 [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
532
533# Check that we are running under the correct shell.
cristy3ed852e2009-09-05 21:47:34 +0000534SHELL=${CONFIG_SHELL-/bin/sh}
535
cristyd0bd44a2010-09-24 12:38:11 +0000536case 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
cristy3ed852e2009-09-05 21:47:34 +0000681lt_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=
cristy3ed852e2009-09-05 21:47:34 +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
771WITH_PERL_DYNAMIC_FALSE
772WITH_PERL_DYNAMIC_TRUE
773WITH_PERL_STATIC_FALSE
774WITH_PERL_STATIC_TRUE
775WITH_PERL_FALSE
776WITH_PERL_TRUE
cristy964cb7f2010-04-25 23:18:00 +0000777PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000778GSVersion
779GSPSDevice
780GSPDFDevice
781GSMonoDevice
782GSEPSDevice
783GSColorDevice
784GSCMYKDevice
785GSAlphaDevice
786XPSVersion
787XPSCMYKDevice
788XPSColorDevice
789XPSMonoDevice
790PCLVersion
791PCLCMYKDevice
792PCLColorDevice
793PCLMonoDevice
794ZIP_DELEGATE_FALSE
795ZIP_DELEGATE_TRUE
796ZIP
797P7ZIP_DELEGATE_FALSE
798P7ZIP_DELEGATE_TRUE
799P7ZIP
800RPM_DELEGATE_FALSE
801RPM_DELEGATE_TRUE
802RPM
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
cristy5ac9ac82010-07-29 13:24:24 +0000815UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000816TXTDelegate
817SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000818RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000819RMDelegate
820RLEEncodeDelegate
821PSDelegate
822POVDelegate
823PGPDecodeDelegate
824PCLDelegate
825MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000826MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000827MPEGEncodeDelegate
828MPEGDecodeDelegate
829MANDelegate
830LaunchDelegate
831LZWEncodeDelegate
832LZWDecodeDelegate
833LPRDelegate
834LPDelegate
835ILBMEncodeDelegate
836ILBMDecodeDelegate
837HTMLDecodeDelegate
838HPGLDecodeDelegate
839HDRDecodeDelegate
840GnuplotDecodeDelegate
841MogrifyDelegate
842DisplayDelegate
843ConvertDelegate
844FIGDecodeDelegate
845EditorDelegate
846EchoDelegate
847DVIDecodeDelegate
848GVCDecodeDelegate
849DNGDecodeDelegate
850CatDelegate
851CGMDecodeDelegate
852BrowseDelegate
853BZIPDelegate
854BlenderDecodeDelegate
855AVIDecodeDelegate
856AutotraceDecodeDelegate
857SHARE_CONFIGURE_PATH
858SHARE_PATH
859DOCUMENTATION_PATH
860FILTER_PATH
861CODER_PATH
862CONFIGURE_PATH
863LIBRARY_PATH
864EXECUTABLE_PATH
865PERLMAINCC
866XML_LIBS
867XML_DELEGATE_FALSE
868XML_DELEGATE_TRUE
869xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000870WMF_LIBS
871WMF_DELEGATE_FALSE
872WMF_DELEGATE_TRUE
873TIFF_LIBS
874TIFF_DELEGATE_FALSE
875TIFF_DELEGATE_TRUE
876CAIRO_DELEGATE_FALSE
877CAIRO_DELEGATE_TRUE
878RSVG_DELEGATE_FALSE
879RSVG_DELEGATE_TRUE
880CAIRO_SVG_LIBS
881CAIRO_SVG_CFLAGS
882RSVG_LIBS
883RSVG_CFLAGS
884PNG_LIBS
885PNG_DELEGATE_FALSE
886PNG_DELEGATE_TRUE
887OPENEXR_DELEGATE_FALSE
888OPENEXR_DELEGATE_TRUE
889OPENEXR_LIBS
890OPENEXR_CFLAGS
891LQR_DELEGATE_FALSE
892LQR_DELEGATE_TRUE
893LQR_LIBS
894LQR_CFLAGS
895LCMS_LIBS
896LCMS_DELEGATE_FALSE
897LCMS_DELEGATE_TRUE
898JP2_LIBS
899JP2_DELEGATE_FALSE
900JP2_DELEGATE_TRUE
901JPEG_LIBS
902JPEG_DELEGATE_FALSE
903JPEG_DELEGATE_TRUE
904JBIG_LIBS
905JBIG_DELEGATE_FALSE
906JBIG_DELEGATE_TRUE
907GVC_DELEGATE_FALSE
908GVC_DELEGATE_TRUE
909GVC_LIBS
910GVC_CFLAGS
911GS_LIBS
912GS_DELEGATE_FALSE
913GS_DELEGATE_TRUE
914FREETYPE_LIBS
915FREETYPE_DELEGATE_FALSE
916FREETYPE_DELEGATE_TRUE
917freetype_config
918FONTCONFIG_DELEGATE_FALSE
919FONTCONFIG_DELEGATE_TRUE
920FONTCONFIG_LIBS
921FONTCONFIG_CFLAGS
922FPX_LIBS
923FPX_DELEGATE_FALSE
924FPX_DELEGATE_TRUE
925FFTW_LIBS
926FFTW_DELEGATE_FALSE
927FFTW_DELEGATE_TRUE
928DJVU_LIBS
929DJVU_DELEGATE_FALSE
930DJVU_DELEGATE_TRUE
931DPS_LIBS
932DPS_DELEGATE_FALSE
933DPS_DELEGATE_TRUE
934AUTOTRACE_DELEGATE_FALSE
935AUTOTRACE_DELEGATE_TRUE
936AUTOTRACE_LIBS
937AUTOTRACE_CFLAGS
938LIB_DL
939ZLIB_LIBS
940ZLIB_DELEGATE_FALSE
941ZLIB_DELEGATE_TRUE
942XEXT_LIBS
943X11_LIBS
944X11_DELEGATE_FALSE
945X11_DELEGATE_TRUE
946X_EXTRA_LIBS
947X_LIBS
948X_PRE_LIBS
949X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000950XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000951BZLIB_LIBS
952BZLIB_DELEGATE_FALSE
953BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000954CCMALLOCDelegate
955UMEM_LIBS
956HasUMEM_FALSE
957HasUMEM_TRUE
958THREAD_LIBS
959GOMP_LIBS
960WITH_MAGICK_PLUS_PLUS_FALSE
961WITH_MAGICK_PLUS_PLUS_TRUE
962OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000963MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000964POW_LIB
965LIBOBJS
966UINTPTR_T
967UINTMAX_T
968UINT64_T
969INT64_T
970UINT32_T
971INT32_T
972UINT16_T
973INT16_T
974UINT8_T
975INT8_T
976LIBRARY_EXTRA_CPPFLAGS
977MODULE_EXTRA_CPPFLAGS
978LIBSTDCLDFLAGS
979PERL_MAKE_OPTIONS
980QUANTUM_DEPTH
981MAINT
982MAINTAINER_MODE_FALSE
983MAINTAINER_MODE_TRUE
984MAGICK_HDRI
985DLLDFLAGS
986WITH_LTDL_FALSE
987WITH_LTDL_TRUE
988WITH_MODULES_FALSE
989WITH_MODULES_TRUE
cristyfa112112010-01-04 17:48:07 +0000990WITH_SHARED_LIBS_FALSE
991WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000992LTDLOPEN
993LT_CONFIG_H
994CONVENIENCE_LTDL_FALSE
995CONVENIENCE_LTDL_TRUE
996INSTALL_LTDL_FALSE
997INSTALL_LTDL_TRUE
998ARGZ_H
999sys_symbol_underscore
1000LIBADD_DL
1001LT_DLPREOPEN
1002LIBADD_DLD_LINK
1003LIBADD_SHL_LOAD
1004LIBADD_DLOPEN
1005LT_DLLOADERS
1006INCLTDL
1007LTDLINCL
1008LTDLDEPS
1009LIBLTDL
1010LIBTOOL_DEPS
1011CXXCPP
1012OTOOL64
1013OTOOL
1014LIPO
1015NMEDIT
1016DSYMUTIL
cristyd0bd44a2010-09-24 12:38:11 +00001017lt_ECHO
cristy4dc44432009-12-30 23:30:06 +00001018RANLIB
cristy3ed852e2009-09-05 21:47:34 +00001019AR
1020NM
1021ac_ct_DUMPBIN
1022DUMPBIN
1023LIBTOOL
1024OBJDUMP
1025DLLTOOL
1026AS
1027LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00001028CL_LIBS
1029CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +00001030OPENMP_CFLAGS
1031PTHREAD_CFLAGS
1032PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +00001033PTHREAD_CC
cristy964cb7f2010-04-25 23:18:00 +00001034ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +00001035WinPathScript
1036USING_CL_FALSE
1037USING_CL_TRUE
1038CYGWIN_BUILD_FALSE
1039CYGWIN_BUILD_TRUE
1040WIN32_NATIVE_BUILD_FALSE
1041WIN32_NATIVE_BUILD_TRUE
1042WINGDI32_DELEGATE_FALSE
1043WINGDI32_DELEGATE_TRUE
1044GDI32_LIBS
1045PKG_CONFIG
1046LN_S
cristy3ed852e2009-09-05 21:47:34 +00001047LD
1048FGREP
cristy3ed852e2009-09-05 21:47:34 +00001049SED
cristy95646052009-11-28 23:05:30 +00001050am__fastdepCXX_FALSE
1051am__fastdepCXX_TRUE
1052CXXDEPMODE
1053ac_ct_CXX
1054CXXFLAGS
1055CXX
cristya0b81c32010-01-22 02:54:33 +00001056EGREP
1057GREP
1058CPP
cristy3ed852e2009-09-05 21:47:34 +00001059am__fastdepCC_FALSE
1060am__fastdepCC_TRUE
1061CCDEPMODE
1062AMDEPBACKSLASH
1063AMDEP_FALSE
1064AMDEP_TRUE
1065am__quote
1066am__include
1067DEPDIR
1068OBJEXT
1069EXEEXT
1070ac_ct_CC
1071CPPFLAGS
1072LDFLAGS
1073CFLAGS
1074CC
1075DIRSEP
1076MAGICK_FILTER_MODULE_PATH
1077MAGICK_CONFIGURE_BUILD_PATH
1078MAGICK_CONFIGURE_SRC_PATH
1079MAGICK_CODER_MODULE_PATH
1080MAN_DIR
1081INFO_DIR
1082PERSISTINCLUDE_DIR
1083INCLUDE_DIR
1084LIB_DIR
1085LOCALSTATE_DIR
1086SHAREDSTATE_DIR
1087SYSCONF_DIR
1088DATA_DIR
1089LIBEXEC_DIR
1090SBIN_DIR
1091BIN_DIR
1092EXEC_PREFIX_DIR
1093PREFIX_DIR
1094CONFIG_STATUS_DEPENDENCIES
1095MAGICK_LIB_VERSION_NUMBER
1096MAGICK_LIB_VERSION_TEXT
1097MAGICK_LIB_VERSION
1098AM_BACKSLASH
1099AM_DEFAULT_VERBOSITY
1100am__untar
1101am__tar
1102AMTAR
1103am__leading_dot
1104SET_MAKE
1105AWK
1106mkdir_p
1107MKDIR_P
1108INSTALL_STRIP_PROGRAM
1109STRIP
1110install_sh
1111MAKEINFO
1112AUTOHEADER
1113AUTOMAKE
1114AUTOCONF
1115ACLOCAL
1116VERSION
1117PACKAGE
1118CYGPATH_W
1119am__isrc
1120INSTALL_DATA
1121INSTALL_SCRIPT
1122INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001123PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001124PACKAGE_RELEASE_DATE
1125PACKAGE_LIB_VERSION_NUMBER
1126PACKAGE_LIB_VERSION
1127PACKAGE_CHANGE_DATE
1128PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +00001129MAGICK_LIBRARY_VERSION_INFO
1130MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001131MAGICK_LIBRARY_AGE
1132MAGICK_LIBRARY_REVISION
1133MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001134MAGICK_TARGET_OS
1135MAGICK_TARGET_VENDOR
1136MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001137target_os
1138target_vendor
1139target_cpu
1140target
1141host_os
1142host_vendor
1143host_cpu
1144host
1145build_os
1146build_vendor
1147build_cpu
1148build
1149CONFIGURE_ARGS
1150DISTCHECK_CONFIG_FLAGS
1151target_alias
1152host_alias
1153build_alias
1154LIBS
1155ECHO_T
1156ECHO_N
1157ECHO_C
1158DEFS
1159mandir
1160localedir
1161libdir
1162psdir
1163pdfdir
1164dvidir
1165htmldir
1166infodir
1167docdir
1168oldincludedir
1169includedir
1170localstatedir
1171sharedstatedir
1172sysconfdir
1173datadir
1174datarootdir
1175libexecdir
1176sbindir
1177bindir
1178program_transform_name
1179prefix
1180exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001181PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001182PACKAGE_BUGREPORT
1183PACKAGE_STRING
1184PACKAGE_VERSION
1185PACKAGE_TARNAME
1186PACKAGE_NAME
1187PATH_SEPARATOR
1188SHELL'
1189ac_subst_files=''
1190ac_user_opts='
1191enable_option_checking
1192enable_silent_rules
1193enable_dependency_tracking
1194with_gnu_ld
cristy3ed852e2009-09-05 21:47:34 +00001195with_dmalloc
1196enable_bounds_checking
1197enable_osx_universal_binary
1198with_threads
1199enable_openmp
cristy43596fe2010-01-21 16:46:08 +00001200enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001201enable_largefile
1202enable_shared
1203enable_static
1204with_pic
1205enable_fast_install
1206enable_libtool_lock
1207with_included_ltdl
1208with_ltdl_include
1209with_ltdl_lib
1210enable_ltdl_install
1211with_modules
1212enable_delegate_build
1213enable_deprecated
1214enable_installed
1215enable_cipher
1216enable_embeddable
1217enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001218enable_assert
1219enable_maintainer_mode
1220enable_ccmalloc
1221enable_efence
1222enable_prof
1223enable_gprof
1224enable_gcov
1225with_method_prefix
1226with_quantum_depth
1227with_cache
1228with_frozenpaths
1229with_magick_plus_plus
1230with_perl
1231with_perl_options
1232with_umem
1233with_libstdc
1234with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001235with_x
cristy3ed852e2009-09-05 21:47:34 +00001236with_zlib
1237with_autotrace
1238with_dps
1239with_djvu
cristy430a7312010-01-21 20:44:04 +00001240with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001241with_fftw
1242with_fpx
1243with_fontconfig
1244with_freetype
1245with_gslib
1246with_fontpath
1247with_gs_font_dir
1248with_gvc
1249with_jbig
1250with_jpeg
1251with_jp2
1252with_lcms
cristy71203402010-06-18 13:12:03 +00001253with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001254with_lqr
1255with_openexr
1256with_png
1257with_rsvg
1258with_tiff
1259with_windows_font_dir
1260with_wmf
1261with_xml
1262'
1263 ac_precious_vars='build_alias
1264host_alias
1265target_alias
1266CC
1267CFLAGS
1268LDFLAGS
1269LIBS
1270CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001271CPP
cristy3ed852e2009-09-05 21:47:34 +00001272CXX
1273CXXFLAGS
1274CCC
1275PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001276CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001277XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001278AUTOTRACE_CFLAGS
1279AUTOTRACE_LIBS
1280FONTCONFIG_CFLAGS
1281FONTCONFIG_LIBS
1282GVC_CFLAGS
1283GVC_LIBS
1284LQR_CFLAGS
1285LQR_LIBS
1286OPENEXR_CFLAGS
1287OPENEXR_LIBS
1288RSVG_CFLAGS
1289RSVG_LIBS
1290CAIRO_SVG_CFLAGS
1291CAIRO_SVG_LIBS'
1292
1293
1294# Initialize some variables set by options.
1295ac_init_help=
1296ac_init_version=false
1297ac_unrecognized_opts=
1298ac_unrecognized_sep=
1299# The variables have the same names as the options, with
1300# dashes changed to underlines.
1301cache_file=/dev/null
1302exec_prefix=NONE
1303no_create=
1304no_recursion=
1305prefix=NONE
1306program_prefix=NONE
1307program_suffix=NONE
1308program_transform_name=s,x,x,
1309silent=
1310site=
1311srcdir=
1312verbose=
1313x_includes=NONE
1314x_libraries=NONE
1315
1316# Installation directory options.
1317# These are left unexpanded so users can "make install exec_prefix=/foo"
1318# and all the variables that are supposed to be based on exec_prefix
1319# by default will actually change.
1320# Use braces instead of parens because sh, perl, etc. also accept them.
1321# (The list follows the same order as the GNU Coding Standards.)
1322bindir='${exec_prefix}/bin'
1323sbindir='${exec_prefix}/sbin'
1324libexecdir='${exec_prefix}/libexec'
1325datarootdir='${prefix}/share'
1326datadir='${datarootdir}'
1327sysconfdir='${prefix}/etc'
1328sharedstatedir='${prefix}/com'
1329localstatedir='${prefix}/var'
1330includedir='${prefix}/include'
1331oldincludedir='/usr/include'
1332docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1333infodir='${datarootdir}/info'
1334htmldir='${docdir}'
1335dvidir='${docdir}'
1336pdfdir='${docdir}'
1337psdir='${docdir}'
1338libdir='${exec_prefix}/lib'
1339localedir='${datarootdir}/locale'
1340mandir='${datarootdir}/man'
1341
1342ac_prev=
1343ac_dashdash=
1344for ac_option
1345do
1346 # If the previous option needs an argument, assign it.
1347 if test -n "$ac_prev"; then
1348 eval $ac_prev=\$ac_option
1349 ac_prev=
1350 continue
1351 fi
1352
1353 case $ac_option in
1354 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1355 *) ac_optarg=yes ;;
1356 esac
1357
1358 # Accept the important Cygnus configure options, so we can diagnose typos.
1359
1360 case $ac_dashdash$ac_option in
1361 --)
1362 ac_dashdash=yes ;;
1363
1364 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1365 ac_prev=bindir ;;
1366 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1367 bindir=$ac_optarg ;;
1368
1369 -build | --build | --buil | --bui | --bu)
1370 ac_prev=build_alias ;;
1371 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1372 build_alias=$ac_optarg ;;
1373
1374 -cache-file | --cache-file | --cache-fil | --cache-fi \
1375 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1376 ac_prev=cache_file ;;
1377 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1378 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1379 cache_file=$ac_optarg ;;
1380
1381 --config-cache | -C)
1382 cache_file=config.cache ;;
1383
1384 -datadir | --datadir | --datadi | --datad)
1385 ac_prev=datadir ;;
1386 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1387 datadir=$ac_optarg ;;
1388
1389 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1390 | --dataroo | --dataro | --datar)
1391 ac_prev=datarootdir ;;
1392 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1393 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1394 datarootdir=$ac_optarg ;;
1395
1396 -disable-* | --disable-*)
1397 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1398 # Reject names that are not valid shell variable names.
1399 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyf6fcb5d2010-09-24 01:19:13 +00001400 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001401 ac_useropt_orig=$ac_useropt
1402 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1403 case $ac_user_opts in
1404 *"
1405"enable_$ac_useropt"
1406"*) ;;
1407 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1408 ac_unrecognized_sep=', ';;
1409 esac
1410 eval enable_$ac_useropt=no ;;
1411
1412 -docdir | --docdir | --docdi | --doc | --do)
1413 ac_prev=docdir ;;
1414 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1415 docdir=$ac_optarg ;;
1416
1417 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1418 ac_prev=dvidir ;;
1419 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1420 dvidir=$ac_optarg ;;
1421
1422 -enable-* | --enable-*)
1423 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1424 # Reject names that are not valid shell variable names.
1425 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyf6fcb5d2010-09-24 01:19:13 +00001426 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001427 ac_useropt_orig=$ac_useropt
1428 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1429 case $ac_user_opts in
1430 *"
1431"enable_$ac_useropt"
1432"*) ;;
1433 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1434 ac_unrecognized_sep=', ';;
1435 esac
1436 eval enable_$ac_useropt=\$ac_optarg ;;
1437
1438 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1439 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1440 | --exec | --exe | --ex)
1441 ac_prev=exec_prefix ;;
1442 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1443 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1444 | --exec=* | --exe=* | --ex=*)
1445 exec_prefix=$ac_optarg ;;
1446
1447 -gas | --gas | --ga | --g)
1448 # Obsolete; use --with-gas.
1449 with_gas=yes ;;
1450
1451 -help | --help | --hel | --he | -h)
1452 ac_init_help=long ;;
1453 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1454 ac_init_help=recursive ;;
1455 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1456 ac_init_help=short ;;
1457
1458 -host | --host | --hos | --ho)
1459 ac_prev=host_alias ;;
1460 -host=* | --host=* | --hos=* | --ho=*)
1461 host_alias=$ac_optarg ;;
1462
1463 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1464 ac_prev=htmldir ;;
1465 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1466 | --ht=*)
1467 htmldir=$ac_optarg ;;
1468
1469 -includedir | --includedir | --includedi | --included | --include \
1470 | --includ | --inclu | --incl | --inc)
1471 ac_prev=includedir ;;
1472 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1473 | --includ=* | --inclu=* | --incl=* | --inc=*)
1474 includedir=$ac_optarg ;;
1475
1476 -infodir | --infodir | --infodi | --infod | --info | --inf)
1477 ac_prev=infodir ;;
1478 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1479 infodir=$ac_optarg ;;
1480
1481 -libdir | --libdir | --libdi | --libd)
1482 ac_prev=libdir ;;
1483 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1484 libdir=$ac_optarg ;;
1485
1486 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1487 | --libexe | --libex | --libe)
1488 ac_prev=libexecdir ;;
1489 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1490 | --libexe=* | --libex=* | --libe=*)
1491 libexecdir=$ac_optarg ;;
1492
1493 -localedir | --localedir | --localedi | --localed | --locale)
1494 ac_prev=localedir ;;
1495 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1496 localedir=$ac_optarg ;;
1497
1498 -localstatedir | --localstatedir | --localstatedi | --localstated \
1499 | --localstate | --localstat | --localsta | --localst | --locals)
1500 ac_prev=localstatedir ;;
1501 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1502 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1503 localstatedir=$ac_optarg ;;
1504
1505 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1506 ac_prev=mandir ;;
1507 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1508 mandir=$ac_optarg ;;
1509
1510 -nfp | --nfp | --nf)
1511 # Obsolete; use --without-fp.
1512 with_fp=no ;;
1513
1514 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1515 | --no-cr | --no-c | -n)
1516 no_create=yes ;;
1517
1518 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1519 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1520 no_recursion=yes ;;
1521
1522 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1523 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1524 | --oldin | --oldi | --old | --ol | --o)
1525 ac_prev=oldincludedir ;;
1526 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1527 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1528 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1529 oldincludedir=$ac_optarg ;;
1530
1531 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1532 ac_prev=prefix ;;
1533 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1534 prefix=$ac_optarg ;;
1535
1536 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1537 | --program-pre | --program-pr | --program-p)
1538 ac_prev=program_prefix ;;
1539 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1540 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1541 program_prefix=$ac_optarg ;;
1542
1543 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1544 | --program-suf | --program-su | --program-s)
1545 ac_prev=program_suffix ;;
1546 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1547 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1548 program_suffix=$ac_optarg ;;
1549
1550 -program-transform-name | --program-transform-name \
1551 | --program-transform-nam | --program-transform-na \
1552 | --program-transform-n | --program-transform- \
1553 | --program-transform | --program-transfor \
1554 | --program-transfo | --program-transf \
1555 | --program-trans | --program-tran \
1556 | --progr-tra | --program-tr | --program-t)
1557 ac_prev=program_transform_name ;;
1558 -program-transform-name=* | --program-transform-name=* \
1559 | --program-transform-nam=* | --program-transform-na=* \
1560 | --program-transform-n=* | --program-transform-=* \
1561 | --program-transform=* | --program-transfor=* \
1562 | --program-transfo=* | --program-transf=* \
1563 | --program-trans=* | --program-tran=* \
1564 | --progr-tra=* | --program-tr=* | --program-t=*)
1565 program_transform_name=$ac_optarg ;;
1566
1567 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1568 ac_prev=pdfdir ;;
1569 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1570 pdfdir=$ac_optarg ;;
1571
1572 -psdir | --psdir | --psdi | --psd | --ps)
1573 ac_prev=psdir ;;
1574 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1575 psdir=$ac_optarg ;;
1576
1577 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1578 | -silent | --silent | --silen | --sile | --sil)
1579 silent=yes ;;
1580
1581 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1582 ac_prev=sbindir ;;
1583 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1584 | --sbi=* | --sb=*)
1585 sbindir=$ac_optarg ;;
1586
1587 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1588 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1589 | --sharedst | --shareds | --shared | --share | --shar \
1590 | --sha | --sh)
1591 ac_prev=sharedstatedir ;;
1592 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1593 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1594 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1595 | --sha=* | --sh=*)
1596 sharedstatedir=$ac_optarg ;;
1597
1598 -site | --site | --sit)
1599 ac_prev=site ;;
1600 -site=* | --site=* | --sit=*)
1601 site=$ac_optarg ;;
1602
1603 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1604 ac_prev=srcdir ;;
1605 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1606 srcdir=$ac_optarg ;;
1607
1608 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1609 | --syscon | --sysco | --sysc | --sys | --sy)
1610 ac_prev=sysconfdir ;;
1611 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1612 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1613 sysconfdir=$ac_optarg ;;
1614
1615 -target | --target | --targe | --targ | --tar | --ta | --t)
1616 ac_prev=target_alias ;;
1617 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1618 target_alias=$ac_optarg ;;
1619
1620 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1621 verbose=yes ;;
1622
1623 -version | --version | --versio | --versi | --vers | -V)
1624 ac_init_version=: ;;
1625
1626 -with-* | --with-*)
1627 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1628 # Reject names that are not valid shell variable names.
1629 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyf6fcb5d2010-09-24 01:19:13 +00001630 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001631 ac_useropt_orig=$ac_useropt
1632 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1633 case $ac_user_opts in
1634 *"
1635"with_$ac_useropt"
1636"*) ;;
1637 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1638 ac_unrecognized_sep=', ';;
1639 esac
1640 eval with_$ac_useropt=\$ac_optarg ;;
1641
1642 -without-* | --without-*)
1643 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1644 # Reject names that are not valid shell variable names.
1645 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyf6fcb5d2010-09-24 01:19:13 +00001646 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001647 ac_useropt_orig=$ac_useropt
1648 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1649 case $ac_user_opts in
1650 *"
1651"with_$ac_useropt"
1652"*) ;;
1653 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1654 ac_unrecognized_sep=', ';;
1655 esac
1656 eval with_$ac_useropt=no ;;
1657
1658 --x)
1659 # Obsolete; use --with-x.
1660 with_x=yes ;;
1661
1662 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1663 | --x-incl | --x-inc | --x-in | --x-i)
1664 ac_prev=x_includes ;;
1665 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1666 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1667 x_includes=$ac_optarg ;;
1668
1669 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1670 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1671 ac_prev=x_libraries ;;
1672 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1673 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1674 x_libraries=$ac_optarg ;;
1675
cristyf6fcb5d2010-09-24 01:19:13 +00001676 -*) as_fn_error "unrecognized option: \`$ac_option'
1677Try \`$0 --help' for more information."
cristy3ed852e2009-09-05 21:47:34 +00001678 ;;
1679
1680 *=*)
1681 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1682 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001683 case $ac_envvar in #(
1684 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristyf6fcb5d2010-09-24 01:19:13 +00001685 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001686 esac
cristy3ed852e2009-09-05 21:47:34 +00001687 eval $ac_envvar=\$ac_optarg
1688 export $ac_envvar ;;
1689
1690 *)
1691 # FIXME: should be removed in autoconf 3.0.
1692 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1693 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1694 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1695 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1696 ;;
1697
1698 esac
1699done
1700
1701if test -n "$ac_prev"; then
1702 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristyf6fcb5d2010-09-24 01:19:13 +00001703 as_fn_error "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001704fi
1705
1706if test -n "$ac_unrecognized_opts"; then
1707 case $enable_option_checking in
1708 no) ;;
cristyf6fcb5d2010-09-24 01:19:13 +00001709 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001710 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1711 esac
1712fi
1713
1714# Check all directory arguments for consistency.
1715for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1716 datadir sysconfdir sharedstatedir localstatedir includedir \
1717 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1718 libdir localedir mandir
1719do
1720 eval ac_val=\$$ac_var
1721 # Remove trailing slashes.
1722 case $ac_val in
1723 */ )
1724 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1725 eval $ac_var=\$ac_val;;
1726 esac
1727 # Be sure to have absolute directory names.
1728 case $ac_val in
1729 [\\/$]* | ?:[\\/]* ) continue;;
1730 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1731 esac
cristyf6fcb5d2010-09-24 01:19:13 +00001732 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001733done
1734
1735# There might be people who depend on the old broken behavior: `$host'
1736# used to hold the argument of --host etc.
1737# FIXME: To remove some day.
1738build=$build_alias
1739host=$host_alias
1740target=$target_alias
1741
1742# FIXME: To remove some day.
1743if test "x$host_alias" != x; then
1744 if test "x$build_alias" = x; then
1745 cross_compiling=maybe
cristyf6fcb5d2010-09-24 01:19:13 +00001746 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1747 If a cross compiler is detected then cross compile mode will be used." >&2
cristy3ed852e2009-09-05 21:47:34 +00001748 elif test "x$build_alias" != "x$host_alias"; then
1749 cross_compiling=yes
1750 fi
1751fi
1752
1753ac_tool_prefix=
1754test -n "$host_alias" && ac_tool_prefix=$host_alias-
1755
1756test "$silent" = yes && exec 6>/dev/null
1757
1758
1759ac_pwd=`pwd` && test -n "$ac_pwd" &&
1760ac_ls_di=`ls -di .` &&
1761ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristyf6fcb5d2010-09-24 01:19:13 +00001762 as_fn_error "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001763test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristyf6fcb5d2010-09-24 01:19:13 +00001764 as_fn_error "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001765
1766
1767# Find the source files, if location was not specified.
1768if test -z "$srcdir"; then
1769 ac_srcdir_defaulted=yes
1770 # Try the directory containing this script, then the parent directory.
1771 ac_confdir=`$as_dirname -- "$as_myself" ||
1772$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1773 X"$as_myself" : 'X\(//\)[^/]' \| \
1774 X"$as_myself" : 'X\(//\)$' \| \
1775 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1776$as_echo X"$as_myself" |
1777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1778 s//\1/
1779 q
1780 }
1781 /^X\(\/\/\)[^/].*/{
1782 s//\1/
1783 q
1784 }
1785 /^X\(\/\/\)$/{
1786 s//\1/
1787 q
1788 }
1789 /^X\(\/\).*/{
1790 s//\1/
1791 q
1792 }
1793 s/.*/./; q'`
1794 srcdir=$ac_confdir
1795 if test ! -r "$srcdir/$ac_unique_file"; then
1796 srcdir=..
1797 fi
1798else
1799 ac_srcdir_defaulted=no
1800fi
1801if test ! -r "$srcdir/$ac_unique_file"; then
1802 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristyf6fcb5d2010-09-24 01:19:13 +00001803 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001804fi
1805ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1806ac_abs_confdir=`(
cristyf6fcb5d2010-09-24 01:19:13 +00001807 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001808 pwd)`
1809# When building in place, set srcdir=.
1810if test "$ac_abs_confdir" = "$ac_pwd"; then
1811 srcdir=.
1812fi
1813# Remove unnecessary trailing slashes from srcdir.
1814# Double slashes in file names in object file debugging info
1815# mess up M-x gdb in Emacs.
1816case $srcdir in
1817*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1818esac
1819for ac_var in $ac_precious_vars; do
1820 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1821 eval ac_env_${ac_var}_value=\$${ac_var}
1822 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1823 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1824done
1825
1826#
1827# Report the --help message.
1828#
1829if test "$ac_init_help" = "long"; then
1830 # Omit some internal or obsolete options to make the list less imposing.
1831 # This message is too long to be a string in the A/UX 3.1 sh.
1832 cat <<_ACEOF
cristy56225732010-09-04 23:44:25 +00001833\`configure' configures ImageMagick 6.6.4 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001834
1835Usage: $0 [OPTION]... [VAR=VALUE]...
1836
1837To assign environment variables (e.g., CC, CFLAGS...), specify them as
1838VAR=VALUE. See below for descriptions of some of the useful variables.
1839
1840Defaults for the options are specified in brackets.
1841
1842Configuration:
1843 -h, --help display this help and exit
1844 --help=short display options specific to this package
1845 --help=recursive display the short help of all the included packages
1846 -V, --version display version information and exit
cristyf6fcb5d2010-09-24 01:19:13 +00001847 -q, --quiet, --silent do not print \`checking...' messages
cristy3ed852e2009-09-05 21:47:34 +00001848 --cache-file=FILE cache test results in FILE [disabled]
1849 -C, --config-cache alias for \`--cache-file=config.cache'
1850 -n, --no-create do not create output files
1851 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1852
1853Installation directories:
1854 --prefix=PREFIX install architecture-independent files in PREFIX
1855 [$ac_default_prefix]
1856 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1857 [PREFIX]
1858
1859By default, \`make install' will install all the files in
1860\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1861an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1862for instance \`--prefix=\$HOME'.
1863
1864For better control, use the options below.
1865
1866Fine tuning of the installation directories:
1867 --bindir=DIR user executables [EPREFIX/bin]
1868 --sbindir=DIR system admin executables [EPREFIX/sbin]
1869 --libexecdir=DIR program executables [EPREFIX/libexec]
1870 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1871 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1872 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1873 --libdir=DIR object code libraries [EPREFIX/lib]
1874 --includedir=DIR C header files [PREFIX/include]
1875 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1876 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1877 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1878 --infodir=DIR info documentation [DATAROOTDIR/info]
1879 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1880 --mandir=DIR man documentation [DATAROOTDIR/man]
1881 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1882 --htmldir=DIR html documentation [DOCDIR]
1883 --dvidir=DIR dvi documentation [DOCDIR]
1884 --pdfdir=DIR pdf documentation [DOCDIR]
1885 --psdir=DIR ps documentation [DOCDIR]
1886_ACEOF
1887
1888 cat <<\_ACEOF
1889
1890Program names:
1891 --program-prefix=PREFIX prepend PREFIX to installed program names
1892 --program-suffix=SUFFIX append SUFFIX to installed program names
1893 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1894
1895X features:
1896 --x-includes=DIR X include files are in DIR
1897 --x-libraries=DIR X library files are in DIR
1898
1899System types:
1900 --build=BUILD configure for building on BUILD [guessed]
1901 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1902 --target=TARGET configure for building compilers for TARGET [HOST]
1903_ACEOF
1904fi
1905
1906if test -n "$ac_init_help"; then
1907 case $ac_init_help in
cristy56225732010-09-04 23:44:25 +00001908 short | recursive ) echo "Configuration of ImageMagick 6.6.4:";;
cristy3ed852e2009-09-05 21:47:34 +00001909 esac
1910 cat <<\_ACEOF
1911
1912Optional Features:
1913 --disable-option-checking ignore unrecognized --enable/--with options
1914 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1915 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1916 --enable-silent-rules less verbose build output (undo: `make V=1')
1917 --disable-silent-rules verbose build output (undo: `make V=0')
1918 --disable-dependency-tracking speeds up one-time build
1919 --enable-dependency-tracking do not reject slow dependency extractors
1920 --bounds-checking enable run-time bounds-checking
1921 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001922 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001923 --disable-openmp do not use OpenMP
cristy43596fe2010-01-21 16:46:08 +00001924 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001925 --disable-largefile omit support for large files
1926 --enable-shared[=PKGS] build shared libraries [default=yes]
1927 --enable-static[=PKGS] build static libraries [default=yes]
1928 --enable-fast-install[=PKGS]
1929 optimize for fast installation [default=yes]
1930 --disable-libtool-lock avoid locking (might break parallel builds)
1931 --enable-ltdl-install install libltdl
1932 --enable-delegate-build look for delegate libraries in build directory
1933 --disable-deprecated exclude deprecated methods in MagickCore and
1934 MagickWand API's
1935 --disable-installed Formally install ImageMagick under PREFIX
1936 --disable-cipher disable enciphering and deciphering image pixels
1937 --enable-embeddable enable self-contained, embeddable,
1938 zero-configuration ImageMagick
1939 --enable-hdri accurately represent the wide range of intensity
1940 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001941 --disable-assert disable assert() statements in build
1942 --enable-maintainer-mode enable make rules and dependencies not useful
1943 (and sometimes confusing) to the casual installer
1944 --enable-ccmalloc enable 'ccmalloc' memory debug support
1945 --enable-efence enable 'efence' memory debug support
1946 --enable-prof enable 'prof' profiling support
1947 --enable-gprof enable 'gprof' profiling support
1948 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001949 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001950
1951Optional Packages:
1952 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1953 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1954 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy3ed852e2009-09-05 21:47:34 +00001955 --with-dmalloc use dmalloc, as in
1956 http://www.dmalloc.com/dmalloc.tar.gz
1957 --without-threads disable threads support
1958 --with-pic try to use only PIC/non-PIC objects [default=use
1959 both]
1960 --with-included-ltdl use the GNU ltdl sources included here
1961 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1962 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1963 --with-modules enable building dynamically loadable modules
1964 --with-method-prefix=PREFIX
1965 prefix MagickCore API methods
1966 --with-quantum-depth=DEPTH
1967 number of bits in a pixel quantum (default 16)
1968 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1969 memory)
1970 --with-frozenpaths freeze delegate paths
1971 --without-magick-plus-plus
1972 disable build/install of Magick++
1973 --with-perl enable build/install of PerlMagick
1974 --with-perl-options=OPTIONS
1975 options to pass on command-line when generating
1976 PerlMagick's build file
1977 --with-umem enable umem memory allocation library support
1978 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1979 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001980 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001981 --without-zlib disable ZLIB support
1982 --with-autotrace enable autotrace support
1983 --without-dps disable Display Postscript support
1984 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001985 --with-dejavu-font-dir=DIR
1986 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001987 --without-fftw disable FFTW support
1988 --without-fpx disable FlashPIX support
1989 --without-fontconfig disable fontconfig support
1990 --without-freetype disable Freetype support
1991 --without-gslib enable Ghostscript library support
1992 --with-fontpath=DIR prepend to default font search path
1993 --with-gs-font-dir=DIR Ghostscript font directory
1994 --without-gvc disable GVC support
1995 --without-jbig disable JBIG support
1996 --without-jpeg disable JPEG support
1997 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001998 --without-lcms disable lcms (v1.1X) support
1999 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00002000 --without-lqr disable Liquid Rescale support
cristy3ed852e2009-09-05 21:47:34 +00002001 --without-openexr disable OpenEXR support
2002 --without-png disable PNG support
2003 --without-rsvg disable RSVG support
2004 --without-tiff disable TIFF support
2005 --with-windows-font-dir=DIR
2006 directory containing MS-Windows fonts
2007 --without-wmf disable WMF support
2008 --without-xml disable XML support
2009
2010Some influential environment variables:
2011 CC C compiler command
2012 CFLAGS C compiler flags
2013 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2014 nonstandard directory <lib dir>
2015 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002016 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002017 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00002018 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002019 CXX C++ compiler command
2020 CXXFLAGS C++ compiler flags
2021 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00002022 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00002023 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00002024 AUTOTRACE_CFLAGS
2025 C compiler flags for AUTOTRACE, overriding pkg-config
2026 AUTOTRACE_LIBS
2027 linker flags for AUTOTRACE, overriding pkg-config
2028 FONTCONFIG_CFLAGS
2029 C compiler flags for FONTCONFIG, overriding pkg-config
2030 FONTCONFIG_LIBS
2031 linker flags for FONTCONFIG, overriding pkg-config
2032 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2033 GVC_LIBS linker flags for GVC, overriding pkg-config
2034 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2035 LQR_LIBS linker flags for LQR, overriding pkg-config
2036 OPENEXR_CFLAGS
2037 C compiler flags for OPENEXR, overriding pkg-config
2038 OPENEXR_LIBS
2039 linker flags for OPENEXR, overriding pkg-config
2040 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2041 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2042 CAIRO_SVG_CFLAGS
2043 C compiler flags for CAIRO_SVG, overriding pkg-config
2044 CAIRO_SVG_LIBS
2045 linker flags for CAIRO_SVG, overriding pkg-config
2046
2047Use these variables to override the choices made by `configure' or to help
2048it to find libraries and programs with nonstandard names/locations.
2049
2050Report bugs to <http://www.imagemagick.org>.
2051_ACEOF
2052ac_status=$?
2053fi
2054
2055if test "$ac_init_help" = "recursive"; then
2056 # If there are subdirs, report their specific --help.
2057 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2058 test -d "$ac_dir" ||
2059 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2060 continue
2061 ac_builddir=.
2062
2063case "$ac_dir" in
2064.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2065*)
2066 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2067 # A ".." for each directory in $ac_dir_suffix.
2068 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2069 case $ac_top_builddir_sub in
2070 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2071 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2072 esac ;;
2073esac
2074ac_abs_top_builddir=$ac_pwd
2075ac_abs_builddir=$ac_pwd$ac_dir_suffix
2076# for backward compatibility:
2077ac_top_builddir=$ac_top_build_prefix
2078
2079case $srcdir in
2080 .) # We are building in place.
2081 ac_srcdir=.
2082 ac_top_srcdir=$ac_top_builddir_sub
2083 ac_abs_top_srcdir=$ac_pwd ;;
2084 [\\/]* | ?:[\\/]* ) # Absolute name.
2085 ac_srcdir=$srcdir$ac_dir_suffix;
2086 ac_top_srcdir=$srcdir
2087 ac_abs_top_srcdir=$srcdir ;;
2088 *) # Relative name.
2089 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2090 ac_top_srcdir=$ac_top_build_prefix$srcdir
2091 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2092esac
2093ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2094
2095 cd "$ac_dir" || { ac_status=$?; continue; }
2096 # Check for guested configure.
2097 if test -f "$ac_srcdir/configure.gnu"; then
2098 echo &&
2099 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2100 elif test -f "$ac_srcdir/configure"; then
2101 echo &&
2102 $SHELL "$ac_srcdir/configure" --help=recursive
2103 else
2104 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2105 fi || ac_status=$?
2106 cd "$ac_pwd" || { ac_status=$?; break; }
2107 done
2108fi
2109
2110test -n "$ac_init_help" && exit $ac_status
2111if $ac_init_version; then
2112 cat <<\_ACEOF
cristy56225732010-09-04 23:44:25 +00002113ImageMagick configure 6.6.4
cristyf6fcb5d2010-09-24 01:19:13 +00002114generated by GNU Autoconf 2.65
cristy3ed852e2009-09-05 21:47:34 +00002115
cristyf6fcb5d2010-09-24 01:19:13 +00002116Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002117This configure script is free software; the Free Software Foundation
2118gives unlimited permission to copy, distribute and modify it.
2119_ACEOF
2120 exit
2121fi
cristy8b350f62009-11-15 23:12:43 +00002122
2123## ------------------------ ##
2124## Autoconf initialization. ##
2125## ------------------------ ##
2126
2127# ac_fn_c_try_compile LINENO
2128# --------------------------
2129# Try to compile conftest.$ac_ext, and return whether this succeeded.
2130ac_fn_c_try_compile ()
2131{
2132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133 rm -f conftest.$ac_objext
2134 if { { ac_try="$ac_compile"
2135case "(($ac_try" in
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2138esac
2139eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2140$as_echo "$ac_try_echo"; } >&5
2141 (eval "$ac_compile") 2>conftest.err
2142 ac_status=$?
2143 if test -s conftest.err; then
2144 grep -v '^ *+' conftest.err >conftest.er1
2145 cat conftest.er1 >&5
2146 mv -f conftest.er1 conftest.err
2147 fi
2148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149 test $ac_status = 0; } && {
2150 test -z "$ac_c_werror_flag" ||
2151 test ! -s conftest.err
2152 } && test -s conftest.$ac_objext; then :
2153 ac_retval=0
2154else
2155 $as_echo "$as_me: failed program was:" >&5
2156sed 's/^/| /' conftest.$ac_ext >&5
2157
2158 ac_retval=1
2159fi
2160 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002161 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002162
2163} # ac_fn_c_try_compile
2164
cristy95646052009-11-28 23:05:30 +00002165# ac_fn_c_try_cpp LINENO
2166# ----------------------
2167# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2168ac_fn_c_try_cpp ()
2169{
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 if { { ac_try="$ac_cpp conftest.$ac_ext"
2172case "(($ac_try" in
2173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174 *) ac_try_echo=$ac_try;;
2175esac
2176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2177$as_echo "$ac_try_echo"; } >&5
2178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2179 ac_status=$?
2180 if test -s conftest.err; then
2181 grep -v '^ *+' conftest.err >conftest.er1
2182 cat conftest.er1 >&5
2183 mv -f conftest.er1 conftest.err
2184 fi
2185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2186 test $ac_status = 0; } >/dev/null && {
2187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2188 test ! -s conftest.err
2189 }; then :
2190 ac_retval=0
2191else
2192 $as_echo "$as_me: failed program was:" >&5
2193sed 's/^/| /' conftest.$ac_ext >&5
2194
2195 ac_retval=1
2196fi
2197 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2198 as_fn_set_status $ac_retval
2199
2200} # ac_fn_c_try_cpp
2201
cristy8b350f62009-11-15 23:12:43 +00002202# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2203# -------------------------------------------------------
2204# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2205# the include files in INCLUDES and setting the cache variable VAR
2206# accordingly.
2207ac_fn_c_check_header_mongrel ()
2208{
2209 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyf6fcb5d2010-09-24 01:19:13 +00002210 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2212$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002213if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002214 $as_echo_n "(cached) " >&6
2215fi
2216eval ac_res=\$$3
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2218$as_echo "$ac_res" >&6; }
2219else
2220 # Is the header compilable?
2221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2222$as_echo_n "checking $2 usability... " >&6; }
2223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224/* end confdefs.h. */
2225$4
2226#include <$2>
2227_ACEOF
2228if ac_fn_c_try_compile "$LINENO"; then :
2229 ac_header_compiler=yes
2230else
2231 ac_header_compiler=no
2232fi
2233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2235$as_echo "$ac_header_compiler" >&6; }
2236
2237# Is the header present?
2238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2239$as_echo_n "checking $2 presence... " >&6; }
2240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241/* end confdefs.h. */
2242#include <$2>
2243_ACEOF
2244if ac_fn_c_try_cpp "$LINENO"; then :
2245 ac_header_preproc=yes
2246else
2247 ac_header_preproc=no
2248fi
2249rm -f conftest.err conftest.$ac_ext
2250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2251$as_echo "$ac_header_preproc" >&6; }
2252
2253# So? What about this header?
2254case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2255 yes:no: )
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2257$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2259$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2260 ;;
2261 no:yes:* )
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2263$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2265$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2267$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2269$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2271$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00002272( cat <<\_ASBOX
2273## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002274## Report this to http://www.imagemagick.org ##
cristyf6fcb5d2010-09-24 01:19:13 +00002275## ----------------------------------------- ##
2276_ASBOX
cristy8b350f62009-11-15 23:12:43 +00002277 ) | sed "s/^/$as_me: WARNING: /" >&2
2278 ;;
2279esac
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2281$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002282if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002283 $as_echo_n "(cached) " >&6
2284else
2285 eval "$3=\$ac_header_compiler"
2286fi
2287eval ac_res=\$$3
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2289$as_echo "$ac_res" >&6; }
2290fi
2291 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2292
2293} # ac_fn_c_check_header_mongrel
2294
2295# ac_fn_c_try_run LINENO
2296# ----------------------
2297# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2298# that executables *can* be run.
2299ac_fn_c_try_run ()
2300{
2301 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2302 if { { ac_try="$ac_link"
2303case "(($ac_try" in
2304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2305 *) ac_try_echo=$ac_try;;
2306esac
2307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2308$as_echo "$ac_try_echo"; } >&5
2309 (eval "$ac_link") 2>&5
2310 ac_status=$?
2311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2312 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2313 { { case "(($ac_try" in
2314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2315 *) ac_try_echo=$ac_try;;
2316esac
2317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2318$as_echo "$ac_try_echo"; } >&5
2319 (eval "$ac_try") 2>&5
2320 ac_status=$?
2321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2322 test $ac_status = 0; }; }; then :
2323 ac_retval=0
2324else
2325 $as_echo "$as_me: program exited with status $ac_status" >&5
2326 $as_echo "$as_me: failed program was:" >&5
2327sed 's/^/| /' conftest.$ac_ext >&5
2328
2329 ac_retval=$ac_status
2330fi
2331 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2332 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002333 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002334
2335} # ac_fn_c_try_run
2336
2337# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2338# -------------------------------------------------------
2339# Tests whether HEADER exists and can be compiled using the include files in
2340# INCLUDES, setting the cache variable VAR accordingly.
2341ac_fn_c_check_header_compile ()
2342{
2343 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2345$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002346if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002347 $as_echo_n "(cached) " >&6
2348else
2349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350/* end confdefs.h. */
2351$4
2352#include <$2>
2353_ACEOF
2354if ac_fn_c_try_compile "$LINENO"; then :
2355 eval "$3=yes"
2356else
2357 eval "$3=no"
2358fi
2359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360fi
2361eval ac_res=\$$3
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2363$as_echo "$ac_res" >&6; }
2364 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2365
2366} # ac_fn_c_check_header_compile
2367
cristya0b81c32010-01-22 02:54:33 +00002368# ac_fn_cxx_try_compile LINENO
2369# ----------------------------
2370# Try to compile conftest.$ac_ext, and return whether this succeeded.
2371ac_fn_cxx_try_compile ()
2372{
2373 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2374 rm -f conftest.$ac_objext
2375 if { { ac_try="$ac_compile"
2376case "(($ac_try" in
2377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378 *) ac_try_echo=$ac_try;;
2379esac
2380eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2381$as_echo "$ac_try_echo"; } >&5
2382 (eval "$ac_compile") 2>conftest.err
2383 ac_status=$?
2384 if test -s conftest.err; then
2385 grep -v '^ *+' conftest.err >conftest.er1
2386 cat conftest.er1 >&5
2387 mv -f conftest.er1 conftest.err
2388 fi
2389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2390 test $ac_status = 0; } && {
2391 test -z "$ac_cxx_werror_flag" ||
2392 test ! -s conftest.err
2393 } && test -s conftest.$ac_objext; then :
2394 ac_retval=0
2395else
2396 $as_echo "$as_me: failed program was:" >&5
2397sed 's/^/| /' conftest.$ac_ext >&5
2398
2399 ac_retval=1
2400fi
2401 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2402 as_fn_set_status $ac_retval
2403
2404} # ac_fn_cxx_try_compile
2405
cristy8b350f62009-11-15 23:12:43 +00002406# ac_fn_c_try_link LINENO
2407# -----------------------
2408# Try to link conftest.$ac_ext, and return whether this succeeded.
2409ac_fn_c_try_link ()
2410{
2411 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2412 rm -f conftest.$ac_objext conftest$ac_exeext
2413 if { { ac_try="$ac_link"
2414case "(($ac_try" in
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2417esac
2418eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2419$as_echo "$ac_try_echo"; } >&5
2420 (eval "$ac_link") 2>conftest.err
2421 ac_status=$?
2422 if test -s conftest.err; then
2423 grep -v '^ *+' conftest.err >conftest.er1
2424 cat conftest.er1 >&5
2425 mv -f conftest.er1 conftest.err
2426 fi
2427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2428 test $ac_status = 0; } && {
2429 test -z "$ac_c_werror_flag" ||
2430 test ! -s conftest.err
2431 } && test -s conftest$ac_exeext && {
2432 test "$cross_compiling" = yes ||
2433 $as_test_x conftest$ac_exeext
2434 }; then :
2435 ac_retval=0
2436else
2437 $as_echo "$as_me: failed program was:" >&5
2438sed 's/^/| /' conftest.$ac_ext >&5
2439
2440 ac_retval=1
2441fi
2442 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2443 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2444 # interfere with the next link command; also delete a directory that is
2445 # left behind by Apple's compiler. We do this before executing the actions.
2446 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2447 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002448 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002449
2450} # ac_fn_c_try_link
2451
2452# ac_fn_c_check_func LINENO FUNC VAR
2453# ----------------------------------
2454# Tests whether FUNC exists, setting the cache variable VAR accordingly
2455ac_fn_c_check_func ()
2456{
2457 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2459$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002460if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002461 $as_echo_n "(cached) " >&6
2462else
2463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2464/* end confdefs.h. */
2465/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2467#define $2 innocuous_$2
2468
2469/* System header to define __stub macros and hopefully few prototypes,
2470 which can conflict with char $2 (); below.
2471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2472 <limits.h> exists even on freestanding compilers. */
2473
2474#ifdef __STDC__
2475# include <limits.h>
2476#else
2477# include <assert.h>
2478#endif
2479
2480#undef $2
2481
2482/* Override any GCC internal prototype to avoid an error.
2483 Use char because int might match the return type of a GCC
2484 builtin and then its argument prototype would still apply. */
2485#ifdef __cplusplus
2486extern "C"
2487#endif
2488char $2 ();
2489/* The GNU C library defines this for functions which it implements
2490 to always fail with ENOSYS. Some functions are actually named
2491 something starting with __ and the normal name is an alias. */
2492#if defined __stub_$2 || defined __stub___$2
2493choke me
2494#endif
2495
2496int
2497main ()
2498{
2499return $2 ();
2500 ;
2501 return 0;
2502}
2503_ACEOF
2504if ac_fn_c_try_link "$LINENO"; then :
2505 eval "$3=yes"
2506else
2507 eval "$3=no"
2508fi
2509rm -f core conftest.err conftest.$ac_objext \
2510 conftest$ac_exeext conftest.$ac_ext
2511fi
2512eval ac_res=\$$3
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2514$as_echo "$ac_res" >&6; }
2515 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2516
2517} # ac_fn_c_check_func
2518
2519# ac_fn_cxx_try_cpp LINENO
2520# ------------------------
2521# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2522ac_fn_cxx_try_cpp ()
2523{
2524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2525 if { { ac_try="$ac_cpp conftest.$ac_ext"
2526case "(($ac_try" in
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2529esac
2530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2531$as_echo "$ac_try_echo"; } >&5
2532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2533 ac_status=$?
2534 if test -s conftest.err; then
2535 grep -v '^ *+' conftest.err >conftest.er1
2536 cat conftest.er1 >&5
2537 mv -f conftest.er1 conftest.err
2538 fi
2539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2540 test $ac_status = 0; } >/dev/null && {
2541 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2542 test ! -s conftest.err
2543 }; then :
2544 ac_retval=0
2545else
2546 $as_echo "$as_me: failed program was:" >&5
2547sed 's/^/| /' conftest.$ac_ext >&5
2548
2549 ac_retval=1
2550fi
2551 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002552 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002553
2554} # ac_fn_cxx_try_cpp
2555
2556# ac_fn_cxx_try_link LINENO
2557# -------------------------
2558# Try to link conftest.$ac_ext, and return whether this succeeded.
2559ac_fn_cxx_try_link ()
2560{
2561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2562 rm -f conftest.$ac_objext conftest$ac_exeext
2563 if { { ac_try="$ac_link"
2564case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2567esac
2568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2569$as_echo "$ac_try_echo"; } >&5
2570 (eval "$ac_link") 2>conftest.err
2571 ac_status=$?
2572 if test -s conftest.err; then
2573 grep -v '^ *+' conftest.err >conftest.er1
2574 cat conftest.er1 >&5
2575 mv -f conftest.er1 conftest.err
2576 fi
2577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2578 test $ac_status = 0; } && {
2579 test -z "$ac_cxx_werror_flag" ||
2580 test ! -s conftest.err
2581 } && test -s conftest$ac_exeext && {
2582 test "$cross_compiling" = yes ||
2583 $as_test_x conftest$ac_exeext
2584 }; then :
2585 ac_retval=0
2586else
2587 $as_echo "$as_me: failed program was:" >&5
2588sed 's/^/| /' conftest.$ac_ext >&5
2589
2590 ac_retval=1
2591fi
2592 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2593 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2594 # interfere with the next link command; also delete a directory that is
2595 # left behind by Apple's compiler. We do this before executing the actions.
2596 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2597 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002598 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002599
2600} # ac_fn_cxx_try_link
2601
cristyf6fcb5d2010-09-24 01:19:13 +00002602# ac_fn_c_check_decl LINENO SYMBOL VAR
2603# ------------------------------------
2604# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
cristy8b350f62009-11-15 23:12:43 +00002605ac_fn_c_check_decl ()
2606{
2607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyf6fcb5d2010-09-24 01:19:13 +00002608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2609$as_echo_n "checking whether $2 is declared... " >&6; }
2610if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002611 $as_echo_n "(cached) " >&6
2612else
2613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2614/* end confdefs.h. */
2615$4
2616int
2617main ()
2618{
cristyf6fcb5d2010-09-24 01:19:13 +00002619#ifndef $2
2620 (void) $2;
cristy8b350f62009-11-15 23:12:43 +00002621#endif
2622
2623 ;
2624 return 0;
2625}
2626_ACEOF
2627if ac_fn_c_try_compile "$LINENO"; then :
2628 eval "$3=yes"
2629else
2630 eval "$3=no"
2631fi
2632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633fi
2634eval ac_res=\$$3
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2636$as_echo "$ac_res" >&6; }
2637 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2638
2639} # ac_fn_c_check_decl
2640
2641# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2642# -------------------------------------------
2643# Tests whether TYPE exists after having included INCLUDES, setting cache
2644# variable VAR accordingly.
2645ac_fn_c_check_type ()
2646{
2647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2649$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002650if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002651 $as_echo_n "(cached) " >&6
2652else
2653 eval "$3=no"
2654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2655/* end confdefs.h. */
2656$4
2657int
2658main ()
2659{
2660if (sizeof ($2))
2661 return 0;
2662 ;
2663 return 0;
2664}
2665_ACEOF
2666if ac_fn_c_try_compile "$LINENO"; then :
2667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2668/* end confdefs.h. */
2669$4
2670int
2671main ()
2672{
2673if (sizeof (($2)))
2674 return 0;
2675 ;
2676 return 0;
2677}
2678_ACEOF
2679if ac_fn_c_try_compile "$LINENO"; then :
2680
2681else
2682 eval "$3=yes"
2683fi
2684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2685fi
2686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2687fi
2688eval ac_res=\$$3
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2690$as_echo "$ac_res" >&6; }
2691 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2692
2693} # ac_fn_c_check_type
2694
cristy92703d82010-04-26 00:18:18 +00002695# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2696# ----------------------------------------------------
2697# Tries to find if the field MEMBER exists in type AGGR, after including
2698# INCLUDES, setting cache variable VAR accordingly.
2699ac_fn_c_check_member ()
2700{
2701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2703$as_echo_n "checking for $2.$3... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002704if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy92703d82010-04-26 00:18:18 +00002705 $as_echo_n "(cached) " >&6
2706else
2707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2708/* end confdefs.h. */
2709$5
2710int
2711main ()
2712{
2713static $2 ac_aggr;
2714if (ac_aggr.$3)
2715return 0;
2716 ;
2717 return 0;
2718}
2719_ACEOF
2720if ac_fn_c_try_compile "$LINENO"; then :
2721 eval "$4=yes"
2722else
2723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2724/* end confdefs.h. */
2725$5
2726int
2727main ()
2728{
2729static $2 ac_aggr;
2730if (sizeof ac_aggr.$3)
2731return 0;
2732 ;
2733 return 0;
2734}
2735_ACEOF
2736if ac_fn_c_try_compile "$LINENO"; then :
2737 eval "$4=yes"
2738else
2739 eval "$4=no"
2740fi
2741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2742fi
2743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2744fi
2745eval ac_res=\$$4
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2747$as_echo "$ac_res" >&6; }
2748 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2749
2750} # ac_fn_c_check_member
2751
cristy8b350f62009-11-15 23:12:43 +00002752# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2753# --------------------------------------------
2754# Tries to find the compile-time value of EXPR in a program that includes
2755# INCLUDES, setting VAR accordingly. Returns whether the value could be
2756# computed
2757ac_fn_c_compute_int ()
2758{
2759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2760 if test "$cross_compiling" = yes; then
2761 # Depending upon the size, compute the lo and hi bounds.
2762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2763/* end confdefs.h. */
2764$4
2765int
2766main ()
2767{
2768static int test_array [1 - 2 * !(($2) >= 0)];
2769test_array [0] = 0
2770
2771 ;
2772 return 0;
2773}
2774_ACEOF
2775if ac_fn_c_try_compile "$LINENO"; then :
2776 ac_lo=0 ac_mid=0
2777 while :; do
2778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2779/* end confdefs.h. */
2780$4
2781int
2782main ()
2783{
2784static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2785test_array [0] = 0
2786
2787 ;
2788 return 0;
2789}
2790_ACEOF
2791if ac_fn_c_try_compile "$LINENO"; then :
2792 ac_hi=$ac_mid; break
2793else
2794 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2795 if test $ac_lo -le $ac_mid; then
2796 ac_lo= ac_hi=
2797 break
2798 fi
2799 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2800fi
2801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802 done
2803else
2804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2805/* end confdefs.h. */
2806$4
2807int
2808main ()
2809{
2810static int test_array [1 - 2 * !(($2) < 0)];
2811test_array [0] = 0
2812
2813 ;
2814 return 0;
2815}
2816_ACEOF
2817if ac_fn_c_try_compile "$LINENO"; then :
2818 ac_hi=-1 ac_mid=-1
2819 while :; do
2820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2821/* end confdefs.h. */
2822$4
2823int
2824main ()
2825{
2826static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2827test_array [0] = 0
2828
2829 ;
2830 return 0;
2831}
2832_ACEOF
2833if ac_fn_c_try_compile "$LINENO"; then :
2834 ac_lo=$ac_mid; break
2835else
2836 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2837 if test $ac_mid -le $ac_hi; then
2838 ac_lo= ac_hi=
2839 break
2840 fi
2841 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2842fi
2843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2844 done
2845else
2846 ac_lo= ac_hi=
2847fi
2848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2849fi
2850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2851# Binary search between lo and hi bounds.
2852while test "x$ac_lo" != "x$ac_hi"; do
2853 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855/* end confdefs.h. */
2856$4
2857int
2858main ()
2859{
2860static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2861test_array [0] = 0
2862
2863 ;
2864 return 0;
2865}
2866_ACEOF
2867if ac_fn_c_try_compile "$LINENO"; then :
2868 ac_hi=$ac_mid
2869else
2870 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2871fi
2872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873done
2874case $ac_lo in #((
2875?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2876'') ac_retval=1 ;;
2877esac
2878 else
2879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2880/* end confdefs.h. */
2881$4
2882static long int longval () { return $2; }
2883static unsigned long int ulongval () { return $2; }
2884#include <stdio.h>
2885#include <stdlib.h>
2886int
2887main ()
2888{
2889
2890 FILE *f = fopen ("conftest.val", "w");
2891 if (! f)
2892 return 1;
2893 if (($2) < 0)
2894 {
2895 long int i = longval ();
2896 if (i != ($2))
2897 return 1;
2898 fprintf (f, "%ld", i);
2899 }
2900 else
2901 {
2902 unsigned long int i = ulongval ();
2903 if (i != ($2))
2904 return 1;
2905 fprintf (f, "%lu", i);
2906 }
2907 /* Do not output a trailing newline, as this causes \r\n confusion
2908 on some platforms. */
2909 return ferror (f) || fclose (f) != 0;
2910
2911 ;
2912 return 0;
2913}
2914_ACEOF
2915if ac_fn_c_try_run "$LINENO"; then :
2916 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2917else
2918 ac_retval=1
2919fi
2920rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2921 conftest.$ac_objext conftest.beam conftest.$ac_ext
2922rm -f conftest.val
2923
2924 fi
2925 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002926 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002927
2928} # ac_fn_c_compute_int
2929
2930# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2931# ---------------------------------------------------------
2932# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2933# the include files in INCLUDES and setting the cache variable VAR
2934# accordingly.
2935ac_fn_cxx_check_header_mongrel ()
2936{
2937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyf6fcb5d2010-09-24 01:19:13 +00002938 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2940$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002941if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002942 $as_echo_n "(cached) " >&6
2943fi
2944eval ac_res=\$$3
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2946$as_echo "$ac_res" >&6; }
2947else
2948 # Is the header compilable?
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2950$as_echo_n "checking $2 usability... " >&6; }
2951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952/* end confdefs.h. */
2953$4
2954#include <$2>
2955_ACEOF
2956if ac_fn_cxx_try_compile "$LINENO"; then :
2957 ac_header_compiler=yes
2958else
2959 ac_header_compiler=no
2960fi
2961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2963$as_echo "$ac_header_compiler" >&6; }
2964
2965# Is the header present?
2966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2967$as_echo_n "checking $2 presence... " >&6; }
2968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2969/* end confdefs.h. */
2970#include <$2>
2971_ACEOF
2972if ac_fn_cxx_try_cpp "$LINENO"; then :
2973 ac_header_preproc=yes
2974else
2975 ac_header_preproc=no
2976fi
2977rm -f conftest.err conftest.$ac_ext
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2979$as_echo "$ac_header_preproc" >&6; }
2980
2981# So? What about this header?
2982case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2983 yes:no: )
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2985$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2987$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2988 ;;
2989 no:yes:* )
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2991$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2993$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2995$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2997$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2999$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00003000( cat <<\_ASBOX
3001## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003002## Report this to http://www.imagemagick.org ##
cristyf6fcb5d2010-09-24 01:19:13 +00003003## ----------------------------------------- ##
3004_ASBOX
cristy8b350f62009-11-15 23:12:43 +00003005 ) | sed "s/^/$as_me: WARNING: /" >&2
3006 ;;
3007esac
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3009$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00003010if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00003011 $as_echo_n "(cached) " >&6
3012else
3013 eval "$3=\$ac_header_compiler"
3014fi
3015eval ac_res=\$$3
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3017$as_echo "$ac_res" >&6; }
3018fi
3019 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3020
3021} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003022cat >config.log <<_ACEOF
3023This file contains any messages produced by compilers while
3024running configure, to aid debugging if configure makes a mistake.
3025
cristy56225732010-09-04 23:44:25 +00003026It was created by ImageMagick $as_me 6.6.4, which was
cristyf6fcb5d2010-09-24 01:19:13 +00003027generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003028
3029 $ $0 $@
3030
3031_ACEOF
3032exec 5>>config.log
3033{
3034cat <<_ASUNAME
3035## --------- ##
3036## Platform. ##
3037## --------- ##
3038
3039hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3040uname -m = `(uname -m) 2>/dev/null || echo unknown`
3041uname -r = `(uname -r) 2>/dev/null || echo unknown`
3042uname -s = `(uname -s) 2>/dev/null || echo unknown`
3043uname -v = `(uname -v) 2>/dev/null || echo unknown`
3044
3045/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3046/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3047
3048/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3049/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3050/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3051/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3052/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3053/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3054/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3055
3056_ASUNAME
3057
3058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059for as_dir in $PATH
3060do
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003063 $as_echo "PATH: $as_dir"
3064 done
cristy3ed852e2009-09-05 21:47:34 +00003065IFS=$as_save_IFS
3066
3067} >&5
3068
3069cat >&5 <<_ACEOF
3070
3071
3072## ----------- ##
3073## Core tests. ##
3074## ----------- ##
3075
3076_ACEOF
3077
3078
3079# Keep a trace of the command line.
3080# Strip out --no-create and --no-recursion so they do not pile up.
3081# Strip out --silent because we don't want to record it for future runs.
3082# Also quote any args containing shell meta-characters.
3083# Make two passes to allow for proper duplicate-argument suppression.
3084ac_configure_args=
3085ac_configure_args0=
3086ac_configure_args1=
3087ac_must_keep_next=false
3088for ac_pass in 1 2
3089do
3090 for ac_arg
3091 do
3092 case $ac_arg in
3093 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3095 | -silent | --silent | --silen | --sile | --sil)
3096 continue ;;
3097 *\'*)
3098 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3099 esac
3100 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003101 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003102 2)
cristy8b350f62009-11-15 23:12:43 +00003103 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003104 if test $ac_must_keep_next = true; then
3105 ac_must_keep_next=false # Got value, back to normal.
3106 else
3107 case $ac_arg in
3108 *=* | --config-cache | -C | -disable-* | --disable-* \
3109 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3110 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3111 | -with-* | --with-* | -without-* | --without-* | --x)
3112 case "$ac_configure_args0 " in
3113 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3114 esac
3115 ;;
3116 -* ) ac_must_keep_next=true ;;
3117 esac
3118 fi
cristy8b350f62009-11-15 23:12:43 +00003119 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003120 ;;
3121 esac
3122 done
3123done
cristy8b350f62009-11-15 23:12:43 +00003124{ ac_configure_args0=; unset ac_configure_args0;}
3125{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003126
3127# When interrupted or exit'd, cleanup temporary files, and complete
3128# config.log. We remove comments because anyway the quotes in there
3129# would cause problems or look ugly.
3130# WARNING: Use '\'' to represent an apostrophe within the trap.
3131# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3132trap 'exit_status=$?
3133 # Save into config.log some information that might help in debugging.
3134 {
3135 echo
3136
cristyf6fcb5d2010-09-24 01:19:13 +00003137 cat <<\_ASBOX
3138## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003139## Cache variables. ##
cristyf6fcb5d2010-09-24 01:19:13 +00003140## ---------------- ##
3141_ASBOX
cristy3ed852e2009-09-05 21:47:34 +00003142 echo
3143 # The following way of writing the cache mishandles newlines in values,
3144(
3145 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3146 eval ac_val=\$$ac_var
3147 case $ac_val in #(
3148 *${as_nl}*)
3149 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003150 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003151$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3152 esac
3153 case $ac_var in #(
3154 _ | IFS | as_nl) ;; #(
3155 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003156 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003157 esac ;;
3158 esac
3159 done
3160 (set) 2>&1 |
3161 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3162 *${as_nl}ac_space=\ *)
3163 sed -n \
3164 "s/'\''/'\''\\\\'\'''\''/g;
3165 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3166 ;; #(
3167 *)
3168 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3169 ;;
3170 esac |
3171 sort
3172)
3173 echo
3174
cristyf6fcb5d2010-09-24 01:19:13 +00003175 cat <<\_ASBOX
3176## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003177## Output variables. ##
cristyf6fcb5d2010-09-24 01:19:13 +00003178## ----------------- ##
3179_ASBOX
cristy3ed852e2009-09-05 21:47:34 +00003180 echo
3181 for ac_var in $ac_subst_vars
3182 do
3183 eval ac_val=\$$ac_var
3184 case $ac_val in
3185 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3186 esac
3187 $as_echo "$ac_var='\''$ac_val'\''"
3188 done | sort
3189 echo
3190
3191 if test -n "$ac_subst_files"; then
cristyf6fcb5d2010-09-24 01:19:13 +00003192 cat <<\_ASBOX
3193## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003194## File substitutions. ##
cristyf6fcb5d2010-09-24 01:19:13 +00003195## ------------------- ##
3196_ASBOX
cristy3ed852e2009-09-05 21:47:34 +00003197 echo
3198 for ac_var in $ac_subst_files
3199 do
3200 eval ac_val=\$$ac_var
3201 case $ac_val in
3202 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3203 esac
3204 $as_echo "$ac_var='\''$ac_val'\''"
3205 done | sort
3206 echo
3207 fi
3208
3209 if test -s confdefs.h; then
cristyf6fcb5d2010-09-24 01:19:13 +00003210 cat <<\_ASBOX
3211## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003212## confdefs.h. ##
cristyf6fcb5d2010-09-24 01:19:13 +00003213## ----------- ##
3214_ASBOX
cristy3ed852e2009-09-05 21:47:34 +00003215 echo
3216 cat confdefs.h
3217 echo
3218 fi
3219 test "$ac_signal" != 0 &&
3220 $as_echo "$as_me: caught signal $ac_signal"
3221 $as_echo "$as_me: exit $exit_status"
3222 } >&5
3223 rm -f core *.core core.conftest.* &&
3224 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3225 exit $exit_status
3226' 0
3227for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003228 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003229done
3230ac_signal=0
3231
3232# confdefs.h avoids OS command line length limits that DEFS can exceed.
3233rm -f -r conftest* confdefs.h
3234
cristy8b350f62009-11-15 23:12:43 +00003235$as_echo "/* confdefs.h */" > confdefs.h
3236
cristy3ed852e2009-09-05 21:47:34 +00003237# Predefined preprocessor variables.
3238
3239cat >>confdefs.h <<_ACEOF
3240#define PACKAGE_NAME "$PACKAGE_NAME"
3241_ACEOF
3242
cristy3ed852e2009-09-05 21:47:34 +00003243cat >>confdefs.h <<_ACEOF
3244#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3245_ACEOF
3246
cristy3ed852e2009-09-05 21:47:34 +00003247cat >>confdefs.h <<_ACEOF
3248#define PACKAGE_VERSION "$PACKAGE_VERSION"
3249_ACEOF
3250
cristy3ed852e2009-09-05 21:47:34 +00003251cat >>confdefs.h <<_ACEOF
3252#define PACKAGE_STRING "$PACKAGE_STRING"
3253_ACEOF
3254
cristy3ed852e2009-09-05 21:47:34 +00003255cat >>confdefs.h <<_ACEOF
3256#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3257_ACEOF
3258
cristy8b350f62009-11-15 23:12:43 +00003259cat >>confdefs.h <<_ACEOF
3260#define PACKAGE_URL "$PACKAGE_URL"
3261_ACEOF
3262
cristy3ed852e2009-09-05 21:47:34 +00003263
3264# Let the site file select an alternate cache file if it wants to.
3265# Prefer an explicitly selected file to automatically selected ones.
3266ac_site_file1=NONE
3267ac_site_file2=NONE
3268if test -n "$CONFIG_SITE"; then
cristyf6fcb5d2010-09-24 01:19:13 +00003269 ac_site_file1=$CONFIG_SITE
cristy3ed852e2009-09-05 21:47:34 +00003270elif test "x$prefix" != xNONE; then
3271 ac_site_file1=$prefix/share/config.site
3272 ac_site_file2=$prefix/etc/config.site
3273else
3274 ac_site_file1=$ac_default_prefix/share/config.site
3275 ac_site_file2=$ac_default_prefix/etc/config.site
3276fi
3277for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3278do
3279 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003280 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003281 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003282$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3283 sed 's/^/| /' "$ac_site_file" >&5
cristyf6fcb5d2010-09-24 01:19:13 +00003284 . "$ac_site_file"
cristy3ed852e2009-09-05 21:47:34 +00003285 fi
3286done
3287
3288if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003289 # Some versions of bash will fail to source /dev/null (special files
3290 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3291 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003292 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003293$as_echo "$as_me: loading cache $cache_file" >&6;}
3294 case $cache_file in
3295 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3296 *) . "./$cache_file";;
3297 esac
3298 fi
3299else
cristy8b350f62009-11-15 23:12:43 +00003300 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003301$as_echo "$as_me: creating cache $cache_file" >&6;}
3302 >$cache_file
3303fi
3304
cristycd4c5312009-11-22 01:19:08 +00003305as_fn_append ac_header_list " stdlib.h"
3306as_fn_append ac_header_list " unistd.h"
3307as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003308# Check that the precious variables saved in the cache have kept the same
3309# value.
3310ac_cache_corrupted=false
3311for ac_var in $ac_precious_vars; do
3312 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3313 eval ac_new_set=\$ac_env_${ac_var}_set
3314 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3315 eval ac_new_val=\$ac_env_${ac_var}_value
3316 case $ac_old_set,$ac_new_set in
3317 set,)
cristy8b350f62009-11-15 23:12:43 +00003318 { $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 +00003319$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3320 ac_cache_corrupted=: ;;
3321 ,set)
cristy8b350f62009-11-15 23:12:43 +00003322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003323$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3324 ac_cache_corrupted=: ;;
3325 ,);;
3326 *)
3327 if test "x$ac_old_val" != "x$ac_new_val"; then
3328 # differences in whitespace do not lead to failure.
3329 ac_old_val_w=`echo x $ac_old_val`
3330 ac_new_val_w=`echo x $ac_new_val`
3331 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003333$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3334 ac_cache_corrupted=:
3335 else
cristy8b350f62009-11-15 23:12:43 +00003336 { $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 +00003337$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3338 eval $ac_var=\$ac_old_val
3339 fi
cristy8b350f62009-11-15 23:12:43 +00003340 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003341$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003342 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003343$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3344 fi;;
3345 esac
3346 # Pass precious variables to config.status.
3347 if test "$ac_new_set" = set; then
3348 case $ac_new_val in
3349 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3350 *) ac_arg=$ac_var=$ac_new_val ;;
3351 esac
3352 case " $ac_configure_args " in
3353 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003354 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003355 esac
3356 fi
3357done
3358if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003362$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00003363 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003364fi
cristy8b350f62009-11-15 23:12:43 +00003365## -------------------- ##
3366## Main body of script. ##
3367## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003368
3369ac_ext=c
3370ac_cpp='$CPP $CPPFLAGS'
3371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373ac_compiler_gnu=$ac_cv_c_compiler_gnu
3374
3375
3376
3377ac_aux_dir=
3378for ac_dir in config "$srcdir"/config; do
cristyf6fcb5d2010-09-24 01:19:13 +00003379 for ac_t in install-sh install.sh shtool; do
3380 if test -f "$ac_dir/$ac_t"; then
3381 ac_aux_dir=$ac_dir
3382 ac_install_sh="$ac_aux_dir/$ac_t -c"
3383 break 2
3384 fi
3385 done
cristy3ed852e2009-09-05 21:47:34 +00003386done
3387if test -z "$ac_aux_dir"; then
cristyf6fcb5d2010-09-24 01:19:13 +00003388 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003389fi
3390
3391# These three variables are undocumented and unsupported,
3392# and are intended to be withdrawn in a future Autoconf release.
3393# They can cause serious problems if a builder's source tree is in a directory
3394# whose full name contains unusual characters.
3395ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3396ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3397ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3398
3399
3400
3401
3402ac_config_headers="$ac_config_headers config/config.h"
3403
3404ac_config_commands="$ac_config_commands magick/magick-config.h"
3405
cristy430a7312010-01-21 20:44:04 +00003406ac_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 +00003407
3408
3409#
3410# Save initial user-tunable values
3411#
3412USER_LIBS=$LIBS
3413for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3414 eval isset=\${$var+set}
3415 if test "$isset" = 'set'; then
3416 eval val=$`echo $var`
3417 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3418 fi
3419done
3420
3421
3422CONFIGURE_ARGS="$0 ${ac_configure_args}"
3423
3424
3425# Source file containing package/library versioning information.
3426. ${srcdir}/version.sh
3427
cristy15a88782010-01-31 23:24:49 +00003428echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003429# Make sure we can run config.sub.
3430$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristyf6fcb5d2010-09-24 01:19:13 +00003431 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003432
cristy8b350f62009-11-15 23:12:43 +00003433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003434$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003435if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003436 $as_echo_n "(cached) " >&6
3437else
3438 ac_build_alias=$build_alias
3439test "x$ac_build_alias" = x &&
3440 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3441test "x$ac_build_alias" = x &&
cristyf6fcb5d2010-09-24 01:19:13 +00003442 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003443ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristyf6fcb5d2010-09-24 01:19:13 +00003444 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003445
3446fi
cristy8b350f62009-11-15 23:12:43 +00003447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003448$as_echo "$ac_cv_build" >&6; }
3449case $ac_cv_build in
3450*-*-*) ;;
cristyf6fcb5d2010-09-24 01:19:13 +00003451*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003452esac
3453build=$ac_cv_build
3454ac_save_IFS=$IFS; IFS='-'
3455set x $ac_cv_build
3456shift
3457build_cpu=$1
3458build_vendor=$2
3459shift; shift
3460# Remember, the first character of IFS is used to create $*,
3461# except with old shells:
3462build_os=$*
3463IFS=$ac_save_IFS
3464case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3465
3466
cristy8b350f62009-11-15 23:12:43 +00003467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003468$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003469if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003470 $as_echo_n "(cached) " >&6
3471else
3472 if test "x$host_alias" = x; then
3473 ac_cv_host=$ac_cv_build
3474else
3475 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristyf6fcb5d2010-09-24 01:19:13 +00003476 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003477fi
3478
3479fi
cristy8b350f62009-11-15 23:12:43 +00003480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003481$as_echo "$ac_cv_host" >&6; }
3482case $ac_cv_host in
3483*-*-*) ;;
cristyf6fcb5d2010-09-24 01:19:13 +00003484*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003485esac
3486host=$ac_cv_host
3487ac_save_IFS=$IFS; IFS='-'
3488set x $ac_cv_host
3489shift
3490host_cpu=$1
3491host_vendor=$2
3492shift; shift
3493# Remember, the first character of IFS is used to create $*,
3494# except with old shells:
3495host_os=$*
3496IFS=$ac_save_IFS
3497case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3498
3499
cristy8b350f62009-11-15 23:12:43 +00003500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003501$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003502if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003503 $as_echo_n "(cached) " >&6
3504else
3505 if test "x$target_alias" = x; then
3506 ac_cv_target=$ac_cv_host
3507else
3508 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristyf6fcb5d2010-09-24 01:19:13 +00003509 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003510fi
3511
3512fi
cristy8b350f62009-11-15 23:12:43 +00003513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003514$as_echo "$ac_cv_target" >&6; }
3515case $ac_cv_target in
3516*-*-*) ;;
cristyf6fcb5d2010-09-24 01:19:13 +00003517*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003518esac
3519target=$ac_cv_target
3520ac_save_IFS=$IFS; IFS='-'
3521set x $ac_cv_target
3522shift
3523target_cpu=$1
3524target_vendor=$2
3525shift; shift
3526# Remember, the first character of IFS is used to create $*,
3527# except with old shells:
3528target_os=$*
3529IFS=$ac_save_IFS
3530case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3531
3532
3533# The aliases save the names the user supplied, while $host etc.
3534# will get canonicalized.
3535test -n "$target_alias" &&
3536 test "$program_prefix$program_suffix$program_transform_name" = \
3537 NONENONEs,x,x, &&
3538 program_prefix=${target_alias}-
3539
cristy837d6dc2010-02-27 01:16:57 +00003540
3541
3542
3543
cristy3225a072010-04-17 01:47:28 +00003544MAGICK_TARGET_CPU=$target_cpu
3545
3546
3547MAGICK_TARGET_VENDOR=$target_vendor
3548
3549
3550MAGICK_TARGET_OS=$target_os
3551
3552
cristy3ed852e2009-09-05 21:47:34 +00003553# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003554MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3555
3556MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3557
cristy3ed852e2009-09-05 21:47:34 +00003558
3559
3560# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003562$as_echo_n "checking whether build environment is sane... " >&6; }
3563# Just in case
3564sleep 1
3565echo timestamp > conftest.file
3566# Reject unsafe characters in $srcdir or the absolute working directory
3567# name. Accept space and tab only in the latter.
3568am_lf='
3569'
3570case `pwd` in
3571 *[\\\"\#\$\&\'\`$am_lf]*)
cristyf6fcb5d2010-09-24 01:19:13 +00003572 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003573esac
3574case $srcdir in
3575 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyf6fcb5d2010-09-24 01:19:13 +00003576 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003577esac
3578
3579# Do `set' in a subshell so we don't clobber the current shell's
3580# arguments. Must try -L first in case configure is actually a
3581# symlink; some systems play weird games with the mod time of symlinks
3582# (eg FreeBSD returns the mod time of the symlink's containing
3583# directory).
3584if (
3585 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3586 if test "$*" = "X"; then
3587 # -L didn't work.
3588 set X `ls -t "$srcdir/configure" conftest.file`
3589 fi
3590 rm -f conftest.file
3591 if test "$*" != "X $srcdir/configure conftest.file" \
3592 && test "$*" != "X conftest.file $srcdir/configure"; then
3593
3594 # If neither matched, then we have a broken ls. This can happen
3595 # if, for instance, CONFIG_SHELL is bash and it inherits a
3596 # broken ls alias from the environment. This has actually
3597 # happened. Such a system could not be considered "sane".
cristyf6fcb5d2010-09-24 01:19:13 +00003598 as_fn_error "ls -t appears to fail. Make sure there is not a broken
cristy8b350f62009-11-15 23:12:43 +00003599alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003600 fi
3601
3602 test "$2" = conftest.file
3603 )
3604then
3605 # Ok.
3606 :
3607else
cristyf6fcb5d2010-09-24 01:19:13 +00003608 as_fn_error "newly created file is older than distributed files!
cristy8b350f62009-11-15 23:12:43 +00003609Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003610fi
cristy8b350f62009-11-15 23:12:43 +00003611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003612$as_echo "yes" >&6; }
3613
3614am__api_version='1.11'
3615
3616# Find a good install program. We prefer a C program (faster),
3617# so one script is as good as another. But avoid the broken or
3618# incompatible versions:
3619# SysV /etc/install, /usr/sbin/install
3620# SunOS /usr/etc/install
3621# IRIX /sbin/install
3622# AIX /bin/install
3623# AmigaOS /C/install, which installs bootblocks on floppy discs
3624# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3625# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3626# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3627# OS/2's system install, which has a completely different semantic
3628# ./install, which can be erroneously created by make from ./install.sh.
3629# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003631$as_echo_n "checking for a BSD-compatible install... " >&6; }
3632if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003633if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003634 $as_echo_n "(cached) " >&6
3635else
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637for as_dir in $PATH
3638do
3639 IFS=$as_save_IFS
3640 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003641 # Account for people who put trailing slashes in PATH elements.
3642case $as_dir/ in #((
3643 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003644 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003645 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003646 /usr/ucb/* ) ;;
3647 *)
3648 # OSF1 and SCO ODT 3.0 have their own names for install.
3649 # Don't use installbsd from OSF since it installs stuff as root
3650 # by default.
3651 for ac_prog in ginstall scoinst install; do
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3654 if test $ac_prog = install &&
3655 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3656 # AIX install. It has an incompatible calling convention.
3657 :
3658 elif test $ac_prog = install &&
3659 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3660 # program-specific install script used by HP pwplus--don't use.
3661 :
3662 else
3663 rm -rf conftest.one conftest.two conftest.dir
3664 echo one > conftest.one
3665 echo two > conftest.two
3666 mkdir conftest.dir
3667 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3668 test -s conftest.one && test -s conftest.two &&
3669 test -s conftest.dir/conftest.one &&
3670 test -s conftest.dir/conftest.two
3671 then
3672 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3673 break 3
3674 fi
3675 fi
3676 fi
3677 done
3678 done
3679 ;;
3680esac
3681
cristy8b350f62009-11-15 23:12:43 +00003682 done
cristy3ed852e2009-09-05 21:47:34 +00003683IFS=$as_save_IFS
3684
3685rm -rf conftest.one conftest.two conftest.dir
3686
3687fi
3688 if test "${ac_cv_path_install+set}" = set; then
3689 INSTALL=$ac_cv_path_install
3690 else
3691 # As a last resort, use the slow shell script. Don't cache a
3692 # value for INSTALL within a source directory, because that will
3693 # break other packages using the cache if that directory is
3694 # removed, or if the value is a relative name.
3695 INSTALL=$ac_install_sh
3696 fi
3697fi
cristy8b350f62009-11-15 23:12:43 +00003698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003699$as_echo "$INSTALL" >&6; }
3700
3701# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3702# It thinks the first close brace ends the variable substitution.
3703test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3704
3705test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3706
3707test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3708
3709test "$program_prefix" != NONE &&
3710 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3711# Use a double $ so make ignores it.
3712test "$program_suffix" != NONE &&
3713 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3714# Double any \ or $.
3715# By default was `s,x,x', remove it if useless.
3716ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3717program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3718
3719# expand $ac_aux_dir to an absolute path
3720am_aux_dir=`cd $ac_aux_dir && pwd`
3721
3722if test x"${MISSING+set}" != xset; then
3723 case $am_aux_dir in
3724 *\ * | *\ *)
3725 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3726 *)
3727 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3728 esac
3729fi
3730# Use eval to expand $SHELL
3731if eval "$MISSING --run true"; then
3732 am_missing_run="$MISSING --run "
3733else
3734 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003736$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3737fi
3738
3739if test x"${install_sh}" != xset; then
3740 case $am_aux_dir in
3741 *\ * | *\ *)
3742 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3743 *)
3744 install_sh="\${SHELL} $am_aux_dir/install-sh"
3745 esac
3746fi
3747
3748# Installed binaries are usually stripped using `strip' when the user
3749# run `make install-strip'. However `strip' might not be the right
3750# tool to use in cross-compilation environments, therefore Automake
3751# will honor the `STRIP' environment variable to overrule this program.
3752if test "$cross_compiling" != no; then
3753 if test -n "$ac_tool_prefix"; then
3754 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3755set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003757$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003758if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003759 $as_echo_n "(cached) " >&6
3760else
3761 if test -n "$STRIP"; then
3762 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3763else
3764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765for as_dir in $PATH
3766do
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003769 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003773 break 2
3774 fi
3775done
cristy8b350f62009-11-15 23:12:43 +00003776 done
cristy3ed852e2009-09-05 21:47:34 +00003777IFS=$as_save_IFS
3778
3779fi
3780fi
3781STRIP=$ac_cv_prog_STRIP
3782if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003784$as_echo "$STRIP" >&6; }
3785else
cristy8b350f62009-11-15 23:12:43 +00003786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003787$as_echo "no" >&6; }
3788fi
3789
3790
3791fi
3792if test -z "$ac_cv_prog_STRIP"; then
3793 ac_ct_STRIP=$STRIP
3794 # Extract the first word of "strip", so it can be a program name with args.
3795set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003797$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003798if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003799 $as_echo_n "(cached) " >&6
3800else
3801 if test -n "$ac_ct_STRIP"; then
3802 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3803else
3804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805for as_dir in $PATH
3806do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003809 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3811 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003813 break 2
3814 fi
3815done
cristy8b350f62009-11-15 23:12:43 +00003816 done
cristy3ed852e2009-09-05 21:47:34 +00003817IFS=$as_save_IFS
3818
3819fi
3820fi
3821ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3822if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003824$as_echo "$ac_ct_STRIP" >&6; }
3825else
cristy8b350f62009-11-15 23:12:43 +00003826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003827$as_echo "no" >&6; }
3828fi
3829
3830 if test "x$ac_ct_STRIP" = x; then
3831 STRIP=":"
3832 else
3833 case $cross_compiling:$ac_tool_warned in
3834yes:)
cristy8b350f62009-11-15 23:12:43 +00003835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3837ac_tool_warned=yes ;;
3838esac
3839 STRIP=$ac_ct_STRIP
3840 fi
3841else
3842 STRIP="$ac_cv_prog_STRIP"
3843fi
3844
3845fi
3846INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3847
cristy8b350f62009-11-15 23:12:43 +00003848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003849$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3850if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003851 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003852 $as_echo_n "(cached) " >&6
3853else
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3856do
3857 IFS=$as_save_IFS
3858 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003859 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3862 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3863 'mkdir (GNU coreutils) '* | \
3864 'mkdir (coreutils) '* | \
3865 'mkdir (fileutils) '4.1*)
3866 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3867 break 3;;
3868 esac
3869 done
3870 done
cristy8b350f62009-11-15 23:12:43 +00003871 done
cristy3ed852e2009-09-05 21:47:34 +00003872IFS=$as_save_IFS
3873
3874fi
3875
cristycd4c5312009-11-22 01:19:08 +00003876 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003877 if test "${ac_cv_path_mkdir+set}" = set; then
3878 MKDIR_P="$ac_cv_path_mkdir -p"
3879 else
3880 # As a last resort, use the slow shell script. Don't cache a
3881 # value for MKDIR_P within a source directory, because that will
3882 # break other packages using the cache if that directory is
3883 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003884 MKDIR_P="$ac_install_sh -d"
3885 fi
3886fi
cristy8b350f62009-11-15 23:12:43 +00003887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003888$as_echo "$MKDIR_P" >&6; }
3889
3890mkdir_p="$MKDIR_P"
3891case $mkdir_p in
3892 [\\/$]* | ?:[\\/]*) ;;
3893 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3894esac
3895
3896for ac_prog in gawk mawk nawk awk
3897do
3898 # Extract the first word of "$ac_prog", so it can be a program name with args.
3899set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003901$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003902if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003903 $as_echo_n "(cached) " >&6
3904else
3905 if test -n "$AWK"; then
3906 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3907else
3908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909for as_dir in $PATH
3910do
3911 IFS=$as_save_IFS
3912 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003913 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3915 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003917 break 2
3918 fi
3919done
cristy8b350f62009-11-15 23:12:43 +00003920 done
cristy3ed852e2009-09-05 21:47:34 +00003921IFS=$as_save_IFS
3922
3923fi
3924fi
3925AWK=$ac_cv_prog_AWK
3926if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003928$as_echo "$AWK" >&6; }
3929else
cristy8b350f62009-11-15 23:12:43 +00003930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003931$as_echo "no" >&6; }
3932fi
3933
3934
3935 test -n "$AWK" && break
3936done
3937
cristy8b350f62009-11-15 23:12:43 +00003938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003939$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3940set x ${MAKE-make}
3941ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyf6fcb5d2010-09-24 01:19:13 +00003942if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003943 $as_echo_n "(cached) " >&6
3944else
3945 cat >conftest.make <<\_ACEOF
3946SHELL = /bin/sh
3947all:
3948 @echo '@@@%%%=$(MAKE)=@@@%%%'
3949_ACEOF
cristyf6fcb5d2010-09-24 01:19:13 +00003950# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
cristy3ed852e2009-09-05 21:47:34 +00003951case `${MAKE-make} -f conftest.make 2>/dev/null` in
3952 *@@@%%%=?*=@@@%%%*)
3953 eval ac_cv_prog_make_${ac_make}_set=yes;;
3954 *)
3955 eval ac_cv_prog_make_${ac_make}_set=no;;
3956esac
3957rm -f conftest.make
3958fi
3959if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003961$as_echo "yes" >&6; }
3962 SET_MAKE=
3963else
cristy8b350f62009-11-15 23:12:43 +00003964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003965$as_echo "no" >&6; }
3966 SET_MAKE="MAKE=${MAKE-make}"
3967fi
3968
3969rm -rf .tst 2>/dev/null
3970mkdir .tst 2>/dev/null
3971if test -d .tst; then
3972 am__leading_dot=.
3973else
3974 am__leading_dot=_
3975fi
3976rmdir .tst 2>/dev/null
3977
3978if test "`cd $srcdir && pwd`" != "`pwd`"; then
3979 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3980 # is not polluted with repeated "-I."
3981 am__isrc=' -I$(srcdir)'
3982 # test to see if srcdir already configured
3983 if test -f $srcdir/config.status; then
cristyf6fcb5d2010-09-24 01:19:13 +00003984 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003985 fi
3986fi
3987
3988# test whether we have cygpath
3989if test -z "$CYGPATH_W"; then
3990 if (cygpath --version) >/dev/null 2>/dev/null; then
3991 CYGPATH_W='cygpath -w'
3992 else
3993 CYGPATH_W=echo
3994 fi
3995fi
3996
3997
3998# Define the identity of the package.
3999 PACKAGE=$PACKAGE_NAME
cristy15a88782010-01-31 23:24:49 +00004000 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00004001
4002
4003# Some tools Automake needs.
4004
4005ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4006
4007
4008AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4009
4010
4011AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4012
4013
4014AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4015
4016
4017MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4018
4019# We need awk for the "check" target. The system "awk" is bad on
4020# some platforms.
4021# Always define AMTAR for backward compatibility.
4022
4023AMTAR=${AMTAR-"${am_missing_run}tar"}
4024
4025am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4026
4027
4028
4029
4030
4031
4032# Enable support for silent build rules
4033# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00004034if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004035 enableval=$enable_silent_rules;
4036fi
4037
4038case $enable_silent_rules in
4039yes) AM_DEFAULT_VERBOSITY=0;;
4040no) AM_DEFAULT_VERBOSITY=1;;
4041*) AM_DEFAULT_VERBOSITY=0;;
4042esac
4043AM_BACKSLASH='\'
4044
4045
4046MAGICK_LIB_VERSION="0x"
4047if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4048 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4049fi
4050MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4051if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4052 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4053fi
4054MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4055if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4056 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4057fi
4058MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4059
4060
4061# Definition used to define MagickLibVersionText in version.h
4062MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4063
4064
4065# Definition used to define MagickLibVersionNumber in version.h
4066MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4067
4068
4069# Regenerate config.status if ChangeLog or version.sh is updated.
4070CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4071
4072
4073PERLMAINCC=$CC
4074
4075MAGICK_CFLAGS=''
4076MAGICK_CPPFLAGS=$CPPFLAGS_USER
4077MAGICK_PCFLAGS=$CPPFLAGS_USER
4078MAGICK_LDFLAGS=''
4079MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004080MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004081
4082#
4083# Evaluate shell variable equivalents to Makefile directory variables
4084#
4085if test "x$prefix" = xNONE; then
4086 prefix=$ac_default_prefix
4087fi
4088# Let make expand exec_prefix.
4089if test "x$exec_prefix" = xNONE; then
4090 exec_prefix='${prefix}'
4091fi
4092
4093#
4094eval "eval PREFIX_DIR=${prefix}"
4095
4096eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4097
4098eval "eval BIN_DIR=$bindir"
4099
4100eval "eval SBIN_DIR=$sbindir"
4101
4102eval "eval LIBEXEC_DIR=$libexecdir"
4103
4104eval "eval DATA_DIR=$datadir"
4105
4106eval "eval SYSCONF_DIR=$sysconfdir"
4107
4108eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4109
4110eval "eval LOCALSTATE_DIR=$localstatedir"
4111
4112eval "eval LIB_DIR=$libdir"
4113
4114eval "eval INCLUDE_DIR=$includedir"
4115
4116eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4117
4118eval "eval INFO_DIR=$infodir"
4119
4120eval "eval MAN_DIR=$mandir"
4121
4122
4123# Get full paths to source and build directories
4124srcdirfull="`cd $srcdir && pwd`"
4125builddir="`pwd`"
4126
4127#
4128# Compute variables useful for running uninstalled software.
4129#
4130MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4131MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4132MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4133MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4134DIRSEP=':'
4135case "${build_os}" in
4136 mingw* )
4137 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4138 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4139 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4140 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4141 DIRSEP=';'
4142 ;;
4143esac
4144case "${host_os}" in
4145 mingw* )
4146 DIRSEP=';'
4147 ;;
4148esac
4149
4150
4151
4152
4153
4154
cristya0b81c32010-01-22 02:54:33 +00004155
4156#
4157# Enable OS features.
4158#
4159DEPDIR="${am__leading_dot}deps"
4160
4161ac_config_commands="$ac_config_commands depfiles"
4162
4163
4164am_make=${MAKE-make}
4165cat > confinc << 'END'
4166am__doit:
4167 @echo this is the am__doit target
4168.PHONY: am__doit
4169END
4170# If we don't find an include directive, just comment out the code.
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4172$as_echo_n "checking for style of include used by $am_make... " >&6; }
4173am__include="#"
4174am__quote=
4175_am_result=none
4176# First try GNU make style include.
4177echo "include confinc" > confmf
4178# Ignore all kinds of additional output from `make'.
4179case `$am_make -s -f confmf 2> /dev/null` in #(
4180*the\ am__doit\ target*)
4181 am__include=include
4182 am__quote=
4183 _am_result=GNU
4184 ;;
4185esac
4186# Now try BSD make style include.
4187if test "$am__include" = "#"; then
4188 echo '.include "confinc"' > confmf
4189 case `$am_make -s -f confmf 2> /dev/null` in #(
4190 *the\ am__doit\ target*)
4191 am__include=.include
4192 am__quote="\""
4193 _am_result=BSD
4194 ;;
4195 esac
4196fi
4197
4198
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4200$as_echo "$_am_result" >&6; }
4201rm -f confinc confmf
4202
4203# Check whether --enable-dependency-tracking was given.
4204if test "${enable_dependency_tracking+set}" = set; then :
4205 enableval=$enable_dependency_tracking;
4206fi
4207
4208if test "x$enable_dependency_tracking" != xno; then
4209 am_depcomp="$ac_aux_dir/depcomp"
4210 AMDEPBACKSLASH='\'
4211fi
4212 if test "x$enable_dependency_tracking" != xno; then
4213 AMDEP_TRUE=
4214 AMDEP_FALSE='#'
4215else
4216 AMDEP_TRUE='#'
4217 AMDEP_FALSE=
4218fi
4219
4220
cristy3ed852e2009-09-05 21:47:34 +00004221ac_ext=c
4222ac_cpp='$CPP $CPPFLAGS'
4223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4225ac_compiler_gnu=$ac_cv_c_compiler_gnu
4226if test -n "$ac_tool_prefix"; then
4227 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4228set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004230$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004231if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004232 $as_echo_n "(cached) " >&6
4233else
4234 if test -n "$CC"; then
4235 ac_cv_prog_CC="$CC" # Let the user override the test.
4236else
4237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238for as_dir in $PATH
4239do
4240 IFS=$as_save_IFS
4241 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004242 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4244 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004246 break 2
4247 fi
4248done
cristy8b350f62009-11-15 23:12:43 +00004249 done
cristy3ed852e2009-09-05 21:47:34 +00004250IFS=$as_save_IFS
4251
4252fi
4253fi
4254CC=$ac_cv_prog_CC
4255if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004257$as_echo "$CC" >&6; }
4258else
cristy8b350f62009-11-15 23:12:43 +00004259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004260$as_echo "no" >&6; }
4261fi
4262
4263
4264fi
4265if test -z "$ac_cv_prog_CC"; then
4266 ac_ct_CC=$CC
4267 # Extract the first word of "gcc", so it can be a program name with args.
4268set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004270$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004271if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004272 $as_echo_n "(cached) " >&6
4273else
4274 if test -n "$ac_ct_CC"; then
4275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4276else
4277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278for as_dir in $PATH
4279do
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004282 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4284 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004286 break 2
4287 fi
4288done
cristy8b350f62009-11-15 23:12:43 +00004289 done
cristy3ed852e2009-09-05 21:47:34 +00004290IFS=$as_save_IFS
4291
4292fi
4293fi
4294ac_ct_CC=$ac_cv_prog_ac_ct_CC
4295if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004297$as_echo "$ac_ct_CC" >&6; }
4298else
cristy8b350f62009-11-15 23:12:43 +00004299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004300$as_echo "no" >&6; }
4301fi
4302
4303 if test "x$ac_ct_CC" = x; then
4304 CC=""
4305 else
4306 case $cross_compiling:$ac_tool_warned in
4307yes:)
cristy8b350f62009-11-15 23:12:43 +00004308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4310ac_tool_warned=yes ;;
4311esac
4312 CC=$ac_ct_CC
4313 fi
4314else
4315 CC="$ac_cv_prog_CC"
4316fi
4317
4318if test -z "$CC"; then
4319 if test -n "$ac_tool_prefix"; then
4320 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4321set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004323$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004324if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004325 $as_echo_n "(cached) " >&6
4326else
4327 if test -n "$CC"; then
4328 ac_cv_prog_CC="$CC" # Let the user override the test.
4329else
4330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331for as_dir in $PATH
4332do
4333 IFS=$as_save_IFS
4334 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004335 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4337 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004339 break 2
4340 fi
4341done
cristy8b350f62009-11-15 23:12:43 +00004342 done
cristy3ed852e2009-09-05 21:47:34 +00004343IFS=$as_save_IFS
4344
4345fi
4346fi
4347CC=$ac_cv_prog_CC
4348if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004350$as_echo "$CC" >&6; }
4351else
cristy8b350f62009-11-15 23:12:43 +00004352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004353$as_echo "no" >&6; }
4354fi
4355
4356
4357 fi
4358fi
4359if test -z "$CC"; then
4360 # Extract the first word of "cc", so it can be a program name with args.
4361set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004363$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004364if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004365 $as_echo_n "(cached) " >&6
4366else
4367 if test -n "$CC"; then
4368 ac_cv_prog_CC="$CC" # Let the user override the test.
4369else
4370 ac_prog_rejected=no
4371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372for as_dir in $PATH
4373do
4374 IFS=$as_save_IFS
4375 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004376 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4378 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4379 ac_prog_rejected=yes
4380 continue
4381 fi
4382 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004384 break 2
4385 fi
4386done
cristy8b350f62009-11-15 23:12:43 +00004387 done
cristy3ed852e2009-09-05 21:47:34 +00004388IFS=$as_save_IFS
4389
4390if test $ac_prog_rejected = yes; then
4391 # We found a bogon in the path, so make sure we never use it.
4392 set dummy $ac_cv_prog_CC
4393 shift
4394 if test $# != 0; then
4395 # We chose a different compiler from the bogus one.
4396 # However, it has the same basename, so the bogon will be chosen
4397 # first if we set CC to just the basename; use the full file name.
4398 shift
4399 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4400 fi
4401fi
4402fi
4403fi
4404CC=$ac_cv_prog_CC
4405if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004407$as_echo "$CC" >&6; }
4408else
cristy8b350f62009-11-15 23:12:43 +00004409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004410$as_echo "no" >&6; }
4411fi
4412
4413
4414fi
4415if test -z "$CC"; then
4416 if test -n "$ac_tool_prefix"; then
4417 for ac_prog in cl.exe
4418 do
4419 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4420set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004422$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004423if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004424 $as_echo_n "(cached) " >&6
4425else
4426 if test -n "$CC"; then
4427 ac_cv_prog_CC="$CC" # Let the user override the test.
4428else
4429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430for as_dir in $PATH
4431do
4432 IFS=$as_save_IFS
4433 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004434 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4436 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004438 break 2
4439 fi
4440done
cristy8b350f62009-11-15 23:12:43 +00004441 done
cristy3ed852e2009-09-05 21:47:34 +00004442IFS=$as_save_IFS
4443
4444fi
4445fi
4446CC=$ac_cv_prog_CC
4447if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004449$as_echo "$CC" >&6; }
4450else
cristy8b350f62009-11-15 23:12:43 +00004451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004452$as_echo "no" >&6; }
4453fi
4454
4455
4456 test -n "$CC" && break
4457 done
4458fi
4459if test -z "$CC"; then
4460 ac_ct_CC=$CC
4461 for ac_prog in cl.exe
4462do
4463 # Extract the first word of "$ac_prog", so it can be a program name with args.
4464set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004466$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004467if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004468 $as_echo_n "(cached) " >&6
4469else
4470 if test -n "$ac_ct_CC"; then
4471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4472else
4473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474for as_dir in $PATH
4475do
4476 IFS=$as_save_IFS
4477 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004478 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4480 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004482 break 2
4483 fi
4484done
cristy8b350f62009-11-15 23:12:43 +00004485 done
cristy3ed852e2009-09-05 21:47:34 +00004486IFS=$as_save_IFS
4487
4488fi
4489fi
4490ac_ct_CC=$ac_cv_prog_ac_ct_CC
4491if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004493$as_echo "$ac_ct_CC" >&6; }
4494else
cristy8b350f62009-11-15 23:12:43 +00004495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004496$as_echo "no" >&6; }
4497fi
4498
4499
4500 test -n "$ac_ct_CC" && break
4501done
4502
4503 if test "x$ac_ct_CC" = x; then
4504 CC=""
4505 else
4506 case $cross_compiling:$ac_tool_warned in
4507yes:)
cristy8b350f62009-11-15 23:12:43 +00004508{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4510ac_tool_warned=yes ;;
4511esac
4512 CC=$ac_ct_CC
4513 fi
4514fi
4515
4516fi
4517
4518
cristy8b350f62009-11-15 23:12:43 +00004519test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00004521as_fn_error "no acceptable C compiler found in \$PATH
4522See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004523
4524# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004525$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004526set X $ac_compile
4527ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004528for ac_option in --version -v -V -qversion; do
4529 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004530case "(($ac_try" in
4531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532 *) ac_try_echo=$ac_try;;
4533esac
cristy8b350f62009-11-15 23:12:43 +00004534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4535$as_echo "$ac_try_echo"; } >&5
4536 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004537 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004538 if test -s conftest.err; then
4539 sed '10a\
4540... rest of stderr output deleted ...
4541 10q' conftest.err >conftest.er1
4542 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004543 fi
cristycd4c5312009-11-22 01:19:08 +00004544 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4546 test $ac_status = 0; }
4547done
cristy3ed852e2009-09-05 21:47:34 +00004548
cristy8b350f62009-11-15 23:12:43 +00004549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004550/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004551
cristy3ed852e2009-09-05 21:47:34 +00004552int
4553main ()
4554{
4555
4556 ;
4557 return 0;
4558}
4559_ACEOF
4560ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004561ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004562# Try to create an executable without -o first, disregard a.out.
4563# It will help us diagnose broken compilers, and finding out an intuition
4564# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4566$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004567ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4568
4569# The possible output files:
4570ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4571
4572ac_rmfiles=
4573for ac_file in $ac_files
4574do
4575 case $ac_file in
4576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4577 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4578 esac
4579done
4580rm -f $ac_rmfiles
4581
cristy8b350f62009-11-15 23:12:43 +00004582if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004583case "(($ac_try" in
4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585 *) ac_try_echo=$ac_try;;
4586esac
cristy8b350f62009-11-15 23:12:43 +00004587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4588$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004589 (eval "$ac_link_default") 2>&5
4590 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4592 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004593 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4594# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4595# in a Makefile. We should not override ac_cv_exeext if it was cached,
4596# so that the user can short-circuit this test for compilers unknown to
4597# Autoconf.
4598for ac_file in $ac_files ''
4599do
4600 test -f "$ac_file" || continue
4601 case $ac_file in
4602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4603 ;;
4604 [ab].out )
4605 # We found the default executable, but exeext='' is most
4606 # certainly right.
4607 break;;
4608 *.* )
cristy8b350f62009-11-15 23:12:43 +00004609 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004610 then :; else
4611 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4612 fi
4613 # We set ac_cv_exeext here because the later test for it is not
4614 # safe: cross compilers may not add the suffix if given an `-o'
4615 # argument, so we may need to know it at that point already.
4616 # Even if this section looks crufty: it has the advantage of
4617 # actually working.
4618 break;;
4619 * )
4620 break;;
4621 esac
4622done
4623test "$ac_cv_exeext" = no && ac_cv_exeext=
4624
4625else
4626 ac_file=''
4627fi
cristy8b350f62009-11-15 23:12:43 +00004628if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630$as_echo "no" >&6; }
4631$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004632sed 's/^/| /' conftest.$ac_ext >&5
4633
cristy8b350f62009-11-15 23:12:43 +00004634{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00004636{ as_fn_set_status 77
4637as_fn_error "C compiler cannot create executables
4638See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00004639else
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4641$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004642fi
cristycd4c5312009-11-22 01:19:08 +00004643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4644$as_echo_n "checking for C compiler default output file name... " >&6; }
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4646$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004647ac_exeext=$ac_cv_exeext
4648
cristycd4c5312009-11-22 01:19:08 +00004649rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004650ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004652$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004653if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004654case "(($ac_try" in
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4657esac
cristy8b350f62009-11-15 23:12:43 +00004658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4659$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004660 (eval "$ac_link") 2>&5
4661 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4663 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004664 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4665# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4666# work properly (i.e., refer to `conftest.exe'), while it won't with
4667# `rm'.
4668for ac_file in conftest.exe conftest conftest.*; do
4669 test -f "$ac_file" || continue
4670 case $ac_file in
4671 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4672 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4673 break;;
4674 * ) break;;
4675 esac
4676done
4677else
cristy8b350f62009-11-15 23:12:43 +00004678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00004680as_fn_error "cannot compute suffix of executables: cannot compile and link
4681See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004682fi
cristycd4c5312009-11-22 01:19:08 +00004683rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004685$as_echo "$ac_cv_exeext" >&6; }
4686
4687rm -f conftest.$ac_ext
4688EXEEXT=$ac_cv_exeext
4689ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691/* end confdefs.h. */
4692#include <stdio.h>
4693int
4694main ()
4695{
4696FILE *f = fopen ("conftest.out", "w");
4697 return ferror (f) || fclose (f) != 0;
4698
4699 ;
4700 return 0;
4701}
4702_ACEOF
4703ac_clean_files="$ac_clean_files conftest.out"
4704# Check that the compiler produces executables we can run. If not, either
4705# the compiler is broken, or we cross compile.
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4707$as_echo_n "checking whether we are cross compiling... " >&6; }
4708if test "$cross_compiling" != yes; then
4709 { { ac_try="$ac_link"
4710case "(($ac_try" in
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4713esac
4714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4715$as_echo "$ac_try_echo"; } >&5
4716 (eval "$ac_link") 2>&5
4717 ac_status=$?
4718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4719 test $ac_status = 0; }
4720 if { ac_try='./conftest$ac_cv_exeext'
4721 { { case "(($ac_try" in
4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723 *) ac_try_echo=$ac_try;;
4724esac
4725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4726$as_echo "$ac_try_echo"; } >&5
4727 (eval "$ac_try") 2>&5
4728 ac_status=$?
4729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4730 test $ac_status = 0; }; }; then
4731 cross_compiling=no
4732 else
4733 if test "$cross_compiling" = maybe; then
4734 cross_compiling=yes
4735 else
4736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00004738as_fn_error "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004739If you meant to cross compile, use \`--host'.
cristyf6fcb5d2010-09-24 01:19:13 +00004740See \`config.log' for more details." "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004741 fi
4742 fi
4743fi
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4745$as_echo "$cross_compiling" >&6; }
4746
4747rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4748ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004750$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004751if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004752 $as_echo_n "(cached) " >&6
4753else
cristy8b350f62009-11-15 23:12:43 +00004754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004755/* end confdefs.h. */
4756
4757int
4758main ()
4759{
4760
4761 ;
4762 return 0;
4763}
4764_ACEOF
4765rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004766if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004767case "(($ac_try" in
4768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4770esac
cristy8b350f62009-11-15 23:12:43 +00004771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4772$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004773 (eval "$ac_compile") 2>&5
4774 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4776 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004777 for ac_file in conftest.o conftest.obj conftest.*; do
4778 test -f "$ac_file" || continue;
4779 case $ac_file in
4780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4781 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4782 break;;
4783 esac
4784done
4785else
4786 $as_echo "$as_me: failed program was:" >&5
4787sed 's/^/| /' conftest.$ac_ext >&5
4788
cristy8b350f62009-11-15 23:12:43 +00004789{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004790$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00004791as_fn_error "cannot compute suffix of object files: cannot compile
4792See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004793fi
cristy3ed852e2009-09-05 21:47:34 +00004794rm -f conftest.$ac_cv_objext conftest.$ac_ext
4795fi
cristy8b350f62009-11-15 23:12:43 +00004796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004797$as_echo "$ac_cv_objext" >&6; }
4798OBJEXT=$ac_cv_objext
4799ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004801$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004802if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004803 $as_echo_n "(cached) " >&6
4804else
cristy8b350f62009-11-15 23:12:43 +00004805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004806/* end confdefs.h. */
4807
4808int
4809main ()
4810{
4811#ifndef __GNUC__
4812 choke me
4813#endif
4814
4815 ;
4816 return 0;
4817}
4818_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004819if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004820 ac_compiler_gnu=yes
4821else
cristy8b350f62009-11-15 23:12:43 +00004822 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004823fi
cristy3ed852e2009-09-05 21:47:34 +00004824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825ac_cv_c_compiler_gnu=$ac_compiler_gnu
4826
4827fi
cristy8b350f62009-11-15 23:12:43 +00004828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004829$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4830if test $ac_compiler_gnu = yes; then
4831 GCC=yes
4832else
4833 GCC=
4834fi
4835ac_test_CFLAGS=${CFLAGS+set}
4836ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004838$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004839if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004840 $as_echo_n "(cached) " >&6
4841else
4842 ac_save_c_werror_flag=$ac_c_werror_flag
4843 ac_c_werror_flag=yes
4844 ac_cv_prog_cc_g=no
4845 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004847/* end confdefs.h. */
4848
4849int
4850main ()
4851{
4852
4853 ;
4854 return 0;
4855}
4856_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004857if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004858 ac_cv_prog_cc_g=yes
4859else
cristy8b350f62009-11-15 23:12:43 +00004860 CFLAGS=""
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004862/* end confdefs.h. */
4863
4864int
4865main ()
4866{
4867
4868 ;
4869 return 0;
4870}
4871_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004872if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004873
cristy8b350f62009-11-15 23:12:43 +00004874else
4875 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004876 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004878/* end confdefs.h. */
4879
4880int
4881main ()
4882{
4883
4884 ;
4885 return 0;
4886}
4887_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004888if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004889 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004890fi
cristy3ed852e2009-09-05 21:47:34 +00004891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892fi
cristy3ed852e2009-09-05 21:47:34 +00004893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894fi
cristy3ed852e2009-09-05 21:47:34 +00004895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4896 ac_c_werror_flag=$ac_save_c_werror_flag
4897fi
cristy8b350f62009-11-15 23:12:43 +00004898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004899$as_echo "$ac_cv_prog_cc_g" >&6; }
4900if test "$ac_test_CFLAGS" = set; then
4901 CFLAGS=$ac_save_CFLAGS
4902elif test $ac_cv_prog_cc_g = yes; then
4903 if test "$GCC" = yes; then
4904 CFLAGS="-g -O2"
4905 else
4906 CFLAGS="-g"
4907 fi
4908else
4909 if test "$GCC" = yes; then
4910 CFLAGS="-O2"
4911 else
4912 CFLAGS=
4913 fi
4914fi
cristy8b350f62009-11-15 23:12:43 +00004915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004916$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004917if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004918 $as_echo_n "(cached) " >&6
4919else
4920 ac_cv_prog_cc_c89=no
4921ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004923/* end confdefs.h. */
4924#include <stdarg.h>
4925#include <stdio.h>
4926#include <sys/types.h>
4927#include <sys/stat.h>
4928/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4929struct buf { int x; };
4930FILE * (*rcsopen) (struct buf *, struct stat *, int);
4931static char *e (p, i)
4932 char **p;
4933 int i;
4934{
4935 return p[i];
4936}
4937static char *f (char * (*g) (char **, int), char **p, ...)
4938{
4939 char *s;
4940 va_list v;
4941 va_start (v,p);
4942 s = g (p, va_arg (v,int));
4943 va_end (v);
4944 return s;
4945}
4946
4947/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4948 function prototypes and stuff, but not '\xHH' hex character constants.
4949 These don't provoke an error unfortunately, instead are silently treated
4950 as 'x'. The following induces an error, until -std is added to get
4951 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4952 array size at least. It's necessary to write '\x00'==0 to get something
4953 that's true only with -std. */
4954int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4955
4956/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4957 inside strings and character constants. */
4958#define FOO(x) 'x'
4959int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4960
4961int test (int i, double x);
4962struct s1 {int (*f) (int a);};
4963struct s2 {int (*f) (double a);};
4964int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4965int argc;
4966char **argv;
4967int
4968main ()
4969{
4970return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4971 ;
4972 return 0;
4973}
4974_ACEOF
4975for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4976 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4977do
4978 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004979 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004980 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004981fi
cristy3ed852e2009-09-05 21:47:34 +00004982rm -f core conftest.err conftest.$ac_objext
4983 test "x$ac_cv_prog_cc_c89" != "xno" && break
4984done
4985rm -f conftest.$ac_ext
4986CC=$ac_save_CC
4987
4988fi
4989# AC_CACHE_VAL
4990case "x$ac_cv_prog_cc_c89" in
4991 x)
cristy8b350f62009-11-15 23:12:43 +00004992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004993$as_echo "none needed" >&6; } ;;
4994 xno)
cristy8b350f62009-11-15 23:12:43 +00004995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004996$as_echo "unsupported" >&6; } ;;
4997 *)
4998 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005000$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5001esac
cristy8b350f62009-11-15 23:12:43 +00005002if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005003
cristy8b350f62009-11-15 23:12:43 +00005004fi
cristy3ed852e2009-09-05 21:47:34 +00005005
5006ac_ext=c
5007ac_cpp='$CPP $CPPFLAGS'
5008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005011
cristya0b81c32010-01-22 02:54:33 +00005012depcc="$CC" am_compiler_list=
cristy3ed852e2009-09-05 21:47:34 +00005013
cristya0b81c32010-01-22 02:54:33 +00005014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5015$as_echo_n "checking dependency style of $depcc... " >&6; }
5016if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5017 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00005018else
cristya0b81c32010-01-22 02:54:33 +00005019 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5020 # We make a subdir and do the tests there. Otherwise we can end up
5021 # making bogus files that we don't know about and never remove. For
5022 # instance it was reported that on HP-UX the gcc test will end up
5023 # making a dummy file named `D' -- because `-MD' means `put the output
5024 # in D'.
5025 mkdir conftest.dir
5026 # Copy depcomp to subdir because otherwise we won't find it if we're
5027 # using a relative directory.
5028 cp "$am_depcomp" conftest.dir
5029 cd conftest.dir
5030 # We will build objects and dependencies in a subdirectory because
5031 # it helps to detect inapplicable dependency modes. For instance
5032 # both Tru64's cc and ICC support -MD to output dependencies as a
5033 # side effect of compilation, but ICC will put the dependencies in
5034 # the current directory while Tru64 will put them in the object
5035 # directory.
5036 mkdir sub
5037
5038 am_cv_CC_dependencies_compiler_type=none
5039 if test "$am_compiler_list" = ""; then
5040 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5041 fi
5042 am__universal=false
5043 case " $depcc " in #(
5044 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5045 esac
5046
5047 for depmode in $am_compiler_list; do
5048 # Setup a source with many dependencies, because some compilers
5049 # like to wrap large dependency lists on column 80 (with \), and
5050 # we should not choose a depcomp mode which is confused by this.
5051 #
5052 # We need to recreate these files for each test, as the compiler may
5053 # overwrite some of them when testing with obscure command lines.
5054 # This happens at least with the AIX C compiler.
5055 : > sub/conftest.c
5056 for i in 1 2 3 4 5 6; do
5057 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5058 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5059 # Solaris 8's {/usr,}/bin/sh.
5060 touch sub/conftst$i.h
5061 done
5062 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5063
5064 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5065 # mode. It turns out that the SunPro C++ compiler does not properly
5066 # handle `-M -o', and we need to detect this. Also, some Intel
5067 # versions had trouble with output in subdirs
5068 am__obj=sub/conftest.${OBJEXT-o}
5069 am__minus_obj="-o $am__obj"
5070 case $depmode in
5071 gcc)
5072 # This depmode causes a compiler race in universal mode.
5073 test "$am__universal" = false || continue
5074 ;;
5075 nosideeffect)
5076 # after this tag, mechanisms are not by side-effect, so they'll
5077 # only be used when explicitly requested
5078 if test "x$enable_dependency_tracking" = xyes; then
5079 continue
5080 else
5081 break
5082 fi
5083 ;;
5084 msvisualcpp | msvcmsys)
5085 # This compiler won't grok `-c -o', but also, the minuso test has
5086 # not run yet. These depmodes are late enough in the game, and
5087 # so weak that their functioning should not be impacted.
5088 am__obj=conftest.${OBJEXT-o}
5089 am__minus_obj=
5090 ;;
5091 none) break ;;
5092 esac
5093 if depmode=$depmode \
5094 source=sub/conftest.c object=$am__obj \
5095 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5096 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5097 >/dev/null 2>conftest.err &&
5098 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5099 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5100 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5101 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5102 # icc doesn't choke on unknown options, it will just issue warnings
5103 # or remarks (even with -Werror). So we grep stderr for any message
5104 # that says an option was ignored or not supported.
5105 # When given -MP, icc 7.0 and 7.1 complain thusly:
5106 # icc: Command line warning: ignoring option '-M'; no argument required
5107 # The diagnosis changed in icc 8.0:
5108 # icc: Command line remark: option '-MP' not supported
5109 if (grep 'ignoring option' conftest.err ||
5110 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5111 am_cv_CC_dependencies_compiler_type=$depmode
5112 break
5113 fi
5114 fi
5115 done
5116
5117 cd ..
5118 rm -rf conftest.dir
5119else
5120 am_cv_CC_dependencies_compiler_type=none
5121fi
5122
5123fi
5124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5125$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5126CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5127
5128 if
5129 test "x$enable_dependency_tracking" != xno \
5130 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5131 am__fastdepCC_TRUE=
5132 am__fastdepCC_FALSE='#'
5133else
5134 am__fastdepCC_TRUE='#'
5135 am__fastdepCC_FALSE=
cristy3ed852e2009-09-05 21:47:34 +00005136fi
5137
5138
5139
cristya0b81c32010-01-22 02:54:33 +00005140ac_ext=c
5141ac_cpp='$CPP $CPPFLAGS'
5142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144ac_compiler_gnu=$ac_cv_c_compiler_gnu
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5146$as_echo_n "checking how to run the C preprocessor... " >&6; }
5147# On Suns, sometimes $CPP names a directory.
5148if test -n "$CPP" && test -d "$CPP"; then
5149 CPP=
5150fi
5151if test -z "$CPP"; then
5152 if test "${ac_cv_prog_CPP+set}" = set; then :
5153 $as_echo_n "(cached) " >&6
5154else
5155 # Double quotes because CPP needs to be expanded
5156 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5157 do
5158 ac_preproc_ok=false
5159for ac_c_preproc_warn_flag in '' yes
5160do
5161 # Use a header file that comes with gcc, so configuring glibc
5162 # with a fresh cross-compiler works.
5163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5164 # <limits.h> exists even on freestanding compilers.
5165 # On the NeXT, cc -E runs the code through the compiler's parser,
5166 # not just through cpp. "Syntax error" is here to catch this case.
5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168/* end confdefs.h. */
5169#ifdef __STDC__
5170# include <limits.h>
5171#else
5172# include <assert.h>
5173#endif
5174 Syntax error
5175_ACEOF
5176if ac_fn_c_try_cpp "$LINENO"; then :
5177
5178else
5179 # Broken: fails on valid input.
5180continue
5181fi
5182rm -f conftest.err conftest.$ac_ext
5183
5184 # OK, works on sane cases. Now check whether nonexistent headers
5185 # can be detected and how.
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187/* end confdefs.h. */
5188#include <ac_nonexistent.h>
5189_ACEOF
5190if ac_fn_c_try_cpp "$LINENO"; then :
5191 # Broken: success on invalid input.
5192continue
5193else
5194 # Passes both tests.
5195ac_preproc_ok=:
5196break
5197fi
5198rm -f conftest.err conftest.$ac_ext
5199
5200done
5201# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5202rm -f conftest.err conftest.$ac_ext
5203if $ac_preproc_ok; then :
5204 break
5205fi
5206
5207 done
5208 ac_cv_prog_CPP=$CPP
5209
5210fi
5211 CPP=$ac_cv_prog_CPP
5212else
5213 ac_cv_prog_CPP=$CPP
5214fi
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5216$as_echo "$CPP" >&6; }
5217ac_preproc_ok=false
5218for ac_c_preproc_warn_flag in '' yes
5219do
5220 # Use a header file that comes with gcc, so configuring glibc
5221 # with a fresh cross-compiler works.
5222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5223 # <limits.h> exists even on freestanding compilers.
5224 # On the NeXT, cc -E runs the code through the compiler's parser,
5225 # not just through cpp. "Syntax error" is here to catch this case.
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227/* end confdefs.h. */
5228#ifdef __STDC__
5229# include <limits.h>
5230#else
5231# include <assert.h>
5232#endif
5233 Syntax error
5234_ACEOF
5235if ac_fn_c_try_cpp "$LINENO"; then :
5236
5237else
5238 # Broken: fails on valid input.
5239continue
5240fi
5241rm -f conftest.err conftest.$ac_ext
5242
5243 # OK, works on sane cases. Now check whether nonexistent headers
5244 # can be detected and how.
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246/* end confdefs.h. */
5247#include <ac_nonexistent.h>
5248_ACEOF
5249if ac_fn_c_try_cpp "$LINENO"; then :
5250 # Broken: success on invalid input.
5251continue
5252else
5253 # Passes both tests.
5254ac_preproc_ok=:
5255break
5256fi
5257rm -f conftest.err conftest.$ac_ext
5258
5259done
5260# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5261rm -f conftest.err conftest.$ac_ext
5262if $ac_preproc_ok; then :
5263
5264else
5265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5266$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00005267as_fn_error "C preprocessor \"$CPP\" fails sanity check
5268See \`config.log' for more details." "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005269fi
5270
5271ac_ext=c
5272ac_cpp='$CPP $CPPFLAGS'
5273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5275ac_compiler_gnu=$ac_cv_c_compiler_gnu
5276
5277
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5279$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5280if test "${ac_cv_path_GREP+set}" = set; then :
5281 $as_echo_n "(cached) " >&6
5282else
5283 if test -z "$GREP"; then
5284 ac_path_GREP_found=false
5285 # Loop through the user's path and test for each of PROGNAME-LIST
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5288do
5289 IFS=$as_save_IFS
5290 test -z "$as_dir" && as_dir=.
5291 for ac_prog in grep ggrep; do
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5294 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5295# Check for GNU ac_path_GREP and select it if it is found.
5296 # Check for GNU $ac_path_GREP
5297case `"$ac_path_GREP" --version 2>&1` in
5298*GNU*)
5299 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5300*)
5301 ac_count=0
5302 $as_echo_n 0123456789 >"conftest.in"
5303 while :
5304 do
5305 cat "conftest.in" "conftest.in" >"conftest.tmp"
5306 mv "conftest.tmp" "conftest.in"
5307 cp "conftest.in" "conftest.nl"
5308 $as_echo 'GREP' >> "conftest.nl"
5309 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5311 as_fn_arith $ac_count + 1 && ac_count=$as_val
5312 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5313 # Best one so far, save it but keep looking for a better one
5314 ac_cv_path_GREP="$ac_path_GREP"
5315 ac_path_GREP_max=$ac_count
5316 fi
5317 # 10*(2^10) chars as input seems more than enough
5318 test $ac_count -gt 10 && break
5319 done
5320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5321esac
5322
5323 $ac_path_GREP_found && break 3
5324 done
5325 done
5326 done
5327IFS=$as_save_IFS
5328 if test -z "$ac_cv_path_GREP"; then
cristyf6fcb5d2010-09-24 01:19:13 +00005329 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005330 fi
5331else
5332 ac_cv_path_GREP=$GREP
5333fi
5334
5335fi
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5337$as_echo "$ac_cv_path_GREP" >&6; }
5338 GREP="$ac_cv_path_GREP"
5339
5340
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5342$as_echo_n "checking for egrep... " >&6; }
5343if test "${ac_cv_path_EGREP+set}" = set; then :
5344 $as_echo_n "(cached) " >&6
5345else
5346 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5347 then ac_cv_path_EGREP="$GREP -E"
5348 else
5349 if test -z "$EGREP"; then
5350 ac_path_EGREP_found=false
5351 # Loop through the user's path and test for each of PROGNAME-LIST
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5354do
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
5357 for ac_prog in egrep; do
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5360 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5361# Check for GNU ac_path_EGREP and select it if it is found.
5362 # Check for GNU $ac_path_EGREP
5363case `"$ac_path_EGREP" --version 2>&1` in
5364*GNU*)
5365 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5366*)
5367 ac_count=0
5368 $as_echo_n 0123456789 >"conftest.in"
5369 while :
5370 do
5371 cat "conftest.in" "conftest.in" >"conftest.tmp"
5372 mv "conftest.tmp" "conftest.in"
5373 cp "conftest.in" "conftest.nl"
5374 $as_echo 'EGREP' >> "conftest.nl"
5375 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5377 as_fn_arith $ac_count + 1 && ac_count=$as_val
5378 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5379 # Best one so far, save it but keep looking for a better one
5380 ac_cv_path_EGREP="$ac_path_EGREP"
5381 ac_path_EGREP_max=$ac_count
5382 fi
5383 # 10*(2^10) chars as input seems more than enough
5384 test $ac_count -gt 10 && break
5385 done
5386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5387esac
5388
5389 $ac_path_EGREP_found && break 3
5390 done
5391 done
5392 done
5393IFS=$as_save_IFS
5394 if test -z "$ac_cv_path_EGREP"; then
cristyf6fcb5d2010-09-24 01:19:13 +00005395 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005396 fi
5397else
5398 ac_cv_path_EGREP=$EGREP
5399fi
5400
5401 fi
5402fi
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5404$as_echo "$ac_cv_path_EGREP" >&6; }
5405 EGREP="$ac_cv_path_EGREP"
5406
5407
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5409$as_echo_n "checking for ANSI C header files... " >&6; }
5410if test "${ac_cv_header_stdc+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
5412else
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414/* end confdefs.h. */
5415#include <stdlib.h>
5416#include <stdarg.h>
5417#include <string.h>
5418#include <float.h>
5419
5420int
5421main ()
5422{
5423
5424 ;
5425 return 0;
5426}
5427_ACEOF
5428if ac_fn_c_try_compile "$LINENO"; then :
5429 ac_cv_header_stdc=yes
5430else
5431 ac_cv_header_stdc=no
5432fi
5433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5434
5435if test $ac_cv_header_stdc = yes; then
5436 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438/* end confdefs.h. */
5439#include <string.h>
5440
5441_ACEOF
5442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5443 $EGREP "memchr" >/dev/null 2>&1; then :
5444
5445else
5446 ac_cv_header_stdc=no
5447fi
5448rm -f conftest*
5449
5450fi
5451
5452if test $ac_cv_header_stdc = yes; then
5453 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455/* end confdefs.h. */
5456#include <stdlib.h>
5457
5458_ACEOF
5459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5460 $EGREP "free" >/dev/null 2>&1; then :
5461
5462else
5463 ac_cv_header_stdc=no
5464fi
5465rm -f conftest*
5466
5467fi
5468
5469if test $ac_cv_header_stdc = yes; then
5470 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5471 if test "$cross_compiling" = yes; then :
5472 :
5473else
5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475/* end confdefs.h. */
5476#include <ctype.h>
5477#include <stdlib.h>
5478#if ((' ' & 0x0FF) == 0x020)
5479# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5480# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5481#else
5482# define ISLOWER(c) \
5483 (('a' <= (c) && (c) <= 'i') \
5484 || ('j' <= (c) && (c) <= 'r') \
5485 || ('s' <= (c) && (c) <= 'z'))
5486# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5487#endif
5488
5489#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5490int
5491main ()
5492{
5493 int i;
5494 for (i = 0; i < 256; i++)
5495 if (XOR (islower (i), ISLOWER (i))
5496 || toupper (i) != TOUPPER (i))
5497 return 2;
5498 return 0;
5499}
5500_ACEOF
5501if ac_fn_c_try_run "$LINENO"; then :
5502
5503else
5504 ac_cv_header_stdc=no
5505fi
5506rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5507 conftest.$ac_objext conftest.beam conftest.$ac_ext
5508fi
5509
5510fi
5511fi
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5513$as_echo "$ac_cv_header_stdc" >&6; }
5514if test $ac_cv_header_stdc = yes; then
5515
5516$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5517
5518fi
5519
5520# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5521for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5522 inttypes.h stdint.h unistd.h
5523do :
5524 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5525ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5526"
cristyf6fcb5d2010-09-24 01:19:13 +00005527eval as_val=\$$as_ac_Header
5528 if test "x$as_val" = x""yes; then :
cristya0b81c32010-01-22 02:54:33 +00005529 cat >>confdefs.h <<_ACEOF
5530#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5531_ACEOF
5532
5533fi
5534
5535done
5536
5537
5538
5539 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5540if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5541 MINIX=yes
5542else
5543 MINIX=
5544fi
5545
5546
5547 if test "$MINIX" = yes; then
5548
5549$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5550
5551
5552$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5553
5554
5555$as_echo "#define _MINIX 1" >>confdefs.h
5556
5557 fi
5558
5559
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5561$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5562if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5563 $as_echo_n "(cached) " >&6
5564else
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566/* end confdefs.h. */
5567
5568# define __EXTENSIONS__ 1
5569 $ac_includes_default
5570int
5571main ()
5572{
5573
5574 ;
5575 return 0;
5576}
5577_ACEOF
5578if ac_fn_c_try_compile "$LINENO"; then :
5579 ac_cv_safe_to_define___extensions__=yes
5580else
5581 ac_cv_safe_to_define___extensions__=no
5582fi
5583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584fi
5585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5586$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5587 test $ac_cv_safe_to_define___extensions__ = yes &&
5588 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5589
5590 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5591
5592 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5593
5594 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5595
5596 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5597
5598
5599
5600# Check for programs
5601ac_ext=c
5602ac_cpp='$CPP $CPPFLAGS'
5603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5605ac_compiler_gnu=$ac_cv_c_compiler_gnu
5606if test -n "$ac_tool_prefix"; then
5607 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5608set dummy ${ac_tool_prefix}gcc; ac_word=$2
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610$as_echo_n "checking for $ac_word... " >&6; }
5611if test "${ac_cv_prog_CC+set}" = set; then :
5612 $as_echo_n "(cached) " >&6
5613else
5614 if test -n "$CC"; then
5615 ac_cv_prog_CC="$CC" # Let the user override the test.
5616else
5617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618for as_dir in $PATH
5619do
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5624 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 break 2
5627 fi
5628done
5629 done
5630IFS=$as_save_IFS
5631
5632fi
5633fi
5634CC=$ac_cv_prog_CC
5635if test -n "$CC"; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5637$as_echo "$CC" >&6; }
5638else
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640$as_echo "no" >&6; }
5641fi
5642
5643
5644fi
5645if test -z "$ac_cv_prog_CC"; then
5646 ac_ct_CC=$CC
5647 # Extract the first word of "gcc", so it can be a program name with args.
5648set dummy gcc; ac_word=$2
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650$as_echo_n "checking for $ac_word... " >&6; }
5651if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5652 $as_echo_n "(cached) " >&6
5653else
5654 if test -n "$ac_ct_CC"; then
5655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5656else
5657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658for as_dir in $PATH
5659do
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5664 ac_cv_prog_ac_ct_CC="gcc"
5665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 break 2
5667 fi
5668done
5669 done
5670IFS=$as_save_IFS
5671
5672fi
5673fi
5674ac_ct_CC=$ac_cv_prog_ac_ct_CC
5675if test -n "$ac_ct_CC"; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5677$as_echo "$ac_ct_CC" >&6; }
5678else
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680$as_echo "no" >&6; }
5681fi
5682
5683 if test "x$ac_ct_CC" = x; then
5684 CC=""
5685 else
5686 case $cross_compiling:$ac_tool_warned in
5687yes:)
5688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5690ac_tool_warned=yes ;;
5691esac
5692 CC=$ac_ct_CC
5693 fi
5694else
5695 CC="$ac_cv_prog_CC"
5696fi
5697
5698if test -z "$CC"; then
5699 if test -n "$ac_tool_prefix"; then
5700 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5701set dummy ${ac_tool_prefix}cc; ac_word=$2
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703$as_echo_n "checking for $ac_word... " >&6; }
5704if test "${ac_cv_prog_CC+set}" = set; then :
5705 $as_echo_n "(cached) " >&6
5706else
5707 if test -n "$CC"; then
5708 ac_cv_prog_CC="$CC" # Let the user override the test.
5709else
5710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711for as_dir in $PATH
5712do
5713 IFS=$as_save_IFS
5714 test -z "$as_dir" && as_dir=.
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5717 ac_cv_prog_CC="${ac_tool_prefix}cc"
5718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 break 2
5720 fi
5721done
5722 done
5723IFS=$as_save_IFS
5724
5725fi
5726fi
5727CC=$ac_cv_prog_CC
5728if test -n "$CC"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5730$as_echo "$CC" >&6; }
5731else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733$as_echo "no" >&6; }
5734fi
5735
5736
5737 fi
5738fi
5739if test -z "$CC"; then
5740 # Extract the first word of "cc", so it can be a program name with args.
5741set dummy cc; ac_word=$2
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5743$as_echo_n "checking for $ac_word... " >&6; }
5744if test "${ac_cv_prog_CC+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5746else
5747 if test -n "$CC"; then
5748 ac_cv_prog_CC="$CC" # Let the user override the test.
5749else
5750 ac_prog_rejected=no
5751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752for as_dir in $PATH
5753do
5754 IFS=$as_save_IFS
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5758 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5759 ac_prog_rejected=yes
5760 continue
5761 fi
5762 ac_cv_prog_CC="cc"
5763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 break 2
5765 fi
5766done
5767 done
5768IFS=$as_save_IFS
5769
5770if test $ac_prog_rejected = yes; then
5771 # We found a bogon in the path, so make sure we never use it.
5772 set dummy $ac_cv_prog_CC
5773 shift
5774 if test $# != 0; then
5775 # We chose a different compiler from the bogus one.
5776 # However, it has the same basename, so the bogon will be chosen
5777 # first if we set CC to just the basename; use the full file name.
5778 shift
5779 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5780 fi
5781fi
5782fi
5783fi
5784CC=$ac_cv_prog_CC
5785if test -n "$CC"; then
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5787$as_echo "$CC" >&6; }
5788else
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790$as_echo "no" >&6; }
5791fi
5792
5793
5794fi
5795if test -z "$CC"; then
5796 if test -n "$ac_tool_prefix"; then
5797 for ac_prog in cl.exe
5798 do
5799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5800set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802$as_echo_n "checking for $ac_word... " >&6; }
5803if test "${ac_cv_prog_CC+set}" = set; then :
5804 $as_echo_n "(cached) " >&6
5805else
5806 if test -n "$CC"; then
5807 ac_cv_prog_CC="$CC" # Let the user override the test.
5808else
5809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810for as_dir in $PATH
5811do
5812 IFS=$as_save_IFS
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5816 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818 break 2
5819 fi
5820done
5821 done
5822IFS=$as_save_IFS
5823
5824fi
5825fi
5826CC=$ac_cv_prog_CC
5827if test -n "$CC"; then
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5829$as_echo "$CC" >&6; }
5830else
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832$as_echo "no" >&6; }
5833fi
5834
5835
5836 test -n "$CC" && break
5837 done
5838fi
5839if test -z "$CC"; then
5840 ac_ct_CC=$CC
5841 for ac_prog in cl.exe
5842do
5843 # Extract the first word of "$ac_prog", so it can be a program name with args.
5844set dummy $ac_prog; ac_word=$2
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5846$as_echo_n "checking for $ac_word... " >&6; }
5847if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5848 $as_echo_n "(cached) " >&6
5849else
5850 if test -n "$ac_ct_CC"; then
5851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5852else
5853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854for as_dir in $PATH
5855do
5856 IFS=$as_save_IFS
5857 test -z "$as_dir" && as_dir=.
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5860 ac_cv_prog_ac_ct_CC="$ac_prog"
5861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5862 break 2
5863 fi
5864done
5865 done
5866IFS=$as_save_IFS
5867
5868fi
5869fi
5870ac_ct_CC=$ac_cv_prog_ac_ct_CC
5871if test -n "$ac_ct_CC"; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5873$as_echo "$ac_ct_CC" >&6; }
5874else
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876$as_echo "no" >&6; }
5877fi
5878
5879
5880 test -n "$ac_ct_CC" && break
5881done
5882
5883 if test "x$ac_ct_CC" = x; then
5884 CC=""
5885 else
5886 case $cross_compiling:$ac_tool_warned in
5887yes:)
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5890ac_tool_warned=yes ;;
5891esac
5892 CC=$ac_ct_CC
5893 fi
5894fi
5895
5896fi
5897
5898
5899test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00005901as_fn_error "no acceptable C compiler found in \$PATH
5902See \`config.log' for more details." "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005903
5904# Provide some information about the compiler.
5905$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5906set X $ac_compile
5907ac_compiler=$2
5908for ac_option in --version -v -V -qversion; do
5909 { { ac_try="$ac_compiler $ac_option >&5"
5910case "(($ac_try" in
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5913esac
5914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5915$as_echo "$ac_try_echo"; } >&5
5916 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5917 ac_status=$?
5918 if test -s conftest.err; then
5919 sed '10a\
5920... rest of stderr output deleted ...
5921 10q' conftest.err >conftest.er1
5922 cat conftest.er1 >&5
5923 fi
5924 rm -f conftest.er1 conftest.err
5925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5926 test $ac_status = 0; }
5927done
5928
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5930$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5931if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5932 $as_echo_n "(cached) " >&6
5933else
5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935/* end confdefs.h. */
5936
5937int
5938main ()
5939{
5940#ifndef __GNUC__
5941 choke me
5942#endif
5943
5944 ;
5945 return 0;
5946}
5947_ACEOF
5948if ac_fn_c_try_compile "$LINENO"; then :
5949 ac_compiler_gnu=yes
5950else
5951 ac_compiler_gnu=no
5952fi
5953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954ac_cv_c_compiler_gnu=$ac_compiler_gnu
5955
5956fi
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5958$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5959if test $ac_compiler_gnu = yes; then
5960 GCC=yes
5961else
5962 GCC=
5963fi
5964ac_test_CFLAGS=${CFLAGS+set}
5965ac_save_CFLAGS=$CFLAGS
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5967$as_echo_n "checking whether $CC accepts -g... " >&6; }
5968if test "${ac_cv_prog_cc_g+set}" = set; then :
5969 $as_echo_n "(cached) " >&6
5970else
5971 ac_save_c_werror_flag=$ac_c_werror_flag
5972 ac_c_werror_flag=yes
5973 ac_cv_prog_cc_g=no
5974 CFLAGS="-g"
5975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5976/* end confdefs.h. */
5977
5978int
5979main ()
5980{
5981
5982 ;
5983 return 0;
5984}
5985_ACEOF
5986if ac_fn_c_try_compile "$LINENO"; then :
5987 ac_cv_prog_cc_g=yes
5988else
5989 CFLAGS=""
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991/* end confdefs.h. */
5992
5993int
5994main ()
5995{
5996
5997 ;
5998 return 0;
5999}
6000_ACEOF
6001if ac_fn_c_try_compile "$LINENO"; then :
6002
6003else
6004 ac_c_werror_flag=$ac_save_c_werror_flag
6005 CFLAGS="-g"
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007/* end confdefs.h. */
6008
6009int
6010main ()
6011{
6012
6013 ;
6014 return 0;
6015}
6016_ACEOF
6017if ac_fn_c_try_compile "$LINENO"; then :
6018 ac_cv_prog_cc_g=yes
6019fi
6020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6021fi
6022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023fi
6024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6025 ac_c_werror_flag=$ac_save_c_werror_flag
6026fi
6027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6028$as_echo "$ac_cv_prog_cc_g" >&6; }
6029if test "$ac_test_CFLAGS" = set; then
6030 CFLAGS=$ac_save_CFLAGS
6031elif test $ac_cv_prog_cc_g = yes; then
6032 if test "$GCC" = yes; then
6033 CFLAGS="-g -O2"
6034 else
6035 CFLAGS="-g"
6036 fi
6037else
6038 if test "$GCC" = yes; then
6039 CFLAGS="-O2"
6040 else
6041 CFLAGS=
6042 fi
6043fi
6044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6045$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6046if test "${ac_cv_prog_cc_c89+set}" = set; then :
6047 $as_echo_n "(cached) " >&6
6048else
6049 ac_cv_prog_cc_c89=no
6050ac_save_CC=$CC
6051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052/* end confdefs.h. */
6053#include <stdarg.h>
6054#include <stdio.h>
6055#include <sys/types.h>
6056#include <sys/stat.h>
6057/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6058struct buf { int x; };
6059FILE * (*rcsopen) (struct buf *, struct stat *, int);
6060static char *e (p, i)
6061 char **p;
6062 int i;
6063{
6064 return p[i];
6065}
6066static char *f (char * (*g) (char **, int), char **p, ...)
6067{
6068 char *s;
6069 va_list v;
6070 va_start (v,p);
6071 s = g (p, va_arg (v,int));
6072 va_end (v);
6073 return s;
6074}
6075
6076/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6077 function prototypes and stuff, but not '\xHH' hex character constants.
6078 These don't provoke an error unfortunately, instead are silently treated
6079 as 'x'. The following induces an error, until -std is added to get
6080 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6081 array size at least. It's necessary to write '\x00'==0 to get something
6082 that's true only with -std. */
6083int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6084
6085/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6086 inside strings and character constants. */
6087#define FOO(x) 'x'
6088int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6089
6090int test (int i, double x);
6091struct s1 {int (*f) (int a);};
6092struct s2 {int (*f) (double a);};
6093int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6094int argc;
6095char **argv;
6096int
6097main ()
6098{
6099return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6100 ;
6101 return 0;
6102}
6103_ACEOF
6104for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6105 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6106do
6107 CC="$ac_save_CC $ac_arg"
6108 if ac_fn_c_try_compile "$LINENO"; then :
6109 ac_cv_prog_cc_c89=$ac_arg
6110fi
6111rm -f core conftest.err conftest.$ac_objext
6112 test "x$ac_cv_prog_cc_c89" != "xno" && break
6113done
6114rm -f conftest.$ac_ext
6115CC=$ac_save_CC
6116
6117fi
6118# AC_CACHE_VAL
6119case "x$ac_cv_prog_cc_c89" in
6120 x)
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6122$as_echo "none needed" >&6; } ;;
6123 xno)
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6125$as_echo "unsupported" >&6; } ;;
6126 *)
6127 CC="$CC $ac_cv_prog_cc_c89"
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6129$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6130esac
6131if test "x$ac_cv_prog_cc_c89" != xno; then :
6132
6133fi
6134
6135ac_ext=c
6136ac_cpp='$CPP $CPPFLAGS'
6137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6139ac_compiler_gnu=$ac_cv_c_compiler_gnu
6140
cristy3ed852e2009-09-05 21:47:34 +00006141depcc="$CC" am_compiler_list=
6142
cristy8b350f62009-11-15 23:12:43 +00006143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006144$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006145if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006146 $as_echo_n "(cached) " >&6
6147else
6148 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6149 # We make a subdir and do the tests there. Otherwise we can end up
6150 # making bogus files that we don't know about and never remove. For
6151 # instance it was reported that on HP-UX the gcc test will end up
6152 # making a dummy file named `D' -- because `-MD' means `put the output
6153 # in D'.
6154 mkdir conftest.dir
6155 # Copy depcomp to subdir because otherwise we won't find it if we're
6156 # using a relative directory.
6157 cp "$am_depcomp" conftest.dir
6158 cd conftest.dir
6159 # We will build objects and dependencies in a subdirectory because
6160 # it helps to detect inapplicable dependency modes. For instance
6161 # both Tru64's cc and ICC support -MD to output dependencies as a
6162 # side effect of compilation, but ICC will put the dependencies in
6163 # the current directory while Tru64 will put them in the object
6164 # directory.
6165 mkdir sub
6166
6167 am_cv_CC_dependencies_compiler_type=none
6168 if test "$am_compiler_list" = ""; then
6169 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6170 fi
6171 am__universal=false
6172 case " $depcc " in #(
6173 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6174 esac
6175
6176 for depmode in $am_compiler_list; do
6177 # Setup a source with many dependencies, because some compilers
6178 # like to wrap large dependency lists on column 80 (with \), and
6179 # we should not choose a depcomp mode which is confused by this.
6180 #
6181 # We need to recreate these files for each test, as the compiler may
6182 # overwrite some of them when testing with obscure command lines.
6183 # This happens at least with the AIX C compiler.
6184 : > sub/conftest.c
6185 for i in 1 2 3 4 5 6; do
6186 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6187 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6188 # Solaris 8's {/usr,}/bin/sh.
6189 touch sub/conftst$i.h
6190 done
6191 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6192
6193 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6194 # mode. It turns out that the SunPro C++ compiler does not properly
6195 # handle `-M -o', and we need to detect this. Also, some Intel
6196 # versions had trouble with output in subdirs
6197 am__obj=sub/conftest.${OBJEXT-o}
6198 am__minus_obj="-o $am__obj"
6199 case $depmode in
6200 gcc)
6201 # This depmode causes a compiler race in universal mode.
6202 test "$am__universal" = false || continue
6203 ;;
6204 nosideeffect)
6205 # after this tag, mechanisms are not by side-effect, so they'll
6206 # only be used when explicitly requested
6207 if test "x$enable_dependency_tracking" = xyes; then
6208 continue
6209 else
6210 break
6211 fi
6212 ;;
6213 msvisualcpp | msvcmsys)
6214 # This compiler won't grok `-c -o', but also, the minuso test has
6215 # not run yet. These depmodes are late enough in the game, and
6216 # so weak that their functioning should not be impacted.
6217 am__obj=conftest.${OBJEXT-o}
6218 am__minus_obj=
6219 ;;
6220 none) break ;;
6221 esac
6222 if depmode=$depmode \
6223 source=sub/conftest.c object=$am__obj \
6224 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6225 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6226 >/dev/null 2>conftest.err &&
6227 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6228 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6229 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6230 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6231 # icc doesn't choke on unknown options, it will just issue warnings
6232 # or remarks (even with -Werror). So we grep stderr for any message
6233 # that says an option was ignored or not supported.
6234 # When given -MP, icc 7.0 and 7.1 complain thusly:
6235 # icc: Command line warning: ignoring option '-M'; no argument required
6236 # The diagnosis changed in icc 8.0:
6237 # icc: Command line remark: option '-MP' not supported
6238 if (grep 'ignoring option' conftest.err ||
6239 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6240 am_cv_CC_dependencies_compiler_type=$depmode
6241 break
6242 fi
6243 fi
6244 done
6245
6246 cd ..
6247 rm -rf conftest.dir
6248else
6249 am_cv_CC_dependencies_compiler_type=none
6250fi
6251
6252fi
cristy8b350f62009-11-15 23:12:43 +00006253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00006254$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6255CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6256
6257 if
6258 test "x$enable_dependency_tracking" != xno \
6259 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6260 am__fastdepCC_TRUE=
6261 am__fastdepCC_FALSE='#'
6262else
6263 am__fastdepCC_TRUE='#'
6264 am__fastdepCC_FALSE=
6265fi
6266
6267
cristy95646052009-11-28 23:05:30 +00006268ac_ext=cpp
6269ac_cpp='$CXXCPP $CPPFLAGS'
6270ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6271ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6272ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6273if test -z "$CXX"; then
6274 if test -n "$CCC"; then
6275 CXX=$CCC
6276 else
6277 if test -n "$ac_tool_prefix"; then
6278 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6279 do
6280 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6281set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283$as_echo_n "checking for $ac_word... " >&6; }
6284if test "${ac_cv_prog_CXX+set}" = set; then :
6285 $as_echo_n "(cached) " >&6
6286else
6287 if test -n "$CXX"; then
6288 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6289else
6290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291for as_dir in $PATH
6292do
6293 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 break 2
6300 fi
6301done
6302 done
6303IFS=$as_save_IFS
6304
6305fi
6306fi
6307CXX=$ac_cv_prog_CXX
6308if test -n "$CXX"; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6310$as_echo "$CXX" >&6; }
6311else
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313$as_echo "no" >&6; }
6314fi
6315
6316
6317 test -n "$CXX" && break
6318 done
6319fi
6320if test -z "$CXX"; then
6321 ac_ct_CXX=$CXX
6322 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6323do
6324 # Extract the first word of "$ac_prog", so it can be a program name with args.
6325set dummy $ac_prog; ac_word=$2
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327$as_echo_n "checking for $ac_word... " >&6; }
6328if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6329 $as_echo_n "(cached) " >&6
6330else
6331 if test -n "$ac_ct_CXX"; then
6332 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6333else
6334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335for as_dir in $PATH
6336do
6337 IFS=$as_save_IFS
6338 test -z "$as_dir" && as_dir=.
6339 for ac_exec_ext in '' $ac_executable_extensions; do
6340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6341 ac_cv_prog_ac_ct_CXX="$ac_prog"
6342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6343 break 2
6344 fi
6345done
6346 done
6347IFS=$as_save_IFS
6348
6349fi
6350fi
6351ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6352if test -n "$ac_ct_CXX"; then
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6354$as_echo "$ac_ct_CXX" >&6; }
6355else
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357$as_echo "no" >&6; }
6358fi
6359
6360
6361 test -n "$ac_ct_CXX" && break
6362done
6363
6364 if test "x$ac_ct_CXX" = x; then
6365 CXX="g++"
6366 else
6367 case $cross_compiling:$ac_tool_warned in
6368yes:)
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6370$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6371ac_tool_warned=yes ;;
6372esac
6373 CXX=$ac_ct_CXX
6374 fi
6375fi
6376
6377 fi
6378fi
6379# Provide some information about the compiler.
6380$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6381set X $ac_compile
6382ac_compiler=$2
6383for ac_option in --version -v -V -qversion; do
6384 { { ac_try="$ac_compiler $ac_option >&5"
6385case "(($ac_try" in
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6388esac
6389eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6390$as_echo "$ac_try_echo"; } >&5
6391 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6392 ac_status=$?
6393 if test -s conftest.err; then
6394 sed '10a\
6395... rest of stderr output deleted ...
6396 10q' conftest.err >conftest.er1
6397 cat conftest.er1 >&5
6398 fi
6399 rm -f conftest.er1 conftest.err
6400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6401 test $ac_status = 0; }
6402done
6403
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6405$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6406if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6407 $as_echo_n "(cached) " >&6
6408else
6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410/* end confdefs.h. */
6411
6412int
6413main ()
6414{
6415#ifndef __GNUC__
6416 choke me
6417#endif
6418
6419 ;
6420 return 0;
6421}
6422_ACEOF
6423if ac_fn_cxx_try_compile "$LINENO"; then :
6424 ac_compiler_gnu=yes
6425else
6426 ac_compiler_gnu=no
6427fi
6428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6430
6431fi
6432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6433$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6434if test $ac_compiler_gnu = yes; then
6435 GXX=yes
6436else
6437 GXX=
6438fi
6439ac_test_CXXFLAGS=${CXXFLAGS+set}
6440ac_save_CXXFLAGS=$CXXFLAGS
6441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6442$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6443if test "${ac_cv_prog_cxx_g+set}" = set; then :
6444 $as_echo_n "(cached) " >&6
6445else
6446 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6447 ac_cxx_werror_flag=yes
6448 ac_cv_prog_cxx_g=no
6449 CXXFLAGS="-g"
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451/* end confdefs.h. */
6452
6453int
6454main ()
6455{
6456
6457 ;
6458 return 0;
6459}
6460_ACEOF
6461if ac_fn_cxx_try_compile "$LINENO"; then :
6462 ac_cv_prog_cxx_g=yes
6463else
6464 CXXFLAGS=""
6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466/* end confdefs.h. */
6467
6468int
6469main ()
6470{
6471
6472 ;
6473 return 0;
6474}
6475_ACEOF
6476if ac_fn_cxx_try_compile "$LINENO"; then :
6477
6478else
6479 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6480 CXXFLAGS="-g"
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482/* end confdefs.h. */
6483
6484int
6485main ()
6486{
6487
6488 ;
6489 return 0;
6490}
6491_ACEOF
6492if ac_fn_cxx_try_compile "$LINENO"; then :
6493 ac_cv_prog_cxx_g=yes
6494fi
6495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6496fi
6497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498fi
6499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6500 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6501fi
6502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6503$as_echo "$ac_cv_prog_cxx_g" >&6; }
6504if test "$ac_test_CXXFLAGS" = set; then
6505 CXXFLAGS=$ac_save_CXXFLAGS
6506elif test $ac_cv_prog_cxx_g = yes; then
6507 if test "$GXX" = yes; then
6508 CXXFLAGS="-g -O2"
6509 else
6510 CXXFLAGS="-g"
6511 fi
6512else
6513 if test "$GXX" = yes; then
6514 CXXFLAGS="-O2"
6515 else
6516 CXXFLAGS=
6517 fi
6518fi
6519ac_ext=c
6520ac_cpp='$CPP $CPPFLAGS'
6521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6523ac_compiler_gnu=$ac_cv_c_compiler_gnu
6524
6525depcc="$CXX" am_compiler_list=
6526
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6528$as_echo_n "checking dependency style of $depcc... " >&6; }
6529if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6530 $as_echo_n "(cached) " >&6
6531else
6532 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6533 # We make a subdir and do the tests there. Otherwise we can end up
6534 # making bogus files that we don't know about and never remove. For
6535 # instance it was reported that on HP-UX the gcc test will end up
6536 # making a dummy file named `D' -- because `-MD' means `put the output
6537 # in D'.
6538 mkdir conftest.dir
6539 # Copy depcomp to subdir because otherwise we won't find it if we're
6540 # using a relative directory.
6541 cp "$am_depcomp" conftest.dir
6542 cd conftest.dir
6543 # We will build objects and dependencies in a subdirectory because
6544 # it helps to detect inapplicable dependency modes. For instance
6545 # both Tru64's cc and ICC support -MD to output dependencies as a
6546 # side effect of compilation, but ICC will put the dependencies in
6547 # the current directory while Tru64 will put them in the object
6548 # directory.
6549 mkdir sub
6550
6551 am_cv_CXX_dependencies_compiler_type=none
6552 if test "$am_compiler_list" = ""; then
6553 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6554 fi
6555 am__universal=false
6556 case " $depcc " in #(
6557 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6558 esac
6559
6560 for depmode in $am_compiler_list; do
6561 # Setup a source with many dependencies, because some compilers
6562 # like to wrap large dependency lists on column 80 (with \), and
6563 # we should not choose a depcomp mode which is confused by this.
6564 #
6565 # We need to recreate these files for each test, as the compiler may
6566 # overwrite some of them when testing with obscure command lines.
6567 # This happens at least with the AIX C compiler.
6568 : > sub/conftest.c
6569 for i in 1 2 3 4 5 6; do
6570 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6571 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6572 # Solaris 8's {/usr,}/bin/sh.
6573 touch sub/conftst$i.h
6574 done
6575 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6576
6577 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6578 # mode. It turns out that the SunPro C++ compiler does not properly
6579 # handle `-M -o', and we need to detect this. Also, some Intel
6580 # versions had trouble with output in subdirs
6581 am__obj=sub/conftest.${OBJEXT-o}
6582 am__minus_obj="-o $am__obj"
6583 case $depmode in
6584 gcc)
6585 # This depmode causes a compiler race in universal mode.
6586 test "$am__universal" = false || continue
6587 ;;
6588 nosideeffect)
6589 # after this tag, mechanisms are not by side-effect, so they'll
6590 # only be used when explicitly requested
6591 if test "x$enable_dependency_tracking" = xyes; then
6592 continue
6593 else
6594 break
6595 fi
6596 ;;
6597 msvisualcpp | msvcmsys)
6598 # This compiler won't grok `-c -o', but also, the minuso test has
6599 # not run yet. These depmodes are late enough in the game, and
6600 # so weak that their functioning should not be impacted.
6601 am__obj=conftest.${OBJEXT-o}
6602 am__minus_obj=
6603 ;;
6604 none) break ;;
6605 esac
6606 if depmode=$depmode \
6607 source=sub/conftest.c object=$am__obj \
6608 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6609 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6610 >/dev/null 2>conftest.err &&
6611 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6612 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6613 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6614 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6615 # icc doesn't choke on unknown options, it will just issue warnings
6616 # or remarks (even with -Werror). So we grep stderr for any message
6617 # that says an option was ignored or not supported.
6618 # When given -MP, icc 7.0 and 7.1 complain thusly:
6619 # icc: Command line warning: ignoring option '-M'; no argument required
6620 # The diagnosis changed in icc 8.0:
6621 # icc: Command line remark: option '-MP' not supported
6622 if (grep 'ignoring option' conftest.err ||
6623 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6624 am_cv_CXX_dependencies_compiler_type=$depmode
6625 break
6626 fi
6627 fi
6628 done
6629
6630 cd ..
6631 rm -rf conftest.dir
6632else
6633 am_cv_CXX_dependencies_compiler_type=none
6634fi
6635
6636fi
6637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6638$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6639CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6640
6641 if
6642 test "x$enable_dependency_tracking" != xno \
6643 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6644 am__fastdepCXX_TRUE=
6645 am__fastdepCXX_FALSE='#'
6646else
6647 am__fastdepCXX_TRUE='#'
6648 am__fastdepCXX_FALSE=
6649fi
6650
6651
cristy8b350f62009-11-15 23:12:43 +00006652 case $ac_cv_prog_cc_stdc in #(
6653 no) :
6654 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6655 *) :
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006657$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006658if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006659 $as_echo_n "(cached) " >&6
6660else
6661 ac_cv_prog_cc_c99=no
6662ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006664/* end confdefs.h. */
6665#include <stdarg.h>
6666#include <stdbool.h>
6667#include <stdlib.h>
6668#include <wchar.h>
6669#include <stdio.h>
6670
6671// Check varargs macros. These examples are taken from C99 6.10.3.5.
6672#define debug(...) fprintf (stderr, __VA_ARGS__)
6673#define showlist(...) puts (#__VA_ARGS__)
6674#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6675static void
6676test_varargs_macros (void)
6677{
6678 int x = 1234;
6679 int y = 5678;
6680 debug ("Flag");
6681 debug ("X = %d\n", x);
6682 showlist (The first, second, and third items.);
6683 report (x>y, "x is %d but y is %d", x, y);
6684}
6685
6686// Check long long types.
6687#define BIG64 18446744073709551615ull
6688#define BIG32 4294967295ul
6689#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6690#if !BIG_OK
6691 your preprocessor is broken;
6692#endif
6693#if BIG_OK
6694#else
6695 your preprocessor is broken;
6696#endif
6697static long long int bignum = -9223372036854775807LL;
6698static unsigned long long int ubignum = BIG64;
6699
6700struct incomplete_array
6701{
6702 int datasize;
6703 double data[];
6704};
6705
6706struct named_init {
6707 int number;
6708 const wchar_t *name;
6709 double average;
6710};
6711
6712typedef const char *ccp;
6713
6714static inline int
6715test_restrict (ccp restrict text)
6716{
6717 // See if C++-style comments work.
6718 // Iterate through items via the restricted pointer.
6719 // Also check for declarations in for loops.
6720 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6721 continue;
6722 return 0;
6723}
6724
6725// Check varargs and va_copy.
6726static void
6727test_varargs (const char *format, ...)
6728{
6729 va_list args;
6730 va_start (args, format);
6731 va_list args_copy;
6732 va_copy (args_copy, args);
6733
6734 const char *str;
6735 int number;
6736 float fnumber;
6737
6738 while (*format)
6739 {
6740 switch (*format++)
6741 {
6742 case 's': // string
6743 str = va_arg (args_copy, const char *);
6744 break;
6745 case 'd': // int
6746 number = va_arg (args_copy, int);
6747 break;
6748 case 'f': // float
6749 fnumber = va_arg (args_copy, double);
6750 break;
6751 default:
6752 break;
6753 }
6754 }
6755 va_end (args_copy);
6756 va_end (args);
6757}
6758
6759int
6760main ()
6761{
6762
6763 // Check bool.
6764 _Bool success = false;
6765
6766 // Check restrict.
6767 if (test_restrict ("String literal") == 0)
6768 success = true;
6769 char *restrict newvar = "Another string";
6770
6771 // Check varargs.
6772 test_varargs ("s, d' f .", "string", 65, 34.234);
6773 test_varargs_macros ();
6774
6775 // Check flexible array members.
6776 struct incomplete_array *ia =
6777 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6778 ia->datasize = 10;
6779 for (int i = 0; i < ia->datasize; ++i)
6780 ia->data[i] = i * 1.234;
6781
6782 // Check named initializers.
6783 struct named_init ni = {
6784 .number = 34,
6785 .name = L"Test wide string",
6786 .average = 543.34343,
6787 };
6788
6789 ni.number = 58;
6790
6791 int dynamic_array[ni.number];
6792 dynamic_array[ni.number - 1] = 543;
6793
6794 // work around unused variable warnings
6795 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6796 || dynamic_array[ni.number - 1] != 543);
6797
6798 ;
6799 return 0;
6800}
6801_ACEOF
6802for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6803do
6804 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006805 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006806 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006807fi
cristy3ed852e2009-09-05 21:47:34 +00006808rm -f core conftest.err conftest.$ac_objext
6809 test "x$ac_cv_prog_cc_c99" != "xno" && break
6810done
6811rm -f conftest.$ac_ext
6812CC=$ac_save_CC
6813
6814fi
6815# AC_CACHE_VAL
6816case "x$ac_cv_prog_cc_c99" in
6817 x)
cristy8b350f62009-11-15 23:12:43 +00006818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006819$as_echo "none needed" >&6; } ;;
6820 xno)
cristy8b350f62009-11-15 23:12:43 +00006821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006822$as_echo "unsupported" >&6; } ;;
6823 *)
6824 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006826$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6827esac
cristy8b350f62009-11-15 23:12:43 +00006828if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006829 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6830else
cristy8b350f62009-11-15 23:12:43 +00006831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006832$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006833if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006834 $as_echo_n "(cached) " >&6
6835else
6836 ac_cv_prog_cc_c89=no
6837ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006839/* end confdefs.h. */
6840#include <stdarg.h>
6841#include <stdio.h>
6842#include <sys/types.h>
6843#include <sys/stat.h>
6844/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6845struct buf { int x; };
6846FILE * (*rcsopen) (struct buf *, struct stat *, int);
6847static char *e (p, i)
6848 char **p;
6849 int i;
6850{
6851 return p[i];
6852}
6853static char *f (char * (*g) (char **, int), char **p, ...)
6854{
6855 char *s;
6856 va_list v;
6857 va_start (v,p);
6858 s = g (p, va_arg (v,int));
6859 va_end (v);
6860 return s;
6861}
6862
6863/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6864 function prototypes and stuff, but not '\xHH' hex character constants.
6865 These don't provoke an error unfortunately, instead are silently treated
6866 as 'x'. The following induces an error, until -std is added to get
6867 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6868 array size at least. It's necessary to write '\x00'==0 to get something
6869 that's true only with -std. */
6870int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6871
6872/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6873 inside strings and character constants. */
6874#define FOO(x) 'x'
6875int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6876
6877int test (int i, double x);
6878struct s1 {int (*f) (int a);};
6879struct s2 {int (*f) (double a);};
6880int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6881int argc;
6882char **argv;
6883int
6884main ()
6885{
6886return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6887 ;
6888 return 0;
6889}
6890_ACEOF
6891for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6892 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6893do
6894 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006895 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006896 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006897fi
cristy3ed852e2009-09-05 21:47:34 +00006898rm -f core conftest.err conftest.$ac_objext
6899 test "x$ac_cv_prog_cc_c89" != "xno" && break
6900done
6901rm -f conftest.$ac_ext
6902CC=$ac_save_CC
6903
6904fi
6905# AC_CACHE_VAL
6906case "x$ac_cv_prog_cc_c89" in
6907 x)
cristy8b350f62009-11-15 23:12:43 +00006908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006909$as_echo "none needed" >&6; } ;;
6910 xno)
cristy8b350f62009-11-15 23:12:43 +00006911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006912$as_echo "unsupported" >&6; } ;;
6913 *)
6914 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006916$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6917esac
cristy8b350f62009-11-15 23:12:43 +00006918if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006919 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6920else
6921 ac_cv_prog_cc_stdc=no
6922fi
6923
cristy3ed852e2009-09-05 21:47:34 +00006924fi
cristy3ed852e2009-09-05 21:47:34 +00006925 ;;
6926esac
cristy8b350f62009-11-15 23:12:43 +00006927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006928$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006929 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006930 $as_echo_n "(cached) " >&6
6931fi
6932
cristy8b350f62009-11-15 23:12:43 +00006933 case $ac_cv_prog_cc_stdc in #(
6934 no) :
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6936$as_echo "unsupported" >&6; } ;; #(
6937 '') :
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6939$as_echo "none needed" >&6; } ;; #(
6940 *) :
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006942$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6943esac
6944
cristy3ed852e2009-09-05 21:47:34 +00006945ac_ext=c
6946ac_cpp='$CPP $CPPFLAGS'
6947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6949ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006951$as_echo_n "checking how to run the C preprocessor... " >&6; }
6952# On Suns, sometimes $CPP names a directory.
6953if test -n "$CPP" && test -d "$CPP"; then
6954 CPP=
6955fi
6956if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006957 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006958 $as_echo_n "(cached) " >&6
6959else
6960 # Double quotes because CPP needs to be expanded
6961 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6962 do
6963 ac_preproc_ok=false
6964for ac_c_preproc_warn_flag in '' yes
6965do
6966 # Use a header file that comes with gcc, so configuring glibc
6967 # with a fresh cross-compiler works.
6968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6969 # <limits.h> exists even on freestanding compilers.
6970 # On the NeXT, cc -E runs the code through the compiler's parser,
6971 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006973/* end confdefs.h. */
6974#ifdef __STDC__
6975# include <limits.h>
6976#else
6977# include <assert.h>
6978#endif
6979 Syntax error
6980_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006981if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006982
cristy8b350f62009-11-15 23:12:43 +00006983else
cristy3ed852e2009-09-05 21:47:34 +00006984 # Broken: fails on valid input.
6985continue
6986fi
cristy3ed852e2009-09-05 21:47:34 +00006987rm -f conftest.err conftest.$ac_ext
6988
6989 # OK, works on sane cases. Now check whether nonexistent headers
6990 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006992/* end confdefs.h. */
6993#include <ac_nonexistent.h>
6994_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006995if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006996 # Broken: success on invalid input.
6997continue
6998else
cristy3ed852e2009-09-05 21:47:34 +00006999 # Passes both tests.
7000ac_preproc_ok=:
7001break
7002fi
cristy3ed852e2009-09-05 21:47:34 +00007003rm -f conftest.err conftest.$ac_ext
7004
7005done
7006# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7007rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007008if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007009 break
7010fi
7011
7012 done
7013 ac_cv_prog_CPP=$CPP
7014
7015fi
7016 CPP=$ac_cv_prog_CPP
7017else
7018 ac_cv_prog_CPP=$CPP
7019fi
cristy8b350f62009-11-15 23:12:43 +00007020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007021$as_echo "$CPP" >&6; }
7022ac_preproc_ok=false
7023for ac_c_preproc_warn_flag in '' yes
7024do
7025 # Use a header file that comes with gcc, so configuring glibc
7026 # with a fresh cross-compiler works.
7027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7028 # <limits.h> exists even on freestanding compilers.
7029 # On the NeXT, cc -E runs the code through the compiler's parser,
7030 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007032/* end confdefs.h. */
7033#ifdef __STDC__
7034# include <limits.h>
7035#else
7036# include <assert.h>
7037#endif
7038 Syntax error
7039_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007040if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007041
cristy8b350f62009-11-15 23:12:43 +00007042else
cristy3ed852e2009-09-05 21:47:34 +00007043 # Broken: fails on valid input.
7044continue
7045fi
cristy3ed852e2009-09-05 21:47:34 +00007046rm -f conftest.err conftest.$ac_ext
7047
7048 # OK, works on sane cases. Now check whether nonexistent headers
7049 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007051/* end confdefs.h. */
7052#include <ac_nonexistent.h>
7053_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007054if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007055 # Broken: success on invalid input.
7056continue
7057else
cristy3ed852e2009-09-05 21:47:34 +00007058 # Passes both tests.
7059ac_preproc_ok=:
7060break
7061fi
cristy3ed852e2009-09-05 21:47:34 +00007062rm -f conftest.err conftest.$ac_ext
7063
7064done
7065# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7066rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007067if $ac_preproc_ok; then :
7068
cristy3ed852e2009-09-05 21:47:34 +00007069else
cristy8b350f62009-11-15 23:12:43 +00007070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00007072as_fn_error "C preprocessor \"$CPP\" fails sanity check
7073See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007074fi
7075
7076ac_ext=c
7077ac_cpp='$CPP $CPPFLAGS'
7078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7080ac_compiler_gnu=$ac_cv_c_compiler_gnu
7081
cristy8b350f62009-11-15 23:12:43 +00007082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00007083$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007084if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007085 $as_echo_n "(cached) " >&6
7086else
7087 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7088 for ac_i in 1 2 3 4 5 6 7; do
7089 ac_script="$ac_script$as_nl$ac_script"
7090 done
7091 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00007092 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00007093 if test -z "$SED"; then
7094 ac_path_SED_found=false
7095 # Loop through the user's path and test for each of PROGNAME-LIST
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097for as_dir in $PATH
7098do
7099 IFS=$as_save_IFS
7100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007101 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00007102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7104 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7105# Check for GNU ac_path_SED and select it if it is found.
7106 # Check for GNU $ac_path_SED
7107case `"$ac_path_SED" --version 2>&1` in
7108*GNU*)
7109 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7110*)
7111 ac_count=0
7112 $as_echo_n 0123456789 >"conftest.in"
7113 while :
7114 do
7115 cat "conftest.in" "conftest.in" >"conftest.tmp"
7116 mv "conftest.tmp" "conftest.in"
7117 cp "conftest.in" "conftest.nl"
7118 $as_echo '' >> "conftest.nl"
7119 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7120 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007121 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007122 if test $ac_count -gt ${ac_path_SED_max-0}; then
7123 # Best one so far, save it but keep looking for a better one
7124 ac_cv_path_SED="$ac_path_SED"
7125 ac_path_SED_max=$ac_count
7126 fi
7127 # 10*(2^10) chars as input seems more than enough
7128 test $ac_count -gt 10 && break
7129 done
7130 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7131esac
7132
7133 $ac_path_SED_found && break 3
7134 done
7135 done
cristy8b350f62009-11-15 23:12:43 +00007136 done
cristy3ed852e2009-09-05 21:47:34 +00007137IFS=$as_save_IFS
7138 if test -z "$ac_cv_path_SED"; then
cristyf6fcb5d2010-09-24 01:19:13 +00007139 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007140 fi
7141else
7142 ac_cv_path_SED=$SED
7143fi
7144
7145fi
cristy8b350f62009-11-15 23:12:43 +00007146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00007147$as_echo "$ac_cv_path_SED" >&6; }
7148 SED="$ac_cv_path_SED"
7149 rm -f conftest.sed
7150
7151test -z "$SED" && SED=sed
7152Xsed="$SED -e 1s/^X//"
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
cristy8b350f62009-11-15 23:12:43 +00007164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00007165$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007166if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007167 $as_echo_n "(cached) " >&6
7168else
7169 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7170 then ac_cv_path_FGREP="$GREP -F"
7171 else
7172 if test -z "$FGREP"; then
7173 ac_path_FGREP_found=false
7174 # Loop through the user's path and test for each of PROGNAME-LIST
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7177do
7178 IFS=$as_save_IFS
7179 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007180 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00007181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7183 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7184# Check for GNU ac_path_FGREP and select it if it is found.
7185 # Check for GNU $ac_path_FGREP
7186case `"$ac_path_FGREP" --version 2>&1` in
7187*GNU*)
7188 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7189*)
7190 ac_count=0
7191 $as_echo_n 0123456789 >"conftest.in"
7192 while :
7193 do
7194 cat "conftest.in" "conftest.in" >"conftest.tmp"
7195 mv "conftest.tmp" "conftest.in"
7196 cp "conftest.in" "conftest.nl"
7197 $as_echo 'FGREP' >> "conftest.nl"
7198 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007200 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007201 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7202 # Best one so far, save it but keep looking for a better one
7203 ac_cv_path_FGREP="$ac_path_FGREP"
7204 ac_path_FGREP_max=$ac_count
7205 fi
7206 # 10*(2^10) chars as input seems more than enough
7207 test $ac_count -gt 10 && break
7208 done
7209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7210esac
7211
7212 $ac_path_FGREP_found && break 3
7213 done
7214 done
cristy8b350f62009-11-15 23:12:43 +00007215 done
cristy3ed852e2009-09-05 21:47:34 +00007216IFS=$as_save_IFS
7217 if test -z "$ac_cv_path_FGREP"; then
cristyf6fcb5d2010-09-24 01:19:13 +00007218 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007219 fi
7220else
7221 ac_cv_path_FGREP=$FGREP
7222fi
7223
7224 fi
7225fi
cristy8b350f62009-11-15 23:12:43 +00007226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007227$as_echo "$ac_cv_path_FGREP" >&6; }
7228 FGREP="$ac_cv_path_FGREP"
7229
7230
7231test -z "$GREP" && GREP=grep
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00007252if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007253 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7254else
7255 with_gnu_ld=no
7256fi
7257
7258ac_prog=ld
7259if test "$GCC" = yes; then
7260 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00007261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007262$as_echo_n "checking for ld used by $CC... " >&6; }
7263 case $host in
7264 *-*-mingw*)
7265 # gcc leaves a trailing carriage return which upsets mingw
7266 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7267 *)
7268 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7269 esac
7270 case $ac_prog in
7271 # Accept absolute paths.
7272 [\\/]* | ?:[\\/]*)
7273 re_direlt='/[^/][^/]*/\.\./'
7274 # Canonicalize the pathname of ld
7275 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7276 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7277 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7278 done
7279 test -z "$LD" && LD="$ac_prog"
7280 ;;
7281 "")
7282 # If it fails, then pretend we aren't using GCC.
7283 ac_prog=ld
7284 ;;
7285 *)
7286 # If it is relative, then search for the first ld in PATH.
7287 with_gnu_ld=unknown
7288 ;;
7289 esac
7290elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007292$as_echo_n "checking for GNU ld... " >&6; }
7293else
cristy8b350f62009-11-15 23:12:43 +00007294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007295$as_echo_n "checking for non-GNU ld... " >&6; }
7296fi
cristy8b350f62009-11-15 23:12:43 +00007297if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007298 $as_echo_n "(cached) " >&6
7299else
7300 if test -z "$LD"; then
7301 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7302 for ac_dir in $PATH; do
7303 IFS="$lt_save_ifs"
7304 test -z "$ac_dir" && ac_dir=.
7305 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7306 lt_cv_path_LD="$ac_dir/$ac_prog"
7307 # Check to see if the program is GNU ld. I'd rather use --version,
7308 # but apparently some variants of GNU ld only accept -v.
7309 # Break only if it was the GNU/non-GNU ld that we prefer.
7310 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7311 *GNU* | *'with BFD'*)
7312 test "$with_gnu_ld" != no && break
7313 ;;
7314 *)
7315 test "$with_gnu_ld" != yes && break
7316 ;;
7317 esac
7318 fi
7319 done
7320 IFS="$lt_save_ifs"
7321else
7322 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7323fi
7324fi
7325
7326LD="$lt_cv_path_LD"
7327if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00007328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00007329$as_echo "$LD" >&6; }
7330else
cristy8b350f62009-11-15 23:12:43 +00007331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007332$as_echo "no" >&6; }
7333fi
cristyf6fcb5d2010-09-24 01:19:13 +00007334test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
cristy8b350f62009-11-15 23:12:43 +00007335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007336$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007337if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007338 $as_echo_n "(cached) " >&6
7339else
7340 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7341case `$LD -v 2>&1 </dev/null` in
7342*GNU* | *'with BFD'*)
7343 lt_cv_prog_gnu_ld=yes
7344 ;;
7345*)
7346 lt_cv_prog_gnu_ld=no
7347 ;;
7348esac
7349fi
cristy8b350f62009-11-15 23:12:43 +00007350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007351$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7352with_gnu_ld=$lt_cv_prog_gnu_ld
7353
7354
7355
7356
7357
7358
7359
7360
7361
cristy3ed852e2009-09-05 21:47:34 +00007362
cristy837d6dc2010-02-27 01:16:57 +00007363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7364$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7365if test "${ac_cv_prog_cc_c99+set}" = set; then :
7366 $as_echo_n "(cached) " >&6
7367else
7368 ac_cv_prog_cc_c99=no
7369ac_save_CC=$CC
7370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371/* end confdefs.h. */
7372#include <stdarg.h>
7373#include <stdbool.h>
7374#include <stdlib.h>
7375#include <wchar.h>
7376#include <stdio.h>
7377
7378// Check varargs macros. These examples are taken from C99 6.10.3.5.
7379#define debug(...) fprintf (stderr, __VA_ARGS__)
7380#define showlist(...) puts (#__VA_ARGS__)
7381#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7382static void
7383test_varargs_macros (void)
7384{
7385 int x = 1234;
7386 int y = 5678;
7387 debug ("Flag");
7388 debug ("X = %d\n", x);
7389 showlist (The first, second, and third items.);
7390 report (x>y, "x is %d but y is %d", x, y);
7391}
7392
7393// Check long long types.
7394#define BIG64 18446744073709551615ull
7395#define BIG32 4294967295ul
7396#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7397#if !BIG_OK
7398 your preprocessor is broken;
7399#endif
7400#if BIG_OK
7401#else
7402 your preprocessor is broken;
7403#endif
7404static long long int bignum = -9223372036854775807LL;
7405static unsigned long long int ubignum = BIG64;
7406
7407struct incomplete_array
7408{
7409 int datasize;
7410 double data[];
7411};
7412
7413struct named_init {
7414 int number;
7415 const wchar_t *name;
7416 double average;
7417};
7418
7419typedef const char *ccp;
7420
7421static inline int
7422test_restrict (ccp restrict text)
7423{
7424 // See if C++-style comments work.
7425 // Iterate through items via the restricted pointer.
7426 // Also check for declarations in for loops.
7427 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7428 continue;
7429 return 0;
7430}
7431
7432// Check varargs and va_copy.
7433static void
7434test_varargs (const char *format, ...)
7435{
7436 va_list args;
7437 va_start (args, format);
7438 va_list args_copy;
7439 va_copy (args_copy, args);
7440
7441 const char *str;
7442 int number;
7443 float fnumber;
7444
7445 while (*format)
7446 {
7447 switch (*format++)
7448 {
7449 case 's': // string
7450 str = va_arg (args_copy, const char *);
7451 break;
7452 case 'd': // int
7453 number = va_arg (args_copy, int);
7454 break;
7455 case 'f': // float
7456 fnumber = va_arg (args_copy, double);
7457 break;
7458 default:
7459 break;
7460 }
7461 }
7462 va_end (args_copy);
7463 va_end (args);
7464}
7465
7466int
7467main ()
7468{
7469
7470 // Check bool.
7471 _Bool success = false;
7472
7473 // Check restrict.
7474 if (test_restrict ("String literal") == 0)
7475 success = true;
7476 char *restrict newvar = "Another string";
7477
7478 // Check varargs.
7479 test_varargs ("s, d' f .", "string", 65, 34.234);
7480 test_varargs_macros ();
7481
7482 // Check flexible array members.
7483 struct incomplete_array *ia =
7484 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7485 ia->datasize = 10;
7486 for (int i = 0; i < ia->datasize; ++i)
7487 ia->data[i] = i * 1.234;
7488
7489 // Check named initializers.
7490 struct named_init ni = {
7491 .number = 34,
7492 .name = L"Test wide string",
7493 .average = 543.34343,
7494 };
7495
7496 ni.number = 58;
7497
7498 int dynamic_array[ni.number];
7499 dynamic_array[ni.number - 1] = 543;
7500
7501 // work around unused variable warnings
7502 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7503 || dynamic_array[ni.number - 1] != 543);
7504
7505 ;
7506 return 0;
7507}
7508_ACEOF
7509for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7510do
7511 CC="$ac_save_CC $ac_arg"
7512 if ac_fn_c_try_compile "$LINENO"; then :
7513 ac_cv_prog_cc_c99=$ac_arg
7514fi
7515rm -f core conftest.err conftest.$ac_objext
7516 test "x$ac_cv_prog_cc_c99" != "xno" && break
7517done
7518rm -f conftest.$ac_ext
7519CC=$ac_save_CC
7520
7521fi
7522# AC_CACHE_VAL
7523case "x$ac_cv_prog_cc_c99" in
7524 x)
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7526$as_echo "none needed" >&6; } ;;
7527 xno)
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7529$as_echo "unsupported" >&6; } ;;
7530 *)
7531 CC="$CC $ac_cv_prog_cc_c99"
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7533$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7534esac
7535if test "x$ac_cv_prog_cc_c99" != xno; then :
7536
7537fi
7538
7539
cristy3ed852e2009-09-05 21:47:34 +00007540if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00007541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007542$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7543else
cristy8b350f62009-11-15 23:12:43 +00007544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007545$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7546fi
7547set dummy $CC; ac_cc=`$as_echo "$2" |
7548 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyf6fcb5d2010-09-24 01:19:13 +00007549if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00007550 $as_echo_n "(cached) " >&6
7551else
cristy8b350f62009-11-15 23:12:43 +00007552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007553/* end confdefs.h. */
7554
7555int
7556main ()
7557{
7558
7559 ;
7560 return 0;
7561}
7562_ACEOF
7563# Make sure it works both with $CC and with simple cc.
7564# We do the test twice because some compilers refuse to overwrite an
7565# existing .o file with -o, though they will create one.
7566ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7567rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007568if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7570 *) ac_try_echo=$ac_try;;
7571esac
cristy8b350f62009-11-15 23:12:43 +00007572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7573$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007574 (eval "$ac_try") 2>&5
7575 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7577 test $ac_status = 0; } &&
7578 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7580 *) ac_try_echo=$ac_try;;
7581esac
cristy8b350f62009-11-15 23:12:43 +00007582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7583$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007584 (eval "$ac_try") 2>&5
7585 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7587 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007588then
7589 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7590 if test "x$CC" != xcc; then
7591 # Test first that cc exists at all.
7592 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00007593 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7595 *) ac_try_echo=$ac_try;;
7596esac
cristy8b350f62009-11-15 23:12:43 +00007597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7598$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007599 (eval "$ac_try") 2>&5
7600 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7602 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00007603 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7604 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007605 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7608esac
cristy8b350f62009-11-15 23:12:43 +00007609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7610$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007611 (eval "$ac_try") 2>&5
7612 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7614 test $ac_status = 0; } &&
7615 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7617 *) ac_try_echo=$ac_try;;
7618esac
cristy8b350f62009-11-15 23:12:43 +00007619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7620$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007621 (eval "$ac_try") 2>&5
7622 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7624 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007625 then
7626 # cc works too.
7627 :
7628 else
7629 # cc exists but doesn't like -o.
7630 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7631 fi
7632 fi
7633 fi
7634else
7635 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7636fi
7637rm -f core conftest*
7638
7639fi
7640if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00007641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007642$as_echo "yes" >&6; }
7643else
cristy8b350f62009-11-15 23:12:43 +00007644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007645$as_echo "no" >&6; }
7646
cristy8b350f62009-11-15 23:12:43 +00007647$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007648
7649fi
7650
7651# FIXME: we rely on the cache variable name because
7652# there is no other way.
7653set dummy $CC
7654am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7655eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7656if test "$am_t" != yes; then
7657 # Losing compiler, so override with the script.
7658 # FIXME: It is wrong to rewrite CC.
7659 # But if we don't then we get into trouble of one sort or another.
7660 # A longer-term fix would be to have automake use am__CC in this case,
7661 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7662 CC="$am_aux_dir/compile $CC"
7663fi
7664
7665
cristy92703d82010-04-26 00:18:18 +00007666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7667$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7668if test "${ac_cv_cflags_warn_all+set}" = set; then :
7669 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00007670else
cristy92703d82010-04-26 00:18:18 +00007671 ac_cv_cflags_warn_all="no, unknown"
7672
7673 ac_ext=c
7674ac_cpp='$CPP $CPPFLAGS'
7675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7677ac_compiler_gnu=$ac_cv_c_compiler_gnu
7678
7679 ac_save_CFLAGS="$CFLAGS"
7680for 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" #
7681do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683/* end confdefs.h. */
7684
7685int
7686main ()
7687{
7688return 0;
7689 ;
7690 return 0;
7691}
7692_ACEOF
7693if ac_fn_c_try_compile "$LINENO"; then :
7694 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
cristy3ed852e2009-09-05 21:47:34 +00007695fi
cristy92703d82010-04-26 00:18:18 +00007696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7697done
7698 CFLAGS="$ac_save_CFLAGS"
7699 ac_ext=c
7700ac_cpp='$CPP $CPPFLAGS'
7701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7703ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00007704
7705
cristy92703d82010-04-26 00:18:18 +00007706fi
7707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7708$as_echo "$ac_cv_cflags_warn_all" >&6; }
7709case ".$ac_cv_cflags_warn_all" in
7710 .ok|.ok,*) ;;
7711 .|.no|.no,*)
7712 ;;
7713 *)
7714 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7715 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7716 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7717 ac_status=$?
7718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7719 test $ac_status = 0; }
7720 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7721 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7722 ac_status=$?
7723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7724 test $ac_status = 0; }
7725 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7726 fi
7727 ;;
7728esac
cristy3ed852e2009-09-05 21:47:34 +00007729
cristya0b81c32010-01-22 02:54:33 +00007730
7731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7732$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7733set x ${MAKE-make}
7734ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyf6fcb5d2010-09-24 01:19:13 +00007735if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristya0b81c32010-01-22 02:54:33 +00007736 $as_echo_n "(cached) " >&6
7737else
7738 cat >conftest.make <<\_ACEOF
7739SHELL = /bin/sh
7740all:
7741 @echo '@@@%%%=$(MAKE)=@@@%%%'
7742_ACEOF
cristyf6fcb5d2010-09-24 01:19:13 +00007743# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007744case `${MAKE-make} -f conftest.make 2>/dev/null` in
7745 *@@@%%%=?*=@@@%%%*)
7746 eval ac_cv_prog_make_${ac_make}_set=yes;;
7747 *)
7748 eval ac_cv_prog_make_${ac_make}_set=no;;
7749esac
7750rm -f conftest.make
7751fi
7752if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7754$as_echo "yes" >&6; }
7755 SET_MAKE=
7756else
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758$as_echo "no" >&6; }
7759 SET_MAKE="MAKE=${MAKE-make}"
7760fi
7761
cristy8b350f62009-11-15 23:12:43 +00007762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007763$as_echo_n "checking whether ln -s works... " >&6; }
7764LN_S=$as_ln_s
7765if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007767$as_echo "yes" >&6; }
7768else
cristy8b350f62009-11-15 23:12:43 +00007769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007770$as_echo "no, using $LN_S" >&6; }
7771fi
7772
cristy8b350f62009-11-15 23:12:43 +00007773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00007774$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7775
7776# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00007777if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007778 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007780$as_echo "yes" >&6; }
7781
cristy8b350f62009-11-15 23:12:43 +00007782$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007783
7784 LIBS="$LIBS -ldmalloc"
7785 LDFLAGS="$LDFLAGS -g"
7786else
cristy8b350f62009-11-15 23:12:43 +00007787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007788$as_echo "no" >&6; }
7789fi
7790else
cristy8b350f62009-11-15 23:12:43 +00007791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007792$as_echo "no" >&6; }
7793fi
7794
7795
7796
cristy0d3a6382010-04-26 00:45:55 +00007797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7798$as_echo_n "checking for __attribute__... " >&6; }
7799if test "${ax_cv___attribute__+set}" = set; then :
7800 $as_echo_n "(cached) " >&6
7801else
7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803/* end confdefs.h. */
7804#include <stdlib.h>
7805 static void foo(void) __attribute__ ((unused));
7806 static void
7807 foo(void) {
7808 exit(1);
7809 }
7810
7811int
7812main ()
7813{
7814
7815 ;
7816 return 0;
7817}
7818_ACEOF
7819if ac_fn_c_try_compile "$LINENO"; then :
7820 ax_cv___attribute__=yes
7821else
7822 ax_cv___attribute__=no
7823
7824fi
7825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7826
7827fi
7828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7829$as_echo "$ax_cv___attribute__" >&6; }
7830 if test "$ax_cv___attribute__" = "yes"; then
7831
7832$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7833
7834 fi
7835
7836
cristy3ed852e2009-09-05 21:47:34 +00007837
7838if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7839 if test -n "$ac_tool_prefix"; then
7840 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7841set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007843$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007844if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007845 $as_echo_n "(cached) " >&6
7846else
7847 case $PKG_CONFIG in
7848 [\\/]* | ?:[\\/]*)
7849 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7850 ;;
7851 *)
7852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853for as_dir in $PATH
7854do
7855 IFS=$as_save_IFS
7856 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007857 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7859 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007861 break 2
7862 fi
7863done
cristy8b350f62009-11-15 23:12:43 +00007864 done
cristy3ed852e2009-09-05 21:47:34 +00007865IFS=$as_save_IFS
7866
7867 ;;
7868esac
7869fi
7870PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7871if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007873$as_echo "$PKG_CONFIG" >&6; }
7874else
cristy8b350f62009-11-15 23:12:43 +00007875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007876$as_echo "no" >&6; }
7877fi
7878
7879
7880fi
7881if test -z "$ac_cv_path_PKG_CONFIG"; then
7882 ac_pt_PKG_CONFIG=$PKG_CONFIG
7883 # Extract the first word of "pkg-config", so it can be a program name with args.
7884set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007886$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007887if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007888 $as_echo_n "(cached) " >&6
7889else
7890 case $ac_pt_PKG_CONFIG in
7891 [\\/]* | ?:[\\/]*)
7892 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7893 ;;
7894 *)
7895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896for as_dir in $PATH
7897do
7898 IFS=$as_save_IFS
7899 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007900 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7902 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007904 break 2
7905 fi
7906done
cristy8b350f62009-11-15 23:12:43 +00007907 done
cristy3ed852e2009-09-05 21:47:34 +00007908IFS=$as_save_IFS
7909
7910 ;;
7911esac
7912fi
7913ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7914if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007916$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7917else
cristy8b350f62009-11-15 23:12:43 +00007918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007919$as_echo "no" >&6; }
7920fi
7921
7922 if test "x$ac_pt_PKG_CONFIG" = x; then
7923 PKG_CONFIG=""
7924 else
7925 case $cross_compiling:$ac_tool_warned in
7926yes:)
cristy8b350f62009-11-15 23:12:43 +00007927{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00007928$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7929ac_tool_warned=yes ;;
7930esac
7931 PKG_CONFIG=$ac_pt_PKG_CONFIG
7932 fi
7933else
7934 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7935fi
7936
7937fi
7938if test -n "$PKG_CONFIG"; then
7939 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00007940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00007941$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7942 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00007943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007944$as_echo "yes" >&6; }
7945 else
cristy8b350f62009-11-15 23:12:43 +00007946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007947$as_echo "no" >&6; }
7948 PKG_CONFIG=""
7949 fi
7950
7951fi
7952
7953#
cristy3ed852e2009-09-05 21:47:34 +00007954# Enable run-time checking.
7955#
7956# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007957if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007958 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7959else
7960 enable_bounds_checking='no'
7961fi
7962
7963
7964if test "$enable_bounds_checking" = yes; then
7965
cristy8b350f62009-11-15 23:12:43 +00007966$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007967
7968fi
7969
7970#
7971# Tests for Windows
7972#
7973
7974
cristy0d3a6382010-04-26 00:45:55 +00007975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7976$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7977if test "${ax_cv_c_compiler_ms+set}" = set; then :
7978 $as_echo_n "(cached) " >&6
7979else
7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981/* end confdefs.h. */
7982
7983int
7984main ()
7985{
7986#ifndef _MSC_VER
7987 choke me
7988#endif
7989
7990 ;
7991 return 0;
7992}
7993_ACEOF
7994if ac_fn_c_try_compile "$LINENO"; then :
7995 ax_compiler_ms=yes
7996else
7997 ax_compiler_ms=no
7998fi
7999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8000ax_cv_c_compiler_ms=$ax_compiler_ms
8001
8002fi
8003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8004$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008005
8006GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008007native_win32_build='no'
8008cygwin_build='no'
8009case "${host_os}" in
8010 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008011 cygwin_build='yes'
8012 GDI32_LIBS='-lgdi32'
8013 ;;
8014 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008015 native_win32_build='yes'
8016 GDI32_LIBS='-lgdi32'
8017 ;;
8018esac
8019if test "${GDI32_LIBS}x" != 'x'; then
8020
cristy8b350f62009-11-15 23:12:43 +00008021$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008022
8023fi
8024
8025 if test "${GDI32_LIBS}x" != 'x' ; then
8026 WINGDI32_DELEGATE_TRUE=
8027 WINGDI32_DELEGATE_FALSE='#'
8028else
8029 WINGDI32_DELEGATE_TRUE='#'
8030 WINGDI32_DELEGATE_FALSE=
8031fi
8032
8033 if test "${native_win32_build}" = 'yes' ; then
8034 WIN32_NATIVE_BUILD_TRUE=
8035 WIN32_NATIVE_BUILD_FALSE='#'
8036else
8037 WIN32_NATIVE_BUILD_TRUE='#'
8038 WIN32_NATIVE_BUILD_FALSE=
8039fi
8040
8041 if test "${cygwin_build}" = 'yes' ; then
8042 CYGWIN_BUILD_TRUE=
8043 CYGWIN_BUILD_FALSE='#'
8044else
8045 CYGWIN_BUILD_TRUE='#'
8046 CYGWIN_BUILD_FALSE=
8047fi
8048
8049 if test "x${CC}" = 'xcl.exe' ; then
8050 USING_CL_TRUE=
8051 USING_CL_FALSE='#'
8052else
8053 USING_CL_TRUE='#'
8054 USING_CL_FALSE=
8055fi
8056
8057
8058WinPathScript="${srcdirfull}/winpath.sh"
8059
8060
8061#
8062# Compiler flags tweaks
8063#
8064if test "${GCC}" != "yes"; then
8065 case "${host}" in
8066 *-*-hpux* )
8067 # aCC: HP ANSI C++ B3910B A.03.34
8068 CFLAGS="${CFLAGS} -Wp,-H30000"
8069 if test -n "${CXXFLAGS}"; then
8070 CXXFLAGS='-AA'
8071 else
8072 CXXFLAGS="${CXXFLAGS} -AA"
8073 fi
8074 ;;
8075 *-dec-osf5.* )
8076 # Compaq alphaev68-dec-osf5.1 compiler
8077 if test -n "${CXXFLAGS}"; then
8078 CXXFLAGS='-std strict_ansi -noimplicit_include'
8079 else
8080 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8081 fi
8082 esac
8083fi
8084
8085# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008087$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008088if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008089 $as_echo_n "(cached) " >&6
8090else
8091
8092im_cv_ld_lazyload='none'
8093case "${host}" in
8094 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8095 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8096 im_cv_ld_lazyload='-Wl,-zlazyload'
8097 fi
8098 ;;
8099esac
8100
8101fi
cristy8b350f62009-11-15 23:12:43 +00008102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008103$as_echo "$im_cv_ld_lazyload" >&6; }
8104if test "${im_cv_ld_lazyload}" != 'none' ; then
8105 if test -z "${LDFLAGS}" ; then
8106 LDFLAGS="${im_cv_ld_lazyload}"
8107 else
8108 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8109 fi
8110fi
8111
8112case "$host" in
8113*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008114 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008115if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008116 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8117else
8118 build_osxuniversal=no
8119fi
8120
8121
8122 if test "${build_osxuniversal}" != no ; then
8123 if test "$enable_dependency_tracking" != no ; then
cristyf6fcb5d2010-09-24 01:19:13 +00008124 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008125Please re-run configure with these options:
8126 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008127 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008128 fi
8129 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8130 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8131 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8132 fi
8133 ;;
8134esac
8135
8136# Enable support for threads
8137
8138# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008139if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008140 withval=$with_threads; with_threads=$withval
8141else
8142 with_threads='yes'
8143fi
8144
8145
8146have_threads=no
8147if test "$with_threads" != 'no'; then
8148
8149
8150
8151ac_ext=c
8152ac_cpp='$CPP $CPPFLAGS'
8153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8155ac_compiler_gnu=$ac_cv_c_compiler_gnu
8156
cristy964cb7f2010-04-25 23:18:00 +00008157ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008158
8159# We used to check for pthread.h first, but this fails if pthread.h
8160# requires special compiler flags (e.g. on True64 or Sequent).
8161# It gets checked for in the link test anyway.
8162
8163# First of all, check if the user has set any of the PTHREAD_LIBS,
8164# etcetera environment variables, and if threads linking works using
8165# them:
8166if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8167 save_CFLAGS="$CFLAGS"
8168 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8169 save_LIBS="$LIBS"
8170 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00008171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
cristy3ed852e2009-09-05 21:47:34 +00008172$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008174/* end confdefs.h. */
8175
8176/* Override any GCC internal prototype to avoid an error.
8177 Use char because int might match the return type of a GCC
8178 builtin and then its argument prototype would still apply. */
8179#ifdef __cplusplus
8180extern "C"
8181#endif
8182char pthread_join ();
8183int
8184main ()
8185{
8186return pthread_join ();
8187 ;
8188 return 0;
8189}
8190_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008191if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008192 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008193fi
cristy8b350f62009-11-15 23:12:43 +00008194rm -f core conftest.err conftest.$ac_objext \
8195 conftest$ac_exeext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +00008196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8197$as_echo "$ax_pthread_ok" >&6; }
8198 if test x"$ax_pthread_ok" = xno; then
cristy3ed852e2009-09-05 21:47:34 +00008199 PTHREAD_LIBS=""
8200 PTHREAD_CFLAGS=""
8201 fi
8202 LIBS="$save_LIBS"
8203 CFLAGS="$save_CFLAGS"
8204fi
8205
8206# We must check for the threads library under a number of different
8207# names; the ordering is very important because some systems
8208# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8209# libraries is broken (non-POSIX).
8210
8211# Create a list of thread flags to try. Items starting with a "-" are
8212# C compiler flags, and other items are library names, except for "none"
8213# which indicates that we try without any flags at all, and "pthread-config"
8214# which is a program returning the flags for the Pth emulation library.
8215
cristy964cb7f2010-04-25 23:18:00 +00008216ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy3ed852e2009-09-05 21:47:34 +00008217
8218# The ordering *is* (sometimes) important. Some notes on the
8219# individual items follow:
8220
8221# pthreads: AIX (must check this before -lpthread)
8222# none: in case threads are in libc; should be tried before -Kthread and
8223# other compiler flags to prevent continual compiler warnings
8224# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8225# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8226# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8227# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8228# -pthreads: Solaris/gcc
8229# -mthreads: Mingw32/gcc, Lynx/gcc
8230# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8231# doesn't hurt to check since this sometimes defines pthreads too;
8232# also defines -D_REENTRANT)
8233# ... -mt is also the pthreads flag for HP/aCC
8234# pthread: Linux, etcetera
8235# --thread-safe: KAI C++
8236# pthread-config: use pthread-config program (for GNU Pth library)
8237
8238case "${host_cpu}-${host_os}" in
8239 *solaris*)
8240
8241 # On Solaris (at least, for some versions), libc contains stubbed
8242 # (non-functional) versions of the pthreads routines, so link-based
8243 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8244 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8245 # a function called by this macro, so we could check for that, but
8246 # who knows whether they'll stub that too in a future libc.) So,
8247 # we'll just look for -pthreads and -lpthread first:
8248
cristy964cb7f2010-04-25 23:18:00 +00008249 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
cristy3ed852e2009-09-05 21:47:34 +00008250 ;;
cristy964cb7f2010-04-25 23:18:00 +00008251
8252 *-darwin*)
cristy3b472e52010-09-23 16:11:43 +00008253 ax_pthread_flags="-pthread $ax_pthread_flags"
cristy964cb7f2010-04-25 23:18:00 +00008254 ;;
cristy3ed852e2009-09-05 21:47:34 +00008255esac
8256
cristy964cb7f2010-04-25 23:18:00 +00008257if test x"$ax_pthread_ok" = xno; then
8258for flag in $ax_pthread_flags; do
cristy3ed852e2009-09-05 21:47:34 +00008259
8260 case $flag in
8261 none)
cristy8b350f62009-11-15 23:12:43 +00008262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00008263$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8264 ;;
8265
8266 -*)
cristy8b350f62009-11-15 23:12:43 +00008267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008268$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8269 PTHREAD_CFLAGS="$flag"
8270 ;;
8271
8272 pthread-config)
8273 # Extract the first word of "pthread-config", so it can be a program name with args.
8274set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008276$as_echo_n "checking for $ac_word... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +00008277if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008278 $as_echo_n "(cached) " >&6
8279else
cristy964cb7f2010-04-25 23:18:00 +00008280 if test -n "$ax_pthread_config"; then
8281 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
cristy3ed852e2009-09-05 21:47:34 +00008282else
8283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8284for as_dir in $PATH
8285do
8286 IFS=$as_save_IFS
8287 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008288 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy964cb7f2010-04-25 23:18:00 +00008290 ac_cv_prog_ax_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00008291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008292 break 2
8293 fi
8294done
cristy8b350f62009-11-15 23:12:43 +00008295 done
cristy3ed852e2009-09-05 21:47:34 +00008296IFS=$as_save_IFS
8297
cristy964cb7f2010-04-25 23:18:00 +00008298 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
cristy3ed852e2009-09-05 21:47:34 +00008299fi
8300fi
cristy964cb7f2010-04-25 23:18:00 +00008301ax_pthread_config=$ac_cv_prog_ax_pthread_config
8302if test -n "$ax_pthread_config"; then
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8304$as_echo "$ax_pthread_config" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008305else
cristy8b350f62009-11-15 23:12:43 +00008306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008307$as_echo "no" >&6; }
8308fi
8309
8310
cristy964cb7f2010-04-25 23:18:00 +00008311 if test x"$ax_pthread_config" = xno; then continue; fi
cristy3ed852e2009-09-05 21:47:34 +00008312 PTHREAD_CFLAGS="`pthread-config --cflags`"
8313 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8314 ;;
8315
8316 *)
cristy8b350f62009-11-15 23:12:43 +00008317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008318$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8319 PTHREAD_LIBS="-l$flag"
8320 ;;
8321 esac
8322
8323 save_LIBS="$LIBS"
8324 save_CFLAGS="$CFLAGS"
8325 LIBS="$PTHREAD_LIBS $LIBS"
8326 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8327
8328 # Check for various functions. We must include pthread.h,
8329 # since some functions may be macros. (On the Sequent, we
8330 # need a special flag -Kthread to make this header compile.)
8331 # We check for pthread_join because it is in -lpthread on IRIX
8332 # while pthread_create is in libc. We check for pthread_attr_init
8333 # due to DEC craziness with -lpthreads. We check for
8334 # pthread_cleanup_push because it is one of the few pthread
8335 # functions on Solaris that doesn't have a non-functional libc stub.
8336 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00008337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008338/* end confdefs.h. */
8339#include <pthread.h>
cristy964cb7f2010-04-25 23:18:00 +00008340 static void routine(void* a) {a=0;}
8341 static void* start_routine(void* a) {return a;}
cristy3ed852e2009-09-05 21:47:34 +00008342int
8343main ()
8344{
cristy964cb7f2010-04-25 23:18:00 +00008345pthread_t th; pthread_attr_t attr;
cristy3b472e52010-09-23 16:11:43 +00008346 pthread_create(&th,0,start_routine,0);
cristy964cb7f2010-04-25 23:18:00 +00008347 pthread_join(th, 0);
8348 pthread_attr_init(&attr);
8349 pthread_cleanup_push(routine, 0);
cristy964cb7f2010-04-25 23:18:00 +00008350 pthread_cleanup_pop(0);
cristy3ed852e2009-09-05 21:47:34 +00008351 ;
8352 return 0;
8353}
8354_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008355if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008356 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008357fi
cristy8b350f62009-11-15 23:12:43 +00008358rm -f core conftest.err conftest.$ac_objext \
8359 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008360
8361 LIBS="$save_LIBS"
8362 CFLAGS="$save_CFLAGS"
8363
cristy964cb7f2010-04-25 23:18:00 +00008364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8365$as_echo "$ax_pthread_ok" >&6; }
8366 if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008367 break;
8368 fi
8369
8370 PTHREAD_LIBS=""
8371 PTHREAD_CFLAGS=""
8372done
8373fi
8374
8375# Various other checks:
cristy964cb7f2010-04-25 23:18:00 +00008376if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008377 save_LIBS="$LIBS"
8378 LIBS="$PTHREAD_LIBS $LIBS"
8379 save_CFLAGS="$CFLAGS"
8380 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8381
8382 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00008383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00008384$as_echo_n "checking for joinable pthread attribute... " >&6; }
8385 attr_name=unknown
8386 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00008387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008388/* end confdefs.h. */
8389#include <pthread.h>
8390int
8391main ()
8392{
8393int attr=$attr; return attr;
8394 ;
8395 return 0;
8396}
8397_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008398if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008399 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00008400fi
cristy8b350f62009-11-15 23:12:43 +00008401rm -f core conftest.err conftest.$ac_objext \
8402 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008403 done
cristy8b350f62009-11-15 23:12:43 +00008404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00008405$as_echo "$attr_name" >&6; }
8406 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8407
8408cat >>confdefs.h <<_ACEOF
8409#define PTHREAD_CREATE_JOINABLE $attr_name
8410_ACEOF
8411
8412 fi
8413
cristy8b350f62009-11-15 23:12:43 +00008414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00008415$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8416 flag=no
8417 case "${host_cpu}-${host_os}" in
8418 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8419 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8420 esac
cristy8b350f62009-11-15 23:12:43 +00008421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00008422$as_echo "${flag}" >&6; }
8423 if test "x$flag" != xno; then
8424 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8425 fi
8426
8427 LIBS="$save_LIBS"
8428 CFLAGS="$save_CFLAGS"
8429
8430 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00008431 if test x"$GCC" != xyes; then
8432 for ac_prog in xlc_r cc_r
8433do
8434 # Extract the first word of "$ac_prog", so it can be a program name with args.
8435set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008437$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008438if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008439 $as_echo_n "(cached) " >&6
8440else
8441 if test -n "$PTHREAD_CC"; then
8442 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8443else
8444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445for as_dir in $PATH
8446do
8447 IFS=$as_save_IFS
8448 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008449 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy736173a2009-09-20 21:18:22 +00008451 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008453 break 2
8454 fi
8455done
cristy8b350f62009-11-15 23:12:43 +00008456 done
cristy3ed852e2009-09-05 21:47:34 +00008457IFS=$as_save_IFS
8458
cristy3ed852e2009-09-05 21:47:34 +00008459fi
8460fi
8461PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8462if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008464$as_echo "$PTHREAD_CC" >&6; }
8465else
cristy8b350f62009-11-15 23:12:43 +00008466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008467$as_echo "no" >&6; }
8468fi
8469
cristy736173a2009-09-20 21:18:22 +00008470
8471 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00008472done
cristy736173a2009-09-20 21:18:22 +00008473test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00008474
cristy736173a2009-09-20 21:18:22 +00008475 else
8476 PTHREAD_CC=$CC
8477 fi
cristy3ed852e2009-09-05 21:47:34 +00008478else
cristy736173a2009-09-20 21:18:22 +00008479 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00008480fi
8481
cristy3ed852e2009-09-05 21:47:34 +00008482
8483
8484
8485
8486# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
cristy964cb7f2010-04-25 23:18:00 +00008487if test x"$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008488
cristy8b350f62009-11-15 23:12:43 +00008489$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008490
8491 :
8492else
cristy964cb7f2010-04-25 23:18:00 +00008493 ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008494
8495fi
8496ac_ext=c
8497ac_cpp='$CPP $CPPFLAGS'
8498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8500ac_compiler_gnu=$ac_cv_c_compiler_gnu
8501
8502
cristy7acf8fb2010-09-23 19:58:53 +00008503 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008504 have_threads=yes
8505 DEF_THREAD="$PTHREAD_CFLAGS"
8506 CFLAGS="$CFLAGS $DEF_THREAD"
8507 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8508 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008509 { $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 +00008510$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8511 CC="$PTHREAD_CC"
8512 fi
cristyb9de14a2010-09-23 16:02:17 +00008513 if test "$CXX" != "$PTHREAD_CXX"; then
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&5
8515$as_echo "$as_me: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&2;}
8516 CXX="$PTHREAD_CXX"
8517 fi
cristy55bf91c2010-09-24 00:29:41 +00008518
8519$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8520
cristy3ed852e2009-09-05 21:47:34 +00008521 fi
8522fi
8523
8524# Enable support for OpenMP
8525if test "$have_threads" != 'yes'; then
8526 ac_cv_prog_c_openmp=unsupported
8527fi
8528
8529 OPENMP_CFLAGS=
8530 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008531if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008532 enableval=$enable_openmp;
8533fi
8534
8535 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008537$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008538if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008539 $as_echo_n "(cached) " >&6
8540else
cristy8b350f62009-11-15 23:12:43 +00008541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008543
8544#ifndef _OPENMP
8545 choke me
8546#endif
8547#include <omp.h>
8548int main () { return omp_get_num_threads (); }
8549
8550_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008551if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008552 ac_cv_prog_c_openmp='none needed'
8553else
cristy8b350f62009-11-15 23:12:43 +00008554 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008555 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8556 ac_save_CFLAGS=$CFLAGS
8557 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008560
8561#ifndef _OPENMP
8562 choke me
8563#endif
8564#include <omp.h>
8565int main () { return omp_get_num_threads (); }
8566
8567_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008568if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008569 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008570fi
cristy8b350f62009-11-15 23:12:43 +00008571rm -f core conftest.err conftest.$ac_objext \
8572 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008573 CFLAGS=$ac_save_CFLAGS
8574 if test "$ac_cv_prog_c_openmp" != unsupported; then
8575 break
8576 fi
8577 done
8578fi
cristy8b350f62009-11-15 23:12:43 +00008579rm -f core conftest.err conftest.$ac_objext \
8580 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008581fi
cristy8b350f62009-11-15 23:12:43 +00008582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008583$as_echo "$ac_cv_prog_c_openmp" >&6; }
8584 case $ac_cv_prog_c_openmp in #(
8585 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008586 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008587 *)
cristy8b350f62009-11-15 23:12:43 +00008588 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008589 esac
8590 fi
8591
8592
8593CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8594MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8595
cristy391f1ce2010-09-09 17:23:28 +00008596if test "$enable_openmp" != no; then
8597 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8598 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8599 fi
8600fi
cristy3ed852e2009-09-05 21:47:34 +00008601
cristy736173a2009-09-20 21:18:22 +00008602# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00008603
cristy7acf8fb2010-09-23 19:58:53 +00008604
8605
8606ac_ext=c
8607ac_cpp='$CPP $CPPFLAGS'
8608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8610ac_compiler_gnu=$ac_cv_c_compiler_gnu
8611
8612ax_pthread_ok=no
8613
8614# We used to check for pthread.h first, but this fails if pthread.h
8615# requires special compiler flags (e.g. on True64 or Sequent).
8616# It gets checked for in the link test anyway.
8617
8618# First of all, check if the user has set any of the PTHREAD_LIBS,
8619# etcetera environment variables, and if threads linking works using
8620# them:
8621if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8622 save_CFLAGS="$CFLAGS"
8623 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8624 save_LIBS="$LIBS"
8625 LIBS="$PTHREAD_LIBS $LIBS"
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8627$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8629/* end confdefs.h. */
8630
8631/* Override any GCC internal prototype to avoid an error.
8632 Use char because int might match the return type of a GCC
8633 builtin and then its argument prototype would still apply. */
8634#ifdef __cplusplus
8635extern "C"
8636#endif
8637char pthread_join ();
8638int
8639main ()
8640{
8641return pthread_join ();
8642 ;
8643 return 0;
8644}
8645_ACEOF
8646if ac_fn_c_try_link "$LINENO"; then :
8647 ax_pthread_ok=yes
8648fi
8649rm -f core conftest.err conftest.$ac_objext \
8650 conftest$ac_exeext conftest.$ac_ext
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8652$as_echo "$ax_pthread_ok" >&6; }
8653 if test x"$ax_pthread_ok" = xno; then
8654 PTHREAD_LIBS=""
8655 PTHREAD_CFLAGS=""
8656 fi
8657 LIBS="$save_LIBS"
8658 CFLAGS="$save_CFLAGS"
8659fi
8660
8661# We must check for the threads library under a number of different
8662# names; the ordering is very important because some systems
8663# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8664# libraries is broken (non-POSIX).
8665
8666# Create a list of thread flags to try. Items starting with a "-" are
8667# C compiler flags, and other items are library names, except for "none"
8668# which indicates that we try without any flags at all, and "pthread-config"
8669# which is a program returning the flags for the Pth emulation library.
8670
8671ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8672
8673# The ordering *is* (sometimes) important. Some notes on the
8674# individual items follow:
8675
8676# pthreads: AIX (must check this before -lpthread)
8677# none: in case threads are in libc; should be tried before -Kthread and
8678# other compiler flags to prevent continual compiler warnings
8679# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8680# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8681# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8682# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8683# -pthreads: Solaris/gcc
8684# -mthreads: Mingw32/gcc, Lynx/gcc
8685# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8686# doesn't hurt to check since this sometimes defines pthreads too;
8687# also defines -D_REENTRANT)
8688# ... -mt is also the pthreads flag for HP/aCC
8689# pthread: Linux, etcetera
8690# --thread-safe: KAI C++
8691# pthread-config: use pthread-config program (for GNU Pth library)
8692
8693case "${host_cpu}-${host_os}" in
8694 *solaris*)
8695
8696 # On Solaris (at least, for some versions), libc contains stubbed
8697 # (non-functional) versions of the pthreads routines, so link-based
8698 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8699 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8700 # a function called by this macro, so we could check for that, but
8701 # who knows whether they'll stub that too in a future libc.) So,
8702 # we'll just look for -pthreads and -lpthread first:
8703
8704 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8705 ;;
8706
8707 *-darwin*)
8708 ax_pthread_flags="-pthread $ax_pthread_flags"
8709 ;;
8710esac
8711
8712if test x"$ax_pthread_ok" = xno; then
8713for flag in $ax_pthread_flags; do
8714
8715 case $flag in
8716 none)
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8718$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8719 ;;
8720
8721 -*)
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8723$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8724 PTHREAD_CFLAGS="$flag"
8725 ;;
8726
8727 pthread-config)
8728 # Extract the first word of "pthread-config", so it can be a program name with args.
8729set dummy pthread-config; ac_word=$2
8730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8731$as_echo_n "checking for $ac_word... " >&6; }
8732if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8733 $as_echo_n "(cached) " >&6
8734else
8735 if test -n "$ax_pthread_config"; then
8736 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8737else
8738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8739for as_dir in $PATH
8740do
8741 IFS=$as_save_IFS
8742 test -z "$as_dir" && as_dir=.
8743 for ac_exec_ext in '' $ac_executable_extensions; do
8744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8745 ac_cv_prog_ax_pthread_config="yes"
8746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8747 break 2
8748 fi
8749done
8750 done
8751IFS=$as_save_IFS
8752
8753 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8754fi
8755fi
8756ax_pthread_config=$ac_cv_prog_ax_pthread_config
8757if test -n "$ax_pthread_config"; then
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8759$as_echo "$ax_pthread_config" >&6; }
8760else
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762$as_echo "no" >&6; }
8763fi
8764
8765
8766 if test x"$ax_pthread_config" = xno; then continue; fi
8767 PTHREAD_CFLAGS="`pthread-config --cflags`"
8768 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8769 ;;
8770
8771 *)
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8773$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8774 PTHREAD_LIBS="-l$flag"
8775 ;;
8776 esac
8777
8778 save_LIBS="$LIBS"
8779 save_CFLAGS="$CFLAGS"
8780 LIBS="$PTHREAD_LIBS $LIBS"
8781 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8782
8783 # Check for various functions. We must include pthread.h,
8784 # since some functions may be macros. (On the Sequent, we
8785 # need a special flag -Kthread to make this header compile.)
8786 # We check for pthread_join because it is in -lpthread on IRIX
8787 # while pthread_create is in libc. We check for pthread_attr_init
8788 # due to DEC craziness with -lpthreads. We check for
8789 # pthread_cleanup_push because it is one of the few pthread
8790 # functions on Solaris that doesn't have a non-functional libc stub.
8791 # We try pthread_create on general principles.
8792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793/* end confdefs.h. */
8794#include <pthread.h>
8795 static void routine(void* a) {a=0;}
8796 static void* start_routine(void* a) {return a;}
8797int
8798main ()
8799{
8800pthread_t th; pthread_attr_t attr;
8801 pthread_create(&th,0,start_routine,0);
8802 pthread_join(th, 0);
8803 pthread_attr_init(&attr);
8804 pthread_cleanup_push(routine, 0);
8805 pthread_cleanup_pop(0);
8806 ;
8807 return 0;
8808}
8809_ACEOF
8810if ac_fn_c_try_link "$LINENO"; then :
8811 ax_pthread_ok=yes
8812fi
8813rm -f core conftest.err conftest.$ac_objext \
8814 conftest$ac_exeext conftest.$ac_ext
8815
8816 LIBS="$save_LIBS"
8817 CFLAGS="$save_CFLAGS"
8818
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8820$as_echo "$ax_pthread_ok" >&6; }
8821 if test "x$ax_pthread_ok" = xyes; then
8822 break;
8823 fi
8824
8825 PTHREAD_LIBS=""
8826 PTHREAD_CFLAGS=""
8827done
8828fi
8829
8830# Various other checks:
8831if test "x$ax_pthread_ok" = xyes; then
8832 save_LIBS="$LIBS"
8833 LIBS="$PTHREAD_LIBS $LIBS"
8834 save_CFLAGS="$CFLAGS"
8835 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8836
8837 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8839$as_echo_n "checking for joinable pthread attribute... " >&6; }
8840 attr_name=unknown
8841 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8843/* end confdefs.h. */
8844#include <pthread.h>
8845int
8846main ()
8847{
8848int attr=$attr; return attr;
8849 ;
8850 return 0;
8851}
8852_ACEOF
8853if ac_fn_c_try_link "$LINENO"; then :
8854 attr_name=$attr; break
8855fi
8856rm -f core conftest.err conftest.$ac_objext \
8857 conftest$ac_exeext conftest.$ac_ext
8858 done
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8860$as_echo "$attr_name" >&6; }
8861 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8862
8863cat >>confdefs.h <<_ACEOF
8864#define PTHREAD_CREATE_JOINABLE $attr_name
8865_ACEOF
8866
8867 fi
8868
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8870$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8871 flag=no
8872 case "${host_cpu}-${host_os}" in
8873 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8874 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8875 esac
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8877$as_echo "${flag}" >&6; }
8878 if test "x$flag" != xno; then
8879 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8880 fi
8881
8882 LIBS="$save_LIBS"
8883 CFLAGS="$save_CFLAGS"
8884
8885 # More AIX lossage: must compile with xlc_r or cc_r
8886 if test x"$GCC" != xyes; then
8887 for ac_prog in xlc_r cc_r
8888do
8889 # Extract the first word of "$ac_prog", so it can be a program name with args.
8890set dummy $ac_prog; ac_word=$2
8891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8892$as_echo_n "checking for $ac_word... " >&6; }
8893if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8894 $as_echo_n "(cached) " >&6
8895else
8896 if test -n "$PTHREAD_CC"; then
8897 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8898else
8899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8900for as_dir in $PATH
8901do
8902 IFS=$as_save_IFS
8903 test -z "$as_dir" && as_dir=.
8904 for ac_exec_ext in '' $ac_executable_extensions; do
8905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8906 ac_cv_prog_PTHREAD_CC="$ac_prog"
8907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8908 break 2
8909 fi
8910done
8911 done
8912IFS=$as_save_IFS
8913
8914fi
8915fi
8916PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8917if test -n "$PTHREAD_CC"; then
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8919$as_echo "$PTHREAD_CC" >&6; }
8920else
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8922$as_echo "no" >&6; }
8923fi
8924
8925
8926 test -n "$PTHREAD_CC" && break
8927done
8928test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8929
8930 else
8931 PTHREAD_CC=$CC
8932 fi
8933else
8934 PTHREAD_CC="$CC"
8935fi
8936
8937
8938
8939
8940
8941# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8942if test x"$ax_pthread_ok" = xyes; then
8943
8944$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8945
8946 :
8947else
8948 ax_pthread_ok=no
8949
8950fi
8951ac_ext=c
8952ac_cpp='$CPP $CPPFLAGS'
8953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8955ac_compiler_gnu=$ac_cv_c_compiler_gnu
8956
8957
8958
cristy43596fe2010-01-21 16:46:08 +00008959# Check whether --enable-opencl was given.
8960if test "${enable_opencl+set}" = set; then :
8961 enableval=$enable_opencl; disable_opencl=$enableval
8962else
8963 disable_opencl='yes'
8964fi
8965
8966
8967if test "$disable_opencl" = 'yes'; then
8968 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008969ac_cpp='$CPP $CPPFLAGS'
8970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8972ac_compiler_gnu=$ac_cv_c_compiler_gnu
8973
cristy43596fe2010-01-21 16:46:08 +00008974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00008975$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008976if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008977 $as_echo_n "(cached) " >&6
8978else
cristy8b350f62009-11-15 23:12:43 +00008979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008980/* end confdefs.h. */
8981
8982int
8983main ()
8984{
8985#ifndef _MSC_VER
8986 choke me
8987#endif
8988
8989 ;
8990 return 0;
8991}
8992_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008993if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008994 ax_compiler_ms=yes
8995else
cristy8b350f62009-11-15 23:12:43 +00008996 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00008997fi
cristy736173a2009-09-20 21:18:22 +00008998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8999ax_cv_c_compiler_ms=$ax_compiler_ms
9000
9001fi
cristy8b350f62009-11-15 23:12:43 +00009002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00009003$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy43596fe2010-01-21 16:46:08 +00009004 if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00009005 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9006fi
9007
cristy43596fe2010-01-21 16:46:08 +00009008 ax_save_CPPFLAGS=$CPPFLAGS
9009 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9010 for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00009011do :
9012 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9013ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyf6fcb5d2010-09-24 01:19:13 +00009014eval as_val=\$$as_ac_Header
9015 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00009016 cat >>confdefs.h <<_ACEOF
9017#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9018_ACEOF
9019
9020fi
9021
9022done
9023
cristy43596fe2010-01-21 16:46:08 +00009024 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00009025
cristy43596fe2010-01-21 16:46:08 +00009026 for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00009027do :
9028 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9029if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00009030 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009031#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00009032_ACEOF
9033
9034fi
9035
9036done
9037
9038
9039
9040
cristy43596fe2010-01-21 16:46:08 +00009041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00009042$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009043if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00009044 $as_echo_n "(cached) " >&6
9045else
9046 ax_cv_check_cl_libcl=no
cristy43596fe2010-01-21 16:46:08 +00009047 case $host_cpu in
9048 x86_64) ax_check_cl_libdir=lib64 ;;
9049 *) ax_check_cl_libdir=lib ;;
9050 esac
9051 ax_save_CPPFLAGS=$CPPFLAGS
9052 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9053 ax_save_LIBS=$LIBS
9054 LIBS=""
9055 ax_check_libs="-lOpenCL -lCL -lclparser"
9056 for ax_lib in $ax_check_libs; do
9057 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00009058 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9059else
9060 ax_try_lib=$ax_lib
9061fi
cristy43596fe2010-01-21 16:46:08 +00009062 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009064/* end confdefs.h. */
9065
cristy43596fe2010-01-21 16:46:08 +00009066 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9067 # include <windows.h>
9068 # endif
9069 # ifdef HAVE_CL_CL_H
9070 # include <CL/cl.h>
9071 # elif defined(HAVE_OPENCL_CL_H)
9072 # include <OpenCL/cl.h>
9073 # else
9074 # error no CL.h
9075 # endif
cristy736173a2009-09-20 21:18:22 +00009076int
9077main ()
9078{
cristyc7083c12009-10-14 03:16:55 +00009079clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009080 ;
9081 return 0;
9082}
9083_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009084if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009085 ax_cv_check_cl_libcl=$ax_try_lib; break
9086else
cristy8b350f62009-11-15 23:12:43 +00009087 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"
cristy43596fe2010-01-21 16:46:08 +00009088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009089/* end confdefs.h. */
9090
cristy43596fe2010-01-21 16:46:08 +00009091 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9092 # include <windows.h>
9093 # endif
9094 # ifdef HAVE_CL_CL_H
9095 # include <CL/cl.h>
9096 # elif defined(HAVE_OPENCL_CL_H)
9097 # include <OpenCL/cl.h>
9098 # else
9099 # error no CL.h
9100 # endif
cristy736173a2009-09-20 21:18:22 +00009101int
9102main ()
9103{
cristyc7083c12009-10-14 03:16:55 +00009104clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009105 ;
9106 return 0;
9107}
9108_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009109if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009110 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9111else
cristy4dc44432009-12-30 23:30:06 +00009112 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"
cristy43596fe2010-01-21 16:46:08 +00009113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009114/* end confdefs.h. */
9115
cristy43596fe2010-01-21 16:46:08 +00009116 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9117 # include <windows.h>
9118 # endif
9119 # ifdef HAVE_CL_CL_H
9120 # include <CL/cl.h>
9121 # elif defined(HAVE_OPENCL_CL_H)
9122 # include <OpenCL/cl.h>
9123 # else
9124 # error no CL.h
9125 # endif
cristy736173a2009-09-20 21:18:22 +00009126int
9127main ()
9128{
cristyc7083c12009-10-14 03:16:55 +00009129clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009130 ;
9131 return 0;
9132}
9133_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009134if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009135 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00009136fi
cristy8b350f62009-11-15 23:12:43 +00009137rm -f core conftest.err conftest.$ac_objext \
9138 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009139fi
cristy8b350f62009-11-15 23:12:43 +00009140rm -f core conftest.err conftest.$ac_objext \
9141 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009142fi
cristy8b350f62009-11-15 23:12:43 +00009143rm -f core conftest.err conftest.$ac_objext \
9144 conftest$ac_exeext conftest.$ac_ext
cristy43596fe2010-01-21 16:46:08 +00009145 done
cristy736173a2009-09-20 21:18:22 +00009146
cristy43596fe2010-01-21 16:46:08 +00009147 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00009148 LIBS='-framework OpenCL'
cristy43596fe2010-01-21 16:46:08 +00009149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009150/* end confdefs.h. */
9151
cristy43596fe2010-01-21 16:46:08 +00009152 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9153 # include <windows.h>
9154 # endif
9155 # ifdef HAVE_CL_CL_H
9156 # include <CL/cl.h>
9157 # elif defined(HAVE_OPENCL_CL_H)
9158 # include <OpenCL/cl.h>
9159 # else
9160 # error no CL.h
9161 # endif
cristy736173a2009-09-20 21:18:22 +00009162int
9163main ()
9164{
cristyc7083c12009-10-14 03:16:55 +00009165clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009166 ;
9167 return 0;
9168}
9169_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009170if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009171 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00009172fi
cristy8b350f62009-11-15 23:12:43 +00009173rm -f core conftest.err conftest.$ac_objext \
9174 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009175fi
9176
cristy43596fe2010-01-21 16:46:08 +00009177 LIBS=$ax_save_LIBS
9178 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00009179fi
cristy8b350f62009-11-15 23:12:43 +00009180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00009181$as_echo "$ax_cv_check_cl_libcl" >&6; }
9182
cristy43596fe2010-01-21 16:46:08 +00009183 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00009184 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9185else
cristy99cc3002010-01-21 14:50:11 +00009186 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9187$as_echo "#define _OPENCL 1" >>confdefs.h
9188
cristy736173a2009-09-20 21:18:22 +00009189fi
cristy43596fe2010-01-21 16:46:08 +00009190 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00009191ac_cpp='$CPP $CPPFLAGS'
9192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9194ac_compiler_gnu=$ac_cv_c_compiler_gnu
9195
cristy43596fe2010-01-21 16:46:08 +00009196fi
cristy736173a2009-09-20 21:18:22 +00009197
9198
9199
9200
cristyc7083c12009-10-14 03:16:55 +00009201CFLAGS="$CL_CFLAGS $CFLAGS"
9202LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009203
cristy391f1ce2010-09-09 17:23:28 +00009204if test "$enable_opencl" != no; then
9205 if test "_OPENCL" = '1'; then
9206 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9207 fi
cristyfd9dcd42010-08-08 18:07:02 +00009208fi
cristy2e8b51d2009-10-17 18:26:15 +00009209
cristy3ed852e2009-09-05 21:47:34 +00009210########
9211#
9212# Check for large file support
9213#
9214########
9215# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009216if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009217 enableval=$enable_largefile;
9218fi
9219
9220if test "$enable_largefile" != no; then
9221
cristy8b350f62009-11-15 23:12:43 +00009222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009223$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009224if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009225 $as_echo_n "(cached) " >&6
9226else
9227 ac_cv_sys_largefile_CC=no
9228 if test "$GCC" != yes; then
9229 ac_save_CC=$CC
9230 while :; do
9231 # IRIX 6.2 and later do not support large files by default,
9232 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009234/* end confdefs.h. */
9235#include <sys/types.h>
9236 /* Check that off_t can represent 2**63 - 1 correctly.
9237 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9238 since some C++ compilers masquerading as C compilers
9239 incorrectly reject 9223372036854775807. */
9240#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9241 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9242 && LARGE_OFF_T % 2147483647 == 1)
9243 ? 1 : -1];
9244int
9245main ()
9246{
9247
9248 ;
9249 return 0;
9250}
9251_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009252 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009253 break
cristy3ed852e2009-09-05 21:47:34 +00009254fi
cristy3ed852e2009-09-05 21:47:34 +00009255rm -f core conftest.err conftest.$ac_objext
9256 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009257 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009258 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009259fi
cristy3ed852e2009-09-05 21:47:34 +00009260rm -f core conftest.err conftest.$ac_objext
9261 break
9262 done
9263 CC=$ac_save_CC
9264 rm -f conftest.$ac_ext
9265 fi
9266fi
cristy8b350f62009-11-15 23:12:43 +00009267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009268$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9269 if test "$ac_cv_sys_largefile_CC" != no; then
9270 CC=$CC$ac_cv_sys_largefile_CC
9271 fi
9272
cristy8b350f62009-11-15 23:12:43 +00009273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009274$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009275if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009276 $as_echo_n "(cached) " >&6
9277else
9278 while :; do
cristy8b350f62009-11-15 23:12:43 +00009279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009280/* end confdefs.h. */
9281#include <sys/types.h>
9282 /* Check that off_t can represent 2**63 - 1 correctly.
9283 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9284 since some C++ compilers masquerading as C compilers
9285 incorrectly reject 9223372036854775807. */
9286#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9287 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9288 && LARGE_OFF_T % 2147483647 == 1)
9289 ? 1 : -1];
9290int
9291main ()
9292{
9293
9294 ;
9295 return 0;
9296}
9297_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009298if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009299 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009300fi
cristy3ed852e2009-09-05 21:47:34 +00009301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009303/* end confdefs.h. */
9304#define _FILE_OFFSET_BITS 64
9305#include <sys/types.h>
9306 /* Check that off_t can represent 2**63 - 1 correctly.
9307 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9308 since some C++ compilers masquerading as C compilers
9309 incorrectly reject 9223372036854775807. */
9310#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9311 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9312 && LARGE_OFF_T % 2147483647 == 1)
9313 ? 1 : -1];
9314int
9315main ()
9316{
9317
9318 ;
9319 return 0;
9320}
9321_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009322if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009323 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009324fi
cristy3ed852e2009-09-05 21:47:34 +00009325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9326 ac_cv_sys_file_offset_bits=unknown
9327 break
9328done
9329fi
cristy8b350f62009-11-15 23:12:43 +00009330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009331$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9332case $ac_cv_sys_file_offset_bits in #(
9333 no | unknown) ;;
9334 *)
9335cat >>confdefs.h <<_ACEOF
9336#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9337_ACEOF
9338;;
9339esac
9340rm -rf conftest*
9341 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009343$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009344if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009345 $as_echo_n "(cached) " >&6
9346else
9347 while :; do
cristy8b350f62009-11-15 23:12:43 +00009348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009349/* end confdefs.h. */
9350#include <sys/types.h>
9351 /* Check that off_t can represent 2**63 - 1 correctly.
9352 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9353 since some C++ compilers masquerading as C compilers
9354 incorrectly reject 9223372036854775807. */
9355#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9356 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9357 && LARGE_OFF_T % 2147483647 == 1)
9358 ? 1 : -1];
9359int
9360main ()
9361{
9362
9363 ;
9364 return 0;
9365}
9366_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009367if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009368 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009369fi
cristy3ed852e2009-09-05 21:47:34 +00009370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009372/* end confdefs.h. */
9373#define _LARGE_FILES 1
9374#include <sys/types.h>
9375 /* Check that off_t can represent 2**63 - 1 correctly.
9376 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9377 since some C++ compilers masquerading as C compilers
9378 incorrectly reject 9223372036854775807. */
9379#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9380 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9381 && LARGE_OFF_T % 2147483647 == 1)
9382 ? 1 : -1];
9383int
9384main ()
9385{
9386
9387 ;
9388 return 0;
9389}
9390_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009391if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009392 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009393fi
cristy3ed852e2009-09-05 21:47:34 +00009394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9395 ac_cv_sys_large_files=unknown
9396 break
9397done
9398fi
cristy8b350f62009-11-15 23:12:43 +00009399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009400$as_echo "$ac_cv_sys_large_files" >&6; }
9401case $ac_cv_sys_large_files in #(
9402 no | unknown) ;;
9403 *)
9404cat >>confdefs.h <<_ACEOF
9405#define _LARGE_FILES $ac_cv_sys_large_files
9406_ACEOF
9407;;
9408esac
9409rm -rf conftest*
9410 fi
9411fi
9412
cristy8b350f62009-11-15 23:12:43 +00009413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009414$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009415if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009416 $as_echo_n "(cached) " >&6
9417else
9418 while :; do
cristy8b350f62009-11-15 23:12:43 +00009419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009420/* end confdefs.h. */
9421#include <sys/types.h> /* for off_t */
9422 #include <stdio.h>
9423int
9424main ()
9425{
9426int (*fp) (FILE *, off_t, int) = fseeko;
9427 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9428 ;
9429 return 0;
9430}
9431_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009432if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009433 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009434fi
cristy8b350f62009-11-15 23:12:43 +00009435rm -f core conftest.err conftest.$ac_objext \
9436 conftest$ac_exeext conftest.$ac_ext
9437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009438/* end confdefs.h. */
9439#define _LARGEFILE_SOURCE 1
9440#include <sys/types.h> /* for off_t */
9441 #include <stdio.h>
9442int
9443main ()
9444{
9445int (*fp) (FILE *, off_t, int) = fseeko;
9446 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9447 ;
9448 return 0;
9449}
9450_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009451if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009452 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009453fi
cristy8b350f62009-11-15 23:12:43 +00009454rm -f core conftest.err conftest.$ac_objext \
9455 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009456 ac_cv_sys_largefile_source=unknown
9457 break
9458done
9459fi
cristy8b350f62009-11-15 23:12:43 +00009460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009461$as_echo "$ac_cv_sys_largefile_source" >&6; }
9462case $ac_cv_sys_largefile_source in #(
9463 no | unknown) ;;
9464 *)
9465cat >>confdefs.h <<_ACEOF
9466#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9467_ACEOF
9468;;
9469esac
9470rm -rf conftest*
9471
9472# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9473# in glibc 2.1.3, but that breaks too many other things.
9474# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9475if test $ac_cv_sys_largefile_source != unknown; then
9476
cristy8b350f62009-11-15 23:12:43 +00009477$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009478
9479fi
9480
9481LFS_CPPFLAGS=''
9482if test "$enable_largefile" != no; then
9483 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9484 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9485 else
cristy8b350f62009-11-15 23:12:43 +00009486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009487$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009488 if test "$cross_compiling" = yes; then :
9489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00009491as_fn_error "cannot run test program while cross compiling
9492See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009493else
cristy8b350f62009-11-15 23:12:43 +00009494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9495/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009496#include <unistd.h>
9497 main () {
9498 exit(!(sizeof(off_t) == 8));
9499 }
9500_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009501if ac_fn_c_try_run "$LINENO"; then :
9502 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009503
cristy8b350f62009-11-15 23:12:43 +00009504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009505$as_echo "yes" >&6; }
9506else
cristy8b350f62009-11-15 23:12:43 +00009507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009508$as_echo "no" >&6; }
9509fi
cristy8b350f62009-11-15 23:12:43 +00009510rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9511 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009512fi
9513
cristy3ed852e2009-09-05 21:47:34 +00009514 fi
9515 if test "$ac_cv_sys_large_files" != 'no'; then
9516 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9517 fi
9518 if test "$ac_cv_sys_largefile_source" != 'no'; then
9519 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9520 fi
9521fi
9522
9523
9524#
9525# Configure libtool & libltdl
9526#
9527# Configure libtool
9528enable_dlopen=yes
9529
9530
9531
9532case `pwd` in
9533 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00009534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00009535$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9536esac
9537
9538
9539
cristyd0bd44a2010-09-24 12:38:11 +00009540macro_version='2.2.6b'
9541macro_revision='1.3017'
cristy3ed852e2009-09-05 21:47:34 +00009542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555ltmain="$ac_aux_dir/ltmain.sh"
9556
cristy8b350f62009-11-15 23:12:43 +00009557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00009558$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009559if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009560 $as_echo_n "(cached) " >&6
9561else
9562 if test -n "$NM"; then
9563 # Let the user override the test.
9564 lt_cv_path_NM="$NM"
9565else
9566 lt_nm_to_check="${ac_tool_prefix}nm"
9567 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9568 lt_nm_to_check="$lt_nm_to_check nm"
9569 fi
9570 for lt_tmp_nm in $lt_nm_to_check; do
9571 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9572 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9573 IFS="$lt_save_ifs"
9574 test -z "$ac_dir" && ac_dir=.
9575 tmp_nm="$ac_dir/$lt_tmp_nm"
9576 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9577 # Check to see if the nm accepts a BSD-compat flag.
9578 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9579 # nm: unknown option "B" ignored
9580 # Tru64's nm complains that /dev/null is an invalid object file
9581 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9582 */dev/null* | *'Invalid file or object type'*)
9583 lt_cv_path_NM="$tmp_nm -B"
9584 break
9585 ;;
9586 *)
9587 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9588 */dev/null*)
9589 lt_cv_path_NM="$tmp_nm -p"
9590 break
9591 ;;
9592 *)
9593 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9594 continue # so that we can try to find one that supports BSD flags
9595 ;;
9596 esac
9597 ;;
9598 esac
9599 fi
9600 done
9601 IFS="$lt_save_ifs"
9602 done
9603 : ${lt_cv_path_NM=no}
9604fi
9605fi
cristy8b350f62009-11-15 23:12:43 +00009606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00009607$as_echo "$lt_cv_path_NM" >&6; }
9608if test "$lt_cv_path_NM" != "no"; then
9609 NM="$lt_cv_path_NM"
9610else
9611 # Didn't find any BSD compatible name lister, look for dumpbin.
cristyd0bd44a2010-09-24 12:38:11 +00009612 if test -n "$ac_tool_prefix"; then
9613 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00009614 do
9615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9616set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009618$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009619if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009620 $as_echo_n "(cached) " >&6
9621else
9622 if test -n "$DUMPBIN"; then
9623 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9624else
9625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9626for as_dir in $PATH
9627do
9628 IFS=$as_save_IFS
9629 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009630 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9632 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009634 break 2
9635 fi
9636done
cristy8b350f62009-11-15 23:12:43 +00009637 done
cristy3ed852e2009-09-05 21:47:34 +00009638IFS=$as_save_IFS
9639
9640fi
9641fi
9642DUMPBIN=$ac_cv_prog_DUMPBIN
9643if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009645$as_echo "$DUMPBIN" >&6; }
9646else
cristy8b350f62009-11-15 23:12:43 +00009647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009648$as_echo "no" >&6; }
9649fi
9650
9651
9652 test -n "$DUMPBIN" && break
9653 done
9654fi
9655if test -z "$DUMPBIN"; then
9656 ac_ct_DUMPBIN=$DUMPBIN
cristyd0bd44a2010-09-24 12:38:11 +00009657 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00009658do
9659 # Extract the first word of "$ac_prog", so it can be a program name with args.
9660set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009662$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009663if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009664 $as_echo_n "(cached) " >&6
9665else
9666 if test -n "$ac_ct_DUMPBIN"; then
9667 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9668else
9669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9670for as_dir in $PATH
9671do
9672 IFS=$as_save_IFS
9673 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009674 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9676 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009678 break 2
9679 fi
9680done
cristy8b350f62009-11-15 23:12:43 +00009681 done
cristy3ed852e2009-09-05 21:47:34 +00009682IFS=$as_save_IFS
9683
9684fi
9685fi
9686ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9687if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009689$as_echo "$ac_ct_DUMPBIN" >&6; }
9690else
cristy8b350f62009-11-15 23:12:43 +00009691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009692$as_echo "no" >&6; }
9693fi
9694
9695
9696 test -n "$ac_ct_DUMPBIN" && break
9697done
9698
9699 if test "x$ac_ct_DUMPBIN" = x; then
9700 DUMPBIN=":"
9701 else
9702 case $cross_compiling:$ac_tool_warned in
9703yes:)
cristy8b350f62009-11-15 23:12:43 +00009704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9706ac_tool_warned=yes ;;
9707esac
9708 DUMPBIN=$ac_ct_DUMPBIN
9709 fi
9710fi
9711
9712
9713 if test "$DUMPBIN" != ":"; then
9714 NM="$DUMPBIN"
9715 fi
9716fi
9717test -z "$NM" && NM=nm
9718
9719
9720
9721
9722
9723
cristy8b350f62009-11-15 23:12:43 +00009724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009725$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009726if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009727 $as_echo_n "(cached) " >&6
9728else
9729 lt_cv_nm_interface="BSD nm"
9730 echo "int some_variable = 0;" > conftest.$ac_ext
cristyd0bd44a2010-09-24 12:38:11 +00009731 (eval echo "\"\$as_me:9731: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009732 (eval "$ac_compile" 2>conftest.err)
9733 cat conftest.err >&5
cristyd0bd44a2010-09-24 12:38:11 +00009734 (eval echo "\"\$as_me:9734: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009735 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9736 cat conftest.err >&5
cristyd0bd44a2010-09-24 12:38:11 +00009737 (eval echo "\"\$as_me:9737: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009738 cat conftest.out >&5
9739 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9740 lt_cv_nm_interface="MS dumpbin"
9741 fi
9742 rm -f conftest*
9743fi
cristy8b350f62009-11-15 23:12:43 +00009744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009745$as_echo "$lt_cv_nm_interface" >&6; }
9746
9747# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00009748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00009749$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009750if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009751 $as_echo_n "(cached) " >&6
9752else
9753 i=0
9754 teststring="ABCD"
9755
9756 case $build_os in
9757 msdosdjgpp*)
9758 # On DJGPP, this test can blow up pretty badly due to problems in libc
9759 # (any single argument exceeding 2000 bytes causes a buffer overrun
9760 # during glob expansion). Even if it were fixed, the result of this
9761 # check would be larger than it should be.
9762 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9763 ;;
9764
9765 gnu*)
9766 # Under GNU Hurd, this test is not required because there is
9767 # no limit to the length of command line arguments.
9768 # Libtool will interpret -1 as no limit whatsoever
9769 lt_cv_sys_max_cmd_len=-1;
9770 ;;
9771
9772 cygwin* | mingw* | cegcc*)
9773 # On Win9x/ME, this test blows up -- it succeeds, but takes
9774 # about 5 minutes as the teststring grows exponentially.
9775 # Worse, since 9x/ME are not pre-emptively multitasking,
9776 # you end up with a "frozen" computer, even though with patience
9777 # the test eventually succeeds (with a max line length of 256k).
9778 # Instead, let's just punt: use the minimum linelength reported by
9779 # all of the supported platforms: 8192 (on NT/2K/XP).
9780 lt_cv_sys_max_cmd_len=8192;
9781 ;;
9782
9783 amigaos*)
9784 # On AmigaOS with pdksh, this test takes hours, literally.
9785 # So we just punt and use a minimum line length of 8192.
9786 lt_cv_sys_max_cmd_len=8192;
9787 ;;
9788
9789 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9790 # This has been around since 386BSD, at least. Likely further.
9791 if test -x /sbin/sysctl; then
9792 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9793 elif test -x /usr/sbin/sysctl; then
9794 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9795 else
9796 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9797 fi
9798 # And add a safety zone
9799 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9801 ;;
9802
9803 interix*)
9804 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9805 lt_cv_sys_max_cmd_len=196608
9806 ;;
9807
9808 osf*)
9809 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9810 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9811 # nice to cause kernel panics so lets avoid the loop below.
9812 # First set a reasonable default.
9813 lt_cv_sys_max_cmd_len=16384
9814 #
9815 if test -x /sbin/sysconfig; then
9816 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9817 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9818 esac
9819 fi
9820 ;;
9821 sco3.2v5*)
9822 lt_cv_sys_max_cmd_len=102400
9823 ;;
9824 sysv5* | sco5v6* | sysv4.2uw2*)
9825 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9826 if test -n "$kargmax"; then
9827 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9828 else
9829 lt_cv_sys_max_cmd_len=32768
9830 fi
9831 ;;
9832 *)
9833 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9834 if test -n "$lt_cv_sys_max_cmd_len"; then
9835 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9836 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9837 else
9838 # Make teststring a little bigger before we do anything with it.
9839 # a 1K string should be a reasonable start.
9840 for i in 1 2 3 4 5 6 7 8 ; do
9841 teststring=$teststring$teststring
9842 done
9843 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9844 # If test is not a shell built-in, we'll probably end up computing a
9845 # maximum length that is only half of the actual maximum length, but
9846 # we can't tell.
cristyd0bd44a2010-09-24 12:38:11 +00009847 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9848 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00009849 test $i != 17 # 1/2 MB should be enough
9850 do
9851 i=`expr $i + 1`
9852 teststring=$teststring$teststring
9853 done
9854 # Only check the string length outside the loop.
9855 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9856 teststring=
9857 # Add a significant safety factor because C++ compilers can tack on
9858 # massive amounts of additional arguments before passing them to the
9859 # linker. It appears as though 1/2 is a usable value.
9860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9861 fi
9862 ;;
9863 esac
9864
9865fi
9866
9867if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00009868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00009869$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9870else
cristy8b350f62009-11-15 23:12:43 +00009871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00009872$as_echo "none" >&6; }
9873fi
9874max_cmd_len=$lt_cv_sys_max_cmd_len
9875
9876
9877
9878
9879
9880
9881: ${CP="cp -f"}
9882: ${MV="mv -f"}
9883: ${RM="rm -f"}
9884
cristy8b350f62009-11-15 23:12:43 +00009885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00009886$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9887# Try some XSI features
9888xsi_shell=no
9889( _lt_dummy="a/b/c"
9890 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9891 = c,a/b,, \
9892 && eval 'test $(( 1 + 1 )) -eq 2 \
9893 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9894 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00009895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00009896$as_echo "$xsi_shell" >&6; }
9897
9898
cristy8b350f62009-11-15 23:12:43 +00009899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00009900$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9901lt_shell_append=no
9902( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9903 >/dev/null 2>&1 \
9904 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00009905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00009906$as_echo "$lt_shell_append" >&6; }
9907
9908
9909if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9910 lt_unset=unset
9911else
9912 lt_unset=false
9913fi
9914
9915
9916
9917
9918
9919# test EBCDIC or ASCII
9920case `echo X|tr X '\101'` in
9921 A) # ASCII based system
9922 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9923 lt_SP2NL='tr \040 \012'
9924 lt_NL2SP='tr \015\012 \040\040'
9925 ;;
9926 *) # EBCDIC based system
9927 lt_SP2NL='tr \100 \n'
9928 lt_NL2SP='tr \r\n \100\100'
9929 ;;
9930esac
9931
9932
9933
9934
9935
9936
9937
9938
9939
cristy8b350f62009-11-15 23:12:43 +00009940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009941$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009942if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009943 $as_echo_n "(cached) " >&6
9944else
9945 lt_cv_ld_reload_flag='-r'
9946fi
cristy8b350f62009-11-15 23:12:43 +00009947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00009948$as_echo "$lt_cv_ld_reload_flag" >&6; }
9949reload_flag=$lt_cv_ld_reload_flag
9950case $reload_flag in
9951"" | " "*) ;;
9952*) reload_flag=" $reload_flag" ;;
9953esac
9954reload_cmds='$LD$reload_flag -o $output$reload_objs'
9955case $host_os in
9956 darwin*)
9957 if test "$GCC" = yes; then
9958 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9959 else
9960 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9961 fi
9962 ;;
9963esac
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973if test -n "$ac_tool_prefix"; then
9974 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9975set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009977$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009978if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009979 $as_echo_n "(cached) " >&6
9980else
9981 if test -n "$OBJDUMP"; then
9982 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9983else
9984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9985for as_dir in $PATH
9986do
9987 IFS=$as_save_IFS
9988 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009989 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9991 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00009992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009993 break 2
9994 fi
9995done
cristy8b350f62009-11-15 23:12:43 +00009996 done
cristy3ed852e2009-09-05 21:47:34 +00009997IFS=$as_save_IFS
9998
9999fi
10000fi
10001OBJDUMP=$ac_cv_prog_OBJDUMP
10002if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000010003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010004$as_echo "$OBJDUMP" >&6; }
10005else
cristy8b350f62009-11-15 23:12:43 +000010006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010007$as_echo "no" >&6; }
10008fi
10009
10010
10011fi
10012if test -z "$ac_cv_prog_OBJDUMP"; then
10013 ac_ct_OBJDUMP=$OBJDUMP
10014 # Extract the first word of "objdump", so it can be a program name with args.
10015set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010017$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010018if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010019 $as_echo_n "(cached) " >&6
10020else
10021 if test -n "$ac_ct_OBJDUMP"; then
10022 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10023else
10024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10025for as_dir in $PATH
10026do
10027 IFS=$as_save_IFS
10028 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010029 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10031 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000010032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010033 break 2
10034 fi
10035done
cristy8b350f62009-11-15 23:12:43 +000010036 done
cristy3ed852e2009-09-05 21:47:34 +000010037IFS=$as_save_IFS
10038
10039fi
10040fi
10041ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10042if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000010043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010044$as_echo "$ac_ct_OBJDUMP" >&6; }
10045else
cristy8b350f62009-11-15 23:12:43 +000010046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010047$as_echo "no" >&6; }
10048fi
10049
10050 if test "x$ac_ct_OBJDUMP" = x; then
10051 OBJDUMP="false"
10052 else
10053 case $cross_compiling:$ac_tool_warned in
10054yes:)
cristy8b350f62009-11-15 23:12:43 +000010055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10057ac_tool_warned=yes ;;
10058esac
10059 OBJDUMP=$ac_ct_OBJDUMP
10060 fi
10061else
10062 OBJDUMP="$ac_cv_prog_OBJDUMP"
10063fi
10064
10065test -z "$OBJDUMP" && OBJDUMP=objdump
10066
10067
10068
10069
10070
10071
cristy8b350f62009-11-15 23:12:43 +000010072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000010073$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010074if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010075 $as_echo_n "(cached) " >&6
10076else
10077 lt_cv_file_magic_cmd='$MAGIC_CMD'
10078lt_cv_file_magic_test_file=
10079lt_cv_deplibs_check_method='unknown'
10080# Need to set the preceding variable on all platforms that support
10081# interlibrary dependencies.
10082# 'none' -- dependencies not supported.
10083# `unknown' -- same as none, but documents that we really don't know.
10084# 'pass_all' -- all dependencies passed with no checks.
10085# 'test_compile' -- check by making test program.
10086# 'file_magic [[regex]]' -- check by looking for files in library path
10087# which responds to the $file_magic_cmd with a given extended regex.
10088# If you have `file' or equivalent on your system and you're not sure
10089# whether `pass_all' will *always* work, you probably want this one.
10090
10091case $host_os in
10092aix[4-9]*)
10093 lt_cv_deplibs_check_method=pass_all
10094 ;;
10095
10096beos*)
10097 lt_cv_deplibs_check_method=pass_all
10098 ;;
10099
10100bsdi[45]*)
10101 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10102 lt_cv_file_magic_cmd='/usr/bin/file -L'
10103 lt_cv_file_magic_test_file=/shlib/libc.so
10104 ;;
10105
10106cygwin*)
10107 # func_win32_libid is a shell function defined in ltmain.sh
10108 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10109 lt_cv_file_magic_cmd='func_win32_libid'
10110 ;;
10111
10112mingw* | pw32*)
10113 # Base MSYS/MinGW do not provide the 'file' command needed by
10114 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10115 # unless we find 'file', for example because we are cross-compiling.
cristyd0bd44a2010-09-24 12:38:11 +000010116 if ( file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +000010117 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10118 lt_cv_file_magic_cmd='func_win32_libid'
10119 else
cristyd0bd44a2010-09-24 12:38:11 +000010120 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
cristy3ed852e2009-09-05 21:47:34 +000010121 lt_cv_file_magic_cmd='$OBJDUMP -f'
10122 fi
10123 ;;
10124
cristyd0bd44a2010-09-24 12:38:11 +000010125cegcc)
cristy3ed852e2009-09-05 21:47:34 +000010126 # use the weaker test based on 'objdump'. See mingw*.
10127 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10128 lt_cv_file_magic_cmd='$OBJDUMP -f'
10129 ;;
10130
10131darwin* | rhapsody*)
10132 lt_cv_deplibs_check_method=pass_all
10133 ;;
10134
10135freebsd* | dragonfly*)
10136 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10137 case $host_cpu in
10138 i*86 )
10139 # Not sure whether the presence of OpenBSD here was a mistake.
10140 # Let's accept both of them until this is cleared up.
10141 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10142 lt_cv_file_magic_cmd=/usr/bin/file
10143 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10144 ;;
10145 esac
10146 else
10147 lt_cv_deplibs_check_method=pass_all
10148 fi
10149 ;;
10150
10151gnu*)
10152 lt_cv_deplibs_check_method=pass_all
10153 ;;
10154
10155hpux10.20* | hpux11*)
10156 lt_cv_file_magic_cmd=/usr/bin/file
10157 case $host_cpu in
10158 ia64*)
10159 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10160 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10161 ;;
10162 hppa*64*)
cristyd0bd44a2010-09-24 12:38:11 +000010163 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]'
cristy3ed852e2009-09-05 21:47:34 +000010164 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10165 ;;
10166 *)
cristyd0bd44a2010-09-24 12:38:11 +000010167 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
cristy3ed852e2009-09-05 21:47:34 +000010168 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10169 ;;
10170 esac
10171 ;;
10172
10173interix[3-9]*)
10174 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10175 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10176 ;;
10177
10178irix5* | irix6* | nonstopux*)
10179 case $LD in
10180 *-32|*"-32 ") libmagic=32-bit;;
10181 *-n32|*"-n32 ") libmagic=N32;;
10182 *-64|*"-64 ") libmagic=64-bit;;
10183 *) libmagic=never-match;;
10184 esac
10185 lt_cv_deplibs_check_method=pass_all
10186 ;;
10187
10188# This must be Linux ELF.
cristyd0bd44a2010-09-24 12:38:11 +000010189linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000010190 lt_cv_deplibs_check_method=pass_all
10191 ;;
10192
10193netbsd*)
10194 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10195 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10196 else
10197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10198 fi
10199 ;;
10200
10201newos6*)
10202 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10203 lt_cv_file_magic_cmd=/usr/bin/file
10204 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10205 ;;
10206
10207*nto* | *qnx*)
10208 lt_cv_deplibs_check_method=pass_all
10209 ;;
10210
10211openbsd*)
10212 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10213 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10214 else
10215 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10216 fi
10217 ;;
10218
10219osf3* | osf4* | osf5*)
10220 lt_cv_deplibs_check_method=pass_all
10221 ;;
10222
10223rdos*)
10224 lt_cv_deplibs_check_method=pass_all
10225 ;;
10226
10227solaris*)
10228 lt_cv_deplibs_check_method=pass_all
10229 ;;
10230
10231sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10232 lt_cv_deplibs_check_method=pass_all
10233 ;;
10234
10235sysv4 | sysv4.3*)
10236 case $host_vendor in
10237 motorola)
10238 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]'
10239 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10240 ;;
10241 ncr)
10242 lt_cv_deplibs_check_method=pass_all
10243 ;;
10244 sequent)
10245 lt_cv_file_magic_cmd='/bin/file'
10246 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10247 ;;
10248 sni)
10249 lt_cv_file_magic_cmd='/bin/file'
10250 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10251 lt_cv_file_magic_test_file=/lib/libc.so
10252 ;;
10253 siemens)
10254 lt_cv_deplibs_check_method=pass_all
10255 ;;
10256 pc)
10257 lt_cv_deplibs_check_method=pass_all
10258 ;;
10259 esac
10260 ;;
10261
10262tpf*)
10263 lt_cv_deplibs_check_method=pass_all
10264 ;;
10265esac
10266
10267fi
cristy8b350f62009-11-15 23:12:43 +000010268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +000010269$as_echo "$lt_cv_deplibs_check_method" >&6; }
10270file_magic_cmd=$lt_cv_file_magic_cmd
10271deplibs_check_method=$lt_cv_deplibs_check_method
10272test -z "$deplibs_check_method" && deplibs_check_method=unknown
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285if test -n "$ac_tool_prefix"; then
10286 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10287set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010289$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010290if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010291 $as_echo_n "(cached) " >&6
10292else
10293 if test -n "$AR"; then
10294 ac_cv_prog_AR="$AR" # Let the user override the test.
10295else
10296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10297for as_dir in $PATH
10298do
10299 IFS=$as_save_IFS
10300 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010301 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10303 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +000010304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010305 break 2
10306 fi
10307done
cristy8b350f62009-11-15 23:12:43 +000010308 done
cristy3ed852e2009-09-05 21:47:34 +000010309IFS=$as_save_IFS
10310
10311fi
10312fi
10313AR=$ac_cv_prog_AR
10314if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +000010315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010316$as_echo "$AR" >&6; }
10317else
cristy8b350f62009-11-15 23:12:43 +000010318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010319$as_echo "no" >&6; }
10320fi
10321
10322
10323fi
10324if test -z "$ac_cv_prog_AR"; then
10325 ac_ct_AR=$AR
10326 # Extract the first word of "ar", so it can be a program name with args.
10327set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010329$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010330if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010331 $as_echo_n "(cached) " >&6
10332else
10333 if test -n "$ac_ct_AR"; then
10334 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10335else
10336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10337for as_dir in $PATH
10338do
10339 IFS=$as_save_IFS
10340 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010341 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10343 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +000010344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010345 break 2
10346 fi
10347done
cristy8b350f62009-11-15 23:12:43 +000010348 done
cristy3ed852e2009-09-05 21:47:34 +000010349IFS=$as_save_IFS
10350
10351fi
10352fi
10353ac_ct_AR=$ac_cv_prog_ac_ct_AR
10354if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +000010355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010356$as_echo "$ac_ct_AR" >&6; }
10357else
cristy8b350f62009-11-15 23:12:43 +000010358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010359$as_echo "no" >&6; }
10360fi
10361
10362 if test "x$ac_ct_AR" = x; then
10363 AR="false"
10364 else
10365 case $cross_compiling:$ac_tool_warned in
10366yes:)
cristy8b350f62009-11-15 23:12:43 +000010367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10369ac_tool_warned=yes ;;
10370esac
10371 AR=$ac_ct_AR
10372 fi
10373else
10374 AR="$ac_cv_prog_AR"
10375fi
10376
10377test -z "$AR" && AR=ar
10378test -z "$AR_FLAGS" && AR_FLAGS=cru
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390if test -n "$ac_tool_prefix"; then
10391 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10392set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010394$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010395if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010396 $as_echo_n "(cached) " >&6
10397else
10398 if test -n "$STRIP"; then
10399 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10400else
10401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10402for as_dir in $PATH
10403do
10404 IFS=$as_save_IFS
10405 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010406 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10408 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +000010409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010410 break 2
10411 fi
10412done
cristy8b350f62009-11-15 23:12:43 +000010413 done
cristy3ed852e2009-09-05 21:47:34 +000010414IFS=$as_save_IFS
10415
10416fi
10417fi
10418STRIP=$ac_cv_prog_STRIP
10419if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010421$as_echo "$STRIP" >&6; }
10422else
cristy8b350f62009-11-15 23:12:43 +000010423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010424$as_echo "no" >&6; }
10425fi
10426
10427
10428fi
10429if test -z "$ac_cv_prog_STRIP"; then
10430 ac_ct_STRIP=$STRIP
10431 # Extract the first word of "strip", so it can be a program name with args.
10432set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010434$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010435if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010436 $as_echo_n "(cached) " >&6
10437else
10438 if test -n "$ac_ct_STRIP"; then
10439 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10440else
10441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10442for as_dir in $PATH
10443do
10444 IFS=$as_save_IFS
10445 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010446 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10448 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +000010449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010450 break 2
10451 fi
10452done
cristy8b350f62009-11-15 23:12:43 +000010453 done
cristy3ed852e2009-09-05 21:47:34 +000010454IFS=$as_save_IFS
10455
10456fi
10457fi
10458ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10459if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010461$as_echo "$ac_ct_STRIP" >&6; }
10462else
cristy8b350f62009-11-15 23:12:43 +000010463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010464$as_echo "no" >&6; }
10465fi
10466
10467 if test "x$ac_ct_STRIP" = x; then
10468 STRIP=":"
10469 else
10470 case $cross_compiling:$ac_tool_warned in
10471yes:)
cristy8b350f62009-11-15 23:12:43 +000010472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10474ac_tool_warned=yes ;;
10475esac
10476 STRIP=$ac_ct_STRIP
10477 fi
10478else
10479 STRIP="$ac_cv_prog_STRIP"
10480fi
10481
10482test -z "$STRIP" && STRIP=:
10483
10484
10485
10486
10487
10488
10489if test -n "$ac_tool_prefix"; then
10490 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10491set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010493$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010494if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010495 $as_echo_n "(cached) " >&6
10496else
10497 if test -n "$RANLIB"; then
10498 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10499else
10500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10501for as_dir in $PATH
10502do
10503 IFS=$as_save_IFS
10504 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010505 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10507 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +000010508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010509 break 2
10510 fi
10511done
cristy8b350f62009-11-15 23:12:43 +000010512 done
cristy3ed852e2009-09-05 21:47:34 +000010513IFS=$as_save_IFS
10514
10515fi
10516fi
10517RANLIB=$ac_cv_prog_RANLIB
10518if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010520$as_echo "$RANLIB" >&6; }
10521else
cristy8b350f62009-11-15 23:12:43 +000010522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010523$as_echo "no" >&6; }
10524fi
10525
10526
10527fi
10528if test -z "$ac_cv_prog_RANLIB"; then
10529 ac_ct_RANLIB=$RANLIB
10530 # Extract the first word of "ranlib", so it can be a program name with args.
10531set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010533$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010534if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010535 $as_echo_n "(cached) " >&6
10536else
10537 if test -n "$ac_ct_RANLIB"; then
10538 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10539else
10540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10541for as_dir in $PATH
10542do
10543 IFS=$as_save_IFS
10544 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010545 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10547 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +000010548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010549 break 2
10550 fi
10551done
cristy8b350f62009-11-15 23:12:43 +000010552 done
cristy3ed852e2009-09-05 21:47:34 +000010553IFS=$as_save_IFS
10554
10555fi
10556fi
10557ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10558if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010560$as_echo "$ac_ct_RANLIB" >&6; }
10561else
cristy8b350f62009-11-15 23:12:43 +000010562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010563$as_echo "no" >&6; }
10564fi
10565
10566 if test "x$ac_ct_RANLIB" = x; then
10567 RANLIB=":"
10568 else
10569 case $cross_compiling:$ac_tool_warned in
10570yes:)
cristy8b350f62009-11-15 23:12:43 +000010571{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10573ac_tool_warned=yes ;;
10574esac
10575 RANLIB=$ac_ct_RANLIB
10576 fi
10577else
10578 RANLIB="$ac_cv_prog_RANLIB"
10579fi
10580
10581test -z "$RANLIB" && RANLIB=:
10582
10583
10584
10585
10586
10587
10588# Determine commands to create old-style static archives.
10589old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10590old_postinstall_cmds='chmod 644 $oldlib'
10591old_postuninstall_cmds=
10592
10593if test -n "$RANLIB"; then
10594 case $host_os in
10595 openbsd*)
10596 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10597 ;;
10598 *)
10599 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10600 ;;
10601 esac
10602 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10603fi
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
10635
10636
10637
10638# If no C compiler was specified, use CC.
10639LTCC=${LTCC-"$CC"}
10640
10641# If no C compiler flags were specified, use CFLAGS.
10642LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10643
10644# Allow CC to be a program name with arguments.
10645compiler=$CC
10646
10647
10648# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +000010649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +000010650$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010651if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010652 $as_echo_n "(cached) " >&6
10653else
10654
10655# These are sane defaults that work on at least a few old systems.
10656# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10657
10658# Character class describing NM global symbol codes.
10659symcode='[BCDEGRST]'
10660
10661# Regexp to match symbols that can be accessed directly from C.
10662sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10663
10664# Define system-specific variables.
10665case $host_os in
10666aix*)
10667 symcode='[BCDT]'
10668 ;;
10669cygwin* | mingw* | pw32* | cegcc*)
10670 symcode='[ABCDGISTW]'
10671 ;;
10672hpux*)
10673 if test "$host_cpu" = ia64; then
10674 symcode='[ABCDEGRST]'
10675 fi
10676 ;;
10677irix* | nonstopux*)
10678 symcode='[BCDEGRST]'
10679 ;;
10680osf*)
10681 symcode='[BCDEGQRST]'
10682 ;;
10683solaris*)
10684 symcode='[BDRT]'
10685 ;;
10686sco3.2v5*)
10687 symcode='[DT]'
10688 ;;
10689sysv4.2uw2*)
10690 symcode='[DT]'
10691 ;;
10692sysv5* | sco5v6* | unixware* | OpenUNIX*)
10693 symcode='[ABDT]'
10694 ;;
10695sysv4)
10696 symcode='[DFNSTU]'
10697 ;;
10698esac
10699
10700# If we're using GNU nm, then use its standard symbol codes.
10701case `$NM -V 2>&1` in
10702*GNU* | *'with BFD'*)
10703 symcode='[ABCDGIRSTW]' ;;
10704esac
10705
10706# Transform an extracted symbol line into a proper C declaration.
10707# Some systems (esp. on ia64) link data and code symbols differently,
10708# so use this general approach.
10709lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10710
10711# Transform an extracted symbol line into symbol name and symbol address
10712lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10713lt_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'"
10714
10715# Handle CRLF in mingw tool chain
10716opt_cr=
10717case $build_os in
10718mingw*)
10719 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10720 ;;
10721esac
10722
10723# Try without a prefix underscore, then with it.
10724for ac_symprfx in "" "_"; do
10725
10726 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10727 symxfrm="\\1 $ac_symprfx\\2 \\2"
10728
10729 # Write the raw and C identifiers.
10730 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10731 # Fake it for dumpbin and say T for any non-static function
10732 # and D for any global variable.
10733 # Also find C++ and __fastcall symbols from MSVC++,
10734 # which start with @ or ?.
10735 lt_cv_sys_global_symbol_pipe="$AWK '"\
10736" {last_section=section; section=\$ 3};"\
10737" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10738" \$ 0!~/External *\|/{next};"\
10739" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10740" {if(hide[section]) next};"\
10741" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10742" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10743" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10744" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10745" ' prfx=^$ac_symprfx"
10746 else
10747 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10748 fi
10749
10750 # Check to see that the pipe works correctly.
10751 pipe_works=no
10752
10753 rm -f conftest*
10754 cat > conftest.$ac_ext <<_LT_EOF
10755#ifdef __cplusplus
10756extern "C" {
10757#endif
10758char nm_test_var;
10759void nm_test_func(void);
10760void nm_test_func(void){}
10761#ifdef __cplusplus
10762}
10763#endif
10764int main(){nm_test_var='a';nm_test_func();return(0);}
10765_LT_EOF
10766
cristy8b350f62009-11-15 23:12:43 +000010767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010768 (eval $ac_compile) 2>&5
10769 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10771 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010772 # Now try to grab the symbols.
10773 nlist=conftest.nm
cristyd0bd44a2010-09-24 12:38:11 +000010774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10775 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +000010776 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10778 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000010779 # Try sorting and uniquifying the output.
10780 if sort "$nlist" | uniq > "$nlist"T; then
10781 mv -f "$nlist"T "$nlist"
10782 else
10783 rm -f "$nlist"T
10784 fi
10785
10786 # Make sure that we snagged all the symbols we need.
10787 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10788 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10789 cat <<_LT_EOF > conftest.$ac_ext
10790#ifdef __cplusplus
10791extern "C" {
10792#endif
10793
10794_LT_EOF
10795 # Now generate the symbol file.
10796 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10797
10798 cat <<_LT_EOF >> conftest.$ac_ext
10799
10800/* The mapping between symbol names and symbols. */
10801const struct {
10802 const char *name;
10803 void *address;
10804}
10805lt__PROGRAM__LTX_preloaded_symbols[] =
10806{
10807 { "@PROGRAM@", (void *) 0 },
10808_LT_EOF
10809 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10810 cat <<\_LT_EOF >> conftest.$ac_ext
10811 {0, (void *) 0}
10812};
10813
10814/* This works around a problem in FreeBSD linker */
10815#ifdef FREEBSD_WORKAROUND
10816static const void *lt_preloaded_setup() {
10817 return lt__PROGRAM__LTX_preloaded_symbols;
10818}
10819#endif
10820
10821#ifdef __cplusplus
10822}
10823#endif
10824_LT_EOF
10825 # Now try linking the two files.
10826 mv conftest.$ac_objext conftstm.$ac_objext
10827 lt_save_LIBS="$LIBS"
10828 lt_save_CFLAGS="$CFLAGS"
10829 LIBS="conftstm.$ac_objext"
10830 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +000010831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010832 (eval $ac_link) 2>&5
10833 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10835 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +000010836 pipe_works=yes
10837 fi
10838 LIBS="$lt_save_LIBS"
10839 CFLAGS="$lt_save_CFLAGS"
10840 else
10841 echo "cannot find nm_test_func in $nlist" >&5
10842 fi
10843 else
10844 echo "cannot find nm_test_var in $nlist" >&5
10845 fi
10846 else
10847 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10848 fi
10849 else
10850 echo "$progname: failed program was:" >&5
10851 cat conftest.$ac_ext >&5
10852 fi
10853 rm -rf conftest* conftst*
10854
10855 # Do not use the global_symbol_pipe unless it works.
10856 if test "$pipe_works" = yes; then
10857 break
10858 else
10859 lt_cv_sys_global_symbol_pipe=
10860 fi
10861done
10862
10863fi
10864
10865if test -z "$lt_cv_sys_global_symbol_pipe"; then
10866 lt_cv_sys_global_symbol_to_cdecl=
10867fi
10868if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +000010869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +000010870$as_echo "failed" >&6; }
10871else
cristy8b350f62009-11-15 23:12:43 +000010872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000010873$as_echo "ok" >&6; }
10874fi
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +000010898if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010899 enableval=$enable_libtool_lock;
10900fi
10901
10902test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10903
10904# Some flags need to be propagated to the compiler or linker for good
10905# libtool support.
10906case $host in
10907ia64-*-hpux*)
10908 # Find out which ABI we are using.
10909 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010911 (eval $ac_compile) 2>&5
10912 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10914 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010915 case `/usr/bin/file conftest.$ac_objext` in
10916 *ELF-32*)
10917 HPUX_IA64_MODE="32"
10918 ;;
10919 *ELF-64*)
10920 HPUX_IA64_MODE="64"
10921 ;;
10922 esac
10923 fi
10924 rm -rf conftest*
10925 ;;
10926*-*-irix6*)
10927 # Find out which ABI we are using.
cristyd0bd44a2010-09-24 12:38:11 +000010928 echo '#line 10928 "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010930 (eval $ac_compile) 2>&5
10931 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10933 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010934 if test "$lt_cv_prog_gnu_ld" = yes; then
10935 case `/usr/bin/file conftest.$ac_objext` in
10936 *32-bit*)
10937 LD="${LD-ld} -melf32bsmip"
10938 ;;
10939 *N32*)
10940 LD="${LD-ld} -melf32bmipn32"
10941 ;;
10942 *64-bit*)
10943 LD="${LD-ld} -melf64bmip"
10944 ;;
10945 esac
10946 else
10947 case `/usr/bin/file conftest.$ac_objext` in
10948 *32-bit*)
10949 LD="${LD-ld} -32"
10950 ;;
10951 *N32*)
10952 LD="${LD-ld} -n32"
10953 ;;
10954 *64-bit*)
10955 LD="${LD-ld} -64"
10956 ;;
10957 esac
10958 fi
10959 fi
10960 rm -rf conftest*
10961 ;;
10962
10963x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10964s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10965 # Find out which ABI we are using.
10966 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010968 (eval $ac_compile) 2>&5
10969 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10971 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010972 case `/usr/bin/file conftest.o` in
10973 *32-bit*)
10974 case $host in
10975 x86_64-*kfreebsd*-gnu)
10976 LD="${LD-ld} -m elf_i386_fbsd"
10977 ;;
10978 x86_64-*linux*)
10979 LD="${LD-ld} -m elf_i386"
10980 ;;
10981 ppc64-*linux*|powerpc64-*linux*)
10982 LD="${LD-ld} -m elf32ppclinux"
10983 ;;
10984 s390x-*linux*)
10985 LD="${LD-ld} -m elf_s390"
10986 ;;
10987 sparc64-*linux*)
10988 LD="${LD-ld} -m elf32_sparc"
10989 ;;
10990 esac
10991 ;;
10992 *64-bit*)
10993 case $host in
10994 x86_64-*kfreebsd*-gnu)
10995 LD="${LD-ld} -m elf_x86_64_fbsd"
10996 ;;
10997 x86_64-*linux*)
10998 LD="${LD-ld} -m elf_x86_64"
10999 ;;
11000 ppc*-*linux*|powerpc*-*linux*)
11001 LD="${LD-ld} -m elf64ppc"
11002 ;;
11003 s390*-*linux*|s390*-*tpf*)
11004 LD="${LD-ld} -m elf64_s390"
11005 ;;
11006 sparc*-*linux*)
11007 LD="${LD-ld} -m elf64_sparc"
11008 ;;
11009 esac
11010 ;;
11011 esac
11012 fi
11013 rm -rf conftest*
11014 ;;
11015
11016*-*-sco3.2v5*)
11017 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11018 SAVE_CFLAGS="$CFLAGS"
11019 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +000011020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000011021$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011022if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011023 $as_echo_n "(cached) " >&6
11024else
11025 ac_ext=c
11026ac_cpp='$CPP $CPPFLAGS'
11027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11029ac_compiler_gnu=$ac_cv_c_compiler_gnu
11030
cristy8b350f62009-11-15 23:12:43 +000011031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011032/* end confdefs.h. */
11033
11034int
11035main ()
11036{
11037
11038 ;
11039 return 0;
11040}
11041_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011042if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011043 lt_cv_cc_needs_belf=yes
11044else
cristy8b350f62009-11-15 23:12:43 +000011045 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +000011046fi
cristy8b350f62009-11-15 23:12:43 +000011047rm -f core conftest.err conftest.$ac_objext \
11048 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011049 ac_ext=c
11050ac_cpp='$CPP $CPPFLAGS'
11051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11053ac_compiler_gnu=$ac_cv_c_compiler_gnu
11054
11055fi
cristy8b350f62009-11-15 23:12:43 +000011056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000011057$as_echo "$lt_cv_cc_needs_belf" >&6; }
11058 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11059 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11060 CFLAGS="$SAVE_CFLAGS"
11061 fi
11062 ;;
11063sparc*-*solaris*)
11064 # Find out which ABI we are using.
11065 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000011067 (eval $ac_compile) 2>&5
11068 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000011069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11070 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000011071 case `/usr/bin/file conftest.o` in
11072 *64-bit*)
11073 case $lt_cv_prog_gnu_ld in
11074 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11075 *)
11076 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11077 LD="${LD-ld} -64"
11078 fi
11079 ;;
11080 esac
11081 ;;
11082 esac
11083 fi
11084 rm -rf conftest*
11085 ;;
11086esac
11087
11088need_locks="$enable_libtool_lock"
11089
11090
11091 case $host_os in
11092 rhapsody* | darwin*)
11093 if test -n "$ac_tool_prefix"; then
11094 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11095set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011097$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011098if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011099 $as_echo_n "(cached) " >&6
11100else
11101 if test -n "$DSYMUTIL"; then
11102 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11103else
11104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11105for as_dir in $PATH
11106do
11107 IFS=$as_save_IFS
11108 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011109 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11111 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011113 break 2
11114 fi
11115done
cristy8b350f62009-11-15 23:12:43 +000011116 done
cristy3ed852e2009-09-05 21:47:34 +000011117IFS=$as_save_IFS
11118
11119fi
11120fi
11121DSYMUTIL=$ac_cv_prog_DSYMUTIL
11122if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011124$as_echo "$DSYMUTIL" >&6; }
11125else
cristy8b350f62009-11-15 23:12:43 +000011126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011127$as_echo "no" >&6; }
11128fi
11129
11130
11131fi
11132if test -z "$ac_cv_prog_DSYMUTIL"; then
11133 ac_ct_DSYMUTIL=$DSYMUTIL
11134 # Extract the first word of "dsymutil", so it can be a program name with args.
11135set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011137$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011138if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011139 $as_echo_n "(cached) " >&6
11140else
11141 if test -n "$ac_ct_DSYMUTIL"; then
11142 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11143else
11144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11145for as_dir in $PATH
11146do
11147 IFS=$as_save_IFS
11148 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011149 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11151 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011153 break 2
11154 fi
11155done
cristy8b350f62009-11-15 23:12:43 +000011156 done
cristy3ed852e2009-09-05 21:47:34 +000011157IFS=$as_save_IFS
11158
11159fi
11160fi
11161ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11162if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011164$as_echo "$ac_ct_DSYMUTIL" >&6; }
11165else
cristy8b350f62009-11-15 23:12:43 +000011166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011167$as_echo "no" >&6; }
11168fi
11169
11170 if test "x$ac_ct_DSYMUTIL" = x; then
11171 DSYMUTIL=":"
11172 else
11173 case $cross_compiling:$ac_tool_warned in
11174yes:)
cristy8b350f62009-11-15 23:12:43 +000011175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11177ac_tool_warned=yes ;;
11178esac
11179 DSYMUTIL=$ac_ct_DSYMUTIL
11180 fi
11181else
11182 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11183fi
11184
11185 if test -n "$ac_tool_prefix"; then
11186 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11187set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011189$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011190if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011191 $as_echo_n "(cached) " >&6
11192else
11193 if test -n "$NMEDIT"; then
11194 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11195else
11196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11197for as_dir in $PATH
11198do
11199 IFS=$as_save_IFS
11200 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011201 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11203 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +000011204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011205 break 2
11206 fi
11207done
cristy8b350f62009-11-15 23:12:43 +000011208 done
cristy3ed852e2009-09-05 21:47:34 +000011209IFS=$as_save_IFS
11210
11211fi
11212fi
11213NMEDIT=$ac_cv_prog_NMEDIT
11214if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011216$as_echo "$NMEDIT" >&6; }
11217else
cristy8b350f62009-11-15 23:12:43 +000011218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011219$as_echo "no" >&6; }
11220fi
11221
11222
11223fi
11224if test -z "$ac_cv_prog_NMEDIT"; then
11225 ac_ct_NMEDIT=$NMEDIT
11226 # Extract the first word of "nmedit", so it can be a program name with args.
11227set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011229$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011230if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011231 $as_echo_n "(cached) " >&6
11232else
11233 if test -n "$ac_ct_NMEDIT"; then
11234 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11235else
11236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11237for as_dir in $PATH
11238do
11239 IFS=$as_save_IFS
11240 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011241 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11243 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +000011244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011245 break 2
11246 fi
11247done
cristy8b350f62009-11-15 23:12:43 +000011248 done
cristy3ed852e2009-09-05 21:47:34 +000011249IFS=$as_save_IFS
11250
11251fi
11252fi
11253ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11254if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011256$as_echo "$ac_ct_NMEDIT" >&6; }
11257else
cristy8b350f62009-11-15 23:12:43 +000011258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011259$as_echo "no" >&6; }
11260fi
11261
11262 if test "x$ac_ct_NMEDIT" = x; then
11263 NMEDIT=":"
11264 else
11265 case $cross_compiling:$ac_tool_warned in
11266yes:)
cristy8b350f62009-11-15 23:12:43 +000011267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11269ac_tool_warned=yes ;;
11270esac
11271 NMEDIT=$ac_ct_NMEDIT
11272 fi
11273else
11274 NMEDIT="$ac_cv_prog_NMEDIT"
11275fi
11276
11277 if test -n "$ac_tool_prefix"; then
11278 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11279set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011281$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011282if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011283 $as_echo_n "(cached) " >&6
11284else
11285 if test -n "$LIPO"; then
11286 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11287else
11288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11289for as_dir in $PATH
11290do
11291 IFS=$as_save_IFS
11292 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011293 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11295 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +000011296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011297 break 2
11298 fi
11299done
cristy8b350f62009-11-15 23:12:43 +000011300 done
cristy3ed852e2009-09-05 21:47:34 +000011301IFS=$as_save_IFS
11302
11303fi
11304fi
11305LIPO=$ac_cv_prog_LIPO
11306if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011308$as_echo "$LIPO" >&6; }
11309else
cristy8b350f62009-11-15 23:12:43 +000011310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011311$as_echo "no" >&6; }
11312fi
11313
11314
11315fi
11316if test -z "$ac_cv_prog_LIPO"; then
11317 ac_ct_LIPO=$LIPO
11318 # Extract the first word of "lipo", so it can be a program name with args.
11319set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011321$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011322if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011323 $as_echo_n "(cached) " >&6
11324else
11325 if test -n "$ac_ct_LIPO"; then
11326 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11327else
11328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11329for as_dir in $PATH
11330do
11331 IFS=$as_save_IFS
11332 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011333 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11335 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +000011336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011337 break 2
11338 fi
11339done
cristy8b350f62009-11-15 23:12:43 +000011340 done
cristy3ed852e2009-09-05 21:47:34 +000011341IFS=$as_save_IFS
11342
11343fi
11344fi
11345ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11346if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011348$as_echo "$ac_ct_LIPO" >&6; }
11349else
cristy8b350f62009-11-15 23:12:43 +000011350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011351$as_echo "no" >&6; }
11352fi
11353
11354 if test "x$ac_ct_LIPO" = x; then
11355 LIPO=":"
11356 else
11357 case $cross_compiling:$ac_tool_warned in
11358yes:)
cristy8b350f62009-11-15 23:12:43 +000011359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11361ac_tool_warned=yes ;;
11362esac
11363 LIPO=$ac_ct_LIPO
11364 fi
11365else
11366 LIPO="$ac_cv_prog_LIPO"
11367fi
11368
11369 if test -n "$ac_tool_prefix"; then
11370 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11371set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011373$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011374if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011375 $as_echo_n "(cached) " >&6
11376else
11377 if test -n "$OTOOL"; then
11378 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11379else
11380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11381for as_dir in $PATH
11382do
11383 IFS=$as_save_IFS
11384 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011385 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11387 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +000011388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011389 break 2
11390 fi
11391done
cristy8b350f62009-11-15 23:12:43 +000011392 done
cristy3ed852e2009-09-05 21:47:34 +000011393IFS=$as_save_IFS
11394
11395fi
11396fi
11397OTOOL=$ac_cv_prog_OTOOL
11398if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011400$as_echo "$OTOOL" >&6; }
11401else
cristy8b350f62009-11-15 23:12:43 +000011402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011403$as_echo "no" >&6; }
11404fi
11405
11406
11407fi
11408if test -z "$ac_cv_prog_OTOOL"; then
11409 ac_ct_OTOOL=$OTOOL
11410 # Extract the first word of "otool", so it can be a program name with args.
11411set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011413$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011414if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011415 $as_echo_n "(cached) " >&6
11416else
11417 if test -n "$ac_ct_OTOOL"; then
11418 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11419else
11420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11421for as_dir in $PATH
11422do
11423 IFS=$as_save_IFS
11424 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011425 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11427 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +000011428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011429 break 2
11430 fi
11431done
cristy8b350f62009-11-15 23:12:43 +000011432 done
cristy3ed852e2009-09-05 21:47:34 +000011433IFS=$as_save_IFS
11434
11435fi
11436fi
11437ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11438if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011440$as_echo "$ac_ct_OTOOL" >&6; }
11441else
cristy8b350f62009-11-15 23:12:43 +000011442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011443$as_echo "no" >&6; }
11444fi
11445
11446 if test "x$ac_ct_OTOOL" = x; then
11447 OTOOL=":"
11448 else
11449 case $cross_compiling:$ac_tool_warned in
11450yes:)
cristy8b350f62009-11-15 23:12:43 +000011451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11453ac_tool_warned=yes ;;
11454esac
11455 OTOOL=$ac_ct_OTOOL
11456 fi
11457else
11458 OTOOL="$ac_cv_prog_OTOOL"
11459fi
11460
11461 if test -n "$ac_tool_prefix"; then
11462 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11463set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011465$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011466if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011467 $as_echo_n "(cached) " >&6
11468else
11469 if test -n "$OTOOL64"; then
11470 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11471else
11472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11473for as_dir in $PATH
11474do
11475 IFS=$as_save_IFS
11476 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011477 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11479 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000011480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011481 break 2
11482 fi
11483done
cristy8b350f62009-11-15 23:12:43 +000011484 done
cristy3ed852e2009-09-05 21:47:34 +000011485IFS=$as_save_IFS
11486
11487fi
11488fi
11489OTOOL64=$ac_cv_prog_OTOOL64
11490if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011492$as_echo "$OTOOL64" >&6; }
11493else
cristy8b350f62009-11-15 23:12:43 +000011494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011495$as_echo "no" >&6; }
11496fi
11497
11498
11499fi
11500if test -z "$ac_cv_prog_OTOOL64"; then
11501 ac_ct_OTOOL64=$OTOOL64
11502 # Extract the first word of "otool64", so it can be a program name with args.
11503set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011505$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011506if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011507 $as_echo_n "(cached) " >&6
11508else
11509 if test -n "$ac_ct_OTOOL64"; then
11510 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11511else
11512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513for as_dir in $PATH
11514do
11515 IFS=$as_save_IFS
11516 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011517 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11519 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000011520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011521 break 2
11522 fi
11523done
cristy8b350f62009-11-15 23:12:43 +000011524 done
cristy3ed852e2009-09-05 21:47:34 +000011525IFS=$as_save_IFS
11526
11527fi
11528fi
11529ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11530if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011532$as_echo "$ac_ct_OTOOL64" >&6; }
11533else
cristy8b350f62009-11-15 23:12:43 +000011534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011535$as_echo "no" >&6; }
11536fi
11537
11538 if test "x$ac_ct_OTOOL64" = x; then
11539 OTOOL64=":"
11540 else
11541 case $cross_compiling:$ac_tool_warned in
11542yes:)
cristy8b350f62009-11-15 23:12:43 +000011543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11545ac_tool_warned=yes ;;
11546esac
11547 OTOOL64=$ac_ct_OTOOL64
11548 fi
11549else
11550 OTOOL64="$ac_cv_prog_OTOOL64"
11551fi
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
cristy8b350f62009-11-15 23:12:43 +000011579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011580$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011581if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011582 $as_echo_n "(cached) " >&6
11583else
11584 lt_cv_apple_cc_single_mod=no
11585 if test -z "${LT_MULTI_MODULE}"; then
11586 # By default we will add the -single_module flag. You can override
11587 # by either setting the environment variable LT_MULTI_MODULE
11588 # non-empty at configure time, or by adding -multi_module to the
11589 # link flags.
11590 rm -rf libconftest.dylib*
11591 echo "int foo(void){return 1;}" > conftest.c
11592 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11593-dynamiclib -Wl,-single_module conftest.c" >&5
11594 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11595 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11596 _lt_result=$?
11597 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11598 lt_cv_apple_cc_single_mod=yes
11599 else
11600 cat conftest.err >&5
11601 fi
11602 rm -rf libconftest.dylib*
11603 rm -f conftest.*
11604 fi
11605fi
cristy8b350f62009-11-15 23:12:43 +000011606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000011607$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011609$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011610if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011611 $as_echo_n "(cached) " >&6
11612else
11613 lt_cv_ld_exported_symbols_list=no
11614 save_LDFLAGS=$LDFLAGS
11615 echo "_main" > conftest.sym
11616 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000011617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011618/* end confdefs.h. */
11619
11620int
11621main ()
11622{
11623
11624 ;
11625 return 0;
11626}
11627_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011628if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011629 lt_cv_ld_exported_symbols_list=yes
11630else
cristy8b350f62009-11-15 23:12:43 +000011631 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000011632fi
cristy8b350f62009-11-15 23:12:43 +000011633rm -f core conftest.err conftest.$ac_objext \
11634 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011635 LDFLAGS="$save_LDFLAGS"
11636
11637fi
cristy8b350f62009-11-15 23:12:43 +000011638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000011639$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11640 case $host_os in
11641 rhapsody* | darwin1.[012])
11642 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11643 darwin1.*)
11644 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11645 darwin*) # darwin 5.x on
11646 # if running on 10.5 or later, the deployment target defaults
11647 # to the OS version, if on x86, and 10.4, the deployment
11648 # target defaults to 10.4. Don't you love it?
11649 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11650 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11651 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11652 10.[012]*)
11653 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11654 10.*)
11655 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11656 esac
11657 ;;
11658 esac
11659 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11660 _lt_dar_single_mod='$single_module'
11661 fi
11662 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11663 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11664 else
11665 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11666 fi
cristyd0bd44a2010-09-24 12:38:11 +000011667 if test "$DSYMUTIL" != ":"; then
cristy3ed852e2009-09-05 21:47:34 +000011668 _lt_dsymutil='~$DSYMUTIL $lib || :'
11669 else
11670 _lt_dsymutil=
11671 fi
11672 ;;
11673 esac
11674
cristy3ed852e2009-09-05 21:47:34 +000011675for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000011676do :
11677 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11678"
11679if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011680 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011681#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000011682_ACEOF
11683
11684fi
11685
11686done
11687
11688
11689
cristyd0bd44a2010-09-24 12:38:11 +000011690ac_ext=cpp
11691ac_cpp='$CXXCPP $CPPFLAGS'
11692ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11693ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11695if test -z "$CXX"; then
11696 if test -n "$CCC"; then
11697 CXX=$CCC
11698 else
11699 if test -n "$ac_tool_prefix"; then
11700 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11701 do
11702 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11703set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11705$as_echo_n "checking for $ac_word... " >&6; }
11706if test "${ac_cv_prog_CXX+set}" = set; then :
11707 $as_echo_n "(cached) " >&6
11708else
11709 if test -n "$CXX"; then
11710 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11711else
11712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11713for as_dir in $PATH
11714do
11715 IFS=$as_save_IFS
11716 test -z "$as_dir" && as_dir=.
11717 for ac_exec_ext in '' $ac_executable_extensions; do
11718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11719 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11721 break 2
11722 fi
11723done
11724 done
11725IFS=$as_save_IFS
11726
11727fi
11728fi
11729CXX=$ac_cv_prog_CXX
11730if test -n "$CXX"; then
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11732$as_echo "$CXX" >&6; }
11733else
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11735$as_echo "no" >&6; }
11736fi
11737
11738
11739 test -n "$CXX" && break
11740 done
11741fi
11742if test -z "$CXX"; then
11743 ac_ct_CXX=$CXX
11744 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11745do
11746 # Extract the first word of "$ac_prog", so it can be a program name with args.
11747set dummy $ac_prog; ac_word=$2
11748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11749$as_echo_n "checking for $ac_word... " >&6; }
11750if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11751 $as_echo_n "(cached) " >&6
11752else
11753 if test -n "$ac_ct_CXX"; then
11754 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11755else
11756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11757for as_dir in $PATH
11758do
11759 IFS=$as_save_IFS
11760 test -z "$as_dir" && as_dir=.
11761 for ac_exec_ext in '' $ac_executable_extensions; do
11762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11763 ac_cv_prog_ac_ct_CXX="$ac_prog"
11764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11765 break 2
11766 fi
11767done
11768 done
11769IFS=$as_save_IFS
11770
11771fi
11772fi
11773ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11774if test -n "$ac_ct_CXX"; then
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11776$as_echo "$ac_ct_CXX" >&6; }
11777else
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11779$as_echo "no" >&6; }
11780fi
11781
11782
11783 test -n "$ac_ct_CXX" && break
11784done
11785
11786 if test "x$ac_ct_CXX" = x; then
11787 CXX="g++"
11788 else
11789 case $cross_compiling:$ac_tool_warned in
11790yes:)
11791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11793ac_tool_warned=yes ;;
11794esac
11795 CXX=$ac_ct_CXX
11796 fi
11797fi
11798
11799 fi
11800fi
11801# Provide some information about the compiler.
11802$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11803set X $ac_compile
11804ac_compiler=$2
11805for ac_option in --version -v -V -qversion; do
11806 { { ac_try="$ac_compiler $ac_option >&5"
11807case "(($ac_try" in
11808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809 *) ac_try_echo=$ac_try;;
11810esac
11811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11812$as_echo "$ac_try_echo"; } >&5
11813 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11814 ac_status=$?
11815 if test -s conftest.err; then
11816 sed '10a\
11817... rest of stderr output deleted ...
11818 10q' conftest.err >conftest.er1
11819 cat conftest.er1 >&5
11820 fi
11821 rm -f conftest.er1 conftest.err
11822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11823 test $ac_status = 0; }
11824done
11825
11826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11827$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11828if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11829 $as_echo_n "(cached) " >&6
11830else
11831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11832/* end confdefs.h. */
11833
11834int
11835main ()
11836{
11837#ifndef __GNUC__
11838 choke me
11839#endif
11840
11841 ;
11842 return 0;
11843}
11844_ACEOF
11845if ac_fn_cxx_try_compile "$LINENO"; then :
11846 ac_compiler_gnu=yes
11847else
11848 ac_compiler_gnu=no
11849fi
11850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11851ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11852
11853fi
11854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11855$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11856if test $ac_compiler_gnu = yes; then
11857 GXX=yes
11858else
11859 GXX=
11860fi
11861ac_test_CXXFLAGS=${CXXFLAGS+set}
11862ac_save_CXXFLAGS=$CXXFLAGS
11863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11864$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11865if test "${ac_cv_prog_cxx_g+set}" = set; then :
11866 $as_echo_n "(cached) " >&6
11867else
11868 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11869 ac_cxx_werror_flag=yes
11870 ac_cv_prog_cxx_g=no
11871 CXXFLAGS="-g"
11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873/* end confdefs.h. */
11874
11875int
11876main ()
11877{
11878
11879 ;
11880 return 0;
11881}
11882_ACEOF
11883if ac_fn_cxx_try_compile "$LINENO"; then :
11884 ac_cv_prog_cxx_g=yes
11885else
11886 CXXFLAGS=""
11887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888/* end confdefs.h. */
11889
11890int
11891main ()
11892{
11893
11894 ;
11895 return 0;
11896}
11897_ACEOF
11898if ac_fn_cxx_try_compile "$LINENO"; then :
11899
11900else
11901 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11902 CXXFLAGS="-g"
11903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11904/* end confdefs.h. */
11905
11906int
11907main ()
11908{
11909
11910 ;
11911 return 0;
11912}
11913_ACEOF
11914if ac_fn_cxx_try_compile "$LINENO"; then :
11915 ac_cv_prog_cxx_g=yes
11916fi
11917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11918fi
11919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11920fi
11921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11922 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11923fi
11924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11925$as_echo "$ac_cv_prog_cxx_g" >&6; }
11926if test "$ac_test_CXXFLAGS" = set; then
11927 CXXFLAGS=$ac_save_CXXFLAGS
11928elif test $ac_cv_prog_cxx_g = yes; then
11929 if test "$GXX" = yes; then
11930 CXXFLAGS="-g -O2"
11931 else
11932 CXXFLAGS="-g"
11933 fi
11934else
11935 if test "$GXX" = yes; then
11936 CXXFLAGS="-O2"
11937 else
11938 CXXFLAGS=
11939 fi
11940fi
11941ac_ext=c
11942ac_cpp='$CPP $CPPFLAGS'
11943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11945ac_compiler_gnu=$ac_cv_c_compiler_gnu
11946
11947depcc="$CXX" am_compiler_list=
11948
11949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11950$as_echo_n "checking dependency style of $depcc... " >&6; }
11951if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11952 $as_echo_n "(cached) " >&6
11953else
11954 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11955 # We make a subdir and do the tests there. Otherwise we can end up
11956 # making bogus files that we don't know about and never remove. For
11957 # instance it was reported that on HP-UX the gcc test will end up
11958 # making a dummy file named `D' -- because `-MD' means `put the output
11959 # in D'.
11960 mkdir conftest.dir
11961 # Copy depcomp to subdir because otherwise we won't find it if we're
11962 # using a relative directory.
11963 cp "$am_depcomp" conftest.dir
11964 cd conftest.dir
11965 # We will build objects and dependencies in a subdirectory because
11966 # it helps to detect inapplicable dependency modes. For instance
11967 # both Tru64's cc and ICC support -MD to output dependencies as a
11968 # side effect of compilation, but ICC will put the dependencies in
11969 # the current directory while Tru64 will put them in the object
11970 # directory.
11971 mkdir sub
11972
11973 am_cv_CXX_dependencies_compiler_type=none
11974 if test "$am_compiler_list" = ""; then
11975 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11976 fi
11977 am__universal=false
11978 case " $depcc " in #(
11979 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11980 esac
11981
11982 for depmode in $am_compiler_list; do
11983 # Setup a source with many dependencies, because some compilers
11984 # like to wrap large dependency lists on column 80 (with \), and
11985 # we should not choose a depcomp mode which is confused by this.
11986 #
11987 # We need to recreate these files for each test, as the compiler may
11988 # overwrite some of them when testing with obscure command lines.
11989 # This happens at least with the AIX C compiler.
11990 : > sub/conftest.c
11991 for i in 1 2 3 4 5 6; do
11992 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11993 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11994 # Solaris 8's {/usr,}/bin/sh.
11995 touch sub/conftst$i.h
11996 done
11997 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11998
11999 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12000 # mode. It turns out that the SunPro C++ compiler does not properly
12001 # handle `-M -o', and we need to detect this. Also, some Intel
12002 # versions had trouble with output in subdirs
12003 am__obj=sub/conftest.${OBJEXT-o}
12004 am__minus_obj="-o $am__obj"
12005 case $depmode in
12006 gcc)
12007 # This depmode causes a compiler race in universal mode.
12008 test "$am__universal" = false || continue
12009 ;;
12010 nosideeffect)
12011 # after this tag, mechanisms are not by side-effect, so they'll
12012 # only be used when explicitly requested
12013 if test "x$enable_dependency_tracking" = xyes; then
12014 continue
12015 else
12016 break
12017 fi
12018 ;;
12019 msvisualcpp | msvcmsys)
12020 # This compiler won't grok `-c -o', but also, the minuso test has
12021 # not run yet. These depmodes are late enough in the game, and
12022 # so weak that their functioning should not be impacted.
12023 am__obj=conftest.${OBJEXT-o}
12024 am__minus_obj=
12025 ;;
12026 none) break ;;
12027 esac
12028 if depmode=$depmode \
12029 source=sub/conftest.c object=$am__obj \
12030 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12031 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12032 >/dev/null 2>conftest.err &&
12033 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12034 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12035 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12036 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12037 # icc doesn't choke on unknown options, it will just issue warnings
12038 # or remarks (even with -Werror). So we grep stderr for any message
12039 # that says an option was ignored or not supported.
12040 # When given -MP, icc 7.0 and 7.1 complain thusly:
12041 # icc: Command line warning: ignoring option '-M'; no argument required
12042 # The diagnosis changed in icc 8.0:
12043 # icc: Command line remark: option '-MP' not supported
12044 if (grep 'ignoring option' conftest.err ||
12045 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12046 am_cv_CXX_dependencies_compiler_type=$depmode
12047 break
12048 fi
12049 fi
12050 done
12051
12052 cd ..
12053 rm -rf conftest.dir
12054else
12055 am_cv_CXX_dependencies_compiler_type=none
12056fi
12057
12058fi
12059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12060$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12061CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12062
12063 if
12064 test "x$enable_dependency_tracking" != xno \
12065 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12066 am__fastdepCXX_TRUE=
12067 am__fastdepCXX_FALSE='#'
12068else
12069 am__fastdepCXX_TRUE='#'
12070 am__fastdepCXX_FALSE=
12071fi
12072
12073
12074if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12075 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12076 (test "X$CXX" != "Xg++"))) ; then
12077 ac_ext=cpp
12078ac_cpp='$CXXCPP $CPPFLAGS'
12079ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12080ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12081ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12083$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12084if test -z "$CXXCPP"; then
12085 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12086 $as_echo_n "(cached) " >&6
12087else
12088 # Double quotes because CXXCPP needs to be expanded
12089 for CXXCPP in "$CXX -E" "/lib/cpp"
12090 do
12091 ac_preproc_ok=false
12092for ac_cxx_preproc_warn_flag in '' yes
12093do
12094 # Use a header file that comes with gcc, so configuring glibc
12095 # with a fresh cross-compiler works.
12096 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12097 # <limits.h> exists even on freestanding compilers.
12098 # On the NeXT, cc -E runs the code through the compiler's parser,
12099 # not just through cpp. "Syntax error" is here to catch this case.
12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101/* end confdefs.h. */
12102#ifdef __STDC__
12103# include <limits.h>
12104#else
12105# include <assert.h>
12106#endif
12107 Syntax error
12108_ACEOF
12109if ac_fn_cxx_try_cpp "$LINENO"; then :
12110
12111else
12112 # Broken: fails on valid input.
12113continue
12114fi
12115rm -f conftest.err conftest.$ac_ext
12116
12117 # OK, works on sane cases. Now check whether nonexistent headers
12118 # can be detected and how.
12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120/* end confdefs.h. */
12121#include <ac_nonexistent.h>
12122_ACEOF
12123if ac_fn_cxx_try_cpp "$LINENO"; then :
12124 # Broken: success on invalid input.
12125continue
12126else
12127 # Passes both tests.
12128ac_preproc_ok=:
12129break
12130fi
12131rm -f conftest.err conftest.$ac_ext
12132
12133done
12134# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12135rm -f conftest.err conftest.$ac_ext
12136if $ac_preproc_ok; then :
12137 break
12138fi
12139
12140 done
12141 ac_cv_prog_CXXCPP=$CXXCPP
12142
12143fi
12144 CXXCPP=$ac_cv_prog_CXXCPP
12145else
12146 ac_cv_prog_CXXCPP=$CXXCPP
12147fi
12148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12149$as_echo "$CXXCPP" >&6; }
12150ac_preproc_ok=false
12151for ac_cxx_preproc_warn_flag in '' yes
12152do
12153 # Use a header file that comes with gcc, so configuring glibc
12154 # with a fresh cross-compiler works.
12155 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12156 # <limits.h> exists even on freestanding compilers.
12157 # On the NeXT, cc -E runs the code through the compiler's parser,
12158 # not just through cpp. "Syntax error" is here to catch this case.
12159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12160/* end confdefs.h. */
12161#ifdef __STDC__
12162# include <limits.h>
12163#else
12164# include <assert.h>
12165#endif
12166 Syntax error
12167_ACEOF
12168if ac_fn_cxx_try_cpp "$LINENO"; then :
12169
12170else
12171 # Broken: fails on valid input.
12172continue
12173fi
12174rm -f conftest.err conftest.$ac_ext
12175
12176 # OK, works on sane cases. Now check whether nonexistent headers
12177 # can be detected and how.
12178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12179/* end confdefs.h. */
12180#include <ac_nonexistent.h>
12181_ACEOF
12182if ac_fn_cxx_try_cpp "$LINENO"; then :
12183 # Broken: success on invalid input.
12184continue
12185else
12186 # Passes both tests.
12187ac_preproc_ok=:
12188break
12189fi
12190rm -f conftest.err conftest.$ac_ext
12191
12192done
12193# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12194rm -f conftest.err conftest.$ac_ext
12195if $ac_preproc_ok; then :
12196
12197else
12198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12200_lt_caught_CXX_error=yes; }
12201fi
12202
12203ac_ext=c
12204ac_cpp='$CPP $CPPFLAGS'
12205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12207ac_compiler_gnu=$ac_cv_c_compiler_gnu
12208
12209else
12210 _lt_caught_CXX_error=yes
12211fi
12212
12213
cristy3ed852e2009-09-05 21:47:34 +000012214
12215
12216
12217# Set options
12218enable_win32_dll=yes
12219
12220case $host in
cristyd0bd44a2010-09-24 12:38:11 +000012221*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000012222 if test -n "$ac_tool_prefix"; then
12223 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12224set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012226$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012227if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012228 $as_echo_n "(cached) " >&6
12229else
12230 if test -n "$AS"; then
12231 ac_cv_prog_AS="$AS" # Let the user override the test.
12232else
12233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234for as_dir in $PATH
12235do
12236 IFS=$as_save_IFS
12237 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012238 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12240 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000012241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012242 break 2
12243 fi
12244done
cristy8b350f62009-11-15 23:12:43 +000012245 done
cristy3ed852e2009-09-05 21:47:34 +000012246IFS=$as_save_IFS
12247
12248fi
12249fi
12250AS=$ac_cv_prog_AS
12251if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000012252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000012253$as_echo "$AS" >&6; }
12254else
cristy8b350f62009-11-15 23:12:43 +000012255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012256$as_echo "no" >&6; }
12257fi
12258
12259
12260fi
12261if test -z "$ac_cv_prog_AS"; then
12262 ac_ct_AS=$AS
12263 # Extract the first word of "as", so it can be a program name with args.
12264set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012266$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012267if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012268 $as_echo_n "(cached) " >&6
12269else
12270 if test -n "$ac_ct_AS"; then
12271 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12272else
12273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12274for as_dir in $PATH
12275do
12276 IFS=$as_save_IFS
12277 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012278 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12280 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000012281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012282 break 2
12283 fi
12284done
cristy8b350f62009-11-15 23:12:43 +000012285 done
cristy3ed852e2009-09-05 21:47:34 +000012286IFS=$as_save_IFS
12287
12288fi
12289fi
12290ac_ct_AS=$ac_cv_prog_ac_ct_AS
12291if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000012292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000012293$as_echo "$ac_ct_AS" >&6; }
12294else
cristy8b350f62009-11-15 23:12:43 +000012295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012296$as_echo "no" >&6; }
12297fi
12298
12299 if test "x$ac_ct_AS" = x; then
12300 AS="false"
12301 else
12302 case $cross_compiling:$ac_tool_warned in
12303yes:)
cristy8b350f62009-11-15 23:12:43 +000012304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12306ac_tool_warned=yes ;;
12307esac
12308 AS=$ac_ct_AS
12309 fi
12310else
12311 AS="$ac_cv_prog_AS"
12312fi
12313
12314 if test -n "$ac_tool_prefix"; then
12315 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12316set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012318$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012319if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012320 $as_echo_n "(cached) " >&6
12321else
12322 if test -n "$DLLTOOL"; then
12323 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12324else
12325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326for as_dir in $PATH
12327do
12328 IFS=$as_save_IFS
12329 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012330 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12332 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000012333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012334 break 2
12335 fi
12336done
cristy8b350f62009-11-15 23:12:43 +000012337 done
cristy3ed852e2009-09-05 21:47:34 +000012338IFS=$as_save_IFS
12339
12340fi
12341fi
12342DLLTOOL=$ac_cv_prog_DLLTOOL
12343if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000012344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000012345$as_echo "$DLLTOOL" >&6; }
12346else
cristy8b350f62009-11-15 23:12:43 +000012347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012348$as_echo "no" >&6; }
12349fi
12350
12351
12352fi
12353if test -z "$ac_cv_prog_DLLTOOL"; then
12354 ac_ct_DLLTOOL=$DLLTOOL
12355 # Extract the first word of "dlltool", so it can be a program name with args.
12356set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012358$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012359if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012360 $as_echo_n "(cached) " >&6
12361else
12362 if test -n "$ac_ct_DLLTOOL"; then
12363 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12364else
12365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12366for as_dir in $PATH
12367do
12368 IFS=$as_save_IFS
12369 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012370 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12372 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000012373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012374 break 2
12375 fi
12376done
cristy8b350f62009-11-15 23:12:43 +000012377 done
cristy3ed852e2009-09-05 21:47:34 +000012378IFS=$as_save_IFS
12379
12380fi
12381fi
12382ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12383if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000012384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000012385$as_echo "$ac_ct_DLLTOOL" >&6; }
12386else
cristy8b350f62009-11-15 23:12:43 +000012387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012388$as_echo "no" >&6; }
12389fi
12390
12391 if test "x$ac_ct_DLLTOOL" = x; then
12392 DLLTOOL="false"
12393 else
12394 case $cross_compiling:$ac_tool_warned in
12395yes:)
cristy8b350f62009-11-15 23:12:43 +000012396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12398ac_tool_warned=yes ;;
12399esac
12400 DLLTOOL=$ac_ct_DLLTOOL
12401 fi
12402else
12403 DLLTOOL="$ac_cv_prog_DLLTOOL"
12404fi
12405
12406 if test -n "$ac_tool_prefix"; then
12407 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12408set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012410$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012411if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012412 $as_echo_n "(cached) " >&6
12413else
12414 if test -n "$OBJDUMP"; then
12415 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12416else
12417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12418for as_dir in $PATH
12419do
12420 IFS=$as_save_IFS
12421 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012422 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12424 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000012425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012426 break 2
12427 fi
12428done
cristy8b350f62009-11-15 23:12:43 +000012429 done
cristy3ed852e2009-09-05 21:47:34 +000012430IFS=$as_save_IFS
12431
12432fi
12433fi
12434OBJDUMP=$ac_cv_prog_OBJDUMP
12435if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000012436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000012437$as_echo "$OBJDUMP" >&6; }
12438else
cristy8b350f62009-11-15 23:12:43 +000012439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012440$as_echo "no" >&6; }
12441fi
12442
12443
12444fi
12445if test -z "$ac_cv_prog_OBJDUMP"; then
12446 ac_ct_OBJDUMP=$OBJDUMP
12447 # Extract the first word of "objdump", so it can be a program name with args.
12448set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012450$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012451if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012452 $as_echo_n "(cached) " >&6
12453else
12454 if test -n "$ac_ct_OBJDUMP"; then
12455 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12456else
12457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12458for as_dir in $PATH
12459do
12460 IFS=$as_save_IFS
12461 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012462 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12464 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000012465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012466 break 2
12467 fi
12468done
cristy8b350f62009-11-15 23:12:43 +000012469 done
cristy3ed852e2009-09-05 21:47:34 +000012470IFS=$as_save_IFS
12471
12472fi
12473fi
12474ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12475if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000012476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000012477$as_echo "$ac_ct_OBJDUMP" >&6; }
12478else
cristy8b350f62009-11-15 23:12:43 +000012479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012480$as_echo "no" >&6; }
12481fi
12482
12483 if test "x$ac_ct_OBJDUMP" = x; then
12484 OBJDUMP="false"
12485 else
12486 case $cross_compiling:$ac_tool_warned in
12487yes:)
cristy8b350f62009-11-15 23:12:43 +000012488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12490ac_tool_warned=yes ;;
12491esac
12492 OBJDUMP=$ac_ct_OBJDUMP
12493 fi
12494else
12495 OBJDUMP="$ac_cv_prog_OBJDUMP"
12496fi
12497
12498 ;;
12499esac
12500
12501test -z "$AS" && AS=as
12502
12503
12504
12505
12506
12507test -z "$DLLTOOL" && DLLTOOL=dlltool
12508
12509
12510
12511
12512
12513test -z "$OBJDUMP" && OBJDUMP=objdump
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000012524if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012525 enableval=$enable_shared; p=${PACKAGE-default}
12526 case $enableval in
12527 yes) enable_shared=yes ;;
12528 no) enable_shared=no ;;
12529 *)
12530 enable_shared=no
12531 # Look at the argument we got. We use all the common list separators.
12532 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12533 for pkg in $enableval; do
12534 IFS="$lt_save_ifs"
12535 if test "X$pkg" = "X$p"; then
12536 enable_shared=yes
12537 fi
12538 done
12539 IFS="$lt_save_ifs"
12540 ;;
12541 esac
12542else
12543 enable_shared=yes
12544fi
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000012555if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012556 enableval=$enable_static; p=${PACKAGE-default}
12557 case $enableval in
12558 yes) enable_static=yes ;;
12559 no) enable_static=no ;;
12560 *)
12561 enable_static=no
12562 # Look at the argument we got. We use all the common list separators.
12563 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12564 for pkg in $enableval; do
12565 IFS="$lt_save_ifs"
12566 if test "X$pkg" = "X$p"; then
12567 enable_static=yes
12568 fi
12569 done
12570 IFS="$lt_save_ifs"
12571 ;;
12572 esac
12573else
12574 enable_static=yes
12575fi
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000012587if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012588 withval=$with_pic; pic_mode="$withval"
12589else
12590 pic_mode=default
12591fi
12592
12593
12594test -z "$pic_mode" && pic_mode=default
12595
12596
12597
12598
12599
12600
12601
12602 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000012603if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012604 enableval=$enable_fast_install; p=${PACKAGE-default}
12605 case $enableval in
12606 yes) enable_fast_install=yes ;;
12607 no) enable_fast_install=no ;;
12608 *)
12609 enable_fast_install=no
12610 # Look at the argument we got. We use all the common list separators.
12611 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12612 for pkg in $enableval; do
12613 IFS="$lt_save_ifs"
12614 if test "X$pkg" = "X$p"; then
12615 enable_fast_install=yes
12616 fi
12617 done
12618 IFS="$lt_save_ifs"
12619 ;;
12620 esac
12621else
12622 enable_fast_install=yes
12623fi
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635# This can be used to rebuild libtool when needed
12636LIBTOOL_DEPS="$ltmain"
12637
12638# Always use our own libtool.
12639LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665test -z "$LN_S" && LN_S="ln -s"
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680if test -n "${ZSH_VERSION+set}" ; then
12681 setopt NO_GLOB_SUBST
12682fi
12683
cristy8b350f62009-11-15 23:12:43 +000012684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012685$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012686if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012687 $as_echo_n "(cached) " >&6
12688else
12689 rm -f .libs 2>/dev/null
12690mkdir .libs 2>/dev/null
12691if test -d .libs; then
12692 lt_cv_objdir=.libs
12693else
12694 # MS-DOS does not allow filenames that begin with a dot.
12695 lt_cv_objdir=_libs
12696fi
12697rmdir .libs 2>/dev/null
12698fi
cristy8b350f62009-11-15 23:12:43 +000012699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012700$as_echo "$lt_cv_objdir" >&6; }
12701objdir=$lt_cv_objdir
12702
12703
12704
12705
12706
12707cat >>confdefs.h <<_ACEOF
12708#define LT_OBJDIR "$lt_cv_objdir/"
12709_ACEOF
12710
12711
12712
12713
cristyd0bd44a2010-09-24 12:38:11 +000012714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
cristy3ed852e2009-09-05 21:47:34 +000012727case $host_os in
12728aix3*)
12729 # AIX sometimes has problems with the GCC collect2 program. For some
12730 # reason, if we set the COLLECT_NAMES environment variable, the problems
12731 # vanish in a puff of smoke.
12732 if test "X${COLLECT_NAMES+set}" != Xset; then
12733 COLLECT_NAMES=
12734 export COLLECT_NAMES
12735 fi
12736 ;;
12737esac
12738
cristyd0bd44a2010-09-24 12:38:11 +000012739# Sed substitution that helps us do robust quoting. It backslashifies
12740# metacharacters that are still active within double-quoted strings.
12741sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12742
12743# Same as above, but do not quote variable references.
12744double_quote_subst='s/\(["`\\]\)/\\\1/g'
12745
12746# Sed substitution to delay expansion of an escaped shell variable in a
12747# double_quote_subst'ed string.
12748delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12749
12750# Sed substitution to delay expansion of an escaped single quote.
12751delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12752
12753# Sed substitution to avoid accidental globbing in evaled expressions
12754no_glob_subst='s/\*/\\\*/g'
12755
cristy3ed852e2009-09-05 21:47:34 +000012756# Global variables:
12757ofile=libtool
12758can_build_shared=yes
12759
12760# All known linkers require a `.a' archive for static linking (except MSVC,
12761# which needs '.lib').
12762libext=a
12763
12764with_gnu_ld="$lt_cv_prog_gnu_ld"
12765
12766old_CC="$CC"
12767old_CFLAGS="$CFLAGS"
12768
12769# Set sane defaults for various variables
12770test -z "$CC" && CC=cc
12771test -z "$LTCC" && LTCC=$CC
12772test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12773test -z "$LD" && LD=ld
12774test -z "$ac_objext" && ac_objext=o
12775
12776for cc_temp in $compiler""; do
12777 case $cc_temp in
12778 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12779 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12780 \-*) ;;
12781 *) break;;
12782 esac
12783done
cristyd0bd44a2010-09-24 12:38:11 +000012784cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000012785
12786
12787# Only perform the check for file, if the check method requires it
12788test -z "$MAGIC_CMD" && MAGIC_CMD=file
12789case $deplibs_check_method in
12790file_magic*)
12791 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000012792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012793$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012794if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012795 $as_echo_n "(cached) " >&6
12796else
12797 case $MAGIC_CMD in
12798[\\/*] | ?:[\\/]*)
12799 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12800 ;;
12801*)
12802 lt_save_MAGIC_CMD="$MAGIC_CMD"
12803 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12804 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12805 for ac_dir in $ac_dummy; do
12806 IFS="$lt_save_ifs"
12807 test -z "$ac_dir" && ac_dir=.
12808 if test -f $ac_dir/${ac_tool_prefix}file; then
12809 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12810 if test -n "$file_magic_test_file"; then
12811 case $deplibs_check_method in
12812 "file_magic "*)
12813 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12814 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12815 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12816 $EGREP "$file_magic_regex" > /dev/null; then
12817 :
12818 else
12819 cat <<_LT_EOF 1>&2
12820
12821*** Warning: the command libtool uses to detect shared libraries,
12822*** $file_magic_cmd, produces output that libtool cannot recognize.
12823*** The result is that libtool may fail to recognize shared libraries
12824*** as such. This will affect the creation of libtool libraries that
12825*** depend on shared libraries, but programs linked with such libtool
12826*** libraries will work regardless of this problem. Nevertheless, you
12827*** may want to report the problem to your system manager and/or to
12828*** bug-libtool@gnu.org
12829
12830_LT_EOF
12831 fi ;;
12832 esac
12833 fi
12834 break
12835 fi
12836 done
12837 IFS="$lt_save_ifs"
12838 MAGIC_CMD="$lt_save_MAGIC_CMD"
12839 ;;
12840esac
12841fi
12842
12843MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12844if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012846$as_echo "$MAGIC_CMD" >&6; }
12847else
cristy8b350f62009-11-15 23:12:43 +000012848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012849$as_echo "no" >&6; }
12850fi
12851
12852
12853
12854
12855
12856if test -z "$lt_cv_path_MAGIC_CMD"; then
12857 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000012858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012859$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012860if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012861 $as_echo_n "(cached) " >&6
12862else
12863 case $MAGIC_CMD in
12864[\\/*] | ?:[\\/]*)
12865 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12866 ;;
12867*)
12868 lt_save_MAGIC_CMD="$MAGIC_CMD"
12869 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12870 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12871 for ac_dir in $ac_dummy; do
12872 IFS="$lt_save_ifs"
12873 test -z "$ac_dir" && ac_dir=.
12874 if test -f $ac_dir/file; then
12875 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12876 if test -n "$file_magic_test_file"; then
12877 case $deplibs_check_method in
12878 "file_magic "*)
12879 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12880 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12881 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12882 $EGREP "$file_magic_regex" > /dev/null; then
12883 :
12884 else
12885 cat <<_LT_EOF 1>&2
12886
12887*** Warning: the command libtool uses to detect shared libraries,
12888*** $file_magic_cmd, produces output that libtool cannot recognize.
12889*** The result is that libtool may fail to recognize shared libraries
12890*** as such. This will affect the creation of libtool libraries that
12891*** depend on shared libraries, but programs linked with such libtool
12892*** libraries will work regardless of this problem. Nevertheless, you
12893*** may want to report the problem to your system manager and/or to
12894*** bug-libtool@gnu.org
12895
12896_LT_EOF
12897 fi ;;
12898 esac
12899 fi
12900 break
12901 fi
12902 done
12903 IFS="$lt_save_ifs"
12904 MAGIC_CMD="$lt_save_MAGIC_CMD"
12905 ;;
12906esac
12907fi
12908
12909MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12910if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012912$as_echo "$MAGIC_CMD" >&6; }
12913else
cristy8b350f62009-11-15 23:12:43 +000012914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012915$as_echo "no" >&6; }
12916fi
12917
12918
12919 else
12920 MAGIC_CMD=:
12921 fi
12922fi
12923
12924 fi
12925 ;;
12926esac
12927
12928# Use C for the default configuration in the libtool script
12929
12930lt_save_CC="$CC"
12931ac_ext=c
12932ac_cpp='$CPP $CPPFLAGS'
12933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12935ac_compiler_gnu=$ac_cv_c_compiler_gnu
12936
12937
12938# Source file extension for C test sources.
12939ac_ext=c
12940
12941# Object file extension for compiled C test sources.
12942objext=o
12943objext=$objext
12944
12945# Code to be used in simple compile tests
12946lt_simple_compile_test_code="int some_variable = 0;"
12947
12948# Code to be used in simple link tests
12949lt_simple_link_test_code='int main(){return(0);}'
12950
12951
12952
12953
12954
12955
12956
12957# If no C compiler was specified, use CC.
12958LTCC=${LTCC-"$CC"}
12959
12960# If no C compiler flags were specified, use CFLAGS.
12961LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12962
12963# Allow CC to be a program name with arguments.
12964compiler=$CC
12965
12966# Save the default compiler, since it gets overwritten when the other
12967# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12968compiler_DEFAULT=$CC
12969
12970# save warnings/boilerplate of simple test code
12971ac_outfile=conftest.$ac_objext
12972echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12973eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12974_lt_compiler_boilerplate=`cat conftest.err`
12975$RM conftest*
12976
12977ac_outfile=conftest.$ac_objext
12978echo "$lt_simple_link_test_code" >conftest.$ac_ext
12979eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12980_lt_linker_boilerplate=`cat conftest.err`
12981$RM -r conftest*
12982
12983
12984## CAVEAT EMPTOR:
12985## There is no encapsulation within the following macros, do not change
12986## the running order or otherwise move them around unless you know exactly
12987## what you are doing...
12988if test -n "$compiler"; then
12989
12990lt_prog_compiler_no_builtin_flag=
12991
12992if test "$GCC" = yes; then
cristyd0bd44a2010-09-24 12:38:11 +000012993 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
cristy3ed852e2009-09-05 21:47:34 +000012994
cristy8b350f62009-11-15 23:12:43 +000012995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012996$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012997if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012998 $as_echo_n "(cached) " >&6
12999else
13000 lt_cv_prog_compiler_rtti_exceptions=no
13001 ac_outfile=conftest.$ac_objext
13002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13003 lt_compiler_flag="-fno-rtti -fno-exceptions"
13004 # Insert the option either (1) after the last *FLAGS variable, or
13005 # (2) before a word containing "conftest.", or (3) at the end.
13006 # Note that $ac_compile itself does not contain backslashes and begins
13007 # with a dollar sign (not a hyphen), so the echo should work correctly.
13008 # The option is referenced via a variable to avoid confusing sed.
13009 lt_compile=`echo "$ac_compile" | $SED \
13010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13012 -e 's:$: $lt_compiler_flag:'`
cristyd0bd44a2010-09-24 12:38:11 +000013013 (eval echo "\"\$as_me:13013: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013014 (eval "$lt_compile" 2>conftest.err)
13015 ac_status=$?
13016 cat conftest.err >&5
cristyd0bd44a2010-09-24 12:38:11 +000013017 echo "$as_me:13017: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013018 if (exit $ac_status) && test -s "$ac_outfile"; then
13019 # The compiler can only warn and ignore the option if not recognized
13020 # So say no if there are warnings other than the usual output.
cristyd0bd44a2010-09-24 12:38:11 +000013021 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13023 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13024 lt_cv_prog_compiler_rtti_exceptions=yes
13025 fi
13026 fi
13027 $RM conftest*
13028
13029fi
cristy8b350f62009-11-15 23:12:43 +000013030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000013031$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13032
13033if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13034 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13035else
13036 :
13037fi
13038
13039fi
13040
13041
13042
13043
13044
13045
13046 lt_prog_compiler_wl=
13047lt_prog_compiler_pic=
13048lt_prog_compiler_static=
13049
cristy8b350f62009-11-15 23:12:43 +000013050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000013051$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13052
13053 if test "$GCC" = yes; then
13054 lt_prog_compiler_wl='-Wl,'
13055 lt_prog_compiler_static='-static'
13056
13057 case $host_os in
13058 aix*)
13059 # All AIX code is PIC.
13060 if test "$host_cpu" = ia64; then
13061 # AIX 5 now supports IA64 processor
13062 lt_prog_compiler_static='-Bstatic'
13063 fi
13064 ;;
13065
13066 amigaos*)
13067 case $host_cpu in
13068 powerpc)
13069 # see comment about AmigaOS4 .so support
13070 lt_prog_compiler_pic='-fPIC'
13071 ;;
13072 m68k)
13073 # FIXME: we need at least 68020 code to build shared libraries, but
13074 # adding the `-m68020' flag to GCC prevents building anything better,
13075 # like `-m68040'.
13076 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13077 ;;
13078 esac
13079 ;;
13080
13081 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13082 # PIC is the default for these OSes.
13083 ;;
13084
13085 mingw* | cygwin* | pw32* | os2* | cegcc*)
13086 # This hack is so that the source file can tell whether it is being
13087 # built for inclusion in a dll (and should export symbols for example).
13088 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13089 # (--disable-auto-import) libraries
13090 lt_prog_compiler_pic='-DDLL_EXPORT'
13091 ;;
13092
13093 darwin* | rhapsody*)
13094 # PIC is the default on this platform
13095 # Common symbols not allowed in MH_DYLIB files
13096 lt_prog_compiler_pic='-fno-common'
13097 ;;
13098
13099 hpux*)
13100 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13101 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13102 # sets the default TLS model and affects inlining.
13103 case $host_cpu in
13104 hppa*64*)
13105 # +Z the default
13106 ;;
13107 *)
13108 lt_prog_compiler_pic='-fPIC'
13109 ;;
13110 esac
13111 ;;
13112
13113 interix[3-9]*)
13114 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13115 # Instead, we relocate shared libraries at runtime.
13116 ;;
13117
13118 msdosdjgpp*)
13119 # Just because we use GCC doesn't mean we suddenly get shared libraries
13120 # on systems that don't support them.
13121 lt_prog_compiler_can_build_shared=no
13122 enable_shared=no
13123 ;;
13124
13125 *nto* | *qnx*)
13126 # QNX uses GNU C++, but need to define -shared option too, otherwise
13127 # it will coredump.
13128 lt_prog_compiler_pic='-fPIC -shared'
13129 ;;
13130
13131 sysv4*MP*)
13132 if test -d /usr/nec; then
13133 lt_prog_compiler_pic=-Kconform_pic
13134 fi
13135 ;;
13136
13137 *)
13138 lt_prog_compiler_pic='-fPIC'
13139 ;;
13140 esac
13141 else
13142 # PORTME Check for flag to pass linker flags through the system compiler.
13143 case $host_os in
13144 aix*)
13145 lt_prog_compiler_wl='-Wl,'
13146 if test "$host_cpu" = ia64; then
13147 # AIX 5 now supports IA64 processor
13148 lt_prog_compiler_static='-Bstatic'
13149 else
13150 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13151 fi
13152 ;;
13153
13154 mingw* | cygwin* | pw32* | os2* | cegcc*)
13155 # This hack is so that the source file can tell whether it is being
13156 # built for inclusion in a dll (and should export symbols for example).
13157 lt_prog_compiler_pic='-DDLL_EXPORT'
13158 ;;
13159
13160 hpux9* | hpux10* | hpux11*)
13161 lt_prog_compiler_wl='-Wl,'
13162 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13163 # not for PA HP-UX.
13164 case $host_cpu in
13165 hppa*64*|ia64*)
13166 # +Z the default
13167 ;;
13168 *)
13169 lt_prog_compiler_pic='+Z'
13170 ;;
13171 esac
13172 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13173 lt_prog_compiler_static='${wl}-a ${wl}archive'
13174 ;;
13175
13176 irix5* | irix6* | nonstopux*)
13177 lt_prog_compiler_wl='-Wl,'
13178 # PIC (with -KPIC) is the default.
13179 lt_prog_compiler_static='-non_shared'
13180 ;;
13181
cristyd0bd44a2010-09-24 12:38:11 +000013182 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013183 case $cc_basename in
13184 # old Intel for x86_64 which still supported -KPIC.
13185 ecc*)
13186 lt_prog_compiler_wl='-Wl,'
13187 lt_prog_compiler_pic='-KPIC'
13188 lt_prog_compiler_static='-static'
13189 ;;
13190 # icc used to be incompatible with GCC.
13191 # ICC 10 doesn't accept -KPIC any more.
13192 icc* | ifort*)
13193 lt_prog_compiler_wl='-Wl,'
13194 lt_prog_compiler_pic='-fPIC'
13195 lt_prog_compiler_static='-static'
13196 ;;
13197 # Lahey Fortran 8.1.
13198 lf95*)
13199 lt_prog_compiler_wl='-Wl,'
13200 lt_prog_compiler_pic='--shared'
13201 lt_prog_compiler_static='--static'
13202 ;;
cristyd0bd44a2010-09-24 12:38:11 +000013203 pgcc* | pgf77* | pgf90* | pgf95*)
cristy3ed852e2009-09-05 21:47:34 +000013204 # Portland Group compilers (*not* the Pentium gcc compiler,
13205 # which looks to be a dead project)
13206 lt_prog_compiler_wl='-Wl,'
13207 lt_prog_compiler_pic='-fpic'
13208 lt_prog_compiler_static='-Bstatic'
13209 ;;
13210 ccc*)
13211 lt_prog_compiler_wl='-Wl,'
13212 # All Alpha code is PIC.
13213 lt_prog_compiler_static='-non_shared'
13214 ;;
cristyd0bd44a2010-09-24 12:38:11 +000013215 xl*)
13216 # IBM XL C 8.0/Fortran 10.1 on PPC
cristy3ed852e2009-09-05 21:47:34 +000013217 lt_prog_compiler_wl='-Wl,'
13218 lt_prog_compiler_pic='-qpic'
13219 lt_prog_compiler_static='-qstaticlink'
13220 ;;
13221 *)
13222 case `$CC -V 2>&1 | sed 5q` in
13223 *Sun\ C*)
13224 # Sun C 5.9
13225 lt_prog_compiler_pic='-KPIC'
13226 lt_prog_compiler_static='-Bstatic'
13227 lt_prog_compiler_wl='-Wl,'
13228 ;;
cristyd0bd44a2010-09-24 12:38:11 +000013229 *Sun\ F*)
13230 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13231 lt_prog_compiler_pic='-KPIC'
13232 lt_prog_compiler_static='-Bstatic'
13233 lt_prog_compiler_wl=''
13234 ;;
cristy3ed852e2009-09-05 21:47:34 +000013235 esac
13236 ;;
13237 esac
13238 ;;
13239
13240 newsos6)
13241 lt_prog_compiler_pic='-KPIC'
13242 lt_prog_compiler_static='-Bstatic'
13243 ;;
13244
13245 *nto* | *qnx*)
13246 # QNX uses GNU C++, but need to define -shared option too, otherwise
13247 # it will coredump.
13248 lt_prog_compiler_pic='-fPIC -shared'
13249 ;;
13250
13251 osf3* | osf4* | osf5*)
13252 lt_prog_compiler_wl='-Wl,'
13253 # All OSF/1 code is PIC.
13254 lt_prog_compiler_static='-non_shared'
13255 ;;
13256
13257 rdos*)
13258 lt_prog_compiler_static='-non_shared'
13259 ;;
13260
13261 solaris*)
13262 lt_prog_compiler_pic='-KPIC'
13263 lt_prog_compiler_static='-Bstatic'
13264 case $cc_basename in
cristyd0bd44a2010-09-24 12:38:11 +000013265 f77* | f90* | f95*)
cristy3ed852e2009-09-05 21:47:34 +000013266 lt_prog_compiler_wl='-Qoption ld ';;
13267 *)
13268 lt_prog_compiler_wl='-Wl,';;
13269 esac
13270 ;;
13271
13272 sunos4*)
13273 lt_prog_compiler_wl='-Qoption ld '
13274 lt_prog_compiler_pic='-PIC'
13275 lt_prog_compiler_static='-Bstatic'
13276 ;;
13277
13278 sysv4 | sysv4.2uw2* | sysv4.3*)
13279 lt_prog_compiler_wl='-Wl,'
13280 lt_prog_compiler_pic='-KPIC'
13281 lt_prog_compiler_static='-Bstatic'
13282 ;;
13283
13284 sysv4*MP*)
13285 if test -d /usr/nec ;then
13286 lt_prog_compiler_pic='-Kconform_pic'
13287 lt_prog_compiler_static='-Bstatic'
13288 fi
13289 ;;
13290
13291 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13292 lt_prog_compiler_wl='-Wl,'
13293 lt_prog_compiler_pic='-KPIC'
13294 lt_prog_compiler_static='-Bstatic'
13295 ;;
13296
13297 unicos*)
13298 lt_prog_compiler_wl='-Wl,'
13299 lt_prog_compiler_can_build_shared=no
13300 ;;
13301
13302 uts4*)
13303 lt_prog_compiler_pic='-pic'
13304 lt_prog_compiler_static='-Bstatic'
13305 ;;
13306
13307 *)
13308 lt_prog_compiler_can_build_shared=no
13309 ;;
13310 esac
13311 fi
13312
13313case $host_os in
13314 # For platforms which do not support PIC, -DPIC is meaningless:
13315 *djgpp*)
13316 lt_prog_compiler_pic=
13317 ;;
13318 *)
13319 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13320 ;;
13321esac
cristy8b350f62009-11-15 23:12:43 +000013322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000013323$as_echo "$lt_prog_compiler_pic" >&6; }
13324
13325
13326
13327
13328
13329
13330#
13331# Check to make sure the PIC flag actually works.
13332#
13333if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000013334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013335$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013336if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013337 $as_echo_n "(cached) " >&6
13338else
13339 lt_cv_prog_compiler_pic_works=no
13340 ac_outfile=conftest.$ac_objext
13341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13342 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13343 # Insert the option either (1) after the last *FLAGS variable, or
13344 # (2) before a word containing "conftest.", or (3) at the end.
13345 # Note that $ac_compile itself does not contain backslashes and begins
13346 # with a dollar sign (not a hyphen), so the echo should work correctly.
13347 # The option is referenced via a variable to avoid confusing sed.
13348 lt_compile=`echo "$ac_compile" | $SED \
13349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13351 -e 's:$: $lt_compiler_flag:'`
cristyd0bd44a2010-09-24 12:38:11 +000013352 (eval echo "\"\$as_me:13352: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013353 (eval "$lt_compile" 2>conftest.err)
13354 ac_status=$?
13355 cat conftest.err >&5
cristyd0bd44a2010-09-24 12:38:11 +000013356 echo "$as_me:13356: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013357 if (exit $ac_status) && test -s "$ac_outfile"; then
13358 # The compiler can only warn and ignore the option if not recognized
13359 # So say no if there are warnings other than the usual output.
cristyd0bd44a2010-09-24 12:38:11 +000013360 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13362 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13363 lt_cv_prog_compiler_pic_works=yes
13364 fi
13365 fi
13366 $RM conftest*
13367
13368fi
cristy8b350f62009-11-15 23:12:43 +000013369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013370$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13371
13372if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13373 case $lt_prog_compiler_pic in
13374 "" | " "*) ;;
13375 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13376 esac
13377else
13378 lt_prog_compiler_pic=
13379 lt_prog_compiler_can_build_shared=no
13380fi
13381
13382fi
13383
13384
13385
13386
13387
13388
13389#
13390# Check to make sure the static flag actually works.
13391#
13392wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000013393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013394$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013395if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013396 $as_echo_n "(cached) " >&6
13397else
13398 lt_cv_prog_compiler_static_works=no
13399 save_LDFLAGS="$LDFLAGS"
13400 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13401 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13402 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13403 # The linker can only warn and ignore the option if not recognized
13404 # So say no if there are warnings
13405 if test -s conftest.err; then
13406 # Append any errors to the config.log.
13407 cat conftest.err 1>&5
cristyd0bd44a2010-09-24 12:38:11 +000013408 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013409 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13410 if diff conftest.exp conftest.er2 >/dev/null; then
13411 lt_cv_prog_compiler_static_works=yes
13412 fi
13413 else
13414 lt_cv_prog_compiler_static_works=yes
13415 fi
13416 fi
13417 $RM -r conftest*
13418 LDFLAGS="$save_LDFLAGS"
13419
13420fi
cristy8b350f62009-11-15 23:12:43 +000013421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013422$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13423
13424if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13425 :
13426else
13427 lt_prog_compiler_static=
13428fi
13429
13430
13431
13432
13433
13434
13435
cristy8b350f62009-11-15 23:12:43 +000013436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000013437$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013438if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013439 $as_echo_n "(cached) " >&6
13440else
13441 lt_cv_prog_compiler_c_o=no
13442 $RM -r conftest 2>/dev/null
13443 mkdir conftest
13444 cd conftest
13445 mkdir out
13446 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13447
13448 lt_compiler_flag="-o out/conftest2.$ac_objext"
13449 # Insert the option either (1) after the last *FLAGS variable, or
13450 # (2) before a word containing "conftest.", or (3) at the end.
13451 # Note that $ac_compile itself does not contain backslashes and begins
13452 # with a dollar sign (not a hyphen), so the echo should work correctly.
13453 lt_compile=`echo "$ac_compile" | $SED \
13454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13456 -e 's:$: $lt_compiler_flag:'`
cristyd0bd44a2010-09-24 12:38:11 +000013457 (eval echo "\"\$as_me:13457: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013458 (eval "$lt_compile" 2>out/conftest.err)
13459 ac_status=$?
13460 cat out/conftest.err >&5
cristyd0bd44a2010-09-24 12:38:11 +000013461 echo "$as_me:13461: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013462 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13463 then
13464 # The compiler can only warn and ignore the option if not recognized
13465 # So say no if there are warnings
cristyd0bd44a2010-09-24 12:38:11 +000013466 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013467 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13468 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13469 lt_cv_prog_compiler_c_o=yes
13470 fi
13471 fi
13472 chmod u+w . 2>&5
13473 $RM conftest*
13474 # SGI C++ compiler will create directory out/ii_files/ for
13475 # template instantiation
13476 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13477 $RM out/* && rmdir out
13478 cd ..
13479 $RM -r conftest
13480 $RM conftest*
13481
13482fi
cristy8b350f62009-11-15 23:12:43 +000013483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000013484$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13485
13486
13487
13488
13489
13490
cristy8b350f62009-11-15 23:12:43 +000013491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000013492$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013493if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013494 $as_echo_n "(cached) " >&6
13495else
13496 lt_cv_prog_compiler_c_o=no
13497 $RM -r conftest 2>/dev/null
13498 mkdir conftest
13499 cd conftest
13500 mkdir out
13501 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13502
13503 lt_compiler_flag="-o out/conftest2.$ac_objext"
13504 # Insert the option either (1) after the last *FLAGS variable, or
13505 # (2) before a word containing "conftest.", or (3) at the end.
13506 # Note that $ac_compile itself does not contain backslashes and begins
13507 # with a dollar sign (not a hyphen), so the echo should work correctly.
13508 lt_compile=`echo "$ac_compile" | $SED \
13509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13511 -e 's:$: $lt_compiler_flag:'`
cristyd0bd44a2010-09-24 12:38:11 +000013512 (eval echo "\"\$as_me:13512: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013513 (eval "$lt_compile" 2>out/conftest.err)
13514 ac_status=$?
13515 cat out/conftest.err >&5
cristyd0bd44a2010-09-24 12:38:11 +000013516 echo "$as_me:13516: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013517 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13518 then
13519 # The compiler can only warn and ignore the option if not recognized
13520 # So say no if there are warnings
cristyd0bd44a2010-09-24 12:38:11 +000013521 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013522 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13523 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13524 lt_cv_prog_compiler_c_o=yes
13525 fi
13526 fi
13527 chmod u+w . 2>&5
13528 $RM conftest*
13529 # SGI C++ compiler will create directory out/ii_files/ for
13530 # template instantiation
13531 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13532 $RM out/* && rmdir out
13533 cd ..
13534 $RM -r conftest
13535 $RM conftest*
13536
13537fi
cristy8b350f62009-11-15 23:12:43 +000013538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000013539$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13540
13541
13542
13543
13544hard_links="nottested"
13545if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13546 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000013547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013548$as_echo_n "checking if we can lock with hard links... " >&6; }
13549 hard_links=yes
13550 $RM conftest*
13551 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13552 touch conftest.a
13553 ln conftest.a conftest.b 2>&5 || hard_links=no
13554 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000013555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013556$as_echo "$hard_links" >&6; }
13557 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000013558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cristy3ed852e2009-09-05 21:47:34 +000013559$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13560 need_locks=warn
13561 fi
13562else
13563 need_locks=no
13564fi
13565
13566
13567
13568
13569
13570
cristy8b350f62009-11-15 23:12:43 +000013571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000013572$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13573
13574 runpath_var=
13575 allow_undefined_flag=
13576 always_export_symbols=no
13577 archive_cmds=
13578 archive_expsym_cmds=
13579 compiler_needs_object=no
13580 enable_shared_with_static_runtimes=no
13581 export_dynamic_flag_spec=
13582 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13583 hardcode_automatic=no
13584 hardcode_direct=no
13585 hardcode_direct_absolute=no
13586 hardcode_libdir_flag_spec=
13587 hardcode_libdir_flag_spec_ld=
13588 hardcode_libdir_separator=
13589 hardcode_minus_L=no
13590 hardcode_shlibpath_var=unsupported
13591 inherit_rpath=no
13592 link_all_deplibs=unknown
13593 module_cmds=
13594 module_expsym_cmds=
13595 old_archive_from_new_cmds=
13596 old_archive_from_expsyms_cmds=
13597 thread_safe_flag_spec=
13598 whole_archive_flag_spec=
13599 # include_expsyms should be a list of space-separated symbols to be *always*
13600 # included in the symbol list
13601 include_expsyms=
13602 # exclude_expsyms can be an extended regexp of symbols to exclude
13603 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13604 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13605 # as well as any symbol that contains `d'.
13606 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13607 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13608 # platforms (ab)use it in PIC code, but their linkers get confused if
13609 # the symbol is explicitly referenced. Since portable code cannot
13610 # rely on this symbol name, it's probably fine to never include it in
13611 # preloaded symbol tables.
13612 # Exclude shared library initialization/finalization symbols.
13613 extract_expsyms_cmds=
13614
13615 case $host_os in
13616 cygwin* | mingw* | pw32* | cegcc*)
13617 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13618 # When not using gcc, we currently assume that we are using
13619 # Microsoft Visual C++.
13620 if test "$GCC" != yes; then
13621 with_gnu_ld=no
13622 fi
13623 ;;
13624 interix*)
13625 # we just hope/assume this is gcc and not c89 (= MSVC++)
13626 with_gnu_ld=yes
13627 ;;
13628 openbsd*)
13629 with_gnu_ld=no
13630 ;;
13631 esac
13632
13633 ld_shlibs=yes
13634 if test "$with_gnu_ld" = yes; then
13635 # If archive_cmds runs LD, not CC, wlarc should be empty
13636 wlarc='${wl}'
13637
13638 # Set some defaults for GNU ld with shared library support. These
13639 # are reset later if shared libraries are not supported. Putting them
13640 # here allows them to be overridden if necessary.
13641 runpath_var=LD_RUN_PATH
13642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13643 export_dynamic_flag_spec='${wl}--export-dynamic'
13644 # ancient GNU ld didn't support --whole-archive et. al.
13645 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13646 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13647 else
13648 whole_archive_flag_spec=
13649 fi
13650 supports_anon_versioning=no
13651 case `$LD -v 2>&1` in
13652 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13653 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13654 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13655 *\ 2.11.*) ;; # other 2.11 versions
13656 *) supports_anon_versioning=yes ;;
13657 esac
13658
13659 # See if GNU ld supports shared libraries.
13660 case $host_os in
13661 aix[3-9]*)
13662 # On AIX/PPC, the GNU linker is very broken
13663 if test "$host_cpu" != ia64; then
13664 ld_shlibs=no
13665 cat <<_LT_EOF 1>&2
13666
cristyd0bd44a2010-09-24 12:38:11 +000013667*** Warning: the GNU linker, at least up to release 2.9.1, is reported
cristy3ed852e2009-09-05 21:47:34 +000013668*** to be unable to reliably create shared libraries on AIX.
13669*** Therefore, libtool is disabling shared libraries support. If you
cristyd0bd44a2010-09-24 12:38:11 +000013670*** really care for shared libraries, you may want to modify your PATH
13671*** so that a non-GNU linker is found, and then restart.
cristy3ed852e2009-09-05 21:47:34 +000013672
13673_LT_EOF
13674 fi
13675 ;;
13676
13677 amigaos*)
13678 case $host_cpu in
13679 powerpc)
13680 # see comment about AmigaOS4 .so support
13681 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13682 archive_expsym_cmds=''
13683 ;;
13684 m68k)
13685 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)'
13686 hardcode_libdir_flag_spec='-L$libdir'
13687 hardcode_minus_L=yes
13688 ;;
13689 esac
13690 ;;
13691
13692 beos*)
13693 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13694 allow_undefined_flag=unsupported
13695 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13696 # support --undefined. This deserves some investigation. FIXME
13697 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13698 else
13699 ld_shlibs=no
13700 fi
13701 ;;
13702
13703 cygwin* | mingw* | pw32* | cegcc*)
13704 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13705 # as there is no search path for DLLs.
13706 hardcode_libdir_flag_spec='-L$libdir'
13707 allow_undefined_flag=unsupported
13708 always_export_symbols=no
13709 enable_shared_with_static_runtimes=yes
13710 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13711
13712 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13714 # If the export-symbols file already is a .def file (1st line
13715 # is EXPORTS), use it as is; otherwise, prepend...
13716 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13717 cp $export_symbols $output_objdir/$soname.def;
13718 else
13719 echo EXPORTS > $output_objdir/$soname.def;
13720 cat $export_symbols >> $output_objdir/$soname.def;
13721 fi~
13722 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13723 else
13724 ld_shlibs=no
13725 fi
13726 ;;
13727
13728 interix[3-9]*)
13729 hardcode_direct=no
13730 hardcode_shlibpath_var=no
13731 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13732 export_dynamic_flag_spec='${wl}-E'
13733 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13734 # Instead, shared libraries are loaded at an image base (0x10000000 by
13735 # default) and relocated if they conflict, which is a slow very memory
13736 # consuming and fragmenting process. To avoid this, we pick a random,
13737 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13738 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13739 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13740 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'
13741 ;;
13742
cristyd0bd44a2010-09-24 12:38:11 +000013743 gnu* | linux* | tpf* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013744 tmp_diet=no
13745 if test "$host_os" = linux-dietlibc; then
13746 case $cc_basename in
13747 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13748 esac
13749 fi
13750 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13751 && test "$tmp_diet" = no
13752 then
13753 tmp_addflag=
13754 tmp_sharedflag='-shared'
13755 case $cc_basename,$host_cpu in
13756 pgcc*) # Portland Group C compiler
cristyd0bd44a2010-09-24 12:38:11 +000013757 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'
cristy3ed852e2009-09-05 21:47:34 +000013758 tmp_addflag=' $pic_flag'
13759 ;;
cristyd0bd44a2010-09-24 12:38:11 +000013760 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13761 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'
cristy3ed852e2009-09-05 21:47:34 +000013762 tmp_addflag=' $pic_flag -Mnomain' ;;
13763 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13764 tmp_addflag=' -i_dynamic' ;;
13765 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13766 tmp_addflag=' -i_dynamic -nofor_main' ;;
13767 ifc* | ifort*) # Intel Fortran compiler
13768 tmp_addflag=' -nofor_main' ;;
13769 lf95*) # Lahey Fortran 8.1
13770 whole_archive_flag_spec=
13771 tmp_sharedflag='--shared' ;;
cristyd0bd44a2010-09-24 12:38:11 +000013772 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000013773 tmp_sharedflag='-qmkshrobj'
13774 tmp_addflag= ;;
13775 esac
13776 case `$CC -V 2>&1 | sed 5q` in
13777 *Sun\ C*) # Sun C 5.9
cristyd0bd44a2010-09-24 12:38:11 +000013778 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'
cristy3ed852e2009-09-05 21:47:34 +000013779 compiler_needs_object=yes
13780 tmp_sharedflag='-G' ;;
13781 *Sun\ F*) # Sun Fortran 8.3
13782 tmp_sharedflag='-G' ;;
13783 esac
13784 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13785
13786 if test "x$supports_anon_versioning" = xyes; then
13787 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13788 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13789 echo "local: *; };" >> $output_objdir/$libname.ver~
13790 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13791 fi
13792
13793 case $cc_basename in
cristyd0bd44a2010-09-24 12:38:11 +000013794 xlf*)
cristy3ed852e2009-09-05 21:47:34 +000013795 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13796 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13797 hardcode_libdir_flag_spec=
13798 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristyd0bd44a2010-09-24 12:38:11 +000013799 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013800 if test "x$supports_anon_versioning" = xyes; then
13801 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13802 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13803 echo "local: *; };" >> $output_objdir/$libname.ver~
cristyd0bd44a2010-09-24 12:38:11 +000013804 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013805 fi
13806 ;;
13807 esac
13808 else
13809 ld_shlibs=no
13810 fi
13811 ;;
13812
13813 netbsd*)
13814 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13815 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13816 wlarc=
13817 else
13818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13819 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13820 fi
13821 ;;
13822
13823 solaris*)
13824 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13825 ld_shlibs=no
13826 cat <<_LT_EOF 1>&2
13827
13828*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13829*** create shared libraries on Solaris systems. Therefore, libtool
13830*** is disabling shared libraries support. We urge you to upgrade GNU
13831*** binutils to release 2.9.1 or newer. Another option is to modify
13832*** your PATH or compiler configuration so that the native linker is
13833*** used, and then restart.
13834
13835_LT_EOF
13836 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13837 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13838 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13839 else
13840 ld_shlibs=no
13841 fi
13842 ;;
13843
13844 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13845 case `$LD -v 2>&1` in
13846 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13847 ld_shlibs=no
13848 cat <<_LT_EOF 1>&2
13849
13850*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13851*** reliably create shared libraries on SCO systems. Therefore, libtool
13852*** is disabling shared libraries support. We urge you to upgrade GNU
13853*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13854*** your PATH or compiler configuration so that the native linker is
13855*** used, and then restart.
13856
13857_LT_EOF
13858 ;;
13859 *)
13860 # For security reasons, it is highly recommended that you always
13861 # use absolute paths for naming shared libraries, and exclude the
13862 # DT_RUNPATH tag from executables and libraries. But doing so
13863 # requires that you compile everything twice, which is a pain.
13864 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13866 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13867 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13868 else
13869 ld_shlibs=no
13870 fi
13871 ;;
13872 esac
13873 ;;
13874
13875 sunos4*)
13876 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13877 wlarc=
13878 hardcode_direct=yes
13879 hardcode_shlibpath_var=no
13880 ;;
13881
13882 *)
13883 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13885 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13886 else
13887 ld_shlibs=no
13888 fi
13889 ;;
13890 esac
13891
13892 if test "$ld_shlibs" = no; then
13893 runpath_var=
13894 hardcode_libdir_flag_spec=
13895 export_dynamic_flag_spec=
13896 whole_archive_flag_spec=
13897 fi
13898 else
13899 # PORTME fill in a description of your system's linker (not GNU ld)
13900 case $host_os in
13901 aix3*)
13902 allow_undefined_flag=unsupported
13903 always_export_symbols=yes
13904 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'
13905 # Note: this linker hardcodes the directories in LIBPATH if there
13906 # are no directories specified by -L.
13907 hardcode_minus_L=yes
13908 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13909 # Neither direct hardcoding nor static linking is supported with a
13910 # broken collect2.
13911 hardcode_direct=unsupported
13912 fi
13913 ;;
13914
13915 aix[4-9]*)
13916 if test "$host_cpu" = ia64; then
13917 # On IA64, the linker does run time linking by default, so we don't
13918 # have to do anything special.
13919 aix_use_runtimelinking=no
13920 exp_sym_flag='-Bexport'
13921 no_entry_flag=""
13922 else
13923 # If we're using GNU nm, then we don't want the "-C" option.
13924 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13925 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristyd0bd44a2010-09-24 12:38:11 +000013926 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'
cristy3ed852e2009-09-05 21:47:34 +000013927 else
13928 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'
13929 fi
13930 aix_use_runtimelinking=no
13931
13932 # Test if we are trying to use run time linking or normal
13933 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13934 # need to do runtime linking.
13935 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13936 for ld_flag in $LDFLAGS; do
13937 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13938 aix_use_runtimelinking=yes
13939 break
13940 fi
13941 done
13942 ;;
13943 esac
13944
13945 exp_sym_flag='-bexport'
13946 no_entry_flag='-bnoentry'
13947 fi
13948
13949 # When large executables or shared objects are built, AIX ld can
13950 # have problems creating the table of contents. If linking a library
13951 # or program results in "error TOC overflow" add -mminimal-toc to
13952 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13953 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13954
13955 archive_cmds=''
13956 hardcode_direct=yes
13957 hardcode_direct_absolute=yes
13958 hardcode_libdir_separator=':'
13959 link_all_deplibs=yes
13960 file_list_spec='${wl}-f,'
13961
13962 if test "$GCC" = yes; then
13963 case $host_os in aix4.[012]|aix4.[012].*)
13964 # We only want to do this on AIX 4.2 and lower, the check
13965 # below for broken collect2 doesn't work under 4.3+
13966 collect2name=`${CC} -print-prog-name=collect2`
13967 if test -f "$collect2name" &&
13968 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13969 then
13970 # We have reworked collect2
13971 :
13972 else
13973 # We have old collect2
13974 hardcode_direct=unsupported
13975 # It fails to find uninstalled libraries when the uninstalled
13976 # path is not listed in the libpath. Setting hardcode_minus_L
13977 # to unsupported forces relinking
13978 hardcode_minus_L=yes
13979 hardcode_libdir_flag_spec='-L$libdir'
13980 hardcode_libdir_separator=
13981 fi
13982 ;;
13983 esac
13984 shared_flag='-shared'
13985 if test "$aix_use_runtimelinking" = yes; then
13986 shared_flag="$shared_flag "'${wl}-G'
13987 fi
13988 else
13989 # not using gcc
13990 if test "$host_cpu" = ia64; then
13991 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13992 # chokes on -Wl,-G. The following line is correct:
13993 shared_flag='-G'
13994 else
13995 if test "$aix_use_runtimelinking" = yes; then
13996 shared_flag='${wl}-G'
13997 else
13998 shared_flag='${wl}-bM:SRE'
13999 fi
14000 fi
14001 fi
14002
14003 export_dynamic_flag_spec='${wl}-bexpall'
14004 # It seems that -bexpall does not export symbols beginning with
14005 # underscore (_), so it is better to generate a list of symbols to export.
14006 always_export_symbols=yes
14007 if test "$aix_use_runtimelinking" = yes; then
14008 # Warning - without using the other runtime loading flags (-brtl),
14009 # -berok will link without error, but may produce a broken library.
14010 allow_undefined_flag='-berok'
14011 # Determine the default libpath from the value encoded in an
14012 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000014013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014014/* end confdefs.h. */
14015
14016int
14017main ()
14018{
14019
14020 ;
14021 return 0;
14022}
14023_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014024if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014025
14026lt_aix_libpath_sed='
14027 /Import File Strings/,/^$/ {
14028 /^0/ {
14029 s/^0 *\(.*\)$/\1/
14030 p
14031 }
14032 }'
14033aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14034# Check for a 64-bit object if we didn't find anything.
14035if test -z "$aix_libpath"; then
14036 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14037fi
cristy3ed852e2009-09-05 21:47:34 +000014038fi
cristy8b350f62009-11-15 23:12:43 +000014039rm -f core conftest.err conftest.$ac_objext \
14040 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014041if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14042
14043 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristyd0bd44a2010-09-24 12:38:11 +000014044 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"
cristy3ed852e2009-09-05 21:47:34 +000014045 else
14046 if test "$host_cpu" = ia64; then
14047 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14048 allow_undefined_flag="-z nodefs"
14049 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"
14050 else
14051 # Determine the default libpath from the value encoded in an
14052 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000014053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014054/* end confdefs.h. */
14055
14056int
14057main ()
14058{
14059
14060 ;
14061 return 0;
14062}
14063_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014064if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014065
14066lt_aix_libpath_sed='
14067 /Import File Strings/,/^$/ {
14068 /^0/ {
14069 s/^0 *\(.*\)$/\1/
14070 p
14071 }
14072 }'
14073aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14074# Check for a 64-bit object if we didn't find anything.
14075if test -z "$aix_libpath"; then
14076 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14077fi
cristy3ed852e2009-09-05 21:47:34 +000014078fi
cristy8b350f62009-11-15 23:12:43 +000014079rm -f core conftest.err conftest.$ac_objext \
14080 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014081if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14082
14083 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14084 # Warning - without using the other run time loading flags,
14085 # -berok will link without error, but may produce a broken library.
14086 no_undefined_flag=' ${wl}-bernotok'
14087 allow_undefined_flag=' ${wl}-berok'
cristyd0bd44a2010-09-24 12:38:11 +000014088 # Exported symbols can be pulled into shared objects from archives
14089 whole_archive_flag_spec='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000014090 archive_cmds_need_lc=yes
14091 # This is similar to how AIX traditionally builds its shared libraries.
14092 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'
14093 fi
14094 fi
14095 ;;
14096
14097 amigaos*)
14098 case $host_cpu in
14099 powerpc)
14100 # see comment about AmigaOS4 .so support
14101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14102 archive_expsym_cmds=''
14103 ;;
14104 m68k)
14105 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)'
14106 hardcode_libdir_flag_spec='-L$libdir'
14107 hardcode_minus_L=yes
14108 ;;
14109 esac
14110 ;;
14111
14112 bsdi[45]*)
14113 export_dynamic_flag_spec=-rdynamic
14114 ;;
14115
14116 cygwin* | mingw* | pw32* | cegcc*)
14117 # When not using gcc, we currently assume that we are using
14118 # Microsoft Visual C++.
14119 # hardcode_libdir_flag_spec is actually meaningless, as there is
14120 # no search path for DLLs.
14121 hardcode_libdir_flag_spec=' '
14122 allow_undefined_flag=unsupported
14123 # Tell ltmain to make .lib files, not .a files.
14124 libext=lib
14125 # Tell ltmain to make .dll files, not .so files.
14126 shrext_cmds=".dll"
14127 # FIXME: Setting linknames here is a bad hack.
cristyd0bd44a2010-09-24 12:38:11 +000014128 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000014129 # The linker will automatically build a .lib file if we build a DLL.
14130 old_archive_from_new_cmds='true'
14131 # FIXME: Should let the user specify the lib program.
14132 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14133 fix_srcfile_path='`cygpath -w "$srcfile"`'
14134 enable_shared_with_static_runtimes=yes
14135 ;;
14136
14137 darwin* | rhapsody*)
14138
14139
14140 archive_cmds_need_lc=no
14141 hardcode_direct=no
14142 hardcode_automatic=yes
14143 hardcode_shlibpath_var=unsupported
cristyd0bd44a2010-09-24 12:38:11 +000014144 whole_archive_flag_spec=''
cristy3ed852e2009-09-05 21:47:34 +000014145 link_all_deplibs=yes
14146 allow_undefined_flag="$_lt_dar_allow_undefined"
14147 case $cc_basename in
14148 ifort*) _lt_dar_can_shared=yes ;;
14149 *) _lt_dar_can_shared=$GCC ;;
14150 esac
14151 if test "$_lt_dar_can_shared" = "yes"; then
cristyd0bd44a2010-09-24 12:38:11 +000014152 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000014153 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14154 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14155 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}"
14156 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}"
14157
14158 else
14159 ld_shlibs=no
14160 fi
14161
14162 ;;
14163
14164 dgux*)
14165 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14166 hardcode_libdir_flag_spec='-L$libdir'
14167 hardcode_shlibpath_var=no
14168 ;;
14169
14170 freebsd1*)
14171 ld_shlibs=no
14172 ;;
14173
14174 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14175 # support. Future versions do this automatically, but an explicit c++rt0.o
14176 # does not break anything, and helps significantly (at the cost of a little
14177 # extra space).
14178 freebsd2.2*)
14179 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14180 hardcode_libdir_flag_spec='-R$libdir'
14181 hardcode_direct=yes
14182 hardcode_shlibpath_var=no
14183 ;;
14184
14185 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14186 freebsd2*)
14187 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14188 hardcode_direct=yes
14189 hardcode_minus_L=yes
14190 hardcode_shlibpath_var=no
14191 ;;
14192
14193 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14194 freebsd* | dragonfly*)
14195 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14196 hardcode_libdir_flag_spec='-R$libdir'
14197 hardcode_direct=yes
14198 hardcode_shlibpath_var=no
14199 ;;
14200
14201 hpux9*)
14202 if test "$GCC" = yes; then
14203 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'
14204 else
14205 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'
14206 fi
14207 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14208 hardcode_libdir_separator=:
14209 hardcode_direct=yes
14210
14211 # hardcode_minus_L: Not really in the search PATH,
14212 # but as the default location of the library.
14213 hardcode_minus_L=yes
14214 export_dynamic_flag_spec='${wl}-E'
14215 ;;
14216
14217 hpux10*)
cristyd0bd44a2010-09-24 12:38:11 +000014218 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000014219 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14220 else
14221 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14222 fi
14223 if test "$with_gnu_ld" = no; then
14224 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14225 hardcode_libdir_flag_spec_ld='+b $libdir'
14226 hardcode_libdir_separator=:
14227 hardcode_direct=yes
14228 hardcode_direct_absolute=yes
14229 export_dynamic_flag_spec='${wl}-E'
14230 # hardcode_minus_L: Not really in the search PATH,
14231 # but as the default location of the library.
14232 hardcode_minus_L=yes
14233 fi
14234 ;;
14235
14236 hpux11*)
cristyd0bd44a2010-09-24 12:38:11 +000014237 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000014238 case $host_cpu in
14239 hppa*64*)
14240 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14241 ;;
14242 ia64*)
14243 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14244 ;;
14245 *)
14246 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14247 ;;
14248 esac
14249 else
14250 case $host_cpu in
14251 hppa*64*)
14252 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14253 ;;
14254 ia64*)
14255 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14256 ;;
14257 *)
cristyd0bd44a2010-09-24 12:38:11 +000014258 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cristy3ed852e2009-09-05 21:47:34 +000014259 ;;
14260 esac
14261 fi
14262 if test "$with_gnu_ld" = no; then
14263 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14264 hardcode_libdir_separator=:
14265
14266 case $host_cpu in
14267 hppa*64*|ia64*)
14268 hardcode_direct=no
14269 hardcode_shlibpath_var=no
14270 ;;
14271 *)
14272 hardcode_direct=yes
14273 hardcode_direct_absolute=yes
14274 export_dynamic_flag_spec='${wl}-E'
14275
14276 # hardcode_minus_L: Not really in the search PATH,
14277 # but as the default location of the library.
14278 hardcode_minus_L=yes
14279 ;;
14280 esac
14281 fi
14282 ;;
14283
14284 irix5* | irix6* | nonstopux*)
14285 if test "$GCC" = yes; then
cristyd0bd44a2010-09-24 12:38:11 +000014286 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'
cristy3ed852e2009-09-05 21:47:34 +000014287 # Try to use the -exported_symbol ld option, if it does not
14288 # work, assume that -exports_file does not work either and
14289 # implicitly export all symbols.
14290 save_LDFLAGS="$LDFLAGS"
14291 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000014292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14293/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000014294int foo(void) {}
14295_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014296if ac_fn_c_try_link "$LINENO"; then :
cristyd0bd44a2010-09-24 12:38:11 +000014297 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'
cristy3ed852e2009-09-05 21:47:34 +000014298
cristy3ed852e2009-09-05 21:47:34 +000014299fi
cristy8b350f62009-11-15 23:12:43 +000014300rm -f core conftest.err conftest.$ac_objext \
14301 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014302 LDFLAGS="$save_LDFLAGS"
14303 else
cristyd0bd44a2010-09-24 12:38:11 +000014304 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'
14305 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'
cristy3ed852e2009-09-05 21:47:34 +000014306 fi
14307 archive_cmds_need_lc='no'
14308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14309 hardcode_libdir_separator=:
14310 inherit_rpath=yes
14311 link_all_deplibs=yes
14312 ;;
14313
14314 netbsd*)
14315 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14316 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14317 else
14318 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14319 fi
14320 hardcode_libdir_flag_spec='-R$libdir'
14321 hardcode_direct=yes
14322 hardcode_shlibpath_var=no
14323 ;;
14324
14325 newsos6)
14326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14327 hardcode_direct=yes
14328 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14329 hardcode_libdir_separator=:
14330 hardcode_shlibpath_var=no
14331 ;;
14332
14333 *nto* | *qnx*)
14334 ;;
14335
14336 openbsd*)
14337 if test -f /usr/libexec/ld.so; then
14338 hardcode_direct=yes
14339 hardcode_shlibpath_var=no
14340 hardcode_direct_absolute=yes
14341 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14342 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14343 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14344 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14345 export_dynamic_flag_spec='${wl}-E'
14346 else
14347 case $host_os in
14348 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14349 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14350 hardcode_libdir_flag_spec='-R$libdir'
14351 ;;
14352 *)
14353 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14354 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14355 ;;
14356 esac
14357 fi
14358 else
14359 ld_shlibs=no
14360 fi
14361 ;;
14362
14363 os2*)
14364 hardcode_libdir_flag_spec='-L$libdir'
14365 hardcode_minus_L=yes
14366 allow_undefined_flag=unsupported
cristyd0bd44a2010-09-24 12:38:11 +000014367 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'
cristy3ed852e2009-09-05 21:47:34 +000014368 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14369 ;;
14370
14371 osf3*)
14372 if test "$GCC" = yes; then
14373 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyd0bd44a2010-09-24 12:38:11 +000014374 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'
cristy3ed852e2009-09-05 21:47:34 +000014375 else
14376 allow_undefined_flag=' -expect_unresolved \*'
cristyd0bd44a2010-09-24 12:38:11 +000014377 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'
cristy3ed852e2009-09-05 21:47:34 +000014378 fi
14379 archive_cmds_need_lc='no'
14380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14381 hardcode_libdir_separator=:
14382 ;;
14383
14384 osf4* | osf5*) # as osf3* with the addition of -msym flag
14385 if test "$GCC" = yes; then
14386 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyd0bd44a2010-09-24 12:38:11 +000014387 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'
cristy3ed852e2009-09-05 21:47:34 +000014388 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14389 else
14390 allow_undefined_flag=' -expect_unresolved \*'
cristyd0bd44a2010-09-24 12:38:11 +000014391 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'
cristy3ed852e2009-09-05 21:47:34 +000014392 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~
cristyd0bd44a2010-09-24 12:38:11 +000014393 $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'
cristy3ed852e2009-09-05 21:47:34 +000014394
14395 # Both c and cxx compiler support -rpath directly
14396 hardcode_libdir_flag_spec='-rpath $libdir'
14397 fi
14398 archive_cmds_need_lc='no'
14399 hardcode_libdir_separator=:
14400 ;;
14401
14402 solaris*)
14403 no_undefined_flag=' -z defs'
14404 if test "$GCC" = yes; then
14405 wlarc='${wl}'
14406 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14407 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14408 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14409 else
14410 case `$CC -V 2>&1` in
14411 *"Compilers 5.0"*)
14412 wlarc=''
14413 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14414 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14415 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14416 ;;
14417 *)
14418 wlarc='${wl}'
14419 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14420 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14421 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14422 ;;
14423 esac
14424 fi
14425 hardcode_libdir_flag_spec='-R$libdir'
14426 hardcode_shlibpath_var=no
14427 case $host_os in
14428 solaris2.[0-5] | solaris2.[0-5].*) ;;
14429 *)
14430 # The compiler driver will combine and reorder linker options,
14431 # but understands `-z linker_flag'. GCC discards it without `$wl',
14432 # but is careful enough not to reorder.
14433 # Supported since Solaris 2.6 (maybe 2.5.1?)
14434 if test "$GCC" = yes; then
14435 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14436 else
14437 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14438 fi
14439 ;;
14440 esac
14441 link_all_deplibs=yes
14442 ;;
14443
14444 sunos4*)
14445 if test "x$host_vendor" = xsequent; then
14446 # Use $CC to link under sequent, because it throws in some extra .o
14447 # files that make .init and .fini sections work.
14448 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14449 else
14450 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14451 fi
14452 hardcode_libdir_flag_spec='-L$libdir'
14453 hardcode_direct=yes
14454 hardcode_minus_L=yes
14455 hardcode_shlibpath_var=no
14456 ;;
14457
14458 sysv4)
14459 case $host_vendor in
14460 sni)
14461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14462 hardcode_direct=yes # is this really true???
14463 ;;
14464 siemens)
14465 ## LD is ld it makes a PLAMLIB
14466 ## CC just makes a GrossModule.
14467 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14468 reload_cmds='$CC -r -o $output$reload_objs'
14469 hardcode_direct=no
14470 ;;
14471 motorola)
14472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14473 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14474 ;;
14475 esac
14476 runpath_var='LD_RUN_PATH'
14477 hardcode_shlibpath_var=no
14478 ;;
14479
14480 sysv4.3*)
14481 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14482 hardcode_shlibpath_var=no
14483 export_dynamic_flag_spec='-Bexport'
14484 ;;
14485
14486 sysv4*MP*)
14487 if test -d /usr/nec; then
14488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14489 hardcode_shlibpath_var=no
14490 runpath_var=LD_RUN_PATH
14491 hardcode_runpath_var=yes
14492 ld_shlibs=yes
14493 fi
14494 ;;
14495
14496 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14497 no_undefined_flag='${wl}-z,text'
14498 archive_cmds_need_lc=no
14499 hardcode_shlibpath_var=no
14500 runpath_var='LD_RUN_PATH'
14501
14502 if test "$GCC" = yes; then
14503 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14504 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14505 else
14506 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14507 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14508 fi
14509 ;;
14510
14511 sysv5* | sco3.2v5* | sco5v6*)
14512 # Note: We can NOT use -z defs as we might desire, because we do not
14513 # link with -lc, and that would cause any symbols used from libc to
14514 # always be unresolved, which means just about no library would
14515 # ever link correctly. If we're not using GNU ld we use -z text
14516 # though, which does catch some bad symbols but isn't as heavy-handed
14517 # as -z defs.
14518 no_undefined_flag='${wl}-z,text'
14519 allow_undefined_flag='${wl}-z,nodefs'
14520 archive_cmds_need_lc=no
14521 hardcode_shlibpath_var=no
14522 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14523 hardcode_libdir_separator=':'
14524 link_all_deplibs=yes
14525 export_dynamic_flag_spec='${wl}-Bexport'
14526 runpath_var='LD_RUN_PATH'
14527
14528 if test "$GCC" = yes; then
14529 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14530 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14531 else
14532 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14533 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14534 fi
14535 ;;
14536
14537 uts4*)
14538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14539 hardcode_libdir_flag_spec='-L$libdir'
14540 hardcode_shlibpath_var=no
14541 ;;
14542
14543 *)
14544 ld_shlibs=no
14545 ;;
14546 esac
14547
14548 if test x$host_vendor = xsni; then
14549 case $host in
14550 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14551 export_dynamic_flag_spec='${wl}-Blargedynsym'
14552 ;;
14553 esac
14554 fi
14555 fi
14556
cristy8b350f62009-11-15 23:12:43 +000014557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014558$as_echo "$ld_shlibs" >&6; }
14559test "$ld_shlibs" = no && can_build_shared=no
14560
14561with_gnu_ld=$with_gnu_ld
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577#
14578# Do we need to explicitly link libc?
14579#
14580case "x$archive_cmds_need_lc" in
14581x|xyes)
14582 # Assume -lc should be added
14583 archive_cmds_need_lc=yes
14584
14585 if test "$enable_shared" = yes && test "$GCC" = yes; then
14586 case $archive_cmds in
14587 *'~'*)
14588 # FIXME: we may have to deal with multi-command sequences.
14589 ;;
14590 '$CC '*)
14591 # Test whether the compiler implicitly links with -lc since on some
14592 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14593 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000014594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000014595$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyd0bd44a2010-09-24 12:38:11 +000014596 $RM conftest*
14597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014598
cristyd0bd44a2010-09-24 12:38:11 +000014599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014600 (eval $ac_compile) 2>&5
14601 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14603 test $ac_status = 0; } 2>conftest.err; then
cristyd0bd44a2010-09-24 12:38:11 +000014604 soname=conftest
14605 lib=conftest
14606 libobjs=conftest.$ac_objext
14607 deplibs=
14608 wl=$lt_prog_compiler_wl
14609 pic_flag=$lt_prog_compiler_pic
14610 compiler_flags=-v
14611 linker_flags=-v
14612 verstring=
14613 output_objdir=.
14614 libname=conftest
14615 lt_save_allow_undefined_flag=$allow_undefined_flag
14616 allow_undefined_flag=
14617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014618 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14619 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14621 test $ac_status = 0; }
cristyd0bd44a2010-09-24 12:38:11 +000014622 then
14623 archive_cmds_need_lc=no
14624 else
14625 archive_cmds_need_lc=yes
14626 fi
14627 allow_undefined_flag=$lt_save_allow_undefined_flag
14628 else
14629 cat conftest.err 1>&5
14630 fi
14631 $RM conftest*
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
14633$as_echo "$archive_cmds_need_lc" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000014634 ;;
14635 esac
14636 fi
14637 ;;
14638esac
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
14793
14794
14795
cristy8b350f62009-11-15 23:12:43 +000014796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000014797$as_echo_n "checking dynamic linker characteristics... " >&6; }
14798
14799if test "$GCC" = yes; then
14800 case $host_os in
14801 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14802 *) lt_awk_arg="/^libraries:/" ;;
14803 esac
cristyd0bd44a2010-09-24 12:38:11 +000014804 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14805 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
cristy3ed852e2009-09-05 21:47:34 +000014806 # if the path contains ";" then we assume it to be the separator
14807 # otherwise default to the standard path separator (i.e. ":") - it is
14808 # assumed that no part of a normal pathname contains ";" but that should
14809 # okay in the real world where ";" in dirpaths is itself problematic.
cristyd0bd44a2010-09-24 12:38:11 +000014810 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14811 else
14812 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14813 fi
cristy3ed852e2009-09-05 21:47:34 +000014814 # Ok, now we have the path, separated by spaces, we can step through it
14815 # and add multilib dir if necessary.
14816 lt_tmp_lt_search_path_spec=
14817 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14818 for lt_sys_path in $lt_search_path_spec; do
14819 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14820 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14821 else
14822 test -d "$lt_sys_path" && \
14823 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14824 fi
14825 done
cristyd0bd44a2010-09-24 12:38:11 +000014826 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
cristy3ed852e2009-09-05 21:47:34 +000014827BEGIN {RS=" "; FS="/|\n";} {
14828 lt_foo="";
14829 lt_count=0;
14830 for (lt_i = NF; lt_i > 0; lt_i--) {
14831 if ($lt_i != "" && $lt_i != ".") {
14832 if ($lt_i == "..") {
14833 lt_count++;
14834 } else {
14835 if (lt_count == 0) {
14836 lt_foo="/" $lt_i lt_foo;
14837 } else {
14838 lt_count--;
14839 }
14840 }
14841 }
14842 }
14843 if (lt_foo != "") { lt_freq[lt_foo]++; }
14844 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14845}'`
cristyd0bd44a2010-09-24 12:38:11 +000014846 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
cristy3ed852e2009-09-05 21:47:34 +000014847else
14848 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14849fi
14850library_names_spec=
14851libname_spec='lib$name'
14852soname_spec=
14853shrext_cmds=".so"
14854postinstall_cmds=
14855postuninstall_cmds=
14856finish_cmds=
14857finish_eval=
14858shlibpath_var=
14859shlibpath_overrides_runpath=unknown
14860version_type=none
14861dynamic_linker="$host_os ld.so"
14862sys_lib_dlsearch_path_spec="/lib /usr/lib"
14863need_lib_prefix=unknown
14864hardcode_into_libs=no
14865
14866# when you set need_version to no, make sure it does not cause -set_version
14867# flags to be left without arguments
14868need_version=unknown
14869
14870case $host_os in
14871aix3*)
14872 version_type=linux
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14874 shlibpath_var=LIBPATH
14875
14876 # AIX 3 has no versioning support, so we append a major version to the name.
14877 soname_spec='${libname}${release}${shared_ext}$major'
14878 ;;
14879
14880aix[4-9]*)
14881 version_type=linux
14882 need_lib_prefix=no
14883 need_version=no
14884 hardcode_into_libs=yes
14885 if test "$host_cpu" = ia64; then
14886 # AIX 5 supports IA64
14887 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14888 shlibpath_var=LD_LIBRARY_PATH
14889 else
14890 # With GCC up to 2.95.x, collect2 would create an import file
14891 # for dependence libraries. The import file would start with
14892 # the line `#! .'. This would cause the generated library to
14893 # depend on `.', always an invalid library. This was fixed in
14894 # development snapshots of GCC prior to 3.0.
14895 case $host_os in
14896 aix4 | aix4.[01] | aix4.[01].*)
14897 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14898 echo ' yes '
14899 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14900 :
14901 else
14902 can_build_shared=no
14903 fi
14904 ;;
14905 esac
14906 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14907 # soname into executable. Probably we can add versioning support to
14908 # collect2, so additional links can be useful in future.
14909 if test "$aix_use_runtimelinking" = yes; then
14910 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14911 # instead of lib<name>.a to let people know that these are not
14912 # typical AIX shared libraries.
14913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14914 else
14915 # We preserve .a as extension for shared libraries through AIX4.2
14916 # and later when we are not doing run time linking.
14917 library_names_spec='${libname}${release}.a $libname.a'
14918 soname_spec='${libname}${release}${shared_ext}$major'
14919 fi
14920 shlibpath_var=LIBPATH
14921 fi
14922 ;;
14923
14924amigaos*)
14925 case $host_cpu in
14926 powerpc)
14927 # Since July 2007 AmigaOS4 officially supports .so libraries.
14928 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14930 ;;
14931 m68k)
14932 library_names_spec='$libname.ixlibrary $libname.a'
14933 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristyd0bd44a2010-09-24 12:38:11 +000014934 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'
cristy3ed852e2009-09-05 21:47:34 +000014935 ;;
14936 esac
14937 ;;
14938
14939beos*)
14940 library_names_spec='${libname}${shared_ext}'
14941 dynamic_linker="$host_os ld.so"
14942 shlibpath_var=LIBRARY_PATH
14943 ;;
14944
14945bsdi[45]*)
14946 version_type=linux
14947 need_version=no
14948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14949 soname_spec='${libname}${release}${shared_ext}$major'
14950 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14951 shlibpath_var=LD_LIBRARY_PATH
14952 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14953 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14954 # the default ld.so.conf also contains /usr/contrib/lib and
14955 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14956 # libtool to hard-code these into programs
14957 ;;
14958
14959cygwin* | mingw* | pw32* | cegcc*)
14960 version_type=windows
14961 shrext_cmds=".dll"
14962 need_version=no
14963 need_lib_prefix=no
14964
14965 case $GCC,$host_os in
14966 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14967 library_names_spec='$libname.dll.a'
14968 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14969 postinstall_cmds='base_file=`basename \${file}`~
14970 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14971 dldir=$destdir/`dirname \$dlpath`~
14972 test -d \$dldir || mkdir -p \$dldir~
14973 $install_prog $dir/$dlname \$dldir/$dlname~
14974 chmod a+x \$dldir/$dlname~
14975 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14976 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14977 fi'
14978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14979 dlpath=$dir/\$dldll~
14980 $RM \$dlpath'
14981 shlibpath_overrides_runpath=yes
14982
14983 case $host_os in
14984 cygwin*)
14985 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14986 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristyd0bd44a2010-09-24 12:38:11 +000014987 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000014988 ;;
14989 mingw* | cegcc*)
14990 # MinGW DLLs use traditional 'lib' prefix
14991 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristyd0bd44a2010-09-24 12:38:11 +000014992 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14993 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14994 # It is most probably a Windows format PATH printed by
14995 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14996 # path with ; separators, and with drive letters. We can handle the
14997 # drive letters (cygwin fileutils understands them), so leave them,
14998 # especially as we might pass files found there to a mingw objdump,
14999 # which wouldn't understand a cygwinified path. Ahh.
15000 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15001 else
15002 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15003 fi
cristy3ed852e2009-09-05 21:47:34 +000015004 ;;
15005 pw32*)
15006 # pw32 DLLs use 'pw' prefix rather than 'lib'
15007 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15008 ;;
15009 esac
15010 ;;
15011
15012 *)
15013 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15014 ;;
15015 esac
15016 dynamic_linker='Win32 ld.exe'
15017 # FIXME: first we should search . and the directory the executable is in
15018 shlibpath_var=PATH
15019 ;;
15020
15021darwin* | rhapsody*)
15022 dynamic_linker="$host_os dyld"
15023 version_type=darwin
15024 need_lib_prefix=no
15025 need_version=no
15026 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15027 soname_spec='${libname}${release}${major}$shared_ext'
15028 shlibpath_overrides_runpath=yes
15029 shlibpath_var=DYLD_LIBRARY_PATH
15030 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15031
15032 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15033 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15034 ;;
15035
15036dgux*)
15037 version_type=linux
15038 need_lib_prefix=no
15039 need_version=no
15040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15041 soname_spec='${libname}${release}${shared_ext}$major'
15042 shlibpath_var=LD_LIBRARY_PATH
15043 ;;
15044
15045freebsd1*)
15046 dynamic_linker=no
15047 ;;
15048
15049freebsd* | dragonfly*)
15050 # DragonFly does not have aout. When/if they implement a new
15051 # versioning mechanism, adjust this.
15052 if test -x /usr/bin/objformat; then
15053 objformat=`/usr/bin/objformat`
15054 else
15055 case $host_os in
15056 freebsd[123]*) objformat=aout ;;
15057 *) objformat=elf ;;
15058 esac
15059 fi
15060 version_type=freebsd-$objformat
15061 case $version_type in
15062 freebsd-elf*)
15063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15064 need_version=no
15065 need_lib_prefix=no
15066 ;;
15067 freebsd-*)
15068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15069 need_version=yes
15070 ;;
15071 esac
15072 shlibpath_var=LD_LIBRARY_PATH
15073 case $host_os in
15074 freebsd2*)
15075 shlibpath_overrides_runpath=yes
15076 ;;
15077 freebsd3.[01]* | freebsdelf3.[01]*)
15078 shlibpath_overrides_runpath=yes
15079 hardcode_into_libs=yes
15080 ;;
15081 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15082 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15083 shlibpath_overrides_runpath=no
15084 hardcode_into_libs=yes
15085 ;;
15086 *) # from 4.6 on, and DragonFly
15087 shlibpath_overrides_runpath=yes
15088 hardcode_into_libs=yes
15089 ;;
15090 esac
15091 ;;
15092
15093gnu*)
15094 version_type=linux
15095 need_lib_prefix=no
15096 need_version=no
15097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15098 soname_spec='${libname}${release}${shared_ext}$major'
15099 shlibpath_var=LD_LIBRARY_PATH
15100 hardcode_into_libs=yes
15101 ;;
15102
15103hpux9* | hpux10* | hpux11*)
15104 # Give a soname corresponding to the major version so that dld.sl refuses to
15105 # link against other versions.
15106 version_type=sunos
15107 need_lib_prefix=no
15108 need_version=no
15109 case $host_cpu in
15110 ia64*)
15111 shrext_cmds='.so'
15112 hardcode_into_libs=yes
15113 dynamic_linker="$host_os dld.so"
15114 shlibpath_var=LD_LIBRARY_PATH
15115 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15117 soname_spec='${libname}${release}${shared_ext}$major'
15118 if test "X$HPUX_IA64_MODE" = X32; then
15119 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15120 else
15121 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15122 fi
15123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15124 ;;
15125 hppa*64*)
15126 shrext_cmds='.sl'
15127 hardcode_into_libs=yes
15128 dynamic_linker="$host_os dld.sl"
15129 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15130 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15132 soname_spec='${libname}${release}${shared_ext}$major'
15133 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15135 ;;
15136 *)
15137 shrext_cmds='.sl'
15138 dynamic_linker="$host_os dld.sl"
15139 shlibpath_var=SHLIB_PATH
15140 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15142 soname_spec='${libname}${release}${shared_ext}$major'
15143 ;;
15144 esac
cristyd0bd44a2010-09-24 12:38:11 +000015145 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000015146 postinstall_cmds='chmod 555 $lib'
15147 ;;
15148
15149interix[3-9]*)
15150 version_type=linux
15151 need_lib_prefix=no
15152 need_version=no
15153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15154 soname_spec='${libname}${release}${shared_ext}$major'
15155 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15156 shlibpath_var=LD_LIBRARY_PATH
15157 shlibpath_overrides_runpath=no
15158 hardcode_into_libs=yes
15159 ;;
15160
15161irix5* | irix6* | nonstopux*)
15162 case $host_os in
15163 nonstopux*) version_type=nonstopux ;;
15164 *)
15165 if test "$lt_cv_prog_gnu_ld" = yes; then
15166 version_type=linux
15167 else
15168 version_type=irix
15169 fi ;;
15170 esac
15171 need_lib_prefix=no
15172 need_version=no
15173 soname_spec='${libname}${release}${shared_ext}$major'
15174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15175 case $host_os in
15176 irix5* | nonstopux*)
15177 libsuff= shlibsuff=
15178 ;;
15179 *)
15180 case $LD in # libtool.m4 will add one of these switches to LD
15181 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15182 libsuff= shlibsuff= libmagic=32-bit;;
15183 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15184 libsuff=32 shlibsuff=N32 libmagic=N32;;
15185 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15186 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15187 *) libsuff= shlibsuff= libmagic=never-match;;
15188 esac
15189 ;;
15190 esac
15191 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15192 shlibpath_overrides_runpath=no
15193 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15194 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15195 hardcode_into_libs=yes
15196 ;;
15197
15198# No shared lib support for Linux oldld, aout, or coff.
15199linux*oldld* | linux*aout* | linux*coff*)
15200 dynamic_linker=no
15201 ;;
15202
15203# This must be Linux ELF.
cristyd0bd44a2010-09-24 12:38:11 +000015204linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000015205 version_type=linux
15206 need_lib_prefix=no
15207 need_version=no
15208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15209 soname_spec='${libname}${release}${shared_ext}$major'
15210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15211 shlibpath_var=LD_LIBRARY_PATH
15212 shlibpath_overrides_runpath=no
15213 # Some binutils ld are patched to set DT_RUNPATH
cristyd0bd44a2010-09-24 12:38:11 +000015214 save_LDFLAGS=$LDFLAGS
15215 save_libdir=$libdir
15216 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15217 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015219/* end confdefs.h. */
15220
15221int
15222main ()
15223{
15224
15225 ;
15226 return 0;
15227}
15228_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015229if ac_fn_c_try_link "$LINENO"; then :
15230 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristyd0bd44a2010-09-24 12:38:11 +000015231 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000015232fi
cristy3ed852e2009-09-05 21:47:34 +000015233fi
cristy8b350f62009-11-15 23:12:43 +000015234rm -f core conftest.err conftest.$ac_objext \
15235 conftest$ac_exeext conftest.$ac_ext
cristyd0bd44a2010-09-24 12:38:11 +000015236 LDFLAGS=$save_LDFLAGS
15237 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000015238
15239 # This implies no fast_install, which is unacceptable.
15240 # Some rework will be needed to allow for fast_install
15241 # before this can be enabled.
15242 hardcode_into_libs=yes
15243
cristy679ed8e2009-12-05 02:37:41 +000015244 # Add ABI-specific directories to the system library path.
15245 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15246
cristy3ed852e2009-09-05 21:47:34 +000015247 # Append ld.so.conf contents to the search path
15248 if test -f /etc/ld.so.conf; then
cristyd0bd44a2010-09-24 12:38:11 +000015249 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' ' '`
cristy679ed8e2009-12-05 02:37:41 +000015250 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000015251 fi
15252
15253 # We used to test for /lib/ld.so.1 and disable shared libraries on
15254 # powerpc, because MkLinux only supported shared libraries with the
15255 # GNU dynamic linker. Since this was broken with cross compilers,
15256 # most powerpc-linux boxes support dynamic linking these days and
15257 # people can always --disable-shared, the test was removed, and we
15258 # assume the GNU/Linux dynamic linker is in use.
15259 dynamic_linker='GNU/Linux ld.so'
15260 ;;
15261
15262netbsd*)
15263 version_type=sunos
15264 need_lib_prefix=no
15265 need_version=no
15266 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15269 dynamic_linker='NetBSD (a.out) ld.so'
15270 else
15271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15272 soname_spec='${libname}${release}${shared_ext}$major'
15273 dynamic_linker='NetBSD ld.elf_so'
15274 fi
15275 shlibpath_var=LD_LIBRARY_PATH
15276 shlibpath_overrides_runpath=yes
15277 hardcode_into_libs=yes
15278 ;;
15279
15280newsos6)
15281 version_type=linux
15282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15283 shlibpath_var=LD_LIBRARY_PATH
15284 shlibpath_overrides_runpath=yes
15285 ;;
15286
15287*nto* | *qnx*)
15288 version_type=qnx
15289 need_lib_prefix=no
15290 need_version=no
15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15292 soname_spec='${libname}${release}${shared_ext}$major'
15293 shlibpath_var=LD_LIBRARY_PATH
15294 shlibpath_overrides_runpath=no
15295 hardcode_into_libs=yes
15296 dynamic_linker='ldqnx.so'
15297 ;;
15298
15299openbsd*)
15300 version_type=sunos
15301 sys_lib_dlsearch_path_spec="/usr/lib"
15302 need_lib_prefix=no
15303 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15304 case $host_os in
15305 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15306 *) need_version=no ;;
15307 esac
15308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15310 shlibpath_var=LD_LIBRARY_PATH
15311 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15312 case $host_os in
15313 openbsd2.[89] | openbsd2.[89].*)
15314 shlibpath_overrides_runpath=no
15315 ;;
15316 *)
15317 shlibpath_overrides_runpath=yes
15318 ;;
15319 esac
15320 else
15321 shlibpath_overrides_runpath=yes
15322 fi
15323 ;;
15324
15325os2*)
15326 libname_spec='$name'
15327 shrext_cmds=".dll"
15328 need_lib_prefix=no
15329 library_names_spec='$libname${shared_ext} $libname.a'
15330 dynamic_linker='OS/2 ld.exe'
15331 shlibpath_var=LIBPATH
15332 ;;
15333
15334osf3* | osf4* | osf5*)
15335 version_type=osf
15336 need_lib_prefix=no
15337 need_version=no
15338 soname_spec='${libname}${release}${shared_ext}$major'
15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15340 shlibpath_var=LD_LIBRARY_PATH
15341 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15342 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15343 ;;
15344
15345rdos*)
15346 dynamic_linker=no
15347 ;;
15348
15349solaris*)
15350 version_type=linux
15351 need_lib_prefix=no
15352 need_version=no
15353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15354 soname_spec='${libname}${release}${shared_ext}$major'
15355 shlibpath_var=LD_LIBRARY_PATH
15356 shlibpath_overrides_runpath=yes
15357 hardcode_into_libs=yes
15358 # ldd complains unless libraries are executable
15359 postinstall_cmds='chmod +x $lib'
15360 ;;
15361
15362sunos4*)
15363 version_type=sunos
15364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15365 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15366 shlibpath_var=LD_LIBRARY_PATH
15367 shlibpath_overrides_runpath=yes
15368 if test "$with_gnu_ld" = yes; then
15369 need_lib_prefix=no
15370 fi
15371 need_version=yes
15372 ;;
15373
15374sysv4 | sysv4.3*)
15375 version_type=linux
15376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15377 soname_spec='${libname}${release}${shared_ext}$major'
15378 shlibpath_var=LD_LIBRARY_PATH
15379 case $host_vendor in
15380 sni)
15381 shlibpath_overrides_runpath=no
15382 need_lib_prefix=no
15383 runpath_var=LD_RUN_PATH
15384 ;;
15385 siemens)
15386 need_lib_prefix=no
15387 ;;
15388 motorola)
15389 need_lib_prefix=no
15390 need_version=no
15391 shlibpath_overrides_runpath=no
15392 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15393 ;;
15394 esac
15395 ;;
15396
15397sysv4*MP*)
15398 if test -d /usr/nec ;then
15399 version_type=linux
15400 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15401 soname_spec='$libname${shared_ext}.$major'
15402 shlibpath_var=LD_LIBRARY_PATH
15403 fi
15404 ;;
15405
15406sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15407 version_type=freebsd-elf
15408 need_lib_prefix=no
15409 need_version=no
15410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15411 soname_spec='${libname}${release}${shared_ext}$major'
15412 shlibpath_var=LD_LIBRARY_PATH
15413 shlibpath_overrides_runpath=yes
15414 hardcode_into_libs=yes
15415 if test "$with_gnu_ld" = yes; then
15416 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15417 else
15418 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15419 case $host_os in
15420 sco3.2v5*)
15421 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15422 ;;
15423 esac
15424 fi
15425 sys_lib_dlsearch_path_spec='/usr/lib'
15426 ;;
15427
15428tpf*)
15429 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15430 version_type=linux
15431 need_lib_prefix=no
15432 need_version=no
15433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434 shlibpath_var=LD_LIBRARY_PATH
15435 shlibpath_overrides_runpath=no
15436 hardcode_into_libs=yes
15437 ;;
15438
15439uts4*)
15440 version_type=linux
15441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15442 soname_spec='${libname}${release}${shared_ext}$major'
15443 shlibpath_var=LD_LIBRARY_PATH
15444 ;;
15445
15446*)
15447 dynamic_linker=no
15448 ;;
15449esac
cristy8b350f62009-11-15 23:12:43 +000015450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000015451$as_echo "$dynamic_linker" >&6; }
15452test "$dynamic_linker" = no && can_build_shared=no
15453
15454variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15455if test "$GCC" = yes; then
15456 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15457fi
15458
15459if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15460 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15461fi
15462if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15463 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15464fi
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
15549
15550
15551
cristy8b350f62009-11-15 23:12:43 +000015552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000015553$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15554hardcode_action=
15555if test -n "$hardcode_libdir_flag_spec" ||
15556 test -n "$runpath_var" ||
15557 test "X$hardcode_automatic" = "Xyes" ; then
15558
15559 # We can hardcode non-existent directories.
15560 if test "$hardcode_direct" != no &&
15561 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15562 # have to relink, otherwise we might link with an installed library
15563 # when we should be linking with a yet-to-be-installed one
15564 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15565 test "$hardcode_minus_L" != no; then
15566 # Linking always hardcodes the temporary library directory.
15567 hardcode_action=relink
15568 else
15569 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15570 hardcode_action=immediate
15571 fi
15572else
15573 # We cannot hardcode anything, or else we can only hardcode existing
15574 # directories.
15575 hardcode_action=unsupported
15576fi
cristy8b350f62009-11-15 23:12:43 +000015577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000015578$as_echo "$hardcode_action" >&6; }
15579
15580if test "$hardcode_action" = relink ||
15581 test "$inherit_rpath" = yes; then
15582 # Fast installation is not supported
15583 enable_fast_install=no
15584elif test "$shlibpath_overrides_runpath" = yes ||
15585 test "$enable_shared" = no; then
15586 # Fast installation is not necessary
15587 enable_fast_install=needless
15588fi
15589
15590
15591
15592
15593
15594
15595 if test "x$enable_dlopen" != xyes; then
15596 enable_dlopen=unknown
15597 enable_dlopen_self=unknown
15598 enable_dlopen_self_static=unknown
15599else
15600 lt_cv_dlopen=no
15601 lt_cv_dlopen_libs=
15602
15603 case $host_os in
15604 beos*)
15605 lt_cv_dlopen="load_add_on"
15606 lt_cv_dlopen_libs=
15607 lt_cv_dlopen_self=yes
15608 ;;
15609
15610 mingw* | pw32* | cegcc*)
15611 lt_cv_dlopen="LoadLibrary"
15612 lt_cv_dlopen_libs=
15613 ;;
15614
15615 cygwin*)
15616 lt_cv_dlopen="dlopen"
15617 lt_cv_dlopen_libs=
15618 ;;
15619
15620 darwin*)
15621 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000015622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015623$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015624if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015625 $as_echo_n "(cached) " >&6
15626else
15627 ac_check_lib_save_LIBS=$LIBS
15628LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015630/* end confdefs.h. */
15631
15632/* Override any GCC internal prototype to avoid an error.
15633 Use char because int might match the return type of a GCC
15634 builtin and then its argument prototype would still apply. */
15635#ifdef __cplusplus
15636extern "C"
15637#endif
15638char dlopen ();
15639int
15640main ()
15641{
15642return dlopen ();
15643 ;
15644 return 0;
15645}
15646_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015647if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015648 ac_cv_lib_dl_dlopen=yes
15649else
cristy8b350f62009-11-15 23:12:43 +000015650 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015651fi
cristy8b350f62009-11-15 23:12:43 +000015652rm -f core conftest.err conftest.$ac_objext \
15653 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015654LIBS=$ac_check_lib_save_LIBS
15655fi
cristy8b350f62009-11-15 23:12:43 +000015656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015657$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015658if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015659 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15660else
15661
15662 lt_cv_dlopen="dyld"
15663 lt_cv_dlopen_libs=
15664 lt_cv_dlopen_self=yes
15665
15666fi
15667
15668 ;;
15669
15670 *)
cristy8b350f62009-11-15 23:12:43 +000015671 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15672if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015673 lt_cv_dlopen="shl_load"
15674else
cristy8b350f62009-11-15 23:12:43 +000015675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015676$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015677if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015678 $as_echo_n "(cached) " >&6
15679else
15680 ac_check_lib_save_LIBS=$LIBS
15681LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015683/* end confdefs.h. */
15684
15685/* Override any GCC internal prototype to avoid an error.
15686 Use char because int might match the return type of a GCC
15687 builtin and then its argument prototype would still apply. */
15688#ifdef __cplusplus
15689extern "C"
15690#endif
15691char shl_load ();
15692int
15693main ()
15694{
15695return shl_load ();
15696 ;
15697 return 0;
15698}
15699_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015700if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015701 ac_cv_lib_dld_shl_load=yes
15702else
cristy8b350f62009-11-15 23:12:43 +000015703 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000015704fi
cristy8b350f62009-11-15 23:12:43 +000015705rm -f core conftest.err conftest.$ac_objext \
15706 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015707LIBS=$ac_check_lib_save_LIBS
15708fi
cristy8b350f62009-11-15 23:12:43 +000015709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000015710$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015711if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015712 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15713else
cristy8b350f62009-11-15 23:12:43 +000015714 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15715if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015716 lt_cv_dlopen="dlopen"
15717else
cristy8b350f62009-11-15 23:12:43 +000015718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015719$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015720if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015721 $as_echo_n "(cached) " >&6
15722else
15723 ac_check_lib_save_LIBS=$LIBS
15724LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015726/* end confdefs.h. */
15727
15728/* Override any GCC internal prototype to avoid an error.
15729 Use char because int might match the return type of a GCC
15730 builtin and then its argument prototype would still apply. */
15731#ifdef __cplusplus
15732extern "C"
15733#endif
15734char dlopen ();
15735int
15736main ()
15737{
15738return dlopen ();
15739 ;
15740 return 0;
15741}
15742_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015743if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015744 ac_cv_lib_dl_dlopen=yes
15745else
cristy8b350f62009-11-15 23:12:43 +000015746 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015747fi
cristy8b350f62009-11-15 23:12:43 +000015748rm -f core conftest.err conftest.$ac_objext \
15749 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015750LIBS=$ac_check_lib_save_LIBS
15751fi
cristy8b350f62009-11-15 23:12:43 +000015752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015753$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015754if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015755 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15756else
cristy8b350f62009-11-15 23:12:43 +000015757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015758$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015759if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015760 $as_echo_n "(cached) " >&6
15761else
15762 ac_check_lib_save_LIBS=$LIBS
15763LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015765/* end confdefs.h. */
15766
15767/* Override any GCC internal prototype to avoid an error.
15768 Use char because int might match the return type of a GCC
15769 builtin and then its argument prototype would still apply. */
15770#ifdef __cplusplus
15771extern "C"
15772#endif
15773char dlopen ();
15774int
15775main ()
15776{
15777return dlopen ();
15778 ;
15779 return 0;
15780}
15781_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015782if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015783 ac_cv_lib_svld_dlopen=yes
15784else
cristy8b350f62009-11-15 23:12:43 +000015785 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015786fi
cristy8b350f62009-11-15 23:12:43 +000015787rm -f core conftest.err conftest.$ac_objext \
15788 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015789LIBS=$ac_check_lib_save_LIBS
15790fi
cristy8b350f62009-11-15 23:12:43 +000015791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015792$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015793if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015794 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15795else
cristy8b350f62009-11-15 23:12:43 +000015796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015797$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015798if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015799 $as_echo_n "(cached) " >&6
15800else
15801 ac_check_lib_save_LIBS=$LIBS
15802LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015804/* end confdefs.h. */
15805
15806/* Override any GCC internal prototype to avoid an error.
15807 Use char because int might match the return type of a GCC
15808 builtin and then its argument prototype would still apply. */
15809#ifdef __cplusplus
15810extern "C"
15811#endif
15812char dld_link ();
15813int
15814main ()
15815{
15816return dld_link ();
15817 ;
15818 return 0;
15819}
15820_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015821if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015822 ac_cv_lib_dld_dld_link=yes
15823else
cristy8b350f62009-11-15 23:12:43 +000015824 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000015825fi
cristy8b350f62009-11-15 23:12:43 +000015826rm -f core conftest.err conftest.$ac_objext \
15827 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015828LIBS=$ac_check_lib_save_LIBS
15829fi
cristy8b350f62009-11-15 23:12:43 +000015830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000015831$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015832if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015833 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15834fi
15835
15836
15837fi
15838
15839
15840fi
15841
15842
15843fi
15844
15845
15846fi
15847
15848
15849fi
15850
15851 ;;
15852 esac
15853
15854 if test "x$lt_cv_dlopen" != xno; then
15855 enable_dlopen=yes
15856 else
15857 enable_dlopen=no
15858 fi
15859
15860 case $lt_cv_dlopen in
15861 dlopen)
15862 save_CPPFLAGS="$CPPFLAGS"
15863 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15864
15865 save_LDFLAGS="$LDFLAGS"
15866 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15867
15868 save_LIBS="$LIBS"
15869 LIBS="$lt_cv_dlopen_libs $LIBS"
15870
cristy8b350f62009-11-15 23:12:43 +000015871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015872$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015873if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015874 $as_echo_n "(cached) " >&6
15875else
15876 if test "$cross_compiling" = yes; then :
15877 lt_cv_dlopen_self=cross
15878else
15879 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15880 lt_status=$lt_dlunknown
15881 cat > conftest.$ac_ext <<_LT_EOF
cristyd0bd44a2010-09-24 12:38:11 +000015882#line 15882 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015883#include "confdefs.h"
15884
15885#if HAVE_DLFCN_H
15886#include <dlfcn.h>
15887#endif
15888
15889#include <stdio.h>
15890
15891#ifdef RTLD_GLOBAL
15892# define LT_DLGLOBAL RTLD_GLOBAL
15893#else
15894# ifdef DL_GLOBAL
15895# define LT_DLGLOBAL DL_GLOBAL
15896# else
15897# define LT_DLGLOBAL 0
15898# endif
15899#endif
15900
15901/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15902 find out it does not work in some platform. */
15903#ifndef LT_DLLAZY_OR_NOW
15904# ifdef RTLD_LAZY
15905# define LT_DLLAZY_OR_NOW RTLD_LAZY
15906# else
15907# ifdef DL_LAZY
15908# define LT_DLLAZY_OR_NOW DL_LAZY
15909# else
15910# ifdef RTLD_NOW
15911# define LT_DLLAZY_OR_NOW RTLD_NOW
15912# else
15913# ifdef DL_NOW
15914# define LT_DLLAZY_OR_NOW DL_NOW
15915# else
15916# define LT_DLLAZY_OR_NOW 0
15917# endif
15918# endif
15919# endif
15920# endif
15921#endif
15922
cristyd0bd44a2010-09-24 12:38:11 +000015923void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000015924int main ()
15925{
15926 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15927 int status = $lt_dlunknown;
15928
15929 if (self)
15930 {
15931 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyd0bd44a2010-09-24 12:38:11 +000015932 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000015933 /* dlclose (self); */
15934 }
15935 else
15936 puts (dlerror ());
15937
15938 return status;
15939}
15940_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015942 (eval $ac_link) 2>&5
15943 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15945 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015946 (./conftest; exit; ) >&5 2>/dev/null
15947 lt_status=$?
15948 case x$lt_status in
15949 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15950 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15951 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15952 esac
15953 else :
15954 # compilation failed
15955 lt_cv_dlopen_self=no
15956 fi
15957fi
15958rm -fr conftest*
15959
15960
15961fi
cristy8b350f62009-11-15 23:12:43 +000015962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000015963$as_echo "$lt_cv_dlopen_self" >&6; }
15964
15965 if test "x$lt_cv_dlopen_self" = xyes; then
15966 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000015967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015968$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015969if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015970 $as_echo_n "(cached) " >&6
15971else
15972 if test "$cross_compiling" = yes; then :
15973 lt_cv_dlopen_self_static=cross
15974else
15975 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15976 lt_status=$lt_dlunknown
15977 cat > conftest.$ac_ext <<_LT_EOF
cristyd0bd44a2010-09-24 12:38:11 +000015978#line 15978 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015979#include "confdefs.h"
15980
15981#if HAVE_DLFCN_H
15982#include <dlfcn.h>
15983#endif
15984
15985#include <stdio.h>
15986
15987#ifdef RTLD_GLOBAL
15988# define LT_DLGLOBAL RTLD_GLOBAL
15989#else
15990# ifdef DL_GLOBAL
15991# define LT_DLGLOBAL DL_GLOBAL
15992# else
15993# define LT_DLGLOBAL 0
15994# endif
15995#endif
15996
15997/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15998 find out it does not work in some platform. */
15999#ifndef LT_DLLAZY_OR_NOW
16000# ifdef RTLD_LAZY
16001# define LT_DLLAZY_OR_NOW RTLD_LAZY
16002# else
16003# ifdef DL_LAZY
16004# define LT_DLLAZY_OR_NOW DL_LAZY
16005# else
16006# ifdef RTLD_NOW
16007# define LT_DLLAZY_OR_NOW RTLD_NOW
16008# else
16009# ifdef DL_NOW
16010# define LT_DLLAZY_OR_NOW DL_NOW
16011# else
16012# define LT_DLLAZY_OR_NOW 0
16013# endif
16014# endif
16015# endif
16016# endif
16017#endif
16018
cristyd0bd44a2010-09-24 12:38:11 +000016019void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000016020int main ()
16021{
16022 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16023 int status = $lt_dlunknown;
16024
16025 if (self)
16026 {
16027 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyd0bd44a2010-09-24 12:38:11 +000016028 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000016029 /* dlclose (self); */
16030 }
16031 else
16032 puts (dlerror ());
16033
16034 return status;
16035}
16036_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000016037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016038 (eval $ac_link) 2>&5
16039 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16041 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000016042 (./conftest; exit; ) >&5 2>/dev/null
16043 lt_status=$?
16044 case x$lt_status in
16045 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16046 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16047 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16048 esac
16049 else :
16050 # compilation failed
16051 lt_cv_dlopen_self_static=no
16052 fi
16053fi
16054rm -fr conftest*
16055
16056
16057fi
cristy8b350f62009-11-15 23:12:43 +000016058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000016059$as_echo "$lt_cv_dlopen_self_static" >&6; }
16060 fi
16061
16062 CPPFLAGS="$save_CPPFLAGS"
16063 LDFLAGS="$save_LDFLAGS"
16064 LIBS="$save_LIBS"
16065 ;;
16066 esac
16067
16068 case $lt_cv_dlopen_self in
16069 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16070 *) enable_dlopen_self=unknown ;;
16071 esac
16072
16073 case $lt_cv_dlopen_self_static in
16074 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16075 *) enable_dlopen_self_static=unknown ;;
16076 esac
16077fi
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095striplib=
16096old_striplib=
cristy8b350f62009-11-15 23:12:43 +000016097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000016098$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16099if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16100 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16101 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000016102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000016103$as_echo "yes" >&6; }
16104else
16105# FIXME - insert some real tests, host_os isn't really good enough
16106 case $host_os in
16107 darwin*)
16108 if test -n "$STRIP" ; then
16109 striplib="$STRIP -x"
16110 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000016111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000016112$as_echo "yes" >&6; }
16113 else
cristy8b350f62009-11-15 23:12:43 +000016114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016115$as_echo "no" >&6; }
16116 fi
16117 ;;
16118 *)
cristy8b350f62009-11-15 23:12:43 +000016119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016120$as_echo "no" >&6; }
16121 ;;
16122 esac
16123fi
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000016137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016138$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000016140$as_echo "$can_build_shared" >&6; }
16141
cristy8b350f62009-11-15 23:12:43 +000016142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016143$as_echo_n "checking whether to build shared libraries... " >&6; }
16144 test "$can_build_shared" = "no" && enable_shared=no
16145
16146 # On AIX, shared libraries and static libraries use the same namespace, and
16147 # are all built from PIC.
16148 case $host_os in
16149 aix3*)
16150 test "$enable_shared" = yes && enable_static=no
16151 if test -n "$RANLIB"; then
16152 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16153 postinstall_cmds='$RANLIB $lib'
16154 fi
16155 ;;
16156
16157 aix[4-9]*)
16158 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16159 test "$enable_shared" = yes && enable_static=no
16160 fi
16161 ;;
16162 esac
cristy8b350f62009-11-15 23:12:43 +000016163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000016164$as_echo "$enable_shared" >&6; }
16165
cristy8b350f62009-11-15 23:12:43 +000016166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016167$as_echo_n "checking whether to build static libraries... " >&6; }
16168 # Make sure either enable_shared or enable_static is yes.
16169 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000016170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000016171$as_echo "$enable_static" >&6; }
16172
16173
16174
16175
16176fi
16177ac_ext=c
16178ac_cpp='$CPP $CPPFLAGS'
16179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16181ac_compiler_gnu=$ac_cv_c_compiler_gnu
16182
16183CC="$lt_save_CC"
16184
16185
16186ac_ext=cpp
16187ac_cpp='$CXXCPP $CPPFLAGS'
16188ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16189ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16190ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16191
16192archive_cmds_need_lc_CXX=no
16193allow_undefined_flag_CXX=
16194always_export_symbols_CXX=no
16195archive_expsym_cmds_CXX=
16196compiler_needs_object_CXX=no
16197export_dynamic_flag_spec_CXX=
16198hardcode_direct_CXX=no
16199hardcode_direct_absolute_CXX=no
16200hardcode_libdir_flag_spec_CXX=
16201hardcode_libdir_flag_spec_ld_CXX=
16202hardcode_libdir_separator_CXX=
16203hardcode_minus_L_CXX=no
16204hardcode_shlibpath_var_CXX=unsupported
16205hardcode_automatic_CXX=no
16206inherit_rpath_CXX=no
16207module_cmds_CXX=
16208module_expsym_cmds_CXX=
16209link_all_deplibs_CXX=unknown
16210old_archive_cmds_CXX=$old_archive_cmds
16211no_undefined_flag_CXX=
16212whole_archive_flag_spec_CXX=
16213enable_shared_with_static_runtimes_CXX=no
16214
16215# Source file extension for C++ test sources.
16216ac_ext=cpp
16217
16218# Object file extension for compiled C++ test sources.
16219objext=o
16220objext_CXX=$objext
16221
16222# No sense in running all these tests if we already determined that
16223# the CXX compiler isn't working. Some variables (like enable_shared)
16224# are currently assumed to apply to all compilers on this platform,
16225# and will be corrupted by setting them based on a non-working compiler.
16226if test "$_lt_caught_CXX_error" != yes; then
16227 # Code to be used in simple compile tests
16228 lt_simple_compile_test_code="int some_variable = 0;"
16229
16230 # Code to be used in simple link tests
16231 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16232
16233 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16234
16235
16236
16237
16238
16239
16240# If no C compiler was specified, use CC.
16241LTCC=${LTCC-"$CC"}
16242
16243# If no C compiler flags were specified, use CFLAGS.
16244LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16245
16246# Allow CC to be a program name with arguments.
16247compiler=$CC
16248
16249
16250 # save warnings/boilerplate of simple test code
16251 ac_outfile=conftest.$ac_objext
16252echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16253eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16254_lt_compiler_boilerplate=`cat conftest.err`
16255$RM conftest*
16256
16257 ac_outfile=conftest.$ac_objext
16258echo "$lt_simple_link_test_code" >conftest.$ac_ext
16259eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16260_lt_linker_boilerplate=`cat conftest.err`
16261$RM -r conftest*
16262
16263
16264 # Allow CC to be a program name with arguments.
16265 lt_save_CC=$CC
16266 lt_save_LD=$LD
16267 lt_save_GCC=$GCC
16268 GCC=$GXX
16269 lt_save_with_gnu_ld=$with_gnu_ld
16270 lt_save_path_LD=$lt_cv_path_LD
16271 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16272 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16273 else
16274 $as_unset lt_cv_prog_gnu_ld
16275 fi
16276 if test -n "${lt_cv_path_LDCXX+set}"; then
16277 lt_cv_path_LD=$lt_cv_path_LDCXX
16278 else
16279 $as_unset lt_cv_path_LD
16280 fi
16281 test -z "${LDCXX+set}" || LD=$LDCXX
16282 CC=${CXX-"c++"}
16283 compiler=$CC
16284 compiler_CXX=$CC
16285 for cc_temp in $compiler""; do
16286 case $cc_temp in
16287 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16288 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16289 \-*) ;;
16290 *) break;;
16291 esac
16292done
cristyd0bd44a2010-09-24 12:38:11 +000016293cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000016294
16295
16296 if test -n "$compiler"; then
16297 # We don't want -fno-exception when compiling C++ code, so set the
16298 # no_builtin_flag separately
16299 if test "$GXX" = yes; then
16300 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16301 else
16302 lt_prog_compiler_no_builtin_flag_CXX=
16303 fi
16304
16305 if test "$GXX" = yes; then
16306 # Set up default GNU C++ configuration
16307
16308
16309
16310# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000016311if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016312 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16313else
16314 with_gnu_ld=no
16315fi
16316
16317ac_prog=ld
16318if test "$GCC" = yes; then
16319 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000016320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016321$as_echo_n "checking for ld used by $CC... " >&6; }
16322 case $host in
16323 *-*-mingw*)
16324 # gcc leaves a trailing carriage return which upsets mingw
16325 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16326 *)
16327 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16328 esac
16329 case $ac_prog in
16330 # Accept absolute paths.
16331 [\\/]* | ?:[\\/]*)
16332 re_direlt='/[^/][^/]*/\.\./'
16333 # Canonicalize the pathname of ld
16334 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16335 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16336 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16337 done
16338 test -z "$LD" && LD="$ac_prog"
16339 ;;
16340 "")
16341 # If it fails, then pretend we aren't using GCC.
16342 ac_prog=ld
16343 ;;
16344 *)
16345 # If it is relative, then search for the first ld in PATH.
16346 with_gnu_ld=unknown
16347 ;;
16348 esac
16349elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000016350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016351$as_echo_n "checking for GNU ld... " >&6; }
16352else
cristy8b350f62009-11-15 23:12:43 +000016353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016354$as_echo_n "checking for non-GNU ld... " >&6; }
16355fi
cristy8b350f62009-11-15 23:12:43 +000016356if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016357 $as_echo_n "(cached) " >&6
16358else
16359 if test -z "$LD"; then
16360 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16361 for ac_dir in $PATH; do
16362 IFS="$lt_save_ifs"
16363 test -z "$ac_dir" && ac_dir=.
16364 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16365 lt_cv_path_LD="$ac_dir/$ac_prog"
16366 # Check to see if the program is GNU ld. I'd rather use --version,
16367 # but apparently some variants of GNU ld only accept -v.
16368 # Break only if it was the GNU/non-GNU ld that we prefer.
16369 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16370 *GNU* | *'with BFD'*)
16371 test "$with_gnu_ld" != no && break
16372 ;;
16373 *)
16374 test "$with_gnu_ld" != yes && break
16375 ;;
16376 esac
16377 fi
16378 done
16379 IFS="$lt_save_ifs"
16380else
16381 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16382fi
16383fi
16384
16385LD="$lt_cv_path_LD"
16386if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000016387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000016388$as_echo "$LD" >&6; }
16389else
cristy8b350f62009-11-15 23:12:43 +000016390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016391$as_echo "no" >&6; }
16392fi
cristyf6fcb5d2010-09-24 01:19:13 +000016393test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
cristy8b350f62009-11-15 23:12:43 +000016394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016395$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016396if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016397 $as_echo_n "(cached) " >&6
16398else
16399 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16400case `$LD -v 2>&1 </dev/null` in
16401*GNU* | *'with BFD'*)
16402 lt_cv_prog_gnu_ld=yes
16403 ;;
16404*)
16405 lt_cv_prog_gnu_ld=no
16406 ;;
16407esac
16408fi
cristy8b350f62009-11-15 23:12:43 +000016409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016410$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16411with_gnu_ld=$lt_cv_prog_gnu_ld
16412
16413
16414
16415
16416
16417
16418
16419 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16420 # archiving commands below assume that GNU ld is being used.
16421 if test "$with_gnu_ld" = yes; then
16422 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16423 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'
16424
16425 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16426 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16427
16428 # If archive_cmds runs LD, not CC, wlarc should be empty
16429 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16430 # investigate it a little bit more. (MM)
16431 wlarc='${wl}'
16432
16433 # ancient GNU ld didn't support --whole-archive et. al.
16434 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16435 $GREP 'no-whole-archive' > /dev/null; then
16436 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16437 else
16438 whole_archive_flag_spec_CXX=
16439 fi
16440 else
16441 with_gnu_ld=no
16442 wlarc=
16443
16444 # A generic and very simple default shared library creation
16445 # command for GNU C++ for the case where it uses the native
16446 # linker, instead of GNU ld. If possible, this setting should
16447 # overridden to take advantage of the native linker features on
16448 # the platform it is being used on.
16449 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16450 fi
16451
16452 # Commands to make compiler produce verbose output that lists
16453 # what "hidden" libraries, object files and flags are used when
16454 # linking a shared library.
cristyd0bd44a2010-09-24 12:38:11 +000016455 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016456
16457 else
16458 GXX=no
16459 with_gnu_ld=no
16460 wlarc=
16461 fi
16462
16463 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000016464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016465$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16466 ld_shlibs_CXX=yes
16467 case $host_os in
16468 aix3*)
16469 # FIXME: insert proper C++ library support
16470 ld_shlibs_CXX=no
16471 ;;
16472 aix[4-9]*)
16473 if test "$host_cpu" = ia64; then
16474 # On IA64, the linker does run time linking by default, so we don't
16475 # have to do anything special.
16476 aix_use_runtimelinking=no
16477 exp_sym_flag='-Bexport'
16478 no_entry_flag=""
16479 else
16480 aix_use_runtimelinking=no
16481
16482 # Test if we are trying to use run time linking or normal
16483 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16484 # need to do runtime linking.
16485 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16486 for ld_flag in $LDFLAGS; do
16487 case $ld_flag in
16488 *-brtl*)
16489 aix_use_runtimelinking=yes
16490 break
16491 ;;
16492 esac
16493 done
16494 ;;
16495 esac
16496
16497 exp_sym_flag='-bexport'
16498 no_entry_flag='-bnoentry'
16499 fi
16500
16501 # When large executables or shared objects are built, AIX ld can
16502 # have problems creating the table of contents. If linking a library
16503 # or program results in "error TOC overflow" add -mminimal-toc to
16504 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16505 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16506
16507 archive_cmds_CXX=''
16508 hardcode_direct_CXX=yes
16509 hardcode_direct_absolute_CXX=yes
16510 hardcode_libdir_separator_CXX=':'
16511 link_all_deplibs_CXX=yes
16512 file_list_spec_CXX='${wl}-f,'
16513
16514 if test "$GXX" = yes; then
16515 case $host_os in aix4.[012]|aix4.[012].*)
16516 # We only want to do this on AIX 4.2 and lower, the check
16517 # below for broken collect2 doesn't work under 4.3+
16518 collect2name=`${CC} -print-prog-name=collect2`
16519 if test -f "$collect2name" &&
16520 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16521 then
16522 # We have reworked collect2
16523 :
16524 else
16525 # We have old collect2
16526 hardcode_direct_CXX=unsupported
16527 # It fails to find uninstalled libraries when the uninstalled
16528 # path is not listed in the libpath. Setting hardcode_minus_L
16529 # to unsupported forces relinking
16530 hardcode_minus_L_CXX=yes
16531 hardcode_libdir_flag_spec_CXX='-L$libdir'
16532 hardcode_libdir_separator_CXX=
16533 fi
16534 esac
16535 shared_flag='-shared'
16536 if test "$aix_use_runtimelinking" = yes; then
16537 shared_flag="$shared_flag "'${wl}-G'
16538 fi
16539 else
16540 # not using gcc
16541 if test "$host_cpu" = ia64; then
16542 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16543 # chokes on -Wl,-G. The following line is correct:
16544 shared_flag='-G'
16545 else
16546 if test "$aix_use_runtimelinking" = yes; then
16547 shared_flag='${wl}-G'
16548 else
16549 shared_flag='${wl}-bM:SRE'
16550 fi
16551 fi
16552 fi
16553
16554 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16555 # It seems that -bexpall does not export symbols beginning with
16556 # underscore (_), so it is better to generate a list of symbols to
16557 # export.
16558 always_export_symbols_CXX=yes
16559 if test "$aix_use_runtimelinking" = yes; then
16560 # Warning - without using the other runtime loading flags (-brtl),
16561 # -berok will link without error, but may produce a broken library.
16562 allow_undefined_flag_CXX='-berok'
16563 # Determine the default libpath from the value encoded in an empty
16564 # executable.
cristy8b350f62009-11-15 23:12:43 +000016565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016566/* end confdefs.h. */
16567
16568int
16569main ()
16570{
16571
16572 ;
16573 return 0;
16574}
16575_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016576if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016577
16578lt_aix_libpath_sed='
16579 /Import File Strings/,/^$/ {
16580 /^0/ {
16581 s/^0 *\(.*\)$/\1/
16582 p
16583 }
16584 }'
16585aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16586# Check for a 64-bit object if we didn't find anything.
16587if test -z "$aix_libpath"; then
16588 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16589fi
cristy3ed852e2009-09-05 21:47:34 +000016590fi
cristy8b350f62009-11-15 23:12:43 +000016591rm -f core conftest.err conftest.$ac_objext \
16592 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016593if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16594
16595 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16596
cristyd0bd44a2010-09-24 12:38:11 +000016597 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"
cristy3ed852e2009-09-05 21:47:34 +000016598 else
16599 if test "$host_cpu" = ia64; then
16600 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16601 allow_undefined_flag_CXX="-z nodefs"
16602 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"
16603 else
16604 # Determine the default libpath from the value encoded in an
16605 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000016606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016607/* end confdefs.h. */
16608
16609int
16610main ()
16611{
16612
16613 ;
16614 return 0;
16615}
16616_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016617if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016618
16619lt_aix_libpath_sed='
16620 /Import File Strings/,/^$/ {
16621 /^0/ {
16622 s/^0 *\(.*\)$/\1/
16623 p
16624 }
16625 }'
16626aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16627# Check for a 64-bit object if we didn't find anything.
16628if test -z "$aix_libpath"; then
16629 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16630fi
cristy3ed852e2009-09-05 21:47:34 +000016631fi
cristy8b350f62009-11-15 23:12:43 +000016632rm -f core conftest.err conftest.$ac_objext \
16633 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016634if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16635
16636 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16637 # Warning - without using the other run time loading flags,
16638 # -berok will link without error, but may produce a broken library.
16639 no_undefined_flag_CXX=' ${wl}-bernotok'
16640 allow_undefined_flag_CXX=' ${wl}-berok'
cristyd0bd44a2010-09-24 12:38:11 +000016641 # Exported symbols can be pulled into shared objects from archives
16642 whole_archive_flag_spec_CXX='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000016643 archive_cmds_need_lc_CXX=yes
16644 # This is similar to how AIX traditionally builds its shared
16645 # libraries.
16646 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'
16647 fi
16648 fi
16649 ;;
16650
16651 beos*)
16652 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16653 allow_undefined_flag_CXX=unsupported
16654 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16655 # support --undefined. This deserves some investigation. FIXME
16656 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16657 else
16658 ld_shlibs_CXX=no
16659 fi
16660 ;;
16661
16662 chorus*)
16663 case $cc_basename in
16664 *)
16665 # FIXME: insert proper C++ library support
16666 ld_shlibs_CXX=no
16667 ;;
16668 esac
16669 ;;
16670
16671 cygwin* | mingw* | pw32* | cegcc*)
16672 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16673 # as there is no search path for DLLs.
16674 hardcode_libdir_flag_spec_CXX='-L$libdir'
16675 allow_undefined_flag_CXX=unsupported
16676 always_export_symbols_CXX=no
16677 enable_shared_with_static_runtimes_CXX=yes
16678
16679 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16680 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'
16681 # If the export-symbols file already is a .def file (1st line
16682 # is EXPORTS), use it as is; otherwise, prepend...
16683 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16684 cp $export_symbols $output_objdir/$soname.def;
16685 else
16686 echo EXPORTS > $output_objdir/$soname.def;
16687 cat $export_symbols >> $output_objdir/$soname.def;
16688 fi~
16689 $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'
16690 else
16691 ld_shlibs_CXX=no
16692 fi
16693 ;;
16694 darwin* | rhapsody*)
16695
16696
16697 archive_cmds_need_lc_CXX=no
16698 hardcode_direct_CXX=no
16699 hardcode_automatic_CXX=yes
16700 hardcode_shlibpath_var_CXX=unsupported
cristyd0bd44a2010-09-24 12:38:11 +000016701 whole_archive_flag_spec_CXX=''
cristy3ed852e2009-09-05 21:47:34 +000016702 link_all_deplibs_CXX=yes
16703 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16704 case $cc_basename in
16705 ifort*) _lt_dar_can_shared=yes ;;
16706 *) _lt_dar_can_shared=$GCC ;;
16707 esac
16708 if test "$_lt_dar_can_shared" = "yes"; then
cristyd0bd44a2010-09-24 12:38:11 +000016709 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000016710 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}"
16711 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16712 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}"
16713 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}"
16714 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16715 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}"
16716 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}"
16717 fi
16718
16719 else
16720 ld_shlibs_CXX=no
16721 fi
16722
16723 ;;
16724
16725 dgux*)
16726 case $cc_basename in
16727 ec++*)
16728 # FIXME: insert proper C++ library support
16729 ld_shlibs_CXX=no
16730 ;;
16731 ghcx*)
16732 # Green Hills C++ Compiler
16733 # FIXME: insert proper C++ library support
16734 ld_shlibs_CXX=no
16735 ;;
16736 *)
16737 # FIXME: insert proper C++ library support
16738 ld_shlibs_CXX=no
16739 ;;
16740 esac
16741 ;;
16742
16743 freebsd[12]*)
16744 # C++ shared libraries reported to be fairly broken before
16745 # switch to ELF
16746 ld_shlibs_CXX=no
16747 ;;
16748
16749 freebsd-elf*)
16750 archive_cmds_need_lc_CXX=no
16751 ;;
16752
16753 freebsd* | dragonfly*)
16754 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16755 # conventions
16756 ld_shlibs_CXX=yes
16757 ;;
16758
16759 gnu*)
16760 ;;
16761
16762 hpux9*)
16763 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16764 hardcode_libdir_separator_CXX=:
16765 export_dynamic_flag_spec_CXX='${wl}-E'
16766 hardcode_direct_CXX=yes
16767 hardcode_minus_L_CXX=yes # Not in the search PATH,
16768 # but as the default
16769 # location of the library.
16770
16771 case $cc_basename in
16772 CC*)
16773 # FIXME: insert proper C++ library support
16774 ld_shlibs_CXX=no
16775 ;;
16776 aCC*)
16777 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'
16778 # Commands to make compiler produce verbose output that lists
16779 # what "hidden" libraries, object files and flags are used when
16780 # linking a shared library.
16781 #
16782 # There doesn't appear to be a way to prevent this compiler from
16783 # explicitly linking system object files so we need to strip them
16784 # from the output so that they don't get included in the library
16785 # dependencies.
cristyd0bd44a2010-09-24 12:38:11 +000016786 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'
cristy3ed852e2009-09-05 21:47:34 +000016787 ;;
16788 *)
16789 if test "$GXX" = yes; then
16790 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'
16791 else
16792 # FIXME: insert proper C++ library support
16793 ld_shlibs_CXX=no
16794 fi
16795 ;;
16796 esac
16797 ;;
16798
16799 hpux10*|hpux11*)
16800 if test $with_gnu_ld = no; then
16801 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16802 hardcode_libdir_separator_CXX=:
16803
16804 case $host_cpu in
16805 hppa*64*|ia64*)
16806 ;;
16807 *)
16808 export_dynamic_flag_spec_CXX='${wl}-E'
16809 ;;
16810 esac
16811 fi
16812 case $host_cpu in
16813 hppa*64*|ia64*)
16814 hardcode_direct_CXX=no
16815 hardcode_shlibpath_var_CXX=no
16816 ;;
16817 *)
16818 hardcode_direct_CXX=yes
16819 hardcode_direct_absolute_CXX=yes
16820 hardcode_minus_L_CXX=yes # Not in the search PATH,
16821 # but as the default
16822 # location of the library.
16823 ;;
16824 esac
16825
16826 case $cc_basename in
16827 CC*)
16828 # FIXME: insert proper C++ library support
16829 ld_shlibs_CXX=no
16830 ;;
16831 aCC*)
16832 case $host_cpu in
16833 hppa*64*)
16834 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16835 ;;
16836 ia64*)
16837 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16838 ;;
16839 *)
16840 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16841 ;;
16842 esac
16843 # Commands to make compiler produce verbose output that lists
16844 # what "hidden" libraries, object files and flags are used when
16845 # linking a shared library.
16846 #
16847 # There doesn't appear to be a way to prevent this compiler from
16848 # explicitly linking system object files so we need to strip them
16849 # from the output so that they don't get included in the library
16850 # dependencies.
cristyd0bd44a2010-09-24 12:38:11 +000016851 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'
cristy3ed852e2009-09-05 21:47:34 +000016852 ;;
16853 *)
16854 if test "$GXX" = yes; then
16855 if test $with_gnu_ld = no; then
16856 case $host_cpu in
16857 hppa*64*)
16858 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16859 ;;
16860 ia64*)
16861 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16862 ;;
16863 *)
16864 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'
16865 ;;
16866 esac
16867 fi
16868 else
16869 # FIXME: insert proper C++ library support
16870 ld_shlibs_CXX=no
16871 fi
16872 ;;
16873 esac
16874 ;;
16875
16876 interix[3-9]*)
16877 hardcode_direct_CXX=no
16878 hardcode_shlibpath_var_CXX=no
16879 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16880 export_dynamic_flag_spec_CXX='${wl}-E'
16881 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16882 # Instead, shared libraries are loaded at an image base (0x10000000 by
16883 # default) and relocated if they conflict, which is a slow very memory
16884 # consuming and fragmenting process. To avoid this, we pick a random,
16885 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16886 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16887 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'
16888 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'
16889 ;;
16890 irix5* | irix6*)
16891 case $cc_basename in
16892 CC*)
16893 # SGI C++
cristyd0bd44a2010-09-24 12:38:11 +000016894 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'
cristy3ed852e2009-09-05 21:47:34 +000016895
16896 # Archives containing C++ object files must be created using
16897 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16898 # necessary to make sure instantiated templates are included
16899 # in the archive.
16900 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16901 ;;
16902 *)
16903 if test "$GXX" = yes; then
16904 if test "$with_gnu_ld" = no; then
cristyd0bd44a2010-09-24 12:38:11 +000016905 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'
cristy3ed852e2009-09-05 21:47:34 +000016906 else
cristyd0bd44a2010-09-24 12:38:11 +000016907 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'
cristy3ed852e2009-09-05 21:47:34 +000016908 fi
16909 fi
16910 link_all_deplibs_CXX=yes
16911 ;;
16912 esac
16913 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16914 hardcode_libdir_separator_CXX=:
16915 inherit_rpath_CXX=yes
16916 ;;
16917
cristyd0bd44a2010-09-24 12:38:11 +000016918 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016919 case $cc_basename in
16920 KCC*)
16921 # Kuck and Associates, Inc. (KAI) C++ Compiler
16922
16923 # KCC will only create a shared library if the output file
16924 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16925 # to its proper name (with version) after linking.
16926 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'
16927 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'
16928 # Commands to make compiler produce verbose output that lists
16929 # what "hidden" libraries, object files and flags are used when
16930 # linking a shared library.
16931 #
16932 # There doesn't appear to be a way to prevent this compiler from
16933 # explicitly linking system object files so we need to strip them
16934 # from the output so that they don't get included in the library
16935 # dependencies.
cristyd0bd44a2010-09-24 12:38:11 +000016936 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'
cristy3ed852e2009-09-05 21:47:34 +000016937
16938 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16939 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16940
16941 # Archives containing C++ object files must be created using
16942 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16943 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16944 ;;
16945 icpc* | ecpc* )
16946 # Intel C++
16947 with_gnu_ld=yes
16948 # version 8.0 and above of icpc choke on multiply defined symbols
16949 # if we add $predep_objects and $postdep_objects, however 7.1 and
16950 # earlier do not add the objects themselves.
16951 case `$CC -V 2>&1` in
16952 *"Version 7."*)
16953 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16954 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'
16955 ;;
16956 *) # Version 8.0 or newer
16957 tmp_idyn=
16958 case $host_cpu in
16959 ia64*) tmp_idyn=' -i_dynamic';;
16960 esac
16961 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16962 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'
16963 ;;
16964 esac
16965 archive_cmds_need_lc_CXX=no
16966 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16967 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16968 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16969 ;;
16970 pgCC* | pgcpp*)
16971 # Portland Group C++ compiler
16972 case `$CC -V` in
cristyd0bd44a2010-09-24 12:38:11 +000016973 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
cristy3ed852e2009-09-05 21:47:34 +000016974 prelink_cmds_CXX='tpldir=Template.dir~
16975 rm -rf $tpldir~
16976 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristyd0bd44a2010-09-24 12:38:11 +000016977 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
cristy3ed852e2009-09-05 21:47:34 +000016978 old_archive_cmds_CXX='tpldir=Template.dir~
16979 rm -rf $tpldir~
16980 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristyd0bd44a2010-09-24 12:38:11 +000016981 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
cristy3ed852e2009-09-05 21:47:34 +000016982 $RANLIB $oldlib'
16983 archive_cmds_CXX='tpldir=Template.dir~
16984 rm -rf $tpldir~
16985 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristyd0bd44a2010-09-24 12:38:11 +000016986 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000016987 archive_expsym_cmds_CXX='tpldir=Template.dir~
16988 rm -rf $tpldir~
16989 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristyd0bd44a2010-09-24 12:38:11 +000016990 $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'
cristy3ed852e2009-09-05 21:47:34 +000016991 ;;
cristyd0bd44a2010-09-24 12:38:11 +000016992 *) # Version 6 will use weak symbols
cristy3ed852e2009-09-05 21:47:34 +000016993 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16994 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'
16995 ;;
16996 esac
16997
16998 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16999 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristyd0bd44a2010-09-24 12:38:11 +000017000 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'
cristy3ed852e2009-09-05 21:47:34 +000017001 ;;
17002 cxx*)
17003 # Compaq C++
17004 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17005 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'
17006
17007 runpath_var=LD_RUN_PATH
17008 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17009 hardcode_libdir_separator_CXX=:
17010
17011 # Commands to make compiler produce verbose output that lists
17012 # what "hidden" libraries, object files and flags are used when
17013 # linking a shared library.
17014 #
17015 # There doesn't appear to be a way to prevent this compiler from
17016 # explicitly linking system object files so we need to strip them
17017 # from the output so that they don't get included in the library
17018 # dependencies.
cristyd0bd44a2010-09-24 12:38:11 +000017019 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'
cristy3ed852e2009-09-05 21:47:34 +000017020 ;;
cristyd0bd44a2010-09-24 12:38:11 +000017021 xl*)
cristy3ed852e2009-09-05 21:47:34 +000017022 # IBM XL 8.0 on PPC, with GNU ld
17023 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17024 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17025 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17026 if test "x$supports_anon_versioning" = xyes; then
17027 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17028 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17029 echo "local: *; };" >> $output_objdir/$libname.ver~
17030 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17031 fi
17032 ;;
17033 *)
17034 case `$CC -V 2>&1 | sed 5q` in
17035 *Sun\ C*)
17036 # Sun C++ 5.9
17037 no_undefined_flag_CXX=' -zdefs'
17038 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17039 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'
17040 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristyd0bd44a2010-09-24 12:38:11 +000017041 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'
cristy3ed852e2009-09-05 21:47:34 +000017042 compiler_needs_object_CXX=yes
17043
17044 # Not sure whether something based on
17045 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17046 # would be better.
cristyd0bd44a2010-09-24 12:38:11 +000017047 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000017048
17049 # Archives containing C++ object files must be created using
17050 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17051 # necessary to make sure instantiated templates are included
17052 # in the archive.
17053 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17054 ;;
17055 esac
17056 ;;
17057 esac
17058 ;;
17059
17060 lynxos*)
17061 # FIXME: insert proper C++ library support
17062 ld_shlibs_CXX=no
17063 ;;
17064
17065 m88k*)
17066 # FIXME: insert proper C++ library support
17067 ld_shlibs_CXX=no
17068 ;;
17069
17070 mvs*)
17071 case $cc_basename in
17072 cxx*)
17073 # FIXME: insert proper C++ library support
17074 ld_shlibs_CXX=no
17075 ;;
17076 *)
17077 # FIXME: insert proper C++ library support
17078 ld_shlibs_CXX=no
17079 ;;
17080 esac
17081 ;;
17082
17083 netbsd*)
17084 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17085 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17086 wlarc=
17087 hardcode_libdir_flag_spec_CXX='-R$libdir'
17088 hardcode_direct_CXX=yes
17089 hardcode_shlibpath_var_CXX=no
17090 fi
17091 # Workaround some broken pre-1.5 toolchains
17092 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17093 ;;
17094
17095 *nto* | *qnx*)
17096 ld_shlibs_CXX=yes
17097 ;;
17098
17099 openbsd2*)
17100 # C++ shared libraries are fairly broken
17101 ld_shlibs_CXX=no
17102 ;;
17103
17104 openbsd*)
17105 if test -f /usr/libexec/ld.so; then
17106 hardcode_direct_CXX=yes
17107 hardcode_shlibpath_var_CXX=no
17108 hardcode_direct_absolute_CXX=yes
17109 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17110 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17111 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17112 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17113 export_dynamic_flag_spec_CXX='${wl}-E'
17114 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17115 fi
cristyd0bd44a2010-09-24 12:38:11 +000017116 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000017117 else
17118 ld_shlibs_CXX=no
17119 fi
17120 ;;
17121
17122 osf3* | osf4* | osf5*)
17123 case $cc_basename in
17124 KCC*)
17125 # Kuck and Associates, Inc. (KAI) C++ Compiler
17126
17127 # KCC will only create a shared library if the output file
17128 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17129 # to its proper name (with version) after linking.
17130 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'
17131
17132 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17133 hardcode_libdir_separator_CXX=:
17134
17135 # Archives containing C++ object files must be created using
17136 # the KAI C++ compiler.
17137 case $host in
17138 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17139 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17140 esac
17141 ;;
17142 RCC*)
17143 # Rational C++ 2.4.1
17144 # FIXME: insert proper C++ library support
17145 ld_shlibs_CXX=no
17146 ;;
17147 cxx*)
17148 case $host in
17149 osf3*)
17150 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristyd0bd44a2010-09-24 12:38:11 +000017151 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'
cristy3ed852e2009-09-05 21:47:34 +000017152 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17153 ;;
17154 *)
17155 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristyd0bd44a2010-09-24 12:38:11 +000017156 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'
cristy3ed852e2009-09-05 21:47:34 +000017157 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17158 echo "-hidden">> $lib.exp~
cristyd0bd44a2010-09-24 12:38:11 +000017159 $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~
cristy3ed852e2009-09-05 21:47:34 +000017160 $RM $lib.exp'
17161 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17162 ;;
17163 esac
17164
17165 hardcode_libdir_separator_CXX=:
17166
17167 # Commands to make compiler produce verbose output that lists
17168 # what "hidden" libraries, object files and flags are used when
17169 # linking a shared library.
17170 #
17171 # There doesn't appear to be a way to prevent this compiler from
17172 # explicitly linking system object files so we need to strip them
17173 # from the output so that they don't get included in the library
17174 # dependencies.
cristyd0bd44a2010-09-24 12:38:11 +000017175 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'
cristy3ed852e2009-09-05 21:47:34 +000017176 ;;
17177 *)
17178 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17179 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17180 case $host in
17181 osf3*)
cristyd0bd44a2010-09-24 12:38:11 +000017182 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'
cristy3ed852e2009-09-05 21:47:34 +000017183 ;;
17184 *)
cristyd0bd44a2010-09-24 12:38:11 +000017185 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'
cristy3ed852e2009-09-05 21:47:34 +000017186 ;;
17187 esac
17188
17189 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17190 hardcode_libdir_separator_CXX=:
17191
17192 # Commands to make compiler produce verbose output that lists
17193 # what "hidden" libraries, object files and flags are used when
17194 # linking a shared library.
cristyd0bd44a2010-09-24 12:38:11 +000017195 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017196
17197 else
17198 # FIXME: insert proper C++ library support
17199 ld_shlibs_CXX=no
17200 fi
17201 ;;
17202 esac
17203 ;;
17204
17205 psos*)
17206 # FIXME: insert proper C++ library support
17207 ld_shlibs_CXX=no
17208 ;;
17209
17210 sunos4*)
17211 case $cc_basename in
17212 CC*)
17213 # Sun C++ 4.x
17214 # FIXME: insert proper C++ library support
17215 ld_shlibs_CXX=no
17216 ;;
17217 lcc*)
17218 # Lucid
17219 # FIXME: insert proper C++ library support
17220 ld_shlibs_CXX=no
17221 ;;
17222 *)
17223 # FIXME: insert proper C++ library support
17224 ld_shlibs_CXX=no
17225 ;;
17226 esac
17227 ;;
17228
17229 solaris*)
17230 case $cc_basename in
cristyd0bd44a2010-09-24 12:38:11 +000017231 CC*)
cristy3ed852e2009-09-05 21:47:34 +000017232 # Sun C++ 4.2, 5.x and Centerline C++
17233 archive_cmds_need_lc_CXX=yes
17234 no_undefined_flag_CXX=' -zdefs'
17235 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17236 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17237 $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'
17238
17239 hardcode_libdir_flag_spec_CXX='-R$libdir'
17240 hardcode_shlibpath_var_CXX=no
17241 case $host_os in
17242 solaris2.[0-5] | solaris2.[0-5].*) ;;
17243 *)
17244 # The compiler driver will combine and reorder linker options,
17245 # but understands `-z linker_flag'.
17246 # Supported since Solaris 2.6 (maybe 2.5.1?)
17247 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17248 ;;
17249 esac
17250 link_all_deplibs_CXX=yes
17251
cristyd0bd44a2010-09-24 12:38:11 +000017252 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000017253
17254 # Archives containing C++ object files must be created using
17255 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17256 # necessary to make sure instantiated templates are included
17257 # in the archive.
17258 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17259 ;;
17260 gcx*)
17261 # Green Hills C++ Compiler
17262 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17263
17264 # The C++ compiler must be used to create the archive.
17265 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17266 ;;
17267 *)
17268 # GNU C++ compiler with Solaris linker
17269 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17270 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17271 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17272 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17273 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17274 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17275
17276 # Commands to make compiler produce verbose output that lists
17277 # what "hidden" libraries, object files and flags are used when
17278 # linking a shared library.
cristyd0bd44a2010-09-24 12:38:11 +000017279 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017280 else
17281 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17282 # platform.
17283 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17284 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17285 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17286
17287 # Commands to make compiler produce verbose output that lists
17288 # what "hidden" libraries, object files and flags are used when
17289 # linking a shared library.
cristyd0bd44a2010-09-24 12:38:11 +000017290 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017291 fi
17292
17293 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17294 case $host_os in
17295 solaris2.[0-5] | solaris2.[0-5].*) ;;
17296 *)
17297 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17298 ;;
17299 esac
17300 fi
17301 ;;
17302 esac
17303 ;;
17304
17305 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17306 no_undefined_flag_CXX='${wl}-z,text'
17307 archive_cmds_need_lc_CXX=no
17308 hardcode_shlibpath_var_CXX=no
17309 runpath_var='LD_RUN_PATH'
17310
17311 case $cc_basename in
17312 CC*)
17313 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17314 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17315 ;;
17316 *)
17317 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17318 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17319 ;;
17320 esac
17321 ;;
17322
17323 sysv5* | sco3.2v5* | sco5v6*)
17324 # Note: We can NOT use -z defs as we might desire, because we do not
17325 # link with -lc, and that would cause any symbols used from libc to
17326 # always be unresolved, which means just about no library would
17327 # ever link correctly. If we're not using GNU ld we use -z text
17328 # though, which does catch some bad symbols but isn't as heavy-handed
17329 # as -z defs.
17330 no_undefined_flag_CXX='${wl}-z,text'
17331 allow_undefined_flag_CXX='${wl}-z,nodefs'
17332 archive_cmds_need_lc_CXX=no
17333 hardcode_shlibpath_var_CXX=no
17334 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17335 hardcode_libdir_separator_CXX=':'
17336 link_all_deplibs_CXX=yes
17337 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17338 runpath_var='LD_RUN_PATH'
17339
17340 case $cc_basename in
17341 CC*)
17342 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17343 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17344 ;;
17345 *)
17346 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17347 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17348 ;;
17349 esac
17350 ;;
17351
17352 tandem*)
17353 case $cc_basename in
17354 NCC*)
17355 # NonStop-UX NCC 3.20
17356 # FIXME: insert proper C++ library support
17357 ld_shlibs_CXX=no
17358 ;;
17359 *)
17360 # FIXME: insert proper C++ library support
17361 ld_shlibs_CXX=no
17362 ;;
17363 esac
17364 ;;
17365
17366 vxworks*)
17367 # FIXME: insert proper C++ library support
17368 ld_shlibs_CXX=no
17369 ;;
17370
17371 *)
17372 # FIXME: insert proper C++ library support
17373 ld_shlibs_CXX=no
17374 ;;
17375 esac
17376
cristy8b350f62009-11-15 23:12:43 +000017377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017378$as_echo "$ld_shlibs_CXX" >&6; }
17379 test "$ld_shlibs_CXX" = no && can_build_shared=no
17380
17381 GCC_CXX="$GXX"
17382 LD_CXX="$LD"
17383
17384 ## CAVEAT EMPTOR:
17385 ## There is no encapsulation within the following macros, do not change
17386 ## the running order or otherwise move them around unless you know exactly
17387 ## what you are doing...
17388 # Dependencies to place before and after the object being linked:
17389predep_objects_CXX=
17390postdep_objects_CXX=
17391predeps_CXX=
17392postdeps_CXX=
17393compiler_lib_search_path_CXX=
17394
17395cat > conftest.$ac_ext <<_LT_EOF
17396class Foo
17397{
17398public:
17399 Foo (void) { a = 0; }
17400private:
17401 int a;
17402};
17403_LT_EOF
17404
cristy8b350f62009-11-15 23:12:43 +000017405if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017406 (eval $ac_compile) 2>&5
17407 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17409 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000017410 # Parse the compiler output and extract the necessary
17411 # objects, libraries and library flags.
17412
17413 # Sentinel used to keep track of whether or not we are before
17414 # the conftest object file.
17415 pre_test_object_deps_done=no
17416
17417 for p in `eval "$output_verbose_link_cmd"`; do
17418 case $p in
17419
17420 -L* | -R* | -l*)
17421 # Some compilers place space between "-{L,R}" and the path.
17422 # Remove the space.
17423 if test $p = "-L" ||
17424 test $p = "-R"; then
17425 prev=$p
17426 continue
17427 else
17428 prev=
17429 fi
17430
17431 if test "$pre_test_object_deps_done" = no; then
17432 case $p in
17433 -L* | -R*)
17434 # Internal compiler library paths should come after those
17435 # provided the user. The postdeps already come after the
17436 # user supplied libs so there is no need to process them.
17437 if test -z "$compiler_lib_search_path_CXX"; then
17438 compiler_lib_search_path_CXX="${prev}${p}"
17439 else
17440 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17441 fi
17442 ;;
17443 # The "-l" case would never come before the object being
17444 # linked, so don't bother handling this case.
17445 esac
17446 else
17447 if test -z "$postdeps_CXX"; then
17448 postdeps_CXX="${prev}${p}"
17449 else
17450 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17451 fi
17452 fi
17453 ;;
17454
17455 *.$objext)
17456 # This assumes that the test object file only shows up
17457 # once in the compiler output.
17458 if test "$p" = "conftest.$objext"; then
17459 pre_test_object_deps_done=yes
17460 continue
17461 fi
17462
17463 if test "$pre_test_object_deps_done" = no; then
17464 if test -z "$predep_objects_CXX"; then
17465 predep_objects_CXX="$p"
17466 else
17467 predep_objects_CXX="$predep_objects_CXX $p"
17468 fi
17469 else
17470 if test -z "$postdep_objects_CXX"; then
17471 postdep_objects_CXX="$p"
17472 else
17473 postdep_objects_CXX="$postdep_objects_CXX $p"
17474 fi
17475 fi
17476 ;;
17477
17478 *) ;; # Ignore the rest.
17479
17480 esac
17481 done
17482
17483 # Clean up.
17484 rm -f a.out a.exe
17485else
17486 echo "libtool.m4: error: problem compiling CXX test program"
17487fi
17488
17489$RM -f confest.$objext
17490
17491# PORTME: override above test on systems where it is broken
17492case $host_os in
17493interix[3-9]*)
17494 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17495 # hack all around it, let's just trust "g++" to DTRT.
17496 predep_objects_CXX=
17497 postdep_objects_CXX=
17498 postdeps_CXX=
17499 ;;
17500
17501linux*)
17502 case `$CC -V 2>&1 | sed 5q` in
17503 *Sun\ C*)
17504 # Sun C++ 5.9
17505
17506 # The more standards-conforming stlport4 library is
17507 # incompatible with the Cstd library. Avoid specifying
17508 # it if it's in CXXFLAGS. Ignore libCrun as
17509 # -library=stlport4 depends on it.
17510 case " $CXX $CXXFLAGS " in
17511 *" -library=stlport4 "*)
17512 solaris_use_stlport4=yes
17513 ;;
17514 esac
17515
17516 if test "$solaris_use_stlport4" != yes; then
17517 postdeps_CXX='-library=Cstd -library=Crun'
17518 fi
17519 ;;
17520 esac
17521 ;;
17522
17523solaris*)
17524 case $cc_basename in
cristyd0bd44a2010-09-24 12:38:11 +000017525 CC*)
cristy3ed852e2009-09-05 21:47:34 +000017526 # The more standards-conforming stlport4 library is
17527 # incompatible with the Cstd library. Avoid specifying
17528 # it if it's in CXXFLAGS. Ignore libCrun as
17529 # -library=stlport4 depends on it.
17530 case " $CXX $CXXFLAGS " in
17531 *" -library=stlport4 "*)
17532 solaris_use_stlport4=yes
17533 ;;
17534 esac
17535
17536 # Adding this requires a known-good setup of shared libraries for
17537 # Sun compiler versions before 5.6, else PIC objects from an old
17538 # archive will be linked into the output, leading to subtle bugs.
17539 if test "$solaris_use_stlport4" != yes; then
17540 postdeps_CXX='-library=Cstd -library=Crun'
17541 fi
17542 ;;
17543 esac
17544 ;;
17545esac
17546
17547
17548case " $postdeps_CXX " in
17549*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17550esac
17551 compiler_lib_search_dirs_CXX=
17552if test -n "${compiler_lib_search_path_CXX}"; then
17553 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17554fi
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
17583
17584
17585
17586 lt_prog_compiler_wl_CXX=
17587lt_prog_compiler_pic_CXX=
17588lt_prog_compiler_static_CXX=
17589
cristy8b350f62009-11-15 23:12:43 +000017590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000017591$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17592
17593 # C++ specific cases for pic, static, wl, etc.
17594 if test "$GXX" = yes; then
17595 lt_prog_compiler_wl_CXX='-Wl,'
17596 lt_prog_compiler_static_CXX='-static'
17597
17598 case $host_os in
17599 aix*)
17600 # All AIX code is PIC.
17601 if test "$host_cpu" = ia64; then
17602 # AIX 5 now supports IA64 processor
17603 lt_prog_compiler_static_CXX='-Bstatic'
17604 fi
17605 ;;
17606
17607 amigaos*)
17608 case $host_cpu in
17609 powerpc)
17610 # see comment about AmigaOS4 .so support
17611 lt_prog_compiler_pic_CXX='-fPIC'
17612 ;;
17613 m68k)
17614 # FIXME: we need at least 68020 code to build shared libraries, but
17615 # adding the `-m68020' flag to GCC prevents building anything better,
17616 # like `-m68040'.
17617 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17618 ;;
17619 esac
17620 ;;
17621
17622 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17623 # PIC is the default for these OSes.
17624 ;;
17625 mingw* | cygwin* | os2* | pw32* | cegcc*)
17626 # This hack is so that the source file can tell whether it is being
17627 # built for inclusion in a dll (and should export symbols for example).
17628 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17629 # (--disable-auto-import) libraries
17630 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17631 ;;
17632 darwin* | rhapsody*)
17633 # PIC is the default on this platform
17634 # Common symbols not allowed in MH_DYLIB files
17635 lt_prog_compiler_pic_CXX='-fno-common'
17636 ;;
17637 *djgpp*)
17638 # DJGPP does not support shared libraries at all
17639 lt_prog_compiler_pic_CXX=
17640 ;;
17641 interix[3-9]*)
17642 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17643 # Instead, we relocate shared libraries at runtime.
17644 ;;
17645 sysv4*MP*)
17646 if test -d /usr/nec; then
17647 lt_prog_compiler_pic_CXX=-Kconform_pic
17648 fi
17649 ;;
17650 hpux*)
17651 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17652 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17653 # sets the default TLS model and affects inlining.
17654 case $host_cpu in
17655 hppa*64*)
17656 ;;
17657 *)
17658 lt_prog_compiler_pic_CXX='-fPIC'
17659 ;;
17660 esac
17661 ;;
17662 *qnx* | *nto*)
17663 # QNX uses GNU C++, but need to define -shared option too, otherwise
17664 # it will coredump.
17665 lt_prog_compiler_pic_CXX='-fPIC -shared'
17666 ;;
17667 *)
17668 lt_prog_compiler_pic_CXX='-fPIC'
17669 ;;
17670 esac
17671 else
17672 case $host_os in
17673 aix[4-9]*)
17674 # All AIX code is PIC.
17675 if test "$host_cpu" = ia64; then
17676 # AIX 5 now supports IA64 processor
17677 lt_prog_compiler_static_CXX='-Bstatic'
17678 else
17679 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17680 fi
17681 ;;
17682 chorus*)
17683 case $cc_basename in
17684 cxch68*)
17685 # Green Hills C++ Compiler
17686 # _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"
17687 ;;
17688 esac
17689 ;;
17690 dgux*)
17691 case $cc_basename in
17692 ec++*)
17693 lt_prog_compiler_pic_CXX='-KPIC'
17694 ;;
17695 ghcx*)
17696 # Green Hills C++ Compiler
17697 lt_prog_compiler_pic_CXX='-pic'
17698 ;;
17699 *)
17700 ;;
17701 esac
17702 ;;
17703 freebsd* | dragonfly*)
17704 # FreeBSD uses GNU C++
17705 ;;
17706 hpux9* | hpux10* | hpux11*)
17707 case $cc_basename in
17708 CC*)
17709 lt_prog_compiler_wl_CXX='-Wl,'
17710 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17711 if test "$host_cpu" != ia64; then
17712 lt_prog_compiler_pic_CXX='+Z'
17713 fi
17714 ;;
17715 aCC*)
17716 lt_prog_compiler_wl_CXX='-Wl,'
17717 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17718 case $host_cpu in
17719 hppa*64*|ia64*)
17720 # +Z the default
17721 ;;
17722 *)
17723 lt_prog_compiler_pic_CXX='+Z'
17724 ;;
17725 esac
17726 ;;
17727 *)
17728 ;;
17729 esac
17730 ;;
17731 interix*)
17732 # This is c89, which is MS Visual C++ (no shared libs)
17733 # Anyone wants to do a port?
17734 ;;
17735 irix5* | irix6* | nonstopux*)
17736 case $cc_basename in
17737 CC*)
17738 lt_prog_compiler_wl_CXX='-Wl,'
17739 lt_prog_compiler_static_CXX='-non_shared'
17740 # CC pic flag -KPIC is the default.
17741 ;;
17742 *)
17743 ;;
17744 esac
17745 ;;
cristyd0bd44a2010-09-24 12:38:11 +000017746 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017747 case $cc_basename in
17748 KCC*)
17749 # KAI C++ Compiler
17750 lt_prog_compiler_wl_CXX='--backend -Wl,'
17751 lt_prog_compiler_pic_CXX='-fPIC'
17752 ;;
17753 ecpc* )
17754 # old Intel C++ for x86_64 which still supported -KPIC.
17755 lt_prog_compiler_wl_CXX='-Wl,'
17756 lt_prog_compiler_pic_CXX='-KPIC'
17757 lt_prog_compiler_static_CXX='-static'
17758 ;;
17759 icpc* )
17760 # Intel C++, used to be incompatible with GCC.
17761 # ICC 10 doesn't accept -KPIC any more.
17762 lt_prog_compiler_wl_CXX='-Wl,'
17763 lt_prog_compiler_pic_CXX='-fPIC'
17764 lt_prog_compiler_static_CXX='-static'
17765 ;;
17766 pgCC* | pgcpp*)
17767 # Portland Group C++ compiler
17768 lt_prog_compiler_wl_CXX='-Wl,'
17769 lt_prog_compiler_pic_CXX='-fpic'
17770 lt_prog_compiler_static_CXX='-Bstatic'
17771 ;;
17772 cxx*)
17773 # Compaq C++
17774 # Make sure the PIC flag is empty. It appears that all Alpha
17775 # Linux and Compaq Tru64 Unix objects are PIC.
17776 lt_prog_compiler_pic_CXX=
17777 lt_prog_compiler_static_CXX='-non_shared'
17778 ;;
cristyd0bd44a2010-09-24 12:38:11 +000017779 xlc* | xlC*)
17780 # IBM XL 8.0 on PPC
cristy3ed852e2009-09-05 21:47:34 +000017781 lt_prog_compiler_wl_CXX='-Wl,'
17782 lt_prog_compiler_pic_CXX='-qpic'
17783 lt_prog_compiler_static_CXX='-qstaticlink'
17784 ;;
17785 *)
17786 case `$CC -V 2>&1 | sed 5q` in
17787 *Sun\ C*)
17788 # Sun C++ 5.9
17789 lt_prog_compiler_pic_CXX='-KPIC'
17790 lt_prog_compiler_static_CXX='-Bstatic'
17791 lt_prog_compiler_wl_CXX='-Qoption ld '
17792 ;;
17793 esac
17794 ;;
17795 esac
17796 ;;
17797 lynxos*)
17798 ;;
17799 m88k*)
17800 ;;
17801 mvs*)
17802 case $cc_basename in
17803 cxx*)
17804 lt_prog_compiler_pic_CXX='-W c,exportall'
17805 ;;
17806 *)
17807 ;;
17808 esac
17809 ;;
17810 netbsd*)
17811 ;;
17812 *qnx* | *nto*)
17813 # QNX uses GNU C++, but need to define -shared option too, otherwise
17814 # it will coredump.
17815 lt_prog_compiler_pic_CXX='-fPIC -shared'
17816 ;;
17817 osf3* | osf4* | osf5*)
17818 case $cc_basename in
17819 KCC*)
17820 lt_prog_compiler_wl_CXX='--backend -Wl,'
17821 ;;
17822 RCC*)
17823 # Rational C++ 2.4.1
17824 lt_prog_compiler_pic_CXX='-pic'
17825 ;;
17826 cxx*)
17827 # Digital/Compaq C++
17828 lt_prog_compiler_wl_CXX='-Wl,'
17829 # Make sure the PIC flag is empty. It appears that all Alpha
17830 # Linux and Compaq Tru64 Unix objects are PIC.
17831 lt_prog_compiler_pic_CXX=
17832 lt_prog_compiler_static_CXX='-non_shared'
17833 ;;
17834 *)
17835 ;;
17836 esac
17837 ;;
17838 psos*)
17839 ;;
17840 solaris*)
17841 case $cc_basename in
cristyd0bd44a2010-09-24 12:38:11 +000017842 CC*)
cristy3ed852e2009-09-05 21:47:34 +000017843 # Sun C++ 4.2, 5.x and Centerline C++
17844 lt_prog_compiler_pic_CXX='-KPIC'
17845 lt_prog_compiler_static_CXX='-Bstatic'
17846 lt_prog_compiler_wl_CXX='-Qoption ld '
17847 ;;
17848 gcx*)
17849 # Green Hills C++ Compiler
17850 lt_prog_compiler_pic_CXX='-PIC'
17851 ;;
17852 *)
17853 ;;
17854 esac
17855 ;;
17856 sunos4*)
17857 case $cc_basename in
17858 CC*)
17859 # Sun C++ 4.x
17860 lt_prog_compiler_pic_CXX='-pic'
17861 lt_prog_compiler_static_CXX='-Bstatic'
17862 ;;
17863 lcc*)
17864 # Lucid
17865 lt_prog_compiler_pic_CXX='-pic'
17866 ;;
17867 *)
17868 ;;
17869 esac
17870 ;;
17871 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17872 case $cc_basename in
17873 CC*)
17874 lt_prog_compiler_wl_CXX='-Wl,'
17875 lt_prog_compiler_pic_CXX='-KPIC'
17876 lt_prog_compiler_static_CXX='-Bstatic'
17877 ;;
17878 esac
17879 ;;
17880 tandem*)
17881 case $cc_basename in
17882 NCC*)
17883 # NonStop-UX NCC 3.20
17884 lt_prog_compiler_pic_CXX='-KPIC'
17885 ;;
17886 *)
17887 ;;
17888 esac
17889 ;;
17890 vxworks*)
17891 ;;
17892 *)
17893 lt_prog_compiler_can_build_shared_CXX=no
17894 ;;
17895 esac
17896 fi
17897
17898case $host_os in
17899 # For platforms which do not support PIC, -DPIC is meaningless:
17900 *djgpp*)
17901 lt_prog_compiler_pic_CXX=
17902 ;;
17903 *)
17904 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17905 ;;
17906esac
cristy8b350f62009-11-15 23:12:43 +000017907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017908$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17909
17910
17911
17912#
17913# Check to make sure the PIC flag actually works.
17914#
17915if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000017916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017917$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017918if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017919 $as_echo_n "(cached) " >&6
17920else
17921 lt_cv_prog_compiler_pic_works_CXX=no
17922 ac_outfile=conftest.$ac_objext
17923 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17924 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17925 # Insert the option either (1) after the last *FLAGS variable, or
17926 # (2) before a word containing "conftest.", or (3) at the end.
17927 # Note that $ac_compile itself does not contain backslashes and begins
17928 # with a dollar sign (not a hyphen), so the echo should work correctly.
17929 # The option is referenced via a variable to avoid confusing sed.
17930 lt_compile=`echo "$ac_compile" | $SED \
17931 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17932 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17933 -e 's:$: $lt_compiler_flag:'`
cristyd0bd44a2010-09-24 12:38:11 +000017934 (eval echo "\"\$as_me:17934: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017935 (eval "$lt_compile" 2>conftest.err)
17936 ac_status=$?
17937 cat conftest.err >&5
cristyd0bd44a2010-09-24 12:38:11 +000017938 echo "$as_me:17938: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017939 if (exit $ac_status) && test -s "$ac_outfile"; then
17940 # The compiler can only warn and ignore the option if not recognized
17941 # So say no if there are warnings other than the usual output.
cristyd0bd44a2010-09-24 12:38:11 +000017942 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017943 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17944 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17945 lt_cv_prog_compiler_pic_works_CXX=yes
17946 fi
17947 fi
17948 $RM conftest*
17949
17950fi
cristy8b350f62009-11-15 23:12:43 +000017951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017952$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17953
17954if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17955 case $lt_prog_compiler_pic_CXX in
17956 "" | " "*) ;;
17957 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17958 esac
17959else
17960 lt_prog_compiler_pic_CXX=
17961 lt_prog_compiler_can_build_shared_CXX=no
17962fi
17963
17964fi
17965
17966
17967
17968#
17969# Check to make sure the static flag actually works.
17970#
17971wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000017972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017973$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017974if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017975 $as_echo_n "(cached) " >&6
17976else
17977 lt_cv_prog_compiler_static_works_CXX=no
17978 save_LDFLAGS="$LDFLAGS"
17979 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17980 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17981 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17982 # The linker can only warn and ignore the option if not recognized
17983 # So say no if there are warnings
17984 if test -s conftest.err; then
17985 # Append any errors to the config.log.
17986 cat conftest.err 1>&5
cristyd0bd44a2010-09-24 12:38:11 +000017987 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017988 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17989 if diff conftest.exp conftest.er2 >/dev/null; then
17990 lt_cv_prog_compiler_static_works_CXX=yes
17991 fi
17992 else
17993 lt_cv_prog_compiler_static_works_CXX=yes
17994 fi
17995 fi
17996 $RM -r conftest*
17997 LDFLAGS="$save_LDFLAGS"
17998
17999fi
cristy8b350f62009-11-15 23:12:43 +000018000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018001$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18002
18003if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18004 :
18005else
18006 lt_prog_compiler_static_CXX=
18007fi
18008
18009
18010
18011
cristy8b350f62009-11-15 23:12:43 +000018012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000018013$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018014if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018015 $as_echo_n "(cached) " >&6
18016else
18017 lt_cv_prog_compiler_c_o_CXX=no
18018 $RM -r conftest 2>/dev/null
18019 mkdir conftest
18020 cd conftest
18021 mkdir out
18022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18023
18024 lt_compiler_flag="-o out/conftest2.$ac_objext"
18025 # Insert the option either (1) after the last *FLAGS variable, or
18026 # (2) before a word containing "conftest.", or (3) at the end.
18027 # Note that $ac_compile itself does not contain backslashes and begins
18028 # with a dollar sign (not a hyphen), so the echo should work correctly.
18029 lt_compile=`echo "$ac_compile" | $SED \
18030 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18031 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18032 -e 's:$: $lt_compiler_flag:'`
cristyd0bd44a2010-09-24 12:38:11 +000018033 (eval echo "\"\$as_me:18033: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018034 (eval "$lt_compile" 2>out/conftest.err)
18035 ac_status=$?
18036 cat out/conftest.err >&5
cristyd0bd44a2010-09-24 12:38:11 +000018037 echo "$as_me:18037: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018038 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18039 then
18040 # The compiler can only warn and ignore the option if not recognized
18041 # So say no if there are warnings
cristyd0bd44a2010-09-24 12:38:11 +000018042 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000018043 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18044 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18045 lt_cv_prog_compiler_c_o_CXX=yes
18046 fi
18047 fi
18048 chmod u+w . 2>&5
18049 $RM conftest*
18050 # SGI C++ compiler will create directory out/ii_files/ for
18051 # template instantiation
18052 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18053 $RM out/* && rmdir out
18054 cd ..
18055 $RM -r conftest
18056 $RM conftest*
18057
18058fi
cristy8b350f62009-11-15 23:12:43 +000018059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018060$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18061
18062
18063
cristy8b350f62009-11-15 23:12:43 +000018064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000018065$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018066if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018067 $as_echo_n "(cached) " >&6
18068else
18069 lt_cv_prog_compiler_c_o_CXX=no
18070 $RM -r conftest 2>/dev/null
18071 mkdir conftest
18072 cd conftest
18073 mkdir out
18074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18075
18076 lt_compiler_flag="-o out/conftest2.$ac_objext"
18077 # Insert the option either (1) after the last *FLAGS variable, or
18078 # (2) before a word containing "conftest.", or (3) at the end.
18079 # Note that $ac_compile itself does not contain backslashes and begins
18080 # with a dollar sign (not a hyphen), so the echo should work correctly.
18081 lt_compile=`echo "$ac_compile" | $SED \
18082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18084 -e 's:$: $lt_compiler_flag:'`
cristyd0bd44a2010-09-24 12:38:11 +000018085 (eval echo "\"\$as_me:18085: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018086 (eval "$lt_compile" 2>out/conftest.err)
18087 ac_status=$?
18088 cat out/conftest.err >&5
cristyd0bd44a2010-09-24 12:38:11 +000018089 echo "$as_me:18089: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018090 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18091 then
18092 # The compiler can only warn and ignore the option if not recognized
18093 # So say no if there are warnings
cristyd0bd44a2010-09-24 12:38:11 +000018094 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000018095 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18096 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18097 lt_cv_prog_compiler_c_o_CXX=yes
18098 fi
18099 fi
18100 chmod u+w . 2>&5
18101 $RM conftest*
18102 # SGI C++ compiler will create directory out/ii_files/ for
18103 # template instantiation
18104 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18105 $RM out/* && rmdir out
18106 cd ..
18107 $RM -r conftest
18108 $RM conftest*
18109
18110fi
cristy8b350f62009-11-15 23:12:43 +000018111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018112$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18113
18114
18115
18116
18117hard_links="nottested"
18118if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18119 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000018120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000018121$as_echo_n "checking if we can lock with hard links... " >&6; }
18122 hard_links=yes
18123 $RM conftest*
18124 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18125 touch conftest.a
18126 ln conftest.a conftest.b 2>&5 || hard_links=no
18127 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000018128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000018129$as_echo "$hard_links" >&6; }
18130 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000018131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cristy3ed852e2009-09-05 21:47:34 +000018132$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18133 need_locks=warn
18134 fi
18135else
18136 need_locks=no
18137fi
18138
18139
18140
cristy8b350f62009-11-15 23:12:43 +000018141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000018142$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18143
18144 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18145 case $host_os in
18146 aix[4-9]*)
18147 # If we're using GNU nm, then we don't want the "-C" option.
18148 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18149 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristyd0bd44a2010-09-24 12:38:11 +000018150 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'
cristy3ed852e2009-09-05 21:47:34 +000018151 else
18152 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'
18153 fi
18154 ;;
18155 pw32*)
18156 export_symbols_cmds_CXX="$ltdll_cmds"
18157 ;;
18158 cygwin* | mingw* | cegcc*)
18159 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'
18160 ;;
18161 *)
18162 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18163 ;;
18164 esac
18165 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18166
cristy8b350f62009-11-15 23:12:43 +000018167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018168$as_echo "$ld_shlibs_CXX" >&6; }
18169test "$ld_shlibs_CXX" = no && can_build_shared=no
18170
18171with_gnu_ld_CXX=$with_gnu_ld
18172
18173
18174
18175
18176
18177
18178#
18179# Do we need to explicitly link libc?
18180#
18181case "x$archive_cmds_need_lc_CXX" in
18182x|xyes)
18183 # Assume -lc should be added
18184 archive_cmds_need_lc_CXX=yes
18185
18186 if test "$enable_shared" = yes && test "$GCC" = yes; then
18187 case $archive_cmds_CXX in
18188 *'~'*)
18189 # FIXME: we may have to deal with multi-command sequences.
18190 ;;
18191 '$CC '*)
18192 # Test whether the compiler implicitly links with -lc since on some
18193 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18194 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000018195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000018196$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyd0bd44a2010-09-24 12:38:11 +000018197 $RM conftest*
18198 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018199
cristyd0bd44a2010-09-24 12:38:11 +000018200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018201 (eval $ac_compile) 2>&5
18202 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18204 test $ac_status = 0; } 2>conftest.err; then
cristyd0bd44a2010-09-24 12:38:11 +000018205 soname=conftest
18206 lib=conftest
18207 libobjs=conftest.$ac_objext
18208 deplibs=
18209 wl=$lt_prog_compiler_wl_CXX
18210 pic_flag=$lt_prog_compiler_pic_CXX
18211 compiler_flags=-v
18212 linker_flags=-v
18213 verstring=
18214 output_objdir=.
18215 libname=conftest
18216 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18217 allow_undefined_flag_CXX=
18218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018219 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18220 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18222 test $ac_status = 0; }
cristyd0bd44a2010-09-24 12:38:11 +000018223 then
18224 archive_cmds_need_lc_CXX=no
18225 else
18226 archive_cmds_need_lc_CXX=yes
18227 fi
18228 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18229 else
18230 cat conftest.err 1>&5
18231 fi
18232 $RM conftest*
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
18234$as_echo "$archive_cmds_need_lc_CXX" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000018235 ;;
18236 esac
18237 fi
18238 ;;
18239esac
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
18301
18302
18303
cristy8b350f62009-11-15 23:12:43 +000018304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000018305$as_echo_n "checking dynamic linker characteristics... " >&6; }
18306
18307library_names_spec=
18308libname_spec='lib$name'
18309soname_spec=
18310shrext_cmds=".so"
18311postinstall_cmds=
18312postuninstall_cmds=
18313finish_cmds=
18314finish_eval=
18315shlibpath_var=
18316shlibpath_overrides_runpath=unknown
18317version_type=none
18318dynamic_linker="$host_os ld.so"
18319sys_lib_dlsearch_path_spec="/lib /usr/lib"
18320need_lib_prefix=unknown
18321hardcode_into_libs=no
18322
18323# when you set need_version to no, make sure it does not cause -set_version
18324# flags to be left without arguments
18325need_version=unknown
18326
18327case $host_os in
18328aix3*)
18329 version_type=linux
18330 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18331 shlibpath_var=LIBPATH
18332
18333 # AIX 3 has no versioning support, so we append a major version to the name.
18334 soname_spec='${libname}${release}${shared_ext}$major'
18335 ;;
18336
18337aix[4-9]*)
18338 version_type=linux
18339 need_lib_prefix=no
18340 need_version=no
18341 hardcode_into_libs=yes
18342 if test "$host_cpu" = ia64; then
18343 # AIX 5 supports IA64
18344 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18345 shlibpath_var=LD_LIBRARY_PATH
18346 else
18347 # With GCC up to 2.95.x, collect2 would create an import file
18348 # for dependence libraries. The import file would start with
18349 # the line `#! .'. This would cause the generated library to
18350 # depend on `.', always an invalid library. This was fixed in
18351 # development snapshots of GCC prior to 3.0.
18352 case $host_os in
18353 aix4 | aix4.[01] | aix4.[01].*)
18354 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18355 echo ' yes '
18356 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18357 :
18358 else
18359 can_build_shared=no
18360 fi
18361 ;;
18362 esac
18363 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18364 # soname into executable. Probably we can add versioning support to
18365 # collect2, so additional links can be useful in future.
18366 if test "$aix_use_runtimelinking" = yes; then
18367 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18368 # instead of lib<name>.a to let people know that these are not
18369 # typical AIX shared libraries.
18370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18371 else
18372 # We preserve .a as extension for shared libraries through AIX4.2
18373 # and later when we are not doing run time linking.
18374 library_names_spec='${libname}${release}.a $libname.a'
18375 soname_spec='${libname}${release}${shared_ext}$major'
18376 fi
18377 shlibpath_var=LIBPATH
18378 fi
18379 ;;
18380
18381amigaos*)
18382 case $host_cpu in
18383 powerpc)
18384 # Since July 2007 AmigaOS4 officially supports .so libraries.
18385 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18387 ;;
18388 m68k)
18389 library_names_spec='$libname.ixlibrary $libname.a'
18390 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristyd0bd44a2010-09-24 12:38:11 +000018391 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'
cristy3ed852e2009-09-05 21:47:34 +000018392 ;;
18393 esac
18394 ;;
18395
18396beos*)
18397 library_names_spec='${libname}${shared_ext}'
18398 dynamic_linker="$host_os ld.so"
18399 shlibpath_var=LIBRARY_PATH
18400 ;;
18401
18402bsdi[45]*)
18403 version_type=linux
18404 need_version=no
18405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18406 soname_spec='${libname}${release}${shared_ext}$major'
18407 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18408 shlibpath_var=LD_LIBRARY_PATH
18409 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18410 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18411 # the default ld.so.conf also contains /usr/contrib/lib and
18412 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18413 # libtool to hard-code these into programs
18414 ;;
18415
18416cygwin* | mingw* | pw32* | cegcc*)
18417 version_type=windows
18418 shrext_cmds=".dll"
18419 need_version=no
18420 need_lib_prefix=no
18421
18422 case $GCC,$host_os in
18423 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18424 library_names_spec='$libname.dll.a'
18425 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18426 postinstall_cmds='base_file=`basename \${file}`~
18427 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18428 dldir=$destdir/`dirname \$dlpath`~
18429 test -d \$dldir || mkdir -p \$dldir~
18430 $install_prog $dir/$dlname \$dldir/$dlname~
18431 chmod a+x \$dldir/$dlname~
18432 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18433 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18434 fi'
18435 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18436 dlpath=$dir/\$dldll~
18437 $RM \$dlpath'
18438 shlibpath_overrides_runpath=yes
18439
18440 case $host_os in
18441 cygwin*)
18442 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18443 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristyd0bd44a2010-09-24 12:38:11 +000018444 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000018445 ;;
18446 mingw* | cegcc*)
18447 # MinGW DLLs use traditional 'lib' prefix
18448 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristyd0bd44a2010-09-24 12:38:11 +000018449 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18450 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18451 # It is most probably a Windows format PATH printed by
18452 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18453 # path with ; separators, and with drive letters. We can handle the
18454 # drive letters (cygwin fileutils understands them), so leave them,
18455 # especially as we might pass files found there to a mingw objdump,
18456 # which wouldn't understand a cygwinified path. Ahh.
18457 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18458 else
18459 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18460 fi
cristy3ed852e2009-09-05 21:47:34 +000018461 ;;
18462 pw32*)
18463 # pw32 DLLs use 'pw' prefix rather than 'lib'
18464 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18465 ;;
18466 esac
18467 ;;
18468
18469 *)
18470 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18471 ;;
18472 esac
18473 dynamic_linker='Win32 ld.exe'
18474 # FIXME: first we should search . and the directory the executable is in
18475 shlibpath_var=PATH
18476 ;;
18477
18478darwin* | rhapsody*)
18479 dynamic_linker="$host_os dyld"
18480 version_type=darwin
18481 need_lib_prefix=no
18482 need_version=no
18483 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18484 soname_spec='${libname}${release}${major}$shared_ext'
18485 shlibpath_overrides_runpath=yes
18486 shlibpath_var=DYLD_LIBRARY_PATH
18487 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18488
18489 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18490 ;;
18491
18492dgux*)
18493 version_type=linux
18494 need_lib_prefix=no
18495 need_version=no
18496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18497 soname_spec='${libname}${release}${shared_ext}$major'
18498 shlibpath_var=LD_LIBRARY_PATH
18499 ;;
18500
18501freebsd1*)
18502 dynamic_linker=no
18503 ;;
18504
18505freebsd* | dragonfly*)
18506 # DragonFly does not have aout. When/if they implement a new
18507 # versioning mechanism, adjust this.
18508 if test -x /usr/bin/objformat; then
18509 objformat=`/usr/bin/objformat`
18510 else
18511 case $host_os in
18512 freebsd[123]*) objformat=aout ;;
18513 *) objformat=elf ;;
18514 esac
18515 fi
18516 version_type=freebsd-$objformat
18517 case $version_type in
18518 freebsd-elf*)
18519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18520 need_version=no
18521 need_lib_prefix=no
18522 ;;
18523 freebsd-*)
18524 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18525 need_version=yes
18526 ;;
18527 esac
18528 shlibpath_var=LD_LIBRARY_PATH
18529 case $host_os in
18530 freebsd2*)
18531 shlibpath_overrides_runpath=yes
18532 ;;
18533 freebsd3.[01]* | freebsdelf3.[01]*)
18534 shlibpath_overrides_runpath=yes
18535 hardcode_into_libs=yes
18536 ;;
18537 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18538 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18539 shlibpath_overrides_runpath=no
18540 hardcode_into_libs=yes
18541 ;;
18542 *) # from 4.6 on, and DragonFly
18543 shlibpath_overrides_runpath=yes
18544 hardcode_into_libs=yes
18545 ;;
18546 esac
18547 ;;
18548
18549gnu*)
18550 version_type=linux
18551 need_lib_prefix=no
18552 need_version=no
18553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18554 soname_spec='${libname}${release}${shared_ext}$major'
18555 shlibpath_var=LD_LIBRARY_PATH
18556 hardcode_into_libs=yes
18557 ;;
18558
18559hpux9* | hpux10* | hpux11*)
18560 # Give a soname corresponding to the major version so that dld.sl refuses to
18561 # link against other versions.
18562 version_type=sunos
18563 need_lib_prefix=no
18564 need_version=no
18565 case $host_cpu in
18566 ia64*)
18567 shrext_cmds='.so'
18568 hardcode_into_libs=yes
18569 dynamic_linker="$host_os dld.so"
18570 shlibpath_var=LD_LIBRARY_PATH
18571 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18573 soname_spec='${libname}${release}${shared_ext}$major'
18574 if test "X$HPUX_IA64_MODE" = X32; then
18575 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18576 else
18577 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18578 fi
18579 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18580 ;;
18581 hppa*64*)
18582 shrext_cmds='.sl'
18583 hardcode_into_libs=yes
18584 dynamic_linker="$host_os dld.sl"
18585 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18586 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18588 soname_spec='${libname}${release}${shared_ext}$major'
18589 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18590 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18591 ;;
18592 *)
18593 shrext_cmds='.sl'
18594 dynamic_linker="$host_os dld.sl"
18595 shlibpath_var=SHLIB_PATH
18596 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18598 soname_spec='${libname}${release}${shared_ext}$major'
18599 ;;
18600 esac
cristyd0bd44a2010-09-24 12:38:11 +000018601 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000018602 postinstall_cmds='chmod 555 $lib'
18603 ;;
18604
18605interix[3-9]*)
18606 version_type=linux
18607 need_lib_prefix=no
18608 need_version=no
18609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18610 soname_spec='${libname}${release}${shared_ext}$major'
18611 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18612 shlibpath_var=LD_LIBRARY_PATH
18613 shlibpath_overrides_runpath=no
18614 hardcode_into_libs=yes
18615 ;;
18616
18617irix5* | irix6* | nonstopux*)
18618 case $host_os in
18619 nonstopux*) version_type=nonstopux ;;
18620 *)
18621 if test "$lt_cv_prog_gnu_ld" = yes; then
18622 version_type=linux
18623 else
18624 version_type=irix
18625 fi ;;
18626 esac
18627 need_lib_prefix=no
18628 need_version=no
18629 soname_spec='${libname}${release}${shared_ext}$major'
18630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18631 case $host_os in
18632 irix5* | nonstopux*)
18633 libsuff= shlibsuff=
18634 ;;
18635 *)
18636 case $LD in # libtool.m4 will add one of these switches to LD
18637 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18638 libsuff= shlibsuff= libmagic=32-bit;;
18639 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18640 libsuff=32 shlibsuff=N32 libmagic=N32;;
18641 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18642 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18643 *) libsuff= shlibsuff= libmagic=never-match;;
18644 esac
18645 ;;
18646 esac
18647 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18648 shlibpath_overrides_runpath=no
18649 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18650 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18651 hardcode_into_libs=yes
18652 ;;
18653
18654# No shared lib support for Linux oldld, aout, or coff.
18655linux*oldld* | linux*aout* | linux*coff*)
18656 dynamic_linker=no
18657 ;;
18658
18659# This must be Linux ELF.
cristyd0bd44a2010-09-24 12:38:11 +000018660linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018661 version_type=linux
18662 need_lib_prefix=no
18663 need_version=no
18664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18665 soname_spec='${libname}${release}${shared_ext}$major'
18666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18667 shlibpath_var=LD_LIBRARY_PATH
18668 shlibpath_overrides_runpath=no
18669 # Some binutils ld are patched to set DT_RUNPATH
cristyd0bd44a2010-09-24 12:38:11 +000018670 save_LDFLAGS=$LDFLAGS
18671 save_libdir=$libdir
18672 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18673 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018675/* end confdefs.h. */
18676
18677int
18678main ()
18679{
18680
18681 ;
18682 return 0;
18683}
18684_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018685if ac_fn_cxx_try_link "$LINENO"; then :
18686 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristyd0bd44a2010-09-24 12:38:11 +000018687 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000018688fi
cristy3ed852e2009-09-05 21:47:34 +000018689fi
cristy8b350f62009-11-15 23:12:43 +000018690rm -f core conftest.err conftest.$ac_objext \
18691 conftest$ac_exeext conftest.$ac_ext
cristyd0bd44a2010-09-24 12:38:11 +000018692 LDFLAGS=$save_LDFLAGS
18693 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000018694
18695 # This implies no fast_install, which is unacceptable.
18696 # Some rework will be needed to allow for fast_install
18697 # before this can be enabled.
18698 hardcode_into_libs=yes
18699
cristy679ed8e2009-12-05 02:37:41 +000018700 # Add ABI-specific directories to the system library path.
18701 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18702
cristy3ed852e2009-09-05 21:47:34 +000018703 # Append ld.so.conf contents to the search path
18704 if test -f /etc/ld.so.conf; then
cristyd0bd44a2010-09-24 12:38:11 +000018705 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' ' '`
cristy679ed8e2009-12-05 02:37:41 +000018706 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000018707 fi
18708
18709 # We used to test for /lib/ld.so.1 and disable shared libraries on
18710 # powerpc, because MkLinux only supported shared libraries with the
18711 # GNU dynamic linker. Since this was broken with cross compilers,
18712 # most powerpc-linux boxes support dynamic linking these days and
18713 # people can always --disable-shared, the test was removed, and we
18714 # assume the GNU/Linux dynamic linker is in use.
18715 dynamic_linker='GNU/Linux ld.so'
18716 ;;
18717
18718netbsd*)
18719 version_type=sunos
18720 need_lib_prefix=no
18721 need_version=no
18722 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18724 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18725 dynamic_linker='NetBSD (a.out) ld.so'
18726 else
18727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18728 soname_spec='${libname}${release}${shared_ext}$major'
18729 dynamic_linker='NetBSD ld.elf_so'
18730 fi
18731 shlibpath_var=LD_LIBRARY_PATH
18732 shlibpath_overrides_runpath=yes
18733 hardcode_into_libs=yes
18734 ;;
18735
18736newsos6)
18737 version_type=linux
18738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18739 shlibpath_var=LD_LIBRARY_PATH
18740 shlibpath_overrides_runpath=yes
18741 ;;
18742
18743*nto* | *qnx*)
18744 version_type=qnx
18745 need_lib_prefix=no
18746 need_version=no
18747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18748 soname_spec='${libname}${release}${shared_ext}$major'
18749 shlibpath_var=LD_LIBRARY_PATH
18750 shlibpath_overrides_runpath=no
18751 hardcode_into_libs=yes
18752 dynamic_linker='ldqnx.so'
18753 ;;
18754
18755openbsd*)
18756 version_type=sunos
18757 sys_lib_dlsearch_path_spec="/usr/lib"
18758 need_lib_prefix=no
18759 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18760 case $host_os in
18761 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18762 *) need_version=no ;;
18763 esac
18764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18766 shlibpath_var=LD_LIBRARY_PATH
18767 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18768 case $host_os in
18769 openbsd2.[89] | openbsd2.[89].*)
18770 shlibpath_overrides_runpath=no
18771 ;;
18772 *)
18773 shlibpath_overrides_runpath=yes
18774 ;;
18775 esac
18776 else
18777 shlibpath_overrides_runpath=yes
18778 fi
18779 ;;
18780
18781os2*)
18782 libname_spec='$name'
18783 shrext_cmds=".dll"
18784 need_lib_prefix=no
18785 library_names_spec='$libname${shared_ext} $libname.a'
18786 dynamic_linker='OS/2 ld.exe'
18787 shlibpath_var=LIBPATH
18788 ;;
18789
18790osf3* | osf4* | osf5*)
18791 version_type=osf
18792 need_lib_prefix=no
18793 need_version=no
18794 soname_spec='${libname}${release}${shared_ext}$major'
18795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18796 shlibpath_var=LD_LIBRARY_PATH
18797 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18798 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18799 ;;
18800
18801rdos*)
18802 dynamic_linker=no
18803 ;;
18804
18805solaris*)
18806 version_type=linux
18807 need_lib_prefix=no
18808 need_version=no
18809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18810 soname_spec='${libname}${release}${shared_ext}$major'
18811 shlibpath_var=LD_LIBRARY_PATH
18812 shlibpath_overrides_runpath=yes
18813 hardcode_into_libs=yes
18814 # ldd complains unless libraries are executable
18815 postinstall_cmds='chmod +x $lib'
18816 ;;
18817
18818sunos4*)
18819 version_type=sunos
18820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18821 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18822 shlibpath_var=LD_LIBRARY_PATH
18823 shlibpath_overrides_runpath=yes
18824 if test "$with_gnu_ld" = yes; then
18825 need_lib_prefix=no
18826 fi
18827 need_version=yes
18828 ;;
18829
18830sysv4 | sysv4.3*)
18831 version_type=linux
18832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18833 soname_spec='${libname}${release}${shared_ext}$major'
18834 shlibpath_var=LD_LIBRARY_PATH
18835 case $host_vendor in
18836 sni)
18837 shlibpath_overrides_runpath=no
18838 need_lib_prefix=no
18839 runpath_var=LD_RUN_PATH
18840 ;;
18841 siemens)
18842 need_lib_prefix=no
18843 ;;
18844 motorola)
18845 need_lib_prefix=no
18846 need_version=no
18847 shlibpath_overrides_runpath=no
18848 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18849 ;;
18850 esac
18851 ;;
18852
18853sysv4*MP*)
18854 if test -d /usr/nec ;then
18855 version_type=linux
18856 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18857 soname_spec='$libname${shared_ext}.$major'
18858 shlibpath_var=LD_LIBRARY_PATH
18859 fi
18860 ;;
18861
18862sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18863 version_type=freebsd-elf
18864 need_lib_prefix=no
18865 need_version=no
18866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18867 soname_spec='${libname}${release}${shared_ext}$major'
18868 shlibpath_var=LD_LIBRARY_PATH
18869 shlibpath_overrides_runpath=yes
18870 hardcode_into_libs=yes
18871 if test "$with_gnu_ld" = yes; then
18872 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18873 else
18874 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18875 case $host_os in
18876 sco3.2v5*)
18877 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18878 ;;
18879 esac
18880 fi
18881 sys_lib_dlsearch_path_spec='/usr/lib'
18882 ;;
18883
18884tpf*)
18885 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18886 version_type=linux
18887 need_lib_prefix=no
18888 need_version=no
18889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18890 shlibpath_var=LD_LIBRARY_PATH
18891 shlibpath_overrides_runpath=no
18892 hardcode_into_libs=yes
18893 ;;
18894
18895uts4*)
18896 version_type=linux
18897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18898 soname_spec='${libname}${release}${shared_ext}$major'
18899 shlibpath_var=LD_LIBRARY_PATH
18900 ;;
18901
18902*)
18903 dynamic_linker=no
18904 ;;
18905esac
cristy8b350f62009-11-15 23:12:43 +000018906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000018907$as_echo "$dynamic_linker" >&6; }
18908test "$dynamic_linker" = no && can_build_shared=no
18909
18910variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18911if test "$GCC" = yes; then
18912 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18913fi
18914
18915if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18916 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18917fi
18918if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18919 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18920fi
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
18954
18955
18956
cristy8b350f62009-11-15 23:12:43 +000018957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018958$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18959hardcode_action_CXX=
18960if test -n "$hardcode_libdir_flag_spec_CXX" ||
18961 test -n "$runpath_var_CXX" ||
18962 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18963
18964 # We can hardcode non-existent directories.
18965 if test "$hardcode_direct_CXX" != no &&
18966 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18967 # have to relink, otherwise we might link with an installed library
18968 # when we should be linking with a yet-to-be-installed one
18969 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18970 test "$hardcode_minus_L_CXX" != no; then
18971 # Linking always hardcodes the temporary library directory.
18972 hardcode_action_CXX=relink
18973 else
18974 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18975 hardcode_action_CXX=immediate
18976 fi
18977else
18978 # We cannot hardcode anything, or else we can only hardcode existing
18979 # directories.
18980 hardcode_action_CXX=unsupported
18981fi
cristy8b350f62009-11-15 23:12:43 +000018982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018983$as_echo "$hardcode_action_CXX" >&6; }
18984
18985if test "$hardcode_action_CXX" = relink ||
18986 test "$inherit_rpath_CXX" = yes; then
18987 # Fast installation is not supported
18988 enable_fast_install=no
18989elif test "$shlibpath_overrides_runpath" = yes ||
18990 test "$enable_shared" = no; then
18991 # Fast installation is not necessary
18992 enable_fast_install=needless
18993fi
18994
18995
18996
18997
18998
18999
19000
19001 fi # test -n "$compiler"
19002
19003 CC=$lt_save_CC
19004 LDCXX=$LD
19005 LD=$lt_save_LD
19006 GCC=$lt_save_GCC
19007 with_gnu_ld=$lt_save_with_gnu_ld
19008 lt_cv_path_LDCXX=$lt_cv_path_LD
19009 lt_cv_path_LD=$lt_save_path_LD
19010 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19011 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19012fi # test "$_lt_caught_CXX_error" != yes
19013
19014ac_ext=c
19015ac_cpp='$CPP $CPPFLAGS'
19016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19018ac_compiler_gnu=$ac_cv_c_compiler_gnu
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032 ac_config_commands="$ac_config_commands libtool"
19033
19034
19035
19036
19037# Only expand once:
19038
19039
19040
19041
19042
19043# Configure libltdl
19044
19045
19046
19047
19048
19049
19050
cristyd0bd44a2010-09-24 12:38:11 +000019051
cristy8b350f62009-11-15 23:12:43 +000019052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000019053$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019054if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019055 $as_echo_n "(cached) " >&6
19056else
19057
19058module=yes
19059eval libltdl_cv_shlibext=$shrext_cmds
19060
19061fi
cristy8b350f62009-11-15 23:12:43 +000019062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000019063$as_echo "$libltdl_cv_shlibext" >&6; }
19064if test -n "$libltdl_cv_shlibext"; then
19065
19066cat >>confdefs.h <<_ACEOF
19067#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19068_ACEOF
19069
19070fi
19071
cristy8b350f62009-11-15 23:12:43 +000019072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000019073$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019074if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019075 $as_echo_n "(cached) " >&6
19076else
19077 lt_cv_module_path_var="$shlibpath_var"
19078fi
cristy8b350f62009-11-15 23:12:43 +000019079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000019080$as_echo "$lt_cv_module_path_var" >&6; }
19081if test -n "$lt_cv_module_path_var"; then
19082
19083cat >>confdefs.h <<_ACEOF
19084#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19085_ACEOF
19086
19087fi
19088
cristy8b350f62009-11-15 23:12:43 +000019089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000019090$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019091if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019092 $as_echo_n "(cached) " >&6
19093else
19094 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19095fi
cristy8b350f62009-11-15 23:12:43 +000019096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000019097$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19098if test -n "$lt_cv_sys_dlsearch_path"; then
19099 sys_dlsearch_path=
19100 for dir in $lt_cv_sys_dlsearch_path; do
19101 if test -z "$sys_dlsearch_path"; then
19102 sys_dlsearch_path="$dir"
19103 else
19104 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19105 fi
19106 done
19107
19108cat >>confdefs.h <<_ACEOF
19109#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19110_ACEOF
19111
19112fi
19113
19114
19115LT_DLLOADERS=
19116
19117
19118ac_ext=c
19119ac_cpp='$CPP $CPPFLAGS'
19120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19122ac_compiler_gnu=$ac_cv_c_compiler_gnu
19123
19124
19125LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000019126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019127$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019128if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019129 $as_echo_n "(cached) " >&6
19130else
19131 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019133/* end confdefs.h. */
19134
19135/* Override any GCC internal prototype to avoid an error.
19136 Use char because int might match the return type of a GCC
19137 builtin and then its argument prototype would still apply. */
19138#ifdef __cplusplus
19139extern "C"
19140#endif
19141char dlopen ();
19142int
19143main ()
19144{
19145return dlopen ();
19146 ;
19147 return 0;
19148}
19149_ACEOF
19150for ac_lib in '' dl; do
19151 if test -z "$ac_lib"; then
19152 ac_res="none required"
19153 else
19154 ac_res=-l$ac_lib
19155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19156 fi
cristy8b350f62009-11-15 23:12:43 +000019157 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019158 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019159fi
cristy8b350f62009-11-15 23:12:43 +000019160rm -f core conftest.err conftest.$ac_objext \
19161 conftest$ac_exeext
19162 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019163 break
19164fi
19165done
cristy8b350f62009-11-15 23:12:43 +000019166if test "${ac_cv_search_dlopen+set}" = set; then :
19167
cristy3ed852e2009-09-05 21:47:34 +000019168else
19169 ac_cv_search_dlopen=no
19170fi
19171rm conftest.$ac_ext
19172LIBS=$ac_func_search_save_LIBS
19173fi
cristy8b350f62009-11-15 23:12:43 +000019174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019175$as_echo "$ac_cv_search_dlopen" >&6; }
19176ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000019177if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019178 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19179
cristy8b350f62009-11-15 23:12:43 +000019180$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019181
19182 if test "$ac_cv_search_dlopen" != "none required" ; then
19183 LIBADD_DLOPEN="-ldl"
19184 fi
19185 libltdl_cv_lib_dl_dlopen="yes"
19186 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19187else
cristy8b350f62009-11-15 23:12:43 +000019188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019189/* end confdefs.h. */
19190#if HAVE_DLFCN_H
19191# include <dlfcn.h>
19192#endif
19193
19194int
19195main ()
19196{
19197dlopen(0, 0);
19198 ;
19199 return 0;
19200}
19201_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019202if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019203
cristy8b350f62009-11-15 23:12:43 +000019204$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019205
19206 libltdl_cv_func_dlopen="yes"
19207 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19208else
cristy8b350f62009-11-15 23:12:43 +000019209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019210$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019211if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019212 $as_echo_n "(cached) " >&6
19213else
19214 ac_check_lib_save_LIBS=$LIBS
19215LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019217/* end confdefs.h. */
19218
19219/* Override any GCC internal prototype to avoid an error.
19220 Use char because int might match the return type of a GCC
19221 builtin and then its argument prototype would still apply. */
19222#ifdef __cplusplus
19223extern "C"
19224#endif
19225char dlopen ();
19226int
19227main ()
19228{
19229return dlopen ();
19230 ;
19231 return 0;
19232}
19233_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019234if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019235 ac_cv_lib_svld_dlopen=yes
19236else
cristy8b350f62009-11-15 23:12:43 +000019237 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000019238fi
cristy8b350f62009-11-15 23:12:43 +000019239rm -f core conftest.err conftest.$ac_objext \
19240 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019241LIBS=$ac_check_lib_save_LIBS
19242fi
cristy8b350f62009-11-15 23:12:43 +000019243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019244$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019245if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019246
cristy8b350f62009-11-15 23:12:43 +000019247$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019248
19249 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19250 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19251fi
19252
19253fi
cristy8b350f62009-11-15 23:12:43 +000019254rm -f core conftest.err conftest.$ac_objext \
19255 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019256fi
19257
19258if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19259then
19260 lt_save_LIBS="$LIBS"
19261 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000019262 for ac_func in dlerror
19263do :
19264 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19265if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019266 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019267#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000019268_ACEOF
19269
19270fi
19271done
19272
19273 LIBS="$lt_save_LIBS"
19274fi
19275
19276
19277LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000019278ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19279if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019280
cristy8b350f62009-11-15 23:12:43 +000019281$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019282
19283 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19284else
cristy8b350f62009-11-15 23:12:43 +000019285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019286$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019287if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019288 $as_echo_n "(cached) " >&6
19289else
19290 ac_check_lib_save_LIBS=$LIBS
19291LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019293/* end confdefs.h. */
19294
19295/* Override any GCC internal prototype to avoid an error.
19296 Use char because int might match the return type of a GCC
19297 builtin and then its argument prototype would still apply. */
19298#ifdef __cplusplus
19299extern "C"
19300#endif
19301char shl_load ();
19302int
19303main ()
19304{
19305return shl_load ();
19306 ;
19307 return 0;
19308}
19309_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019310if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019311 ac_cv_lib_dld_shl_load=yes
19312else
cristy8b350f62009-11-15 23:12:43 +000019313 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000019314fi
cristy8b350f62009-11-15 23:12:43 +000019315rm -f core conftest.err conftest.$ac_objext \
19316 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019317LIBS=$ac_check_lib_save_LIBS
19318fi
cristy8b350f62009-11-15 23:12:43 +000019319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000019320$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019321if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019322
cristy8b350f62009-11-15 23:12:43 +000019323$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019324
19325 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19326 LIBADD_SHL_LOAD="-ldld"
19327fi
19328
19329fi
19330
19331
19332
19333case $host_os in
19334darwin[1567].*)
19335# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000019336 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19337if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019338
cristy8b350f62009-11-15 23:12:43 +000019339$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019340
19341 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19342fi
19343
19344 ;;
19345beos*)
19346 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19347 ;;
19348cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000019349 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19350"
19351if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19352 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000019353else
cristy8b350f62009-11-15 23:12:43 +000019354 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000019355fi
19356
cristy3ed852e2009-09-05 21:47:34 +000019357cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019358#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000019359_ACEOF
19360
cristy3ed852e2009-09-05 21:47:34 +000019361 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19362 ;;
19363esac
19364
cristy8b350f62009-11-15 23:12:43 +000019365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019366$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019367if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019368 $as_echo_n "(cached) " >&6
19369else
19370 ac_check_lib_save_LIBS=$LIBS
19371LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019373/* end confdefs.h. */
19374
19375/* Override any GCC internal prototype to avoid an error.
19376 Use char because int might match the return type of a GCC
19377 builtin and then its argument prototype would still apply. */
19378#ifdef __cplusplus
19379extern "C"
19380#endif
19381char dld_link ();
19382int
19383main ()
19384{
19385return dld_link ();
19386 ;
19387 return 0;
19388}
19389_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019390if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019391 ac_cv_lib_dld_dld_link=yes
19392else
cristy8b350f62009-11-15 23:12:43 +000019393 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000019394fi
cristy8b350f62009-11-15 23:12:43 +000019395rm -f core conftest.err conftest.$ac_objext \
19396 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019397LIBS=$ac_check_lib_save_LIBS
19398fi
cristy8b350f62009-11-15 23:12:43 +000019399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000019400$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019401if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019402
cristy8b350f62009-11-15 23:12:43 +000019403$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019404
19405 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19406fi
19407
19408
19409
19410
19411LT_DLPREOPEN=
19412if test -n "$LT_DLLOADERS"
19413then
19414 for lt_loader in $LT_DLLOADERS; do
19415 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19416 done
19417
cristy8b350f62009-11-15 23:12:43 +000019418$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019419
19420fi
19421
19422
19423LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19424
19425
19426ac_ext=c
19427ac_cpp='$CPP $CPPFLAGS'
19428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19430ac_compiler_gnu=$ac_cv_c_compiler_gnu
19431
19432
cristy8b350f62009-11-15 23:12:43 +000019433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019434$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019435if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019436 $as_echo_n "(cached) " >&6
19437else
19438 lt_cv_sys_symbol_underscore=no
19439 cat > conftest.$ac_ext <<_LT_EOF
19440void nm_test_func(){}
19441int main(){nm_test_func;return 0;}
19442_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019444 (eval $ac_compile) 2>&5
19445 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19447 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000019448 # Now try to grab the symbols.
19449 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000019450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019451 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19452 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19454 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000019455 # See whether the symbols have a leading underscore.
19456 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19457 lt_cv_sys_symbol_underscore=yes
19458 else
19459 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19460 :
19461 else
19462 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19463 fi
19464 fi
19465 else
19466 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19467 fi
19468 else
19469 echo "configure: failed program was:" >&5
19470 cat conftest.c >&5
19471 fi
19472 rm -rf conftest*
19473
19474fi
cristy8b350f62009-11-15 23:12:43 +000019475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019476$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19477 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19478
19479
19480if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19481 if test x"$libltdl_cv_func_dlopen" = xyes ||
19482 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000019483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000019484$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019485if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019486 $as_echo_n "(cached) " >&6
19487else
19488 libltdl_cv_need_uscore=unknown
19489 save_LIBS="$LIBS"
19490 LIBS="$LIBS $LIBADD_DLOPEN"
19491 if test "$cross_compiling" = yes; then :
19492 libltdl_cv_need_uscore=cross
19493else
19494 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19495 lt_status=$lt_dlunknown
19496 cat > conftest.$ac_ext <<_LT_EOF
cristyd0bd44a2010-09-24 12:38:11 +000019497#line 19497 "configure"
cristy3ed852e2009-09-05 21:47:34 +000019498#include "confdefs.h"
19499
19500#if HAVE_DLFCN_H
19501#include <dlfcn.h>
19502#endif
19503
19504#include <stdio.h>
19505
19506#ifdef RTLD_GLOBAL
19507# define LT_DLGLOBAL RTLD_GLOBAL
19508#else
19509# ifdef DL_GLOBAL
19510# define LT_DLGLOBAL DL_GLOBAL
19511# else
19512# define LT_DLGLOBAL 0
19513# endif
19514#endif
19515
19516/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19517 find out it does not work in some platform. */
19518#ifndef LT_DLLAZY_OR_NOW
19519# ifdef RTLD_LAZY
19520# define LT_DLLAZY_OR_NOW RTLD_LAZY
19521# else
19522# ifdef DL_LAZY
19523# define LT_DLLAZY_OR_NOW DL_LAZY
19524# else
19525# ifdef RTLD_NOW
19526# define LT_DLLAZY_OR_NOW RTLD_NOW
19527# else
19528# ifdef DL_NOW
19529# define LT_DLLAZY_OR_NOW DL_NOW
19530# else
19531# define LT_DLLAZY_OR_NOW 0
19532# endif
19533# endif
19534# endif
19535# endif
19536#endif
19537
cristyd0bd44a2010-09-24 12:38:11 +000019538void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000019539int main ()
19540{
19541 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19542 int status = $lt_dlunknown;
19543
19544 if (self)
19545 {
19546 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyd0bd44a2010-09-24 12:38:11 +000019547 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000019548 /* dlclose (self); */
19549 }
19550 else
19551 puts (dlerror ());
19552
19553 return status;
19554}
19555_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019557 (eval $ac_link) 2>&5
19558 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19560 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000019561 (./conftest; exit; ) >&5 2>/dev/null
19562 lt_status=$?
19563 case x$lt_status in
19564 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19565 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19566 x$lt_dlunknown|x*) ;;
19567 esac
19568 else :
19569 # compilation failed
19570
19571 fi
19572fi
19573rm -fr conftest*
19574
19575 LIBS="$save_LIBS"
19576
19577fi
cristy8b350f62009-11-15 23:12:43 +000019578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019579$as_echo "$libltdl_cv_need_uscore" >&6; }
19580 fi
19581fi
19582
19583if test x"$libltdl_cv_need_uscore" = xyes; then
19584
cristy8b350f62009-11-15 23:12:43 +000019585$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019586
19587fi
19588
cristy8b350f62009-11-15 23:12:43 +000019589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019590$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019591if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019592 $as_echo_n "(cached) " >&6
19593else
19594 # PORTME does your system automatically load deplibs for dlopen?
19595 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19596 # For now, we just catch OSes we know something about -- in the
19597 # future, we'll try test this programmatically.
19598 lt_cv_sys_dlopen_deplibs=unknown
19599 case $host_os in
19600 aix3*|aix4.1.*|aix4.2.*)
19601 # Unknown whether this is true for these versions of AIX, but
19602 # we want this `case' here to explicitly catch those versions.
19603 lt_cv_sys_dlopen_deplibs=unknown
19604 ;;
19605 aix[4-9]*)
19606 lt_cv_sys_dlopen_deplibs=yes
19607 ;;
19608 amigaos*)
19609 case $host_cpu in
19610 powerpc)
19611 lt_cv_sys_dlopen_deplibs=no
19612 ;;
19613 esac
19614 ;;
19615 darwin*)
19616 # Assuming the user has installed a libdl from somewhere, this is true
19617 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19618 lt_cv_sys_dlopen_deplibs=yes
19619 ;;
19620 freebsd* | dragonfly*)
19621 lt_cv_sys_dlopen_deplibs=yes
19622 ;;
cristyd0bd44a2010-09-24 12:38:11 +000019623 gnu* | linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000019624 # GNU and its variants, using gnu ld.so (Glibc)
19625 lt_cv_sys_dlopen_deplibs=yes
19626 ;;
19627 hpux10*|hpux11*)
19628 lt_cv_sys_dlopen_deplibs=yes
19629 ;;
19630 interix*)
19631 lt_cv_sys_dlopen_deplibs=yes
19632 ;;
19633 irix[12345]*|irix6.[01]*)
19634 # Catch all versions of IRIX before 6.2, and indicate that we don't
19635 # know how it worked for any of those versions.
19636 lt_cv_sys_dlopen_deplibs=unknown
19637 ;;
19638 irix*)
19639 # The case above catches anything before 6.2, and it's known that
19640 # at 6.2 and later dlopen does load deplibs.
19641 lt_cv_sys_dlopen_deplibs=yes
19642 ;;
19643 netbsd*)
19644 lt_cv_sys_dlopen_deplibs=yes
19645 ;;
19646 openbsd*)
19647 lt_cv_sys_dlopen_deplibs=yes
19648 ;;
19649 osf[1234]*)
19650 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19651 # it did *not* use an RPATH in a shared library to find objects the
19652 # library depends on, so we explicitly say `no'.
19653 lt_cv_sys_dlopen_deplibs=no
19654 ;;
19655 osf5.0|osf5.0a|osf5.1)
19656 # dlopen *does* load deplibs and with the right loader patch applied
19657 # it even uses RPATH in a shared library to search for shared objects
19658 # that the library depends on, but there's no easy way to know if that
19659 # patch is installed. Since this is the case, all we can really
19660 # say is unknown -- it depends on the patch being installed. If
19661 # it is, this changes to `yes'. Without it, it would be `no'.
19662 lt_cv_sys_dlopen_deplibs=unknown
19663 ;;
19664 osf*)
19665 # the two cases above should catch all versions of osf <= 5.1. Read
19666 # the comments above for what we know about them.
19667 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19668 # is used to find them so we can finally say `yes'.
19669 lt_cv_sys_dlopen_deplibs=yes
19670 ;;
19671 qnx*)
19672 lt_cv_sys_dlopen_deplibs=yes
19673 ;;
19674 solaris*)
19675 lt_cv_sys_dlopen_deplibs=yes
19676 ;;
19677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19678 libltdl_cv_sys_dlopen_deplibs=yes
19679 ;;
19680 esac
19681
19682fi
cristy8b350f62009-11-15 23:12:43 +000019683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000019684$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19685if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19686
cristy8b350f62009-11-15 23:12:43 +000019687$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019688
19689fi
19690
19691:
19692
cristy3ed852e2009-09-05 21:47:34 +000019693for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000019694do :
19695 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19696"
19697if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019698 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019699#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000019700_ACEOF
19701
19702fi
19703
19704done
19705
19706
cristy8b350f62009-11-15 23:12:43 +000019707ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000019708# include <argz.h>
19709#endif
cristy8b350f62009-11-15 23:12:43 +000019710"
19711if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019712
19713cat >>confdefs.h <<_ACEOF
19714#define HAVE_ERROR_T 1
19715_ACEOF
19716
19717
19718else
19719
cristy8b350f62009-11-15 23:12:43 +000019720$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019721
19722
cristy8b350f62009-11-15 23:12:43 +000019723$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019724
19725fi
19726
19727
19728ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000019729for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19730 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000019731do :
19732 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19733ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyf6fcb5d2010-09-24 01:19:13 +000019734eval as_val=\$$as_ac_var
19735 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019736 cat >>confdefs.h <<_ACEOF
19737#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19738_ACEOF
19739
19740else
19741 ARGZ_H=argz.h;
19742
19743 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19744
19745fi
19746done
19747
19748
cristy8b350f62009-11-15 23:12:43 +000019749if test -z "$ARGZ_H"; then :
19750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019751$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019752if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019753 $as_echo_n "(cached) " >&6
19754else
19755 case $host_os in #(
19756 *cygwin*)
19757 lt_cv_sys_argz_works=no
19758 if test "$cross_compiling" != no; then
19759 lt_cv_sys_argz_works="guessing no"
19760 else
19761 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19762 save_IFS=$IFS
19763 IFS=-.
19764 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19765 IFS=$save_IFS
19766 lt_os_major=${2-0}
19767 lt_os_minor=${3-0}
19768 lt_os_micro=${4-0}
19769 if test "$lt_os_major" -gt 1 \
19770 || { test "$lt_os_major" -eq 1 \
19771 && { test "$lt_os_minor" -gt 5 \
19772 || { test "$lt_os_minor" -eq 5 \
19773 && test "$lt_os_micro" -gt 24; }; }; }; then
19774 lt_cv_sys_argz_works=yes
19775 fi
19776 fi
19777 ;; #(
19778 *) lt_cv_sys_argz_works=yes ;;
19779 esac
19780fi
cristy8b350f62009-11-15 23:12:43 +000019781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019782$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019783 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019784
cristy8b350f62009-11-15 23:12:43 +000019785$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019786
19787else
19788 ARGZ_H=argz.h
19789
19790
19791 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19792
19793fi
cristy3ed852e2009-09-05 21:47:34 +000019794fi
19795
19796
19797
cristy8b350f62009-11-15 23:12:43 +000019798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019799$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019800if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019801 $as_echo_n "(cached) " >&6
19802else
19803 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19804 libltdl_cv_preloaded_symbols=yes
19805 else
19806 libltdl_cv_preloaded_symbols=no
19807 fi
19808
19809fi
cristy8b350f62009-11-15 23:12:43 +000019810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019811$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19812if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19813
cristy8b350f62009-11-15 23:12:43 +000019814$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019815
19816fi
19817
19818# Set options
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000019831if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019832 withval=$with_included_ltdl;
19833fi
19834
19835
19836if test "x$with_included_ltdl" != xyes; then
19837 # We are not being forced to use the included libltdl sources, so
19838 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000019839 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019840
cristy8b350f62009-11-15 23:12:43 +000019841"
19842if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19843 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019844 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000019845"
19846if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000019848$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019849if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019850 $as_echo_n "(cached) " >&6
19851else
19852 ac_check_lib_save_LIBS=$LIBS
19853LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019855/* end confdefs.h. */
19856
19857/* Override any GCC internal prototype to avoid an error.
19858 Use char because int might match the return type of a GCC
19859 builtin and then its argument prototype would still apply. */
19860#ifdef __cplusplus
19861extern "C"
19862#endif
19863char lt_dladvise_preload ();
19864int
19865main ()
19866{
19867return lt_dladvise_preload ();
19868 ;
19869 return 0;
19870}
19871_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019872if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019873 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19874else
cristy8b350f62009-11-15 23:12:43 +000019875 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000019876fi
cristy8b350f62009-11-15 23:12:43 +000019877rm -f core conftest.err conftest.$ac_objext \
19878 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019879LIBS=$ac_check_lib_save_LIBS
19880fi
cristy8b350f62009-11-15 23:12:43 +000019881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000019882$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019883if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019884 with_included_ltdl=no
19885else
19886 with_included_ltdl=yes
19887fi
19888
19889else
19890 with_included_ltdl=yes
19891fi
19892
19893else
19894 with_included_ltdl=yes
19895fi
19896
19897
19898fi
19899
19900
19901
19902
19903# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000019904if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019905 withval=$with_ltdl_include;
19906fi
19907
19908
19909if test -n "$with_ltdl_include"; then
19910 if test -f "$with_ltdl_include/ltdl.h"; then :
19911 else
cristyf6fcb5d2010-09-24 01:19:13 +000019912 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019913 fi
19914else
19915 with_ltdl_include=no
19916fi
19917
19918
19919# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000019920if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019921 withval=$with_ltdl_lib;
19922fi
19923
19924
19925if test -n "$with_ltdl_lib"; then
19926 if test -f "$with_ltdl_lib/libltdl.la"; then :
19927 else
cristyf6fcb5d2010-09-24 01:19:13 +000019928 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019929 fi
19930else
19931 with_ltdl_lib=no
19932fi
19933
19934case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19935 ,yes,no,no,)
19936 case $enable_ltdl_convenience in
cristyf6fcb5d2010-09-24 01:19:13 +000019937 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019938 "") enable_ltdl_convenience=yes
19939 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19940esac
19941LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19942LTDLDEPS=$LIBLTDL
19943LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19944
19945
19946
19947
19948
19949# For backwards non-gettext consistent compatibility...
19950INCLTDL="$LTDLINCL"
19951
19952
19953 ;;
19954 ,no,no,no,)
19955 # If the included ltdl is not to be used, then use the
19956 # preinstalled libltdl we found.
19957
cristy8b350f62009-11-15 23:12:43 +000019958$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019959
19960 LIBLTDL=-lltdl
19961 LTDLDEPS=
19962 LTDLINCL=
19963 ;;
19964 ,no*,no,*)
cristyf6fcb5d2010-09-24 01:19:13 +000019965 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019966 ;;
19967 *) with_included_ltdl=no
19968 LIBLTDL="-L$with_ltdl_lib -lltdl"
19969 LTDLDEPS=
19970 LTDLINCL="-I$with_ltdl_include"
19971 ;;
19972esac
19973INCLTDL="$LTDLINCL"
19974
19975# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000019976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000019977$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019979$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000019981$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019983$as_echo "$LIBLTDL" >&6; }
19984
19985
19986
19987# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000019988if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019989 enableval=$enable_ltdl_install;
19990fi
19991
19992
19993case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19994 *yes*) ;;
19995 *) enable_ltdl_convenience=yes ;;
19996esac
19997
19998 if test x"${enable_ltdl_install-no}" != xno; then
19999 INSTALL_LTDL_TRUE=
20000 INSTALL_LTDL_FALSE='#'
20001else
20002 INSTALL_LTDL_TRUE='#'
20003 INSTALL_LTDL_FALSE=
20004fi
20005
20006 if test x"${enable_ltdl_convenience-no}" != xno; then
20007 CONVENIENCE_LTDL_TRUE=
20008 CONVENIENCE_LTDL_FALSE='#'
20009else
20010 CONVENIENCE_LTDL_TRUE='#'
20011 CONVENIENCE_LTDL_FALSE=
20012fi
20013
20014
20015
20016
20017
20018
cristyd0bd44a2010-09-24 12:38:11 +000020019
cristy3ed852e2009-09-05 21:47:34 +000020020# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20021# the user used. This is so that ltdl.h can pick up the parent projects
20022# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20023# definitions required by ltdl.c.
20024# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20025
20026
20027
cristy3ed852e2009-09-05 21:47:34 +000020028for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000020029do :
20030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20031ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20032"
cristyf6fcb5d2010-09-24 01:19:13 +000020033eval as_val=\$$as_ac_Header
20034 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020035 cat >>confdefs.h <<_ACEOF
20036#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20037_ACEOF
20038
20039fi
20040
20041done
20042
20043
cristy3ed852e2009-09-05 21:47:34 +000020044for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000020045do :
20046 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20047ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyf6fcb5d2010-09-24 01:19:13 +000020048eval as_val=\$$as_ac_var
20049 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020050 cat >>confdefs.h <<_ACEOF
20051#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20052_ACEOF
20053
20054else
20055
20056
20057 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20058
20059fi
20060done
20061
cristy3ed852e2009-09-05 21:47:34 +000020062for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000020063do :
20064 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20065ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyf6fcb5d2010-09-24 01:19:13 +000020066eval as_val=\$$as_ac_var
20067 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020068 cat >>confdefs.h <<_ACEOF
20069#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20070_ACEOF
20071
20072else
20073
20074
20075 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20076
20077fi
20078done
20079
20080
20081
20082cat >>confdefs.h <<_ACEOF
20083#define LT_LIBEXT "$libext"
20084_ACEOF
20085
20086
20087name=ltdl
20088LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
20089
20090
20091
20092
20093
20094
20095
20096
20097# Only expand once:
20098
20099
20100
20101# Check to see if building shared libraries
20102libtool_build_shared_libs='no'
20103if test "$enable_shared" = 'yes'; then
20104 libtool_build_shared_libs='yes'
20105fi
20106
20107# Check to see if building static libraries
20108libtool_build_static_libs='no'
20109if test "$enable_static" = 'yes'; then
20110 libtool_build_static_libs='yes'
20111fi
20112
cristyfa112112010-01-04 17:48:07 +000020113 if test "${libtool_build_shared_libs}" = 'yes'; then
20114 WITH_SHARED_LIBS_TRUE=
20115 WITH_SHARED_LIBS_FALSE='#'
20116else
20117 WITH_SHARED_LIBS_TRUE='#'
20118 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000020119fi
20120
20121#
20122# Enable support for building loadable modules
20123#
20124
20125# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020126if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020127 withval=$with_modules; with_modules=$withval
20128else
cristy5a1cefd2010-01-06 20:42:35 +000020129 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020130fi
20131
20132
20133# Only allow building loadable modules if we are building shared libraries
20134if test "$with_modules" != 'no' ; then
20135 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020136 { $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 +000020137$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20138 with_modules='no'
20139 fi
20140fi
20141if test "$with_modules" != 'no'; then
20142
cristy8b350f62009-11-15 23:12:43 +000020143$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020144
20145fi
20146 if test "$with_modules" != 'no'; then
20147 WITH_MODULES_TRUE=
20148 WITH_MODULES_FALSE='#'
20149else
20150 WITH_MODULES_TRUE='#'
20151 WITH_MODULES_FALSE=
20152fi
20153
20154
20155# Enable building/use of libltdl if we are building shared libraries regardless
20156# of whether modules are built or not.
20157with_ltdl='no'
20158if test "$libtool_build_shared_libs" != 'no'; then
20159 with_ltdl='yes'
20160fi
20161
20162 if test "$with_ltdl" != 'no'; then
20163 WITH_LTDL_TRUE=
20164 WITH_LTDL_FALSE='#'
20165else
20166 WITH_LTDL_TRUE='#'
20167 WITH_LTDL_FALSE=
20168fi
20169
20170if test "$with_ltdl" != 'no'; then
20171
cristy8b350f62009-11-15 23:12:43 +000020172$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020173
20174
20175 # Set DLLDFLAGS
20176 if test X"$enable_shared" = Xyes; then
20177 DLLDFLAGS=-export-dynamic
20178
20179 fi
20180fi
20181
20182# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000020183# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020184# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020185if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020186 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20187else
20188 enable_delegate_build='no'
20189fi
20190
20191
20192# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020193if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020194 enableval=$enable_deprecated; enable_deprecated=$enableval
20195else
20196 enable_deprecated='no'
20197fi
20198
20199
20200if test "$enable_deprecated" = 'yes'; then
20201
cristy8b350f62009-11-15 23:12:43 +000020202$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020203
20204else
20205 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20206fi
20207
20208# Build a version of ImageMagick which operates uninstalled.
20209# Used to build distributions located via MAGICK_HOME / executable path
20210# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020211if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020212 enableval=$enable_installed; enable_installed=$enableval
20213else
20214 enable_installed='yes'
20215fi
20216
20217
20218if test "$enable_installed" = 'yes'; then
20219
cristy8b350f62009-11-15 23:12:43 +000020220$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020221
20222else
20223 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20224fi
20225
20226# Permit enciphering and deciphering image pixels.
20227# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020228if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020229 enableval=$enable_cipher; enable_cipher=$enableval
20230else
20231 enable_cipher='yes'
20232fi
20233
20234
20235if test "$enable_cipher" = 'yes'; then
20236
cristy8b350f62009-11-15 23:12:43 +000020237$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020238
20239fi
20240
20241# Build an embeddable version of ImageMagick.
20242# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020243if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020244 enableval=$enable_embeddable; enable_embeddable=$enableval
20245else
20246 enable_embeddable='no'
20247fi
20248
20249
20250if test "$enable_embeddable" = 'yes'; then
20251
cristy8b350f62009-11-15 23:12:43 +000020252$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020253
20254fi
20255
20256# Build a high dynamic range version of ImageMagick.
20257# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020258if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020259 enableval=$enable_hdri; enable_hdri=$enableval
20260else
20261 enable_hdri='no'
20262fi
20263
20264
20265MAGICK_HDRI=""
20266if test "$enable_hdri" = 'yes'; then
20267 MAGICK_HDRI="HDRI"
20268
cristy8b350f62009-11-15 23:12:43 +000020269$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020270
cristyfd9dcd42010-08-08 18:07:02 +000020271 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020272fi
20273
cristy3ed852e2009-09-05 21:47:34 +000020274# Build a version of ImageMagick with assert statements.
20275# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020276if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020277 enableval=$enable_assert; enable_assert=$enableval
20278else
20279 enable_assert='yes'
20280fi
20281
20282
20283if test "$enable_assert" = 'no'; then
20284
cristy8b350f62009-11-15 23:12:43 +000020285$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020286
20287fi
20288
20289# Add configure option --enable-maintainer-mode which enables dependency
20290# checking and generation useful to package maintainers. This is made an
20291# option to avoid confusing end users.
20292
cristy8b350f62009-11-15 23:12:43 +000020293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000020294$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20295 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000020296if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020297 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20298else
20299 USE_MAINTAINER_MODE=no
20300fi
20301
cristy8b350f62009-11-15 23:12:43 +000020302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000020303$as_echo "$USE_MAINTAINER_MODE" >&6; }
20304 if test $USE_MAINTAINER_MODE = yes; then
20305 MAINTAINER_MODE_TRUE=
20306 MAINTAINER_MODE_FALSE='#'
20307else
20308 MAINTAINER_MODE_TRUE='#'
20309 MAINTAINER_MODE_FALSE=
20310fi
20311
20312 MAINT=$MAINTAINER_MODE_TRUE
20313
20314
20315
20316
20317# Enable ccmalloc memory debugging support
20318# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020319if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020320 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20321else
20322 enable_ccmalloc='no'
20323fi
20324
20325
20326# Enable Electric Fence memory debugging support
20327# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020328if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020329 enableval=$enable_efence; enable_efence=$enableval
20330else
20331 enable_efence='no'
20332fi
20333
20334
20335# Enable prof-based profiling support
20336# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020337if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020338 enableval=$enable_prof; enable_prof=$enableval
20339else
20340 enable_prof='no'
20341fi
20342
20343
20344# Enable gprof-based profiling support
20345# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020346if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020347 enableval=$enable_gprof; enable_gprof=$enableval
20348else
20349 enable_gprof='no'
20350fi
20351
20352
20353# Enable gcov-based profiling support
20354# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020355if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020356 enableval=$enable_gcov; enable_gcov=$enableval
20357else
20358 enable_gcov='no'
20359fi
20360
20361
20362enable_profiling='no'
20363if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20364 enable_profiling='yes'
20365 if test "$libtool_build_shared_libs" = 'yes'; then
20366 echo "Warning: Can not profile code using shared libraries"
20367 fi
20368fi
20369
20370# Magick API method prefix
20371
20372# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020373if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020374 withval=$with_method_prefix; with_method_prefix=$enableval
20375else
20376 with_method_prefix=''
20377fi
20378
20379
20380if test "$with_method_prefix" != ''; then
20381
20382cat >>confdefs.h <<_ACEOF
20383#define NAMESPACE_PREFIX $with_method_prefix
20384_ACEOF
20385
20386fi
20387
20388# Number of bits in a Quantum
20389
20390# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020391if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020392 withval=$with_quantum_depth; with_quantum_depth=$withval
20393else
20394 with_quantum_depth=16
20395fi
20396
20397
20398if test "$with_quantum_depth" != '8'; then
20399 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20400fi
20401
20402case "${with_quantum_depth}" in
20403 8 ) ;;
20404 16 ) ;;
20405 32 ) ;;
20406 64 ) ;;
cristyf6fcb5d2010-09-24 01:19:13 +000020407 * ) { as_fn_set_status 16
20408as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000020409esac
cristycdae12a2010-09-19 02:24:31 +000020410if test "$enable_hdri" = 'yes'; then
20411 with_quantum_depth=16
20412fi
cristy3ed852e2009-09-05 21:47:34 +000020413QUANTUM_DEPTH="$with_quantum_depth"
20414
20415cat >>confdefs.h <<_ACEOF
20416#define QUANTUM_DEPTH $QUANTUM_DEPTH
20417_ACEOF
20418
20419
20420# Set pixel cache threshold
20421
20422# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020423if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020424 withval=$with_cache; with_cache=$withval
20425else
20426 with_cache=''
20427fi
20428
20429
20430if test "$with_cache" != ''; then
20431
20432cat >>confdefs.h <<_ACEOF
20433#define PixelCacheThreshold $with_cache
20434_ACEOF
20435
20436 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20437fi
20438
20439# Disable/Enable support for full delegate paths
20440
20441# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020442if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020443 withval=$with_frozenpaths; with_frozenpaths=$withval
20444else
20445 with_frozenpaths='no'
20446fi
20447
20448
20449# Enable build/install of Magick++
20450
20451# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020452if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020453 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20454else
20455 with_magick_plus_plus='yes'
20456fi
20457
20458
20459# Disable build/install of PerlMagick.
20460
20461# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000020462if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020463 withval=$with_perl; with_perl=$withval
20464else
cristyb5f4e2f2010-04-25 00:49:11 +000020465 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000020466fi
20467
20468
20469# Options to pass when configuring PerlMagick
20470
20471# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000020472if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000020473 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000020474fi
20475
20476
cristy3ed852e2009-09-05 21:47:34 +000020477
20478# Enable umem, object-caching memory allocation library.
20479
20480# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000020481if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020482 withval=$with_umem; with_umem=$withval
20483else
20484 with_umem='no'
20485fi
20486
20487if test "$with_umem" != 'yes' ; then
20488 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20489fi
20490
20491#
20492# Specify path to shared libstdc++ if not in normal location
20493#
20494
20495# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000020496if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020497 withval=$with_libstdc; with_libstdc=$withval
20498else
20499 with_libstdc=''
20500fi
20501
20502
20503if test "$with_libstdc" != ''; then
20504 if test -d "$with_libstdc"; then
20505 LIBSTDCLDFLAGS="-L$with_libstdc"
20506 fi
20507fi
20508
20509
20510# Does gcc required -traditional?
20511if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000020512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020513$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020514if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020515 $as_echo_n "(cached) " >&6
20516else
20517 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000020518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020519/* end confdefs.h. */
20520#include <sgtty.h>
20521Autoconf TIOCGETP
20522_ACEOF
20523if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020524 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020525 ac_cv_prog_gcc_traditional=yes
20526else
20527 ac_cv_prog_gcc_traditional=no
20528fi
20529rm -f conftest*
20530
20531
20532 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000020533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020534/* end confdefs.h. */
20535#include <termio.h>
20536Autoconf TCGETA
20537_ACEOF
20538if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020539 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020540 ac_cv_prog_gcc_traditional=yes
20541fi
20542rm -f conftest*
20543
20544 fi
20545fi
cristy8b350f62009-11-15 23:12:43 +000020546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020547$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20548 if test $ac_cv_prog_gcc_traditional = yes; then
20549 CC="$CC -traditional"
20550 fi
20551fi
20552
20553
20554########
20555#
20556# Set defines required to build DLLs and modules using MinGW
20557#
20558########
20559# These options are set for multi-thread DLL module build
20560# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20561# module: _DLL
20562# executable/Magick++: _DLL _MAGICKMOD_
20563MODULE_EXTRA_CPPFLAGS=''
20564LIBRARY_EXTRA_CPPFLAGS=''
20565if test "${native_win32_build}" = 'yes'; then
20566 if test "${libtool_build_shared_libs}" = 'yes'; then
20567 CPPFLAGS="$CPPFLAGS -D_DLL"
20568 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20569 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20570 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20571 if test "$with_modules" = 'yes'; then
20572 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20573 else
20574 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20575 fi
20576 else
20577 CPPFLAGS="$CPPFLAGS -D_LIB"
20578 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20579 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20580 fi
20581 if test "$with_threads" = 'yes'; then
20582 CPPFLAGS="$CPPFLAGS -D_MT"
20583 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20584 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20585 fi
20586fi
20587
20588
20589
20590# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020592$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020593if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020594 $as_echo_n "(cached) " >&6
20595else
cristy8b350f62009-11-15 23:12:43 +000020596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020597/* end confdefs.h. */
20598#include <stdlib.h>
20599#include <stdarg.h>
20600#include <string.h>
20601#include <float.h>
20602
20603int
20604main ()
20605{
20606
20607 ;
20608 return 0;
20609}
20610_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020611if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020612 ac_cv_header_stdc=yes
20613else
cristy8b350f62009-11-15 23:12:43 +000020614 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020615fi
cristy3ed852e2009-09-05 21:47:34 +000020616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20617
20618if test $ac_cv_header_stdc = yes; then
20619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020621/* end confdefs.h. */
20622#include <string.h>
20623
20624_ACEOF
20625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020626 $EGREP "memchr" >/dev/null 2>&1; then :
20627
cristy3ed852e2009-09-05 21:47:34 +000020628else
20629 ac_cv_header_stdc=no
20630fi
20631rm -f conftest*
20632
20633fi
20634
20635if test $ac_cv_header_stdc = yes; then
20636 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020638/* end confdefs.h. */
20639#include <stdlib.h>
20640
20641_ACEOF
20642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020643 $EGREP "free" >/dev/null 2>&1; then :
20644
cristy3ed852e2009-09-05 21:47:34 +000020645else
20646 ac_cv_header_stdc=no
20647fi
20648rm -f conftest*
20649
20650fi
20651
20652if test $ac_cv_header_stdc = yes; then
20653 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020654 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020655 :
20656else
cristy8b350f62009-11-15 23:12:43 +000020657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020658/* end confdefs.h. */
20659#include <ctype.h>
20660#include <stdlib.h>
20661#if ((' ' & 0x0FF) == 0x020)
20662# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20663# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20664#else
20665# define ISLOWER(c) \
20666 (('a' <= (c) && (c) <= 'i') \
20667 || ('j' <= (c) && (c) <= 'r') \
20668 || ('s' <= (c) && (c) <= 'z'))
20669# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20670#endif
20671
20672#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20673int
20674main ()
20675{
20676 int i;
20677 for (i = 0; i < 256; i++)
20678 if (XOR (islower (i), ISLOWER (i))
20679 || toupper (i) != TOUPPER (i))
20680 return 2;
20681 return 0;
20682}
20683_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020684if ac_fn_c_try_run "$LINENO"; then :
20685
cristy3ed852e2009-09-05 21:47:34 +000020686else
cristy8b350f62009-11-15 23:12:43 +000020687 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020688fi
cristy8b350f62009-11-15 23:12:43 +000020689rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20690 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020691fi
20692
cristy3ed852e2009-09-05 21:47:34 +000020693fi
20694fi
cristy8b350f62009-11-15 23:12:43 +000020695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020696$as_echo "$ac_cv_header_stdc" >&6; }
20697if test $ac_cv_header_stdc = yes; then
20698
cristy8b350f62009-11-15 23:12:43 +000020699$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020700
20701fi
20702
20703if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020704 { $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 +000020705 header files. Compilation cannot proceed. Please install the ANSI C
20706 headers and rerun this script." >&5
20707$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20708 header files. Compilation cannot proceed. Please install the ANSI C
20709 headers and rerun this script." >&2;};
20710fi
cristya0b81c32010-01-22 02:54:33 +000020711
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20713$as_echo_n "checking whether to enable assertions... " >&6; }
20714 # Check whether --enable-assert was given.
20715if test "${enable_assert+set}" = set; then :
20716 enableval=$enable_assert; ac_enable_assert=$enableval
20717 if test "x$enableval" = xno; then :
20718
20719$as_echo "#define NDEBUG 1" >>confdefs.h
20720
20721elif test "x$enableval" != xyes; then :
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20723$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20724 ac_enable_assert=yes
20725fi
20726else
20727 ac_enable_assert=yes
20728fi
20729
20730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20731$as_echo "$ac_enable_assert" >&6; }
20732
cristy3ed852e2009-09-05 21:47:34 +000020733ac_header_dirent=no
20734for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20735 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020737$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +000020738if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000020739 $as_echo_n "(cached) " >&6
20740else
cristy8b350f62009-11-15 23:12:43 +000020741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020742/* end confdefs.h. */
20743#include <sys/types.h>
20744#include <$ac_hdr>
20745
20746int
20747main ()
20748{
20749if ((DIR *) 0)
20750return 0;
20751 ;
20752 return 0;
20753}
20754_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020755if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020756 eval "$as_ac_Header=yes"
20757else
cristy8b350f62009-11-15 23:12:43 +000020758 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020759fi
cristy3ed852e2009-09-05 21:47:34 +000020760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20761fi
cristy8b350f62009-11-15 23:12:43 +000020762eval ac_res=\$$as_ac_Header
20763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020764$as_echo "$ac_res" >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +000020765eval as_val=\$$as_ac_Header
20766 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020767 cat >>confdefs.h <<_ACEOF
20768#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20769_ACEOF
20770
20771ac_header_dirent=$ac_hdr; break
20772fi
20773
20774done
20775# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20776if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020778$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020779if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020780 $as_echo_n "(cached) " >&6
20781else
20782 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020784/* end confdefs.h. */
20785
20786/* Override any GCC internal prototype to avoid an error.
20787 Use char because int might match the return type of a GCC
20788 builtin and then its argument prototype would still apply. */
20789#ifdef __cplusplus
20790extern "C"
20791#endif
20792char opendir ();
20793int
20794main ()
20795{
20796return opendir ();
20797 ;
20798 return 0;
20799}
20800_ACEOF
20801for ac_lib in '' dir; do
20802 if test -z "$ac_lib"; then
20803 ac_res="none required"
20804 else
20805 ac_res=-l$ac_lib
20806 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20807 fi
cristy8b350f62009-11-15 23:12:43 +000020808 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020809 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020810fi
cristy8b350f62009-11-15 23:12:43 +000020811rm -f core conftest.err conftest.$ac_objext \
20812 conftest$ac_exeext
20813 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020814 break
20815fi
20816done
cristy8b350f62009-11-15 23:12:43 +000020817if test "${ac_cv_search_opendir+set}" = set; then :
20818
cristy3ed852e2009-09-05 21:47:34 +000020819else
20820 ac_cv_search_opendir=no
20821fi
20822rm conftest.$ac_ext
20823LIBS=$ac_func_search_save_LIBS
20824fi
cristy8b350f62009-11-15 23:12:43 +000020825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020826$as_echo "$ac_cv_search_opendir" >&6; }
20827ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020828if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020829 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20830
20831fi
20832
20833else
cristy8b350f62009-11-15 23:12:43 +000020834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020835$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020836if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020837 $as_echo_n "(cached) " >&6
20838else
20839 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020841/* end confdefs.h. */
20842
20843/* Override any GCC internal prototype to avoid an error.
20844 Use char because int might match the return type of a GCC
20845 builtin and then its argument prototype would still apply. */
20846#ifdef __cplusplus
20847extern "C"
20848#endif
20849char opendir ();
20850int
20851main ()
20852{
20853return opendir ();
20854 ;
20855 return 0;
20856}
20857_ACEOF
20858for ac_lib in '' x; do
20859 if test -z "$ac_lib"; then
20860 ac_res="none required"
20861 else
20862 ac_res=-l$ac_lib
20863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20864 fi
cristy8b350f62009-11-15 23:12:43 +000020865 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020866 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020867fi
cristy8b350f62009-11-15 23:12:43 +000020868rm -f core conftest.err conftest.$ac_objext \
20869 conftest$ac_exeext
20870 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020871 break
20872fi
20873done
cristy8b350f62009-11-15 23:12:43 +000020874if test "${ac_cv_search_opendir+set}" = set; then :
20875
cristy3ed852e2009-09-05 21:47:34 +000020876else
20877 ac_cv_search_opendir=no
20878fi
20879rm conftest.$ac_ext
20880LIBS=$ac_func_search_save_LIBS
20881fi
cristy8b350f62009-11-15 23:12:43 +000020882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020883$as_echo "$ac_cv_search_opendir" >&6; }
20884ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020885if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20887
20888fi
20889
20890fi
20891
20892
20893# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020894for 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 +000020895do :
20896 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20897ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyf6fcb5d2010-09-24 01:19:13 +000020898eval as_val=\$$as_ac_Header
20899 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020900 cat >>confdefs.h <<_ACEOF
20901#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20902_ACEOF
20903
20904fi
20905
20906done
20907
20908
20909########
20910#
20911# Checks for typedefs, structures, and compiler characteristics.
20912#
20913########
20914
cristy8b350f62009-11-15 23:12:43 +000020915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020916$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020917if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020918 $as_echo_n "(cached) " >&6
20919else
cristy8b350f62009-11-15 23:12:43 +000020920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020921/* end confdefs.h. */
20922
20923#include <stdbool.h>
20924#ifndef bool
20925 "error: bool is not defined"
20926#endif
20927#ifndef false
20928 "error: false is not defined"
20929#endif
20930#if false
20931 "error: false is not 0"
20932#endif
20933#ifndef true
20934 "error: true is not defined"
20935#endif
20936#if true != 1
20937 "error: true is not 1"
20938#endif
20939#ifndef __bool_true_false_are_defined
20940 "error: __bool_true_false_are_defined is not defined"
20941#endif
20942
20943 struct s { _Bool s: 1; _Bool t; } s;
20944
20945 char a[true == 1 ? 1 : -1];
20946 char b[false == 0 ? 1 : -1];
20947 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20948 char d[(bool) 0.5 == true ? 1 : -1];
20949 bool e = &s;
20950 char f[(_Bool) 0.0 == false ? 1 : -1];
20951 char g[true];
20952 char h[sizeof (_Bool)];
20953 char i[sizeof s.t];
20954 enum { j = false, k = true, l = false * true, m = true * 256 };
20955 /* The following fails for
20956 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20957 _Bool n[m];
20958 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20959 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20960# if defined __xlc__ || defined __GNUC__
20961 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20962 reported by James Lemley on 2005-10-05; see
20963 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20964 This test is not quite right, since xlc is allowed to
20965 reject this program, as the initializer for xlcbug is
20966 not one of the forms that C requires support for.
20967 However, doing the test right would require a runtime
20968 test, and that would make cross-compilation harder.
20969 Let us hope that IBM fixes the xlc bug, and also adds
20970 support for this kind of constant expression. In the
20971 meantime, this test will reject xlc, which is OK, since
20972 our stdbool.h substitute should suffice. We also test
20973 this with GCC, where it should work, to detect more
20974 quickly whether someone messes up the test in the
20975 future. */
20976 char digs[] = "0123456789";
20977 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20978# endif
20979 /* Catch a bug in an HP-UX C compiler. See
20980 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20981 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20982 */
20983 _Bool q = true;
20984 _Bool *pq = &q;
20985
20986int
20987main ()
20988{
20989
20990 *pq |= q;
20991 *pq |= ! q;
20992 /* Refer to every declared value, to avoid compiler optimizations. */
20993 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20994 + !m + !n + !o + !p + !q + !pq);
20995
20996 ;
20997 return 0;
20998}
20999_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021000if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021001 ac_cv_header_stdbool_h=yes
21002else
cristy8b350f62009-11-15 23:12:43 +000021003 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021004fi
cristy3ed852e2009-09-05 21:47:34 +000021005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21006fi
cristy8b350f62009-11-15 23:12:43 +000021007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021008$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021009ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21010if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021011
21012cat >>confdefs.h <<_ACEOF
21013#define HAVE__BOOL 1
21014_ACEOF
21015
21016
21017fi
21018
21019if test $ac_cv_header_stdbool_h = yes; then
21020
cristy8b350f62009-11-15 23:12:43 +000021021$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021022
21023fi
21024
cristy8b350f62009-11-15 23:12:43 +000021025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021026$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021027if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021028 $as_echo_n "(cached) " >&6
21029else
cristy8b350f62009-11-15 23:12:43 +000021030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021031/* end confdefs.h. */
21032
21033int
21034main ()
21035{
21036
21037volatile int x;
21038int * volatile y = (int *) 0;
21039return !x && !y;
21040 ;
21041 return 0;
21042}
21043_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021044if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021045 ac_cv_c_volatile=yes
21046else
cristy8b350f62009-11-15 23:12:43 +000021047 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021048fi
cristy3ed852e2009-09-05 21:47:34 +000021049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21050fi
cristy8b350f62009-11-15 23:12:43 +000021051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021052$as_echo "$ac_cv_c_volatile" >&6; }
21053if test $ac_cv_c_volatile = no; then
21054
cristy8b350f62009-11-15 23:12:43 +000021055$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021056
21057fi
21058
cristy8b350f62009-11-15 23:12:43 +000021059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021060$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021061if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021062 $as_echo_n "(cached) " >&6
21063else
cristy8b350f62009-11-15 23:12:43 +000021064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021065/* end confdefs.h. */
21066#define x(y) #y
21067
21068char *s = x(teststring);
21069_ACEOF
21070if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021071 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021072 ac_cv_c_stringize=no
21073else
21074 ac_cv_c_stringize=yes
21075fi
21076rm -f conftest*
21077
21078fi
cristy8b350f62009-11-15 23:12:43 +000021079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021080$as_echo "$ac_cv_c_stringize" >&6; }
21081if test $ac_cv_c_stringize = yes; then
21082
cristy8b350f62009-11-15 23:12:43 +000021083$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021084
21085fi
21086
cristy8b350f62009-11-15 23:12:43 +000021087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021088$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021089if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021090 $as_echo_n "(cached) " >&6
21091else
cristy8b350f62009-11-15 23:12:43 +000021092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021093/* end confdefs.h. */
21094#include <sys/types.h>
21095#include <sys/stat.h>
21096
21097#if defined S_ISBLK && defined S_IFDIR
21098extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21099#endif
21100
21101#if defined S_ISBLK && defined S_IFCHR
21102extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21103#endif
21104
21105#if defined S_ISLNK && defined S_IFREG
21106extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21107#endif
21108
21109#if defined S_ISSOCK && defined S_IFREG
21110extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21111#endif
21112
21113_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021114if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021115 ac_cv_header_stat_broken=no
21116else
cristy8b350f62009-11-15 23:12:43 +000021117 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021118fi
cristy3ed852e2009-09-05 21:47:34 +000021119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21120fi
cristy8b350f62009-11-15 23:12:43 +000021121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021122$as_echo "$ac_cv_header_stat_broken" >&6; }
21123if test $ac_cv_header_stat_broken = yes; then
21124
cristy8b350f62009-11-15 23:12:43 +000021125$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021126
21127fi
21128
cristy8b350f62009-11-15 23:12:43 +000021129{ $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 +000021130$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021131if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021132 $as_echo_n "(cached) " >&6
21133else
cristy8b350f62009-11-15 23:12:43 +000021134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021135/* end confdefs.h. */
21136#include <sys/types.h>
21137#include <sys/time.h>
21138#include <time.h>
21139
21140int
21141main ()
21142{
21143if ((struct tm *) 0)
21144return 0;
21145 ;
21146 return 0;
21147}
21148_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021149if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021150 ac_cv_header_time=yes
21151else
cristy8b350f62009-11-15 23:12:43 +000021152 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021153fi
cristy3ed852e2009-09-05 21:47:34 +000021154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21155fi
cristy8b350f62009-11-15 23:12:43 +000021156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021157$as_echo "$ac_cv_header_time" >&6; }
21158if test $ac_cv_header_time = yes; then
21159
cristy8b350f62009-11-15 23:12:43 +000021160$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021161
21162fi
21163
cristy8b350f62009-11-15 23:12:43 +000021164{ $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 +000021165$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021166if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021167 $as_echo_n "(cached) " >&6
21168else
cristy8b350f62009-11-15 23:12:43 +000021169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021170/* end confdefs.h. */
21171#include <sys/types.h>
21172#include <time.h>
21173
21174int
21175main ()
21176{
21177struct tm tm;
21178 int *p = &tm.tm_sec;
21179 return !p;
21180 ;
21181 return 0;
21182}
21183_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021184if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021185 ac_cv_struct_tm=time.h
21186else
cristy8b350f62009-11-15 23:12:43 +000021187 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021188fi
cristy3ed852e2009-09-05 21:47:34 +000021189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21190fi
cristy8b350f62009-11-15 23:12:43 +000021191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021192$as_echo "$ac_cv_struct_tm" >&6; }
21193if test $ac_cv_struct_tm = sys/time.h; then
21194
cristy8b350f62009-11-15 23:12:43 +000021195$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021196
21197fi
21198
cristy92703d82010-04-26 00:18:18 +000021199ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21200#include <$ac_cv_struct_tm>
21201
21202"
21203if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21204
21205cat >>confdefs.h <<_ACEOF
21206#define HAVE_STRUCT_TM_TM_ZONE 1
21207_ACEOF
21208
21209
21210fi
21211
21212if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21213
21214$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21215
21216else
21217 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21218"
21219if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21220 ac_have_decl=1
21221else
21222 ac_have_decl=0
21223fi
21224
21225cat >>confdefs.h <<_ACEOF
21226#define HAVE_DECL_TZNAME $ac_have_decl
21227_ACEOF
21228
21229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21230$as_echo_n "checking for tzname... " >&6; }
21231if test "${ac_cv_var_tzname+set}" = set; then :
21232 $as_echo_n "(cached) " >&6
21233else
21234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21235/* end confdefs.h. */
21236#include <time.h>
21237#if !HAVE_DECL_TZNAME
21238extern char *tzname[];
21239#endif
21240
21241int
21242main ()
21243{
21244return tzname[0][0];
21245 ;
21246 return 0;
21247}
21248_ACEOF
21249if ac_fn_c_try_link "$LINENO"; then :
21250 ac_cv_var_tzname=yes
21251else
21252 ac_cv_var_tzname=no
21253fi
21254rm -f core conftest.err conftest.$ac_objext \
21255 conftest$ac_exeext conftest.$ac_ext
21256fi
21257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21258$as_echo "$ac_cv_var_tzname" >&6; }
21259 if test $ac_cv_var_tzname = yes; then
21260
21261$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21262
21263 fi
21264fi
21265
cristy8b350f62009-11-15 23:12:43 +000021266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021267$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021268if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021269 $as_echo_n "(cached) " >&6
21270else
21271 echo '#! /bin/cat
21272exit 69
21273' >conftest
21274chmod u+x conftest
21275(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21276if test $? -ne 69; then
21277 ac_cv_sys_interpreter=yes
21278else
21279 ac_cv_sys_interpreter=no
21280fi
21281rm -f conftest
21282fi
cristy8b350f62009-11-15 23:12:43 +000021283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021284$as_echo "$ac_cv_sys_interpreter" >&6; }
21285interpval=$ac_cv_sys_interpreter
21286
21287
cristy3ed852e2009-09-05 21:47:34 +000021288# If the C compiler supports the keyword inline, do nothing. Otherwise
21289# define inline to __inline__ or __inline if it accepts one of those,
21290# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021292$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021293if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021294 $as_echo_n "(cached) " >&6
21295else
21296 ac_cv_c_inline=no
21297for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021299/* end confdefs.h. */
21300#ifndef __cplusplus
21301typedef int foo_t;
21302static $ac_kw foo_t static_foo () {return 0; }
21303$ac_kw foo_t foo () {return 0; }
21304#endif
21305
21306_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021307if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021308 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021309fi
cristy3ed852e2009-09-05 21:47:34 +000021310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21311 test "$ac_cv_c_inline" != no && break
21312done
21313
21314fi
cristy8b350f62009-11-15 23:12:43 +000021315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021316$as_echo "$ac_cv_c_inline" >&6; }
21317
cristy3ed852e2009-09-05 21:47:34 +000021318case $ac_cv_c_inline in
21319 inline | yes) ;;
21320 *)
21321 case $ac_cv_c_inline in
21322 no) ac_val=;;
21323 *) ac_val=$ac_cv_c_inline;;
21324 esac
21325 cat >>confdefs.h <<_ACEOF
21326#ifndef __cplusplus
21327#define inline $ac_val
21328#endif
21329_ACEOF
21330 ;;
21331esac
21332
21333
21334# If the C compiler supports the keyword restrict, do nothing. Otherwise
21335# define restrict to __restrict__ or __restrict if it accepts one of those,
21336# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021338$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021339if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021340 $as_echo_n "(cached) " >&6
21341else
21342 ac_cv_c_restrict=no
21343 # The order here caters to the fact that C++ does not require restrict.
21344 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021346/* end confdefs.h. */
21347typedef int * int_ptr;
21348 int foo (int_ptr $ac_kw ip) {
21349 return ip[0];
21350 }
21351int
21352main ()
21353{
21354int s[1];
21355 int * $ac_kw t = s;
21356 t[0] = 0;
21357 return foo(t)
21358 ;
21359 return 0;
21360}
21361_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021362if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021363 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021364fi
cristy3ed852e2009-09-05 21:47:34 +000021365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21366 test "$ac_cv_c_restrict" != no && break
21367 done
21368
21369fi
cristy8b350f62009-11-15 23:12:43 +000021370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021371$as_echo "$ac_cv_c_restrict" >&6; }
21372
cristy3ed852e2009-09-05 21:47:34 +000021373 case $ac_cv_c_restrict in
21374 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021375 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021376 ;;
21377 *) cat >>confdefs.h <<_ACEOF
21378#define restrict $ac_cv_c_restrict
21379_ACEOF
21380 ;;
21381 esac
21382
21383
21384# If words are stored with the most significant byte first (like
21385# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021387$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021388if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021389 $as_echo_n "(cached) " >&6
21390else
21391 ac_cv_c_bigendian=unknown
21392 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021394/* end confdefs.h. */
21395#ifndef __APPLE_CC__
21396 not a universal capable compiler
21397 #endif
21398 typedef int dummy;
21399
21400_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021401if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021402
21403 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021404 # there are at least two -arch flags with different values.
21405 ac_arch=
21406 ac_prev=
21407 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21408 if test -n "$ac_prev"; then
21409 case $ac_word in
21410 i?86 | x86_64 | ppc | ppc64)
21411 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21412 ac_arch=$ac_word
21413 else
21414 ac_cv_c_bigendian=universal
21415 break
21416 fi
21417 ;;
21418 esac
21419 ac_prev=
21420 elif test "x$ac_word" = "x-arch"; then
21421 ac_prev=arch
21422 fi
21423 done
cristy3ed852e2009-09-05 21:47:34 +000021424fi
cristy3ed852e2009-09-05 21:47:34 +000021425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21426 if test $ac_cv_c_bigendian = unknown; then
21427 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021429/* end confdefs.h. */
21430#include <sys/types.h>
21431 #include <sys/param.h>
21432
21433int
21434main ()
21435{
21436#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21437 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21438 && LITTLE_ENDIAN)
21439 bogus endian macros
21440 #endif
21441
21442 ;
21443 return 0;
21444}
21445_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021446if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021447 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021449/* end confdefs.h. */
21450#include <sys/types.h>
21451 #include <sys/param.h>
21452
21453int
21454main ()
21455{
21456#if BYTE_ORDER != BIG_ENDIAN
21457 not big endian
21458 #endif
21459
21460 ;
21461 return 0;
21462}
21463_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021464if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021465 ac_cv_c_bigendian=yes
21466else
cristy8b350f62009-11-15 23:12:43 +000021467 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021468fi
cristy3ed852e2009-09-05 21:47:34 +000021469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021470fi
cristy3ed852e2009-09-05 21:47:34 +000021471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21472 fi
21473 if test $ac_cv_c_bigendian = unknown; then
21474 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000021475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021476/* end confdefs.h. */
21477#include <limits.h>
21478
21479int
21480main ()
21481{
21482#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21483 bogus endian macros
21484 #endif
21485
21486 ;
21487 return 0;
21488}
21489_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021490if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021491 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021493/* end confdefs.h. */
21494#include <limits.h>
21495
21496int
21497main ()
21498{
21499#ifndef _BIG_ENDIAN
21500 not big endian
21501 #endif
21502
21503 ;
21504 return 0;
21505}
21506_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021507if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021508 ac_cv_c_bigendian=yes
21509else
cristy8b350f62009-11-15 23:12:43 +000021510 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021511fi
cristy3ed852e2009-09-05 21:47:34 +000021512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021513fi
cristy3ed852e2009-09-05 21:47:34 +000021514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21515 fi
21516 if test $ac_cv_c_bigendian = unknown; then
21517 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000021518 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021519 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000021520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021521/* end confdefs.h. */
21522short int ascii_mm[] =
21523 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21524 short int ascii_ii[] =
21525 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21526 int use_ascii (int i) {
21527 return ascii_mm[i] + ascii_ii[i];
21528 }
21529 short int ebcdic_ii[] =
21530 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21531 short int ebcdic_mm[] =
21532 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21533 int use_ebcdic (int i) {
21534 return ebcdic_mm[i] + ebcdic_ii[i];
21535 }
21536 extern int foo;
21537
21538int
21539main ()
21540{
21541return use_ascii (foo) == use_ebcdic (foo);
21542 ;
21543 return 0;
21544}
21545_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021546if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021547 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21548 ac_cv_c_bigendian=yes
21549 fi
21550 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21551 if test "$ac_cv_c_bigendian" = unknown; then
21552 ac_cv_c_bigendian=no
21553 else
21554 # finding both strings is unlikely to happen, but who knows?
21555 ac_cv_c_bigendian=unknown
21556 fi
21557 fi
cristy3ed852e2009-09-05 21:47:34 +000021558fi
cristy3ed852e2009-09-05 21:47:34 +000021559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21560else
cristy8b350f62009-11-15 23:12:43 +000021561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021562/* end confdefs.h. */
21563$ac_includes_default
21564int
21565main ()
21566{
21567
21568 /* Are we little or big endian? From Harbison&Steele. */
21569 union
21570 {
21571 long int l;
21572 char c[sizeof (long int)];
21573 } u;
21574 u.l = 1;
21575 return u.c[sizeof (long int) - 1] == 1;
21576
21577 ;
21578 return 0;
21579}
21580_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021581if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021582 ac_cv_c_bigendian=no
21583else
cristy8b350f62009-11-15 23:12:43 +000021584 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000021585fi
cristy8b350f62009-11-15 23:12:43 +000021586rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21587 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021588fi
21589
cristy3ed852e2009-09-05 21:47:34 +000021590 fi
21591fi
cristy8b350f62009-11-15 23:12:43 +000021592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021593$as_echo "$ac_cv_c_bigendian" >&6; }
21594 case $ac_cv_c_bigendian in #(
21595 yes)
cristy8b350f62009-11-15 23:12:43 +000021596 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021597;; #(
21598 no)
21599 ;; #(
21600 universal)
21601
cristy8b350f62009-11-15 23:12:43 +000021602$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021603
21604 ;; #(
21605 *)
cristyf6fcb5d2010-09-24 01:19:13 +000021606 as_fn_error "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000021607 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021608 esac
21609
21610
21611# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021612ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21613if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021614
cristy3ed852e2009-09-05 21:47:34 +000021615else
21616
21617cat >>confdefs.h <<_ACEOF
21618#define mode_t int
21619_ACEOF
21620
21621fi
21622
21623
21624# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021625ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21626if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021627
cristy3ed852e2009-09-05 21:47:34 +000021628else
21629
21630cat >>confdefs.h <<_ACEOF
21631#define off_t long int
21632_ACEOF
21633
21634fi
21635
21636
21637# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021638ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21639if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021640
cristy3ed852e2009-09-05 21:47:34 +000021641else
21642
21643cat >>confdefs.h <<_ACEOF
21644#define pid_t int
21645_ACEOF
21646
21647fi
21648
21649
21650# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021651ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21652if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021653
cristy3ed852e2009-09-05 21:47:34 +000021654else
21655
21656cat >>confdefs.h <<_ACEOF
21657#define size_t unsigned int
21658_ACEOF
21659
21660fi
21661
21662
21663# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021664ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21665if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021666
cristy3ed852e2009-09-05 21:47:34 +000021667else
21668
21669cat >>confdefs.h <<_ACEOF
21670#define ssize_t int
21671_ACEOF
21672
21673fi
21674
21675
21676# If the C compiler supports a working long double type with more range
21677# or precision than the double type, define HAVE_LONG_DOUBLE.
21678
cristy8b350f62009-11-15 23:12:43 +000021679 { $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 +000021680$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021681if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021682 $as_echo_n "(cached) " >&6
21683else
cristy8b350f62009-11-15 23:12:43 +000021684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021685/* end confdefs.h. */
21686#include <float.h>
21687 long double const a[] =
21688 {
21689 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21690 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21691 };
21692 long double
21693 f (long double x)
21694 {
21695 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21696 + (x ? f (x) : 'c'));
21697 }
21698
21699int
21700main ()
21701{
21702static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21703 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21704 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21705 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21706 && (int) LDBL_EPSILON == 0
21707 )];
21708test_array [0] = 0
21709
21710 ;
21711 return 0;
21712}
21713_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021714if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021715 ac_cv_type_long_double_wider=yes
21716else
cristy8b350f62009-11-15 23:12:43 +000021717 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021718fi
cristy3ed852e2009-09-05 21:47:34 +000021719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21720fi
cristy8b350f62009-11-15 23:12:43 +000021721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021722$as_echo "$ac_cv_type_long_double_wider" >&6; }
21723 if test $ac_cv_type_long_double_wider = yes; then
21724
cristy8b350f62009-11-15 23:12:43 +000021725$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021726
21727 fi
21728
21729
21730# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21731# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021733$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021734if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021735 $as_echo_n "(cached) " >&6
21736else
cristy8b350f62009-11-15 23:12:43 +000021737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021738/* end confdefs.h. */
21739$ac_includes_default
21740int
21741main ()
21742{
21743static int test_array [1 - 2 * !(((char) -1) < 0)];
21744test_array [0] = 0
21745
21746 ;
21747 return 0;
21748}
21749_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021750if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021751 ac_cv_c_char_unsigned=no
21752else
cristy8b350f62009-11-15 23:12:43 +000021753 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021754fi
cristy3ed852e2009-09-05 21:47:34 +000021755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21756fi
cristy8b350f62009-11-15 23:12:43 +000021757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021758$as_echo "$ac_cv_c_char_unsigned" >&6; }
21759if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021760 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021761
21762fi
21763
21764
21765# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21766# The cast to long int works around a bug in the HP C Compiler
21767# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21768# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21769# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021771$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021772if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021773 $as_echo_n "(cached) " >&6
21774else
cristy8b350f62009-11-15 23:12:43 +000021775 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 +000021776
cristy3ed852e2009-09-05 21:47:34 +000021777else
cristy8b350f62009-11-15 23:12:43 +000021778 if test "$ac_cv_type_signed_short" = yes; then
21779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021781{ as_fn_set_status 77
21782as_fn_error "cannot compute sizeof (signed short)
21783See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021784 else
21785 ac_cv_sizeof_signed_short=0
21786 fi
21787fi
cristy8b350f62009-11-15 23:12:43 +000021788
cristy3ed852e2009-09-05 21:47:34 +000021789fi
cristy8b350f62009-11-15 23:12:43 +000021790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021791$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21792
21793
21794
21795cat >>confdefs.h <<_ACEOF
21796#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21797_ACEOF
21798
21799
21800
21801# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21802# The cast to long int works around a bug in the HP C Compiler
21803# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21804# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21805# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021807$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021808if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021809 $as_echo_n "(cached) " >&6
21810else
cristy8b350f62009-11-15 23:12:43 +000021811 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 +000021812
cristy3ed852e2009-09-05 21:47:34 +000021813else
cristy8b350f62009-11-15 23:12:43 +000021814 if test "$ac_cv_type_unsigned_short" = yes; then
21815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021817{ as_fn_set_status 77
21818as_fn_error "cannot compute sizeof (unsigned short)
21819See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021820 else
21821 ac_cv_sizeof_unsigned_short=0
21822 fi
21823fi
cristy8b350f62009-11-15 23:12:43 +000021824
cristy3ed852e2009-09-05 21:47:34 +000021825fi
cristy8b350f62009-11-15 23:12:43 +000021826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021827$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21828
21829
21830
21831cat >>confdefs.h <<_ACEOF
21832#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21833_ACEOF
21834
21835
21836
21837# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21838# The cast to long int works around a bug in the HP C Compiler
21839# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21840# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21841# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021843$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021844if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021845 $as_echo_n "(cached) " >&6
21846else
cristy8b350f62009-11-15 23:12:43 +000021847 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 +000021848
cristy3ed852e2009-09-05 21:47:34 +000021849else
cristy8b350f62009-11-15 23:12:43 +000021850 if test "$ac_cv_type_signed_int" = yes; then
21851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021853{ as_fn_set_status 77
21854as_fn_error "cannot compute sizeof (signed int)
21855See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021856 else
21857 ac_cv_sizeof_signed_int=0
21858 fi
21859fi
cristy8b350f62009-11-15 23:12:43 +000021860
cristy3ed852e2009-09-05 21:47:34 +000021861fi
cristy8b350f62009-11-15 23:12:43 +000021862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021863$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21864
21865
21866
21867cat >>confdefs.h <<_ACEOF
21868#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21869_ACEOF
21870
21871
21872
21873# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21874# The cast to long int works around a bug in the HP C Compiler
21875# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21876# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21877# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021879$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021880if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021881 $as_echo_n "(cached) " >&6
21882else
cristy8b350f62009-11-15 23:12:43 +000021883 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 +000021884
cristy3ed852e2009-09-05 21:47:34 +000021885else
cristy8b350f62009-11-15 23:12:43 +000021886 if test "$ac_cv_type_unsigned_int" = yes; then
21887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021888$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021889{ as_fn_set_status 77
21890as_fn_error "cannot compute sizeof (unsigned int)
21891See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021892 else
21893 ac_cv_sizeof_unsigned_int=0
21894 fi
21895fi
cristy8b350f62009-11-15 23:12:43 +000021896
cristy3ed852e2009-09-05 21:47:34 +000021897fi
cristy8b350f62009-11-15 23:12:43 +000021898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021899$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21900
21901
21902
21903cat >>confdefs.h <<_ACEOF
21904#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21905_ACEOF
21906
21907
21908
21909# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21910# The cast to long int works around a bug in the HP C Compiler
21911# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21912# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21913# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021915$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021916if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021917 $as_echo_n "(cached) " >&6
21918else
cristy8b350f62009-11-15 23:12:43 +000021919 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 +000021920
cristy3ed852e2009-09-05 21:47:34 +000021921else
cristy8b350f62009-11-15 23:12:43 +000021922 if test "$ac_cv_type_signed_long" = yes; then
21923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021925{ as_fn_set_status 77
21926as_fn_error "cannot compute sizeof (signed long)
21927See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021928 else
21929 ac_cv_sizeof_signed_long=0
21930 fi
21931fi
cristy8b350f62009-11-15 23:12:43 +000021932
cristy3ed852e2009-09-05 21:47:34 +000021933fi
cristy8b350f62009-11-15 23:12:43 +000021934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021935$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21936
21937
21938
21939cat >>confdefs.h <<_ACEOF
21940#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21941_ACEOF
21942
21943
21944
21945# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21946# The cast to long int works around a bug in the HP C Compiler
21947# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21948# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21949# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021951$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021952if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021953 $as_echo_n "(cached) " >&6
21954else
cristy8b350f62009-11-15 23:12:43 +000021955 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 +000021956
cristy3ed852e2009-09-05 21:47:34 +000021957else
cristy8b350f62009-11-15 23:12:43 +000021958 if test "$ac_cv_type_unsigned_long" = yes; then
21959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021960$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021961{ as_fn_set_status 77
21962as_fn_error "cannot compute sizeof (unsigned long)
21963See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021964 else
21965 ac_cv_sizeof_unsigned_long=0
21966 fi
21967fi
cristy8b350f62009-11-15 23:12:43 +000021968
cristy3ed852e2009-09-05 21:47:34 +000021969fi
cristy8b350f62009-11-15 23:12:43 +000021970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021971$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21972
21973
21974
21975cat >>confdefs.h <<_ACEOF
21976#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21977_ACEOF
21978
21979
21980
21981# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21982# 'signed long long' is not supported then the value defined is zero.
21983# The cast to long int works around a bug in the HP C Compiler
21984# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21985# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21986# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021988$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021989if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021990 $as_echo_n "(cached) " >&6
21991else
cristy8b350f62009-11-15 23:12:43 +000021992 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 +000021993
cristy3ed852e2009-09-05 21:47:34 +000021994else
cristy8b350f62009-11-15 23:12:43 +000021995 if test "$ac_cv_type_signed_long_long" = yes; then
21996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000021998{ as_fn_set_status 77
21999as_fn_error "cannot compute sizeof (signed long long)
22000See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022001 else
22002 ac_cv_sizeof_signed_long_long=0
22003 fi
22004fi
cristy8b350f62009-11-15 23:12:43 +000022005
cristy3ed852e2009-09-05 21:47:34 +000022006fi
cristy8b350f62009-11-15 23:12:43 +000022007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022008$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
22009
22010
22011
22012cat >>confdefs.h <<_ACEOF
22013#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
22014_ACEOF
22015
22016
22017
22018# Obtain size of a 'unsigned long long' and define as
22019# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
22020# supported then the value defined is zero.
22021# The cast to long int works around a bug in the HP C Compiler
22022# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22023# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22024# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022026$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022027if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022028 $as_echo_n "(cached) " >&6
22029else
cristy8b350f62009-11-15 23:12:43 +000022030 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 +000022031
cristy3ed852e2009-09-05 21:47:34 +000022032else
cristy8b350f62009-11-15 23:12:43 +000022033 if test "$ac_cv_type_unsigned_long_long" = yes; then
22034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000022036{ as_fn_set_status 77
22037as_fn_error "cannot compute sizeof (unsigned long long)
22038See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022039 else
22040 ac_cv_sizeof_unsigned_long_long=0
22041 fi
22042fi
cristy8b350f62009-11-15 23:12:43 +000022043
cristy3ed852e2009-09-05 21:47:34 +000022044fi
cristy8b350f62009-11-15 23:12:43 +000022045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022046$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22047
22048
22049
22050cat >>confdefs.h <<_ACEOF
22051#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22052_ACEOF
22053
22054
22055
22056# Obtain size of off_t and define as SIZEOF_OFF_T
22057# The cast to long int works around a bug in the HP C Compiler
22058# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22059# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22060# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022062$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022063if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022064 $as_echo_n "(cached) " >&6
22065else
cristy8b350f62009-11-15 23:12:43 +000022066 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 +000022067
cristy3ed852e2009-09-05 21:47:34 +000022068else
cristy8b350f62009-11-15 23:12:43 +000022069 if test "$ac_cv_type_off_t" = yes; then
22070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000022072{ as_fn_set_status 77
22073as_fn_error "cannot compute sizeof (off_t)
22074See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022075 else
22076 ac_cv_sizeof_off_t=0
22077 fi
22078fi
cristy8b350f62009-11-15 23:12:43 +000022079
cristy3ed852e2009-09-05 21:47:34 +000022080fi
cristy8b350f62009-11-15 23:12:43 +000022081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022082$as_echo "$ac_cv_sizeof_off_t" >&6; }
22083
22084
22085
22086cat >>confdefs.h <<_ACEOF
22087#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22088_ACEOF
22089
22090
22091
22092# Obtain size of size_t and define as SIZEOF_SIZE_T
22093# The cast to long int works around a bug in the HP C Compiler
22094# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22095# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22096# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022098$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022099if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022100 $as_echo_n "(cached) " >&6
22101else
cristy8b350f62009-11-15 23:12:43 +000022102 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 +000022103
cristy3ed852e2009-09-05 21:47:34 +000022104else
cristy8b350f62009-11-15 23:12:43 +000022105 if test "$ac_cv_type_size_t" = yes; then
22106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000022108{ as_fn_set_status 77
22109as_fn_error "cannot compute sizeof (size_t)
22110See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022111 else
22112 ac_cv_sizeof_size_t=0
22113 fi
22114fi
cristy8b350f62009-11-15 23:12:43 +000022115
cristy3ed852e2009-09-05 21:47:34 +000022116fi
cristy8b350f62009-11-15 23:12:43 +000022117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022118$as_echo "$ac_cv_sizeof_size_t" >&6; }
22119
22120
22121
22122cat >>confdefs.h <<_ACEOF
22123#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22124_ACEOF
22125
22126
22127
cristy330e9352010-06-01 18:42:49 +000022128# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
22129# The cast to long int works around a bug in the HP C Compiler
22130# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22131# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22132# This bug is HP SR number 8606223364.
22133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
22134$as_echo_n "checking size of ssize_t... " >&6; }
22135if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
22136 $as_echo_n "(cached) " >&6
22137else
22138 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
22139
22140else
22141 if test "$ac_cv_type_ssize_t" = yes; then
22142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000022144{ as_fn_set_status 77
22145as_fn_error "cannot compute sizeof (ssize_t)
22146See \`config.log' for more details." "$LINENO" 5; }; }
cristy330e9352010-06-01 18:42:49 +000022147 else
22148 ac_cv_sizeof_ssize_t=0
22149 fi
22150fi
22151
22152fi
22153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
22154$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
22155
22156
22157
22158cat >>confdefs.h <<_ACEOF
22159#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
22160_ACEOF
22161
22162
22163
cristy3ed852e2009-09-05 21:47:34 +000022164# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
22165# The cast to long int works around a bug in the HP C Compiler
22166# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22167# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22168# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000022170$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022171if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022172 $as_echo_n "(cached) " >&6
22173else
cristy8b350f62009-11-15 23:12:43 +000022174 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 +000022175
cristy3ed852e2009-09-05 21:47:34 +000022176else
cristy8b350f62009-11-15 23:12:43 +000022177 if test "$ac_cv_type_unsigned_intp" = yes; then
22178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022179$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +000022180{ as_fn_set_status 77
22181as_fn_error "cannot compute sizeof (unsigned int*)
22182See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022183 else
22184 ac_cv_sizeof_unsigned_intp=0
22185 fi
22186fi
cristy8b350f62009-11-15 23:12:43 +000022187
cristy3ed852e2009-09-05 21:47:34 +000022188fi
cristy8b350f62009-11-15 23:12:43 +000022189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022190$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
22191
22192
22193
22194cat >>confdefs.h <<_ACEOF
22195#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22196_ACEOF
22197
22198
22199
22200#
22201# Compute sized types for current CPU and compiler options.
22202#
22203
cristy8b350f62009-11-15 23:12:43 +000022204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022205$as_echo_n "checking for signed 8-bit type... " >&6; }
22206INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000022207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022208$as_echo "$INT8_T" >&6; }
22209
22210
cristy8b350f62009-11-15 23:12:43 +000022211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022212$as_echo_n "checking for unsigned 8-bit type... " >&6; }
22213UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000022214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022215$as_echo "$UINT8_T" >&6; }
22216
22217
cristy8b350f62009-11-15 23:12:43 +000022218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022219$as_echo_n "checking for signed 16-bit type... " >&6; }
22220INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022222$as_echo "$INT16_T" >&6; }
22223
22224
cristy8b350f62009-11-15 23:12:43 +000022225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022226$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22227UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022229$as_echo "$UINT16_T" >&6; }
22230
22231
cristy8b350f62009-11-15 23:12:43 +000022232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022233$as_echo_n "checking for signed 32-bit type... " >&6; }
22234INT32_T='none'
22235if test $ac_cv_sizeof_signed_int -eq 4; then
22236 INT32_T='signed int'
22237elif test $ac_cv_sizeof_signed_long -eq 4; then
22238 INT32_T='signed long'
22239fi
cristy8b350f62009-11-15 23:12:43 +000022240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022241$as_echo "$INT32_T" >&6; }
22242
22243
cristy8b350f62009-11-15 23:12:43 +000022244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022245$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22246UINT32_T='none'
22247if test $ac_cv_sizeof_unsigned_int -eq 4; then
22248 UINT32_T='unsigned int'
22249elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22250 UINT32_T='unsigned long'
22251fi
cristy8b350f62009-11-15 23:12:43 +000022252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022253$as_echo "$UINT32_T" >&6; }
22254
22255
cristy8b350f62009-11-15 23:12:43 +000022256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022257$as_echo_n "checking for signed 64-bit type... " >&6; }
22258INT64_T='none'
22259if test $ac_cv_sizeof_signed_long -eq 8; then
22260 INT64_T='signed long'
22261elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22262 INT64_T='signed long long'
22263fi
cristy8b350f62009-11-15 23:12:43 +000022264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022265$as_echo "$INT64_T" >&6; }
22266
22267
cristy8b350f62009-11-15 23:12:43 +000022268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022269$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22270UINT64_T='none'
22271if test $ac_cv_sizeof_unsigned_long -eq 8; then
22272 UINT64_T='unsigned long'
22273elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22274 UINT64_T='unsigned long long'
22275fi
cristy8b350f62009-11-15 23:12:43 +000022276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022277$as_echo "$UINT64_T" >&6; }
22278
22279
cristy8b350f62009-11-15 23:12:43 +000022280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022281$as_echo_n "checking for unsigned maximum type... " >&6; }
22282UINTMAX_T='none'
22283if test "$UINT64_T" != 'none'; then
22284 UINTMAX_T=$UINT64_T
22285elif test "$UINT32_T" != 'none'; then
22286 UINTMAX_T=$UINT32_T
22287fi
cristy8b350f62009-11-15 23:12:43 +000022288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022289$as_echo "$UINTMAX_T" >&6; }
22290
22291
cristy8b350f62009-11-15 23:12:43 +000022292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022293$as_echo_n "checking for pointer difference type... " >&6; }
22294UINTPTR_T='none'
22295if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22296 UINTPTR_T='unsigned long'
22297elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22298 UINTPTR_T='unsigned long long'
22299fi
cristy8b350f62009-11-15 23:12:43 +000022300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022301$as_echo "$UINTPTR_T" >&6; }
22302
22303
cristy8b350f62009-11-15 23:12:43 +000022304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022305$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022307/* end confdefs.h. */
22308
22309int
22310main ()
22311{
22312{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22313 ;
22314 return 0;
22315}
22316_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022317if ac_fn_c_try_compile "$LINENO"; then :
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022319$as_echo "yes" >&6; }
22320else
cristy8b350f62009-11-15 23:12:43 +000022321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022322$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022324$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022326/* end confdefs.h. */
22327
22328int
22329main ()
22330{
22331{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22332 ;
22333 return 0;
22334}
22335_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022336if ac_fn_c_try_compile "$LINENO"; then :
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022338$as_echo "yes" >&6; }
22339
cristy8b350f62009-11-15 23:12:43 +000022340$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022341
22342else
cristy8b350f62009-11-15 23:12:43 +000022343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022344$as_echo "no" >&6; }
22345
cristy8b350f62009-11-15 23:12:43 +000022346$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022347
22348fi
cristy3ed852e2009-09-05 21:47:34 +000022349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22350fi
cristy3ed852e2009-09-05 21:47:34 +000022351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22352
22353########
22354#
22355# Check for functions
22356#
22357########
cristy3ed852e2009-09-05 21:47:34 +000022358for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000022359do :
22360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22361ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyf6fcb5d2010-09-24 01:19:13 +000022362eval as_val=\$$as_ac_Header
22363 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022364 cat >>confdefs.h <<_ACEOF
22365#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22366_ACEOF
22367
22368fi
22369
22370done
22371
cristy3ed852e2009-09-05 21:47:34 +000022372for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022373do :
22374 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22375if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022376 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022377#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022378_ACEOF
22379
22380fi
22381done
22382
cristy8b350f62009-11-15 23:12:43 +000022383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000022384$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022385if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022386 $as_echo_n "(cached) " >&6
22387else
cristy8b350f62009-11-15 23:12:43 +000022388 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022389 magick_cv_func_mmap_fileio=no
22390else
cristy8b350f62009-11-15 23:12:43 +000022391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022392/* end confdefs.h. */
22393$ac_includes_default
22394/* malloc might have been renamed as rpl_malloc. */
22395#undef malloc
22396
22397/*
22398 This test is derived from GNU Autoconf's similar macro.
22399 The purpose of this test is to verify that files may be memory
22400 mapped, and that memory mapping and file I/O are coherent.
22401
22402 The test creates a test file, memory maps the file, updates
22403 the file using the memory map, and then reads the file using
22404 file I/O to verify that the file contains the updates.
22405*/
22406
22407#include <fcntl.h>
22408#include <sys/mman.h>
22409
22410#if !STDC_HEADERS && !HAVE_STDLIB_H
22411char *malloc ();
22412#endif
22413
22414/* This mess was copied from the GNU getpagesize.h. */
22415#if !HAVE_GETPAGESIZE
22416/* Assume that all systems that can run configure have sys/param.h. */
22417# if !HAVE_SYS_PARAM_H
22418# define HAVE_SYS_PARAM_H 1
22419# endif
22420
22421# ifdef _SC_PAGESIZE
22422# define getpagesize() sysconf(_SC_PAGESIZE)
22423# else /* no _SC_PAGESIZE */
22424# if HAVE_SYS_PARAM_H
22425# include <sys/param.h>
22426# ifdef EXEC_PAGESIZE
22427# define getpagesize() EXEC_PAGESIZE
22428# else /* no EXEC_PAGESIZE */
22429# ifdef NBPG
22430# define getpagesize() NBPG * CLSIZE
22431# ifndef CLSIZE
22432# define CLSIZE 1
22433# endif /* no CLSIZE */
22434# else /* no NBPG */
22435# ifdef NBPC
22436# define getpagesize() NBPC
22437# else /* no NBPC */
22438# ifdef PAGESIZE
22439# define getpagesize() PAGESIZE
22440# endif /* PAGESIZE */
22441# endif /* no NBPC */
22442# endif /* no NBPG */
22443# endif /* no EXEC_PAGESIZE */
22444# else /* no HAVE_SYS_PARAM_H */
22445# define getpagesize() 8192 /* punt totally */
22446# endif /* no HAVE_SYS_PARAM_H */
22447# endif /* no _SC_PAGESIZE */
22448
22449#endif /* no HAVE_GETPAGESIZE */
22450
22451int
22452main ()
22453{
22454 char *data, *data2, *data3;
22455 int i, pagesize;
22456 int fd;
22457
22458 pagesize = getpagesize ();
22459
22460 /* First, make a file with some known garbage in it. */
22461 data = (char *) malloc (pagesize);
22462 if (!data)
22463 exit (1);
22464 for (i = 0; i < pagesize; ++i)
22465 *(data + i) = rand ();
22466 umask (0);
22467 fd = creat ("conftest.mmap", 0600);
22468 if (fd < 0)
22469 exit (1);
22470 if (write (fd, data, pagesize) != pagesize)
22471 exit (1);
22472 close (fd);
22473
22474 /* Mmap the file as read/write/shared and verify that we see the
22475 same garbage. */
22476 fd = open ("conftest.mmap", O_RDWR);
22477 if (fd < 0)
22478 exit (1);
22479 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22480 if (data2 == 0)
22481 exit (1);
22482 for (i = 0; i < pagesize; ++i)
22483 if (*(data + i) != *(data2 + i))
22484 exit (1);
22485
22486 /* Finally, make sure that changes to the mapped area
22487 percolate back to the file as seen by read(). */
22488 for (i = 0; i < pagesize; ++i)
22489 *(data2 + i) = *(data2 + i) + 1;
22490 data3 = (char *) malloc (pagesize);
22491 if (!data3)
22492 exit (1);
22493 if (read (fd, data3, pagesize) != pagesize)
22494 exit (1);
22495 for (i = 0; i < pagesize; ++i)
22496 if (*(data2 + i) != *(data3 + i))
22497 exit (1);
22498 close (fd);
22499 exit (0);
22500}
22501_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022502if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022503 magick_cv_func_mmap_fileio=yes
22504else
cristy8b350f62009-11-15 23:12:43 +000022505 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000022506fi
cristy8b350f62009-11-15 23:12:43 +000022507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22508 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022509fi
22510
cristy3ed852e2009-09-05 21:47:34 +000022511fi
cristy8b350f62009-11-15 23:12:43 +000022512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000022513$as_echo "$magick_cv_func_mmap_fileio" >&6; }
22514if test $magick_cv_func_mmap_fileio = yes; then
22515
cristy8b350f62009-11-15 23:12:43 +000022516$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022517
22518fi
22519rm -f conftest.mmap
22520
cristy8b350f62009-11-15 23:12:43 +000022521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022522$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022523if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022524 $as_echo_n "(cached) " >&6
22525else
cristy8b350f62009-11-15 23:12:43 +000022526 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022527 ac_cv_func_closedir_void=yes
22528else
cristy8b350f62009-11-15 23:12:43 +000022529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022530/* end confdefs.h. */
22531$ac_includes_default
22532#include <$ac_header_dirent>
22533#ifndef __cplusplus
22534int closedir ();
22535#endif
22536
22537int
22538main ()
22539{
22540return closedir (opendir (".")) != 0;
22541 ;
22542 return 0;
22543}
22544_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022545if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022546 ac_cv_func_closedir_void=no
22547else
cristy8b350f62009-11-15 23:12:43 +000022548 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000022549fi
cristy8b350f62009-11-15 23:12:43 +000022550rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22551 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022552fi
22553
cristy3ed852e2009-09-05 21:47:34 +000022554fi
cristy8b350f62009-11-15 23:12:43 +000022555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022556$as_echo "$ac_cv_func_closedir_void" >&6; }
22557if test $ac_cv_func_closedir_void = yes; then
22558
cristy8b350f62009-11-15 23:12:43 +000022559$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022560
22561fi
22562
cristycd4c5312009-11-22 01:19:08 +000022563
22564
22565
22566 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000022567do :
22568 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000022569ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22570"
cristyf6fcb5d2010-09-24 01:19:13 +000022571eval as_val=\$$as_ac_Header
22572 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022573 cat >>confdefs.h <<_ACEOF
22574#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22575_ACEOF
22576
22577fi
22578
22579done
22580
cristycd4c5312009-11-22 01:19:08 +000022581
22582
22583
22584
22585
22586
22587
cristy3ed852e2009-09-05 21:47:34 +000022588for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022589do :
22590 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22591if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022592 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022593#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022594_ACEOF
22595
22596fi
22597done
22598
cristy8b350f62009-11-15 23:12:43 +000022599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000022600$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022601if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022602 $as_echo_n "(cached) " >&6
22603else
cristy8b350f62009-11-15 23:12:43 +000022604 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022605 ac_cv_func_mmap_fixed_mapped=no
22606else
cristy8b350f62009-11-15 23:12:43 +000022607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022608/* end confdefs.h. */
22609$ac_includes_default
22610/* malloc might have been renamed as rpl_malloc. */
22611#undef malloc
22612
22613/* Thanks to Mike Haertel and Jim Avera for this test.
22614 Here is a matrix of mmap possibilities:
22615 mmap private not fixed
22616 mmap private fixed at somewhere currently unmapped
22617 mmap private fixed at somewhere already mapped
22618 mmap shared not fixed
22619 mmap shared fixed at somewhere currently unmapped
22620 mmap shared fixed at somewhere already mapped
22621 For private mappings, we should verify that changes cannot be read()
22622 back from the file, nor mmap's back from the file at a different
22623 address. (There have been systems where private was not correctly
22624 implemented like the infamous i386 svr4.0, and systems where the
22625 VM page cache was not coherent with the file system buffer cache
22626 like early versions of FreeBSD and possibly contemporary NetBSD.)
22627 For shared mappings, we should conversely verify that changes get
22628 propagated back to all the places they're supposed to be.
22629
22630 Grep wants private fixed already mapped.
22631 The main things grep needs to know about mmap are:
22632 * does it exist and is it safe to write into the mmap'd area
22633 * how to use it (BSD variants) */
22634
22635#include <fcntl.h>
22636#include <sys/mman.h>
22637
22638#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22639char *malloc ();
22640#endif
22641
22642/* This mess was copied from the GNU getpagesize.h. */
22643#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022644# ifdef _SC_PAGESIZE
22645# define getpagesize() sysconf(_SC_PAGESIZE)
22646# else /* no _SC_PAGESIZE */
22647# ifdef HAVE_SYS_PARAM_H
22648# include <sys/param.h>
22649# ifdef EXEC_PAGESIZE
22650# define getpagesize() EXEC_PAGESIZE
22651# else /* no EXEC_PAGESIZE */
22652# ifdef NBPG
22653# define getpagesize() NBPG * CLSIZE
22654# ifndef CLSIZE
22655# define CLSIZE 1
22656# endif /* no CLSIZE */
22657# else /* no NBPG */
22658# ifdef NBPC
22659# define getpagesize() NBPC
22660# else /* no NBPC */
22661# ifdef PAGESIZE
22662# define getpagesize() PAGESIZE
22663# endif /* PAGESIZE */
22664# endif /* no NBPC */
22665# endif /* no NBPG */
22666# endif /* no EXEC_PAGESIZE */
22667# else /* no HAVE_SYS_PARAM_H */
22668# define getpagesize() 8192 /* punt totally */
22669# endif /* no HAVE_SYS_PARAM_H */
22670# endif /* no _SC_PAGESIZE */
22671
22672#endif /* no HAVE_GETPAGESIZE */
22673
22674int
22675main ()
22676{
22677 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022678 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022679 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022680 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022681
22682 pagesize = getpagesize ();
22683
22684 /* First, make a file with some known garbage in it. */
22685 data = (char *) malloc (pagesize);
22686 if (!data)
22687 return 1;
22688 for (i = 0; i < pagesize; ++i)
22689 *(data + i) = rand ();
22690 umask (0);
22691 fd = creat ("conftest.mmap", 0600);
22692 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022693 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022694 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022695 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022696 close (fd);
22697
cristycd4c5312009-11-22 01:19:08 +000022698 /* Next, check that the tail of a page is zero-filled. File must have
22699 non-zero length, otherwise we risk SIGBUS for entire page. */
22700 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22701 if (fd2 < 0)
22702 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022703 cdata2 = "";
22704 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022705 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022706 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022707 if (data2 == MAP_FAILED)
22708 return 6;
22709 for (i = 0; i < pagesize; ++i)
22710 if (*(data2 + i))
22711 return 7;
22712 close (fd2);
22713 if (munmap (data2, pagesize))
22714 return 8;
22715
cristy3ed852e2009-09-05 21:47:34 +000022716 /* Next, try to mmap the file at a fixed address which already has
22717 something else allocated at it. If we can, also make sure that
22718 we see the same garbage. */
22719 fd = open ("conftest.mmap", O_RDWR);
22720 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022721 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022722 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22723 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022724 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022725 for (i = 0; i < pagesize; ++i)
22726 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022727 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022728
22729 /* Finally, make sure that changes to the mapped area do not
22730 percolate back to the file as seen by read(). (This is a bug on
22731 some variants of i386 svr4.0.) */
22732 for (i = 0; i < pagesize; ++i)
22733 *(data2 + i) = *(data2 + i) + 1;
22734 data3 = (char *) malloc (pagesize);
22735 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022736 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022737 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022738 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022739 for (i = 0; i < pagesize; ++i)
22740 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022741 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022742 close (fd);
22743 return 0;
22744}
22745_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022746if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022747 ac_cv_func_mmap_fixed_mapped=yes
22748else
cristy8b350f62009-11-15 23:12:43 +000022749 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022750fi
cristy8b350f62009-11-15 23:12:43 +000022751rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22752 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022753fi
22754
cristy3ed852e2009-09-05 21:47:34 +000022755fi
cristy8b350f62009-11-15 23:12:43 +000022756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022757$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22758if test $ac_cv_func_mmap_fixed_mapped = yes; then
22759
cristy8b350f62009-11-15 23:12:43 +000022760$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022761
22762fi
cristycd4c5312009-11-22 01:19:08 +000022763rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022764
cristy3ed852e2009-09-05 21:47:34 +000022765for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022766do :
22767 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22768if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022769 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022770#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022771_ACEOF
22772
22773fi
22774
22775done
22776
cristy3ed852e2009-09-05 21:47:34 +000022777for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022778do :
22779 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22780ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyf6fcb5d2010-09-24 01:19:13 +000022781eval as_val=\$$as_ac_var
22782 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022783 cat >>confdefs.h <<_ACEOF
22784#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22785_ACEOF
22786
22787fi
22788done
22789
22790if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022792$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022793if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022794 $as_echo_n "(cached) " >&6
22795else
cristy8b350f62009-11-15 23:12:43 +000022796 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022797 ac_cv_func_fork_works=cross
22798else
cristy8b350f62009-11-15 23:12:43 +000022799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022800/* end confdefs.h. */
22801$ac_includes_default
22802int
22803main ()
22804{
22805
22806 /* By Ruediger Kuhlmann. */
22807 return fork () < 0;
22808
22809 ;
22810 return 0;
22811}
22812_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022813if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022814 ac_cv_func_fork_works=yes
22815else
cristy8b350f62009-11-15 23:12:43 +000022816 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022817fi
cristy8b350f62009-11-15 23:12:43 +000022818rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22819 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022820fi
22821
cristy3ed852e2009-09-05 21:47:34 +000022822fi
cristy8b350f62009-11-15 23:12:43 +000022823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022824$as_echo "$ac_cv_func_fork_works" >&6; }
22825
22826else
22827 ac_cv_func_fork_works=$ac_cv_func_fork
22828fi
22829if test "x$ac_cv_func_fork_works" = xcross; then
22830 case $host in
22831 *-*-amigaos* | *-*-msdosdjgpp*)
22832 # Override, as these systems have only a dummy fork() stub
22833 ac_cv_func_fork_works=no
22834 ;;
22835 *)
22836 ac_cv_func_fork_works=yes
22837 ;;
22838 esac
cristy8b350f62009-11-15 23:12:43 +000022839 { $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 +000022840$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22841fi
22842ac_cv_func_vfork_works=$ac_cv_func_vfork
22843if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022845$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022846if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022847 $as_echo_n "(cached) " >&6
22848else
cristy8b350f62009-11-15 23:12:43 +000022849 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022850 ac_cv_func_vfork_works=cross
22851else
cristy8b350f62009-11-15 23:12:43 +000022852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022853/* end confdefs.h. */
22854/* Thanks to Paul Eggert for this test. */
22855$ac_includes_default
22856#include <sys/wait.h>
22857#ifdef HAVE_VFORK_H
22858# include <vfork.h>
22859#endif
22860/* On some sparc systems, changes by the child to local and incoming
22861 argument registers are propagated back to the parent. The compiler
22862 is told about this with #include <vfork.h>, but some compilers
22863 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22864 static variable whose address is put into a register that is
22865 clobbered by the vfork. */
22866static void
22867#ifdef __cplusplus
22868sparc_address_test (int arg)
22869# else
22870sparc_address_test (arg) int arg;
22871#endif
22872{
22873 static pid_t child;
22874 if (!child) {
22875 child = vfork ();
22876 if (child < 0) {
22877 perror ("vfork");
22878 _exit(2);
22879 }
22880 if (!child) {
22881 arg = getpid();
22882 write(-1, "", 0);
22883 _exit (arg);
22884 }
22885 }
22886}
22887
22888int
22889main ()
22890{
22891 pid_t parent = getpid ();
22892 pid_t child;
22893
22894 sparc_address_test (0);
22895
22896 child = vfork ();
22897
22898 if (child == 0) {
22899 /* Here is another test for sparc vfork register problems. This
22900 test uses lots of local variables, at least as many local
22901 variables as main has allocated so far including compiler
22902 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22903 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22904 reuse the register of parent for one of the local variables,
22905 since it will think that parent can't possibly be used any more
22906 in this routine. Assigning to the local variable will thus
22907 munge parent in the parent process. */
22908 pid_t
22909 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22910 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22911 /* Convince the compiler that p..p7 are live; otherwise, it might
22912 use the same hardware register for all 8 local variables. */
22913 if (p != p1 || p != p2 || p != p3 || p != p4
22914 || p != p5 || p != p6 || p != p7)
22915 _exit(1);
22916
22917 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22918 from child file descriptors. If the child closes a descriptor
22919 before it execs or exits, this munges the parent's descriptor
22920 as well. Test for this by closing stdout in the child. */
22921 _exit(close(fileno(stdout)) != 0);
22922 } else {
22923 int status;
22924 struct stat st;
22925
22926 while (wait(&status) != child)
22927 ;
22928 return (
22929 /* Was there some problem with vforking? */
22930 child < 0
22931
22932 /* Did the child fail? (This shouldn't happen.) */
22933 || status
22934
22935 /* Did the vfork/compiler bug occur? */
22936 || parent != getpid()
22937
22938 /* Did the file descriptor bug occur? */
22939 || fstat(fileno(stdout), &st) != 0
22940 );
22941 }
22942}
22943_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022944if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022945 ac_cv_func_vfork_works=yes
22946else
cristy8b350f62009-11-15 23:12:43 +000022947 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022948fi
cristy8b350f62009-11-15 23:12:43 +000022949rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22950 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022951fi
22952
cristy3ed852e2009-09-05 21:47:34 +000022953fi
cristy8b350f62009-11-15 23:12:43 +000022954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022955$as_echo "$ac_cv_func_vfork_works" >&6; }
22956
22957fi;
22958if test "x$ac_cv_func_fork_works" = xcross; then
22959 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022960 { $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 +000022961$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22962fi
22963
22964if test "x$ac_cv_func_vfork_works" = xyes; then
22965
cristy8b350f62009-11-15 23:12:43 +000022966$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022967
22968else
22969
cristy8b350f62009-11-15 23:12:43 +000022970$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022971
22972fi
22973if test "x$ac_cv_func_fork_works" = xyes; then
22974
cristy8b350f62009-11-15 23:12:43 +000022975$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022976
22977fi
22978
cristy8b350f62009-11-15 23:12:43 +000022979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022980$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022981if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022982 $as_echo_n "(cached) " >&6
22983else
cristy8b350f62009-11-15 23:12:43 +000022984 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022985 ac_cv_func_memcmp_working=no
22986else
cristy8b350f62009-11-15 23:12:43 +000022987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022988/* end confdefs.h. */
22989$ac_includes_default
22990int
22991main ()
22992{
22993
22994 /* Some versions of memcmp are not 8-bit clean. */
22995 char c0 = '\100', c1 = '\200', c2 = '\201';
22996 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22997 return 1;
22998
22999 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23000 or more and with at least one buffer not starting on a 4-byte boundary.
23001 William Lewis provided this test program. */
23002 {
23003 char foo[21];
23004 char bar[21];
23005 int i;
23006 for (i = 0; i < 4; i++)
23007 {
23008 char *a = foo + i;
23009 char *b = bar + i;
23010 strcpy (a, "--------01111111");
23011 strcpy (b, "--------10000000");
23012 if (memcmp (a, b, 16) >= 0)
23013 return 1;
23014 }
23015 return 0;
23016 }
23017
23018 ;
23019 return 0;
23020}
23021_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023022if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023023 ac_cv_func_memcmp_working=yes
23024else
cristy8b350f62009-11-15 23:12:43 +000023025 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000023026fi
cristy8b350f62009-11-15 23:12:43 +000023027rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23028 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023029fi
23030
cristy3ed852e2009-09-05 21:47:34 +000023031fi
cristy8b350f62009-11-15 23:12:43 +000023032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000023033$as_echo "$ac_cv_func_memcmp_working" >&6; }
23034test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23035 *" memcmp.$ac_objext "* ) ;;
23036 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23037 ;;
23038esac
23039
23040
cristy3ed852e2009-09-05 21:47:34 +000023041for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000023042do :
23043 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23044ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyf6fcb5d2010-09-24 01:19:13 +000023045eval as_val=\$$as_ac_Header
23046 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023047 cat >>confdefs.h <<_ACEOF
23048#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23049_ACEOF
23050
23051fi
23052
23053done
23054
cristy8b350f62009-11-15 23:12:43 +000023055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000023056$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023057if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023058 $as_echo_n "(cached) " >&6
23059else
23060 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23061 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23062 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000023063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023064/* end confdefs.h. */
23065$ac_includes_default
23066#ifdef HAVE_SYS_SELECT_H
23067# include <sys/select.h>
23068#endif
23069#ifdef HAVE_SYS_SOCKET_H
23070# include <sys/socket.h>
23071#endif
23072
23073int
23074main ()
23075{
23076extern int select ($ac_arg1,
23077 $ac_arg234, $ac_arg234, $ac_arg234,
23078 $ac_arg5);
23079 ;
23080 return 0;
23081}
23082_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023083if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023084 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000023085fi
cristy3ed852e2009-09-05 21:47:34 +000023086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23087 done
23088 done
23089done
23090# Provide a safe default value.
23091: ${ac_cv_func_select_args='int,int *,struct timeval *'}
23092
23093fi
cristy8b350f62009-11-15 23:12:43 +000023094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000023095$as_echo "$ac_cv_func_select_args" >&6; }
23096ac_save_IFS=$IFS; IFS=','
23097set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23098IFS=$ac_save_IFS
23099shift
23100
23101cat >>confdefs.h <<_ACEOF
23102#define SELECT_TYPE_ARG1 $1
23103_ACEOF
23104
23105
23106cat >>confdefs.h <<_ACEOF
23107#define SELECT_TYPE_ARG234 ($2)
23108_ACEOF
23109
23110
23111cat >>confdefs.h <<_ACEOF
23112#define SELECT_TYPE_ARG5 ($3)
23113_ACEOF
23114
23115rm -f conftest*
23116
cristy8b350f62009-11-15 23:12:43 +000023117if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023118 $as_echo_n "(cached) " >&6
23119else
23120 ac_cv_func_setvbuf_reversed=no
23121fi
23122
23123
cristy8b350f62009-11-15 23:12:43 +000023124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000023125$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023126if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023127 $as_echo_n "(cached) " >&6
23128else
cristy8b350f62009-11-15 23:12:43 +000023129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023130/* end confdefs.h. */
23131#include <sys/types.h>
23132#include <signal.h>
23133
23134int
23135main ()
23136{
23137return *(signal (0, 0)) (0) == 1;
23138 ;
23139 return 0;
23140}
23141_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023142if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023143 ac_cv_type_signal=int
23144else
cristy8b350f62009-11-15 23:12:43 +000023145 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000023146fi
cristy3ed852e2009-09-05 21:47:34 +000023147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23148fi
cristy8b350f62009-11-15 23:12:43 +000023149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000023150$as_echo "$ac_cv_type_signal" >&6; }
23151
23152cat >>confdefs.h <<_ACEOF
23153#define RETSIGTYPE $ac_cv_type_signal
23154_ACEOF
23155
23156
cristy8b350f62009-11-15 23:12:43 +000023157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023158$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023159if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023160 $as_echo_n "(cached) " >&6
23161else
cristy8b350f62009-11-15 23:12:43 +000023162 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023163 ac_cv_func_strtod=no
23164else
cristy8b350f62009-11-15 23:12:43 +000023165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023166/* end confdefs.h. */
23167
23168$ac_includes_default
23169#ifndef strtod
23170double strtod ();
23171#endif
23172int
23173main()
23174{
23175 {
23176 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
23177 char *string = " +69";
23178 char *term;
23179 double value;
23180 value = strtod (string, &term);
23181 if (value != 69 || term != (string + 4))
23182 return 1;
23183 }
23184
23185 {
23186 /* Under Solaris 2.4, strtod returns the wrong value for the
23187 terminating character under some conditions. */
23188 char *string = "NaN";
23189 char *term;
23190 strtod (string, &term);
23191 if (term != string && *(term - 1) == 0)
23192 return 1;
23193 }
23194 return 0;
23195}
23196
23197_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023198if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023199 ac_cv_func_strtod=yes
23200else
cristy8b350f62009-11-15 23:12:43 +000023201 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000023202fi
cristy8b350f62009-11-15 23:12:43 +000023203rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23204 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023205fi
23206
cristy3ed852e2009-09-05 21:47:34 +000023207fi
cristy8b350f62009-11-15 23:12:43 +000023208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023209$as_echo "$ac_cv_func_strtod" >&6; }
23210if test $ac_cv_func_strtod = no; then
23211 case " $LIBOBJS " in
23212 *" strtod.$ac_objext "* ) ;;
23213 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23214 ;;
23215esac
23216
cristy8b350f62009-11-15 23:12:43 +000023217ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23218if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023219
cristy3ed852e2009-09-05 21:47:34 +000023220fi
23221
cristy3ed852e2009-09-05 21:47:34 +000023222if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023224$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023225if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023226 $as_echo_n "(cached) " >&6
23227else
23228 ac_check_lib_save_LIBS=$LIBS
23229LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023231/* end confdefs.h. */
23232
23233/* Override any GCC internal prototype to avoid an error.
23234 Use char because int might match the return type of a GCC
23235 builtin and then its argument prototype would still apply. */
23236#ifdef __cplusplus
23237extern "C"
23238#endif
23239char pow ();
23240int
23241main ()
23242{
23243return pow ();
23244 ;
23245 return 0;
23246}
23247_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023248if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023249 ac_cv_lib_m_pow=yes
23250else
cristy8b350f62009-11-15 23:12:43 +000023251 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023252fi
cristy8b350f62009-11-15 23:12:43 +000023253rm -f core conftest.err conftest.$ac_objext \
23254 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023255LIBS=$ac_check_lib_save_LIBS
23256fi
cristy8b350f62009-11-15 23:12:43 +000023257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023258$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023259if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023260 POW_LIB=-lm
23261else
cristy8b350f62009-11-15 23:12:43 +000023262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023263$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23264fi
23265
23266fi
23267
23268fi
23269
cristy3ed852e2009-09-05 21:47:34 +000023270for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023271do :
23272 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23273if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023274 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023275#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023276_ACEOF
23277
cristy8b350f62009-11-15 23:12:43 +000023278ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23279if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023280
cristy8b350f62009-11-15 23:12:43 +000023281$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023282
23283fi
23284
23285fi
23286done
23287
23288
23289
cristy161b9262010-03-20 19:34:32 +000023290#
23291# Find math library
23292#
23293MATH_LIBS=''
23294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23295$as_echo_n "checking for sqrt in -lm... " >&6; }
23296if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23297 $as_echo_n "(cached) " >&6
23298else
23299 ac_check_lib_save_LIBS=$LIBS
23300LIBS="-lm $LIBS"
23301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23302/* end confdefs.h. */
23303
23304/* Override any GCC internal prototype to avoid an error.
23305 Use char because int might match the return type of a GCC
23306 builtin and then its argument prototype would still apply. */
23307#ifdef __cplusplus
23308extern "C"
23309#endif
23310char sqrt ();
23311int
23312main ()
23313{
23314return sqrt ();
23315 ;
23316 return 0;
23317}
23318_ACEOF
23319if ac_fn_c_try_link "$LINENO"; then :
23320 ac_cv_lib_m_sqrt=yes
23321else
23322 ac_cv_lib_m_sqrt=no
23323fi
23324rm -f core conftest.err conftest.$ac_objext \
23325 conftest$ac_exeext conftest.$ac_ext
23326LIBS=$ac_check_lib_save_LIBS
23327fi
23328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23329$as_echo "$ac_cv_lib_m_sqrt" >&6; }
23330if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23331 MATH_LIBS="-lm"
23332fi
23333
23334LIBS="$MATH_LIBS $LIBS"
23335
23336
cristyf1897e32010-08-29 19:59:09 +000023337for 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 +000023338do :
23339 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23340ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyf6fcb5d2010-09-24 01:19:13 +000023341eval as_val=\$$as_ac_var
23342 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023343 cat >>confdefs.h <<_ACEOF
23344#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23345_ACEOF
23346
23347fi
23348done
23349
23350
cristye43a45e2009-09-28 14:49:00 +000023351#
23352# Check for clock_gettime().
23353#
cristy8b350f62009-11-15 23:12:43 +000023354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023355$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023356if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023357 $as_echo_n "(cached) " >&6
23358else
23359 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023361/* end confdefs.h. */
23362
23363/* Override any GCC internal prototype to avoid an error.
23364 Use char because int might match the return type of a GCC
23365 builtin and then its argument prototype would still apply. */
23366#ifdef __cplusplus
23367extern "C"
23368#endif
23369char clock_gettime ();
23370int
23371main ()
23372{
23373return clock_gettime ();
23374 ;
23375 return 0;
23376}
23377_ACEOF
23378for ac_lib in '' rt; do
23379 if test -z "$ac_lib"; then
23380 ac_res="none required"
23381 else
23382 ac_res=-l$ac_lib
23383 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23384 fi
cristy8b350f62009-11-15 23:12:43 +000023385 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023386 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000023387fi
cristy8b350f62009-11-15 23:12:43 +000023388rm -f core conftest.err conftest.$ac_objext \
23389 conftest$ac_exeext
23390 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023391 break
23392fi
23393done
cristy8b350f62009-11-15 23:12:43 +000023394if test "${ac_cv_search_clock_gettime+set}" = set; then :
23395
cristye43a45e2009-09-28 14:49:00 +000023396else
23397 ac_cv_search_clock_gettime=no
23398fi
23399rm conftest.$ac_ext
23400LIBS=$ac_func_search_save_LIBS
23401fi
cristy8b350f62009-11-15 23:12:43 +000023402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023403$as_echo "$ac_cv_search_clock_gettime" >&6; }
23404ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000023405if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000023406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23407
23408
cristy8b350f62009-11-15 23:12:43 +000023409$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023410
cristy8b350f62009-11-15 23:12:43 +000023411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000023412$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023414/* end confdefs.h. */
23415#include <time.h>
23416int
23417main ()
23418{
23419clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000023420 ;
23421 return 0;
23422}
23423_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023424if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023425
cristy8b350f62009-11-15 23:12:43 +000023426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000023427$as_echo "yes" >&6; }
23428
cristy8b350f62009-11-15 23:12:43 +000023429$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023430
23431
23432else
cristy8b350f62009-11-15 23:12:43 +000023433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000023434$as_echo "no" >&6; }
23435
23436fi
cristye43a45e2009-09-28 14:49:00 +000023437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23438
23439else
23440
cristy8b350f62009-11-15 23:12:43 +000023441 for ac_func in gettimeofday ftime
23442do :
23443 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23444ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyf6fcb5d2010-09-24 01:19:13 +000023445eval as_val=\$$as_ac_var
23446 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000023447 cat >>confdefs.h <<_ACEOF
23448#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23449_ACEOF
23450 break
23451fi
23452done
23453
23454
23455
23456fi
23457
23458
cristy3ed852e2009-09-05 21:47:34 +000023459########
23460#
23461# Check for function prototypes
23462#
23463########
23464
cristy8b350f62009-11-15 23:12:43 +000023465ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000023466#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023467"
23468if test "x$ac_cv_have_decl_pread" = x""yes; then :
23469 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023470else
cristy8b350f62009-11-15 23:12:43 +000023471 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023472fi
23473
cristy3ed852e2009-09-05 21:47:34 +000023474cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023475#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023476_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023477ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000023478#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023479"
23480if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23481 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023482else
cristy8b350f62009-11-15 23:12:43 +000023483 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023484fi
23485
cristy3ed852e2009-09-05 21:47:34 +000023486cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023487#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023488_ACEOF
23489
23490
cristy8b350f62009-11-15 23:12:43 +000023491ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000023492#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000023493"
23494if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23495 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023496else
cristy8b350f62009-11-15 23:12:43 +000023497 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023498fi
23499
cristy3ed852e2009-09-05 21:47:34 +000023500cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023501#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023502_ACEOF
23503
23504
cristy8b350f62009-11-15 23:12:43 +000023505ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000023506#include <stdio.h>
23507#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000023508"
23509if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23510 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023511else
cristy8b350f62009-11-15 23:12:43 +000023512 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023513fi
23514
cristy3ed852e2009-09-05 21:47:34 +000023515cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023516#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023517_ACEOF
23518
23519
cristy3ed852e2009-09-05 21:47:34 +000023520########
23521#
23522# C++ Support Tests (For Magick++)
23523#
23524########
23525have_magick_plus_plus='no'
23526if test "$with_magick_plus_plus" = 'yes'; then
23527 OLIBS="$LIBS"
23528 LIBS=''
23529 ac_ext=cpp
23530ac_cpp='$CXXCPP $CPPFLAGS'
23531ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23532ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23533ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23534
23535
23536 # Full set of headers used...
23537 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23538 # functional iomanip iosfwd iostream iterator list string strstream utility
23539 ac_ext=cpp
23540ac_cpp='$CXXCPP $CPPFLAGS'
23541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23544
23545 ac_ext=cpp
23546ac_cpp='$CXXCPP $CPPFLAGS'
23547ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23548ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23549ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23550if test -z "$CXX"; then
23551 if test -n "$CCC"; then
23552 CXX=$CCC
23553 else
23554 if test -n "$ac_tool_prefix"; then
23555 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23556 do
23557 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23558set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023560$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023561if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023562 $as_echo_n "(cached) " >&6
23563else
23564 if test -n "$CXX"; then
23565 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23566else
23567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23568for as_dir in $PATH
23569do
23570 IFS=$as_save_IFS
23571 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023572 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23574 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023576 break 2
23577 fi
23578done
cristy8b350f62009-11-15 23:12:43 +000023579 done
cristy3ed852e2009-09-05 21:47:34 +000023580IFS=$as_save_IFS
23581
23582fi
23583fi
23584CXX=$ac_cv_prog_CXX
23585if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023587$as_echo "$CXX" >&6; }
23588else
cristy8b350f62009-11-15 23:12:43 +000023589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023590$as_echo "no" >&6; }
23591fi
23592
23593
23594 test -n "$CXX" && break
23595 done
23596fi
23597if test -z "$CXX"; then
23598 ac_ct_CXX=$CXX
23599 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23600do
23601 # Extract the first word of "$ac_prog", so it can be a program name with args.
23602set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023604$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023605if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023606 $as_echo_n "(cached) " >&6
23607else
23608 if test -n "$ac_ct_CXX"; then
23609 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23610else
23611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23612for as_dir in $PATH
23613do
23614 IFS=$as_save_IFS
23615 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023616 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23618 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023620 break 2
23621 fi
23622done
cristy8b350f62009-11-15 23:12:43 +000023623 done
cristy3ed852e2009-09-05 21:47:34 +000023624IFS=$as_save_IFS
23625
23626fi
23627fi
23628ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23629if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023631$as_echo "$ac_ct_CXX" >&6; }
23632else
cristy8b350f62009-11-15 23:12:43 +000023633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023634$as_echo "no" >&6; }
23635fi
23636
23637
23638 test -n "$ac_ct_CXX" && break
23639done
23640
23641 if test "x$ac_ct_CXX" = x; then
23642 CXX="g++"
23643 else
23644 case $cross_compiling:$ac_tool_warned in
23645yes:)
cristy8b350f62009-11-15 23:12:43 +000023646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23648ac_tool_warned=yes ;;
23649esac
23650 CXX=$ac_ct_CXX
23651 fi
23652fi
23653
23654 fi
23655fi
23656# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023657$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023658set X $ac_compile
23659ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023660for ac_option in --version -v -V -qversion; do
23661 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023662case "(($ac_try" in
23663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23664 *) ac_try_echo=$ac_try;;
23665esac
cristy8b350f62009-11-15 23:12:43 +000023666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23667$as_echo "$ac_try_echo"; } >&5
23668 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023669 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023670 if test -s conftest.err; then
23671 sed '10a\
23672... rest of stderr output deleted ...
23673 10q' conftest.err >conftest.er1
23674 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023675 fi
cristycd4c5312009-11-22 01:19:08 +000023676 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23678 test $ac_status = 0; }
23679done
cristy3ed852e2009-09-05 21:47:34 +000023680
cristy8b350f62009-11-15 23:12:43 +000023681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023682$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023683if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023684 $as_echo_n "(cached) " >&6
23685else
cristy8b350f62009-11-15 23:12:43 +000023686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023687/* end confdefs.h. */
23688
23689int
23690main ()
23691{
23692#ifndef __GNUC__
23693 choke me
23694#endif
23695
23696 ;
23697 return 0;
23698}
23699_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023700if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023701 ac_compiler_gnu=yes
23702else
cristy8b350f62009-11-15 23:12:43 +000023703 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023704fi
cristy3ed852e2009-09-05 21:47:34 +000023705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23706ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23707
23708fi
cristy8b350f62009-11-15 23:12:43 +000023709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023710$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23711if test $ac_compiler_gnu = yes; then
23712 GXX=yes
23713else
23714 GXX=
23715fi
23716ac_test_CXXFLAGS=${CXXFLAGS+set}
23717ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023719$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023720if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023721 $as_echo_n "(cached) " >&6
23722else
23723 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23724 ac_cxx_werror_flag=yes
23725 ac_cv_prog_cxx_g=no
23726 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023728/* end confdefs.h. */
23729
23730int
23731main ()
23732{
23733
23734 ;
23735 return 0;
23736}
23737_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023738if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023739 ac_cv_prog_cxx_g=yes
23740else
cristy8b350f62009-11-15 23:12:43 +000023741 CXXFLAGS=""
23742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023743/* end confdefs.h. */
23744
23745int
23746main ()
23747{
23748
23749 ;
23750 return 0;
23751}
23752_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023753if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023754
cristy8b350f62009-11-15 23:12:43 +000023755else
23756 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023757 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023759/* end confdefs.h. */
23760
23761int
23762main ()
23763{
23764
23765 ;
23766 return 0;
23767}
23768_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023769if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023770 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023771fi
cristy3ed852e2009-09-05 21:47:34 +000023772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23773fi
cristy3ed852e2009-09-05 21:47:34 +000023774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23775fi
cristy3ed852e2009-09-05 21:47:34 +000023776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23777 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23778fi
cristy8b350f62009-11-15 23:12:43 +000023779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023780$as_echo "$ac_cv_prog_cxx_g" >&6; }
23781if test "$ac_test_CXXFLAGS" = set; then
23782 CXXFLAGS=$ac_save_CXXFLAGS
23783elif test $ac_cv_prog_cxx_g = yes; then
23784 if test "$GXX" = yes; then
23785 CXXFLAGS="-g -O2"
23786 else
23787 CXXFLAGS="-g"
23788 fi
23789else
23790 if test "$GXX" = yes; then
23791 CXXFLAGS="-O2"
23792 else
23793 CXXFLAGS=
23794 fi
23795fi
23796ac_ext=cpp
23797ac_cpp='$CXXCPP $CPPFLAGS'
23798ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23799ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23800ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23801
23802depcc="$CXX" am_compiler_list=
23803
cristy8b350f62009-11-15 23:12:43 +000023804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023805$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023806if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023807 $as_echo_n "(cached) " >&6
23808else
23809 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23810 # We make a subdir and do the tests there. Otherwise we can end up
23811 # making bogus files that we don't know about and never remove. For
23812 # instance it was reported that on HP-UX the gcc test will end up
23813 # making a dummy file named `D' -- because `-MD' means `put the output
23814 # in D'.
23815 mkdir conftest.dir
23816 # Copy depcomp to subdir because otherwise we won't find it if we're
23817 # using a relative directory.
23818 cp "$am_depcomp" conftest.dir
23819 cd conftest.dir
23820 # We will build objects and dependencies in a subdirectory because
23821 # it helps to detect inapplicable dependency modes. For instance
23822 # both Tru64's cc and ICC support -MD to output dependencies as a
23823 # side effect of compilation, but ICC will put the dependencies in
23824 # the current directory while Tru64 will put them in the object
23825 # directory.
23826 mkdir sub
23827
23828 am_cv_CXX_dependencies_compiler_type=none
23829 if test "$am_compiler_list" = ""; then
23830 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23831 fi
23832 am__universal=false
23833 case " $depcc " in #(
23834 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23835 esac
23836
23837 for depmode in $am_compiler_list; do
23838 # Setup a source with many dependencies, because some compilers
23839 # like to wrap large dependency lists on column 80 (with \), and
23840 # we should not choose a depcomp mode which is confused by this.
23841 #
23842 # We need to recreate these files for each test, as the compiler may
23843 # overwrite some of them when testing with obscure command lines.
23844 # This happens at least with the AIX C compiler.
23845 : > sub/conftest.c
23846 for i in 1 2 3 4 5 6; do
23847 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23848 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23849 # Solaris 8's {/usr,}/bin/sh.
23850 touch sub/conftst$i.h
23851 done
23852 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23853
23854 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23855 # mode. It turns out that the SunPro C++ compiler does not properly
23856 # handle `-M -o', and we need to detect this. Also, some Intel
23857 # versions had trouble with output in subdirs
23858 am__obj=sub/conftest.${OBJEXT-o}
23859 am__minus_obj="-o $am__obj"
23860 case $depmode in
23861 gcc)
23862 # This depmode causes a compiler race in universal mode.
23863 test "$am__universal" = false || continue
23864 ;;
23865 nosideeffect)
23866 # after this tag, mechanisms are not by side-effect, so they'll
23867 # only be used when explicitly requested
23868 if test "x$enable_dependency_tracking" = xyes; then
23869 continue
23870 else
23871 break
23872 fi
23873 ;;
23874 msvisualcpp | msvcmsys)
23875 # This compiler won't grok `-c -o', but also, the minuso test has
23876 # not run yet. These depmodes are late enough in the game, and
23877 # so weak that their functioning should not be impacted.
23878 am__obj=conftest.${OBJEXT-o}
23879 am__minus_obj=
23880 ;;
23881 none) break ;;
23882 esac
23883 if depmode=$depmode \
23884 source=sub/conftest.c object=$am__obj \
23885 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23886 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23887 >/dev/null 2>conftest.err &&
23888 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23889 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23890 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23891 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23892 # icc doesn't choke on unknown options, it will just issue warnings
23893 # or remarks (even with -Werror). So we grep stderr for any message
23894 # that says an option was ignored or not supported.
23895 # When given -MP, icc 7.0 and 7.1 complain thusly:
23896 # icc: Command line warning: ignoring option '-M'; no argument required
23897 # The diagnosis changed in icc 8.0:
23898 # icc: Command line remark: option '-MP' not supported
23899 if (grep 'ignoring option' conftest.err ||
23900 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23901 am_cv_CXX_dependencies_compiler_type=$depmode
23902 break
23903 fi
23904 fi
23905 done
23906
23907 cd ..
23908 rm -rf conftest.dir
23909else
23910 am_cv_CXX_dependencies_compiler_type=none
23911fi
23912
23913fi
cristy8b350f62009-11-15 23:12:43 +000023914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023915$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23916CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23917
23918 if
23919 test "x$enable_dependency_tracking" != xno \
23920 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23921 am__fastdepCXX_TRUE=
23922 am__fastdepCXX_FALSE='#'
23923else
23924 am__fastdepCXX_TRUE='#'
23925 am__fastdepCXX_FALSE=
23926fi
23927
23928
cristy8b350f62009-11-15 23:12:43 +000023929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023930$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023931if test "${ax_cv_cxx_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023932 $as_echo_n "(cached) " >&6
23933else
23934
23935 ac_ext=cpp
23936ac_cpp='$CXXCPP $CPPFLAGS'
23937ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23938ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23939ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23940
cristy8b350f62009-11-15 23:12:43 +000023941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023942/* end confdefs.h. */
23943
23944int f(int x){return 1;}
23945int f(char x){return 1;}
23946int f(bool x){return 1;}
23947
23948int
23949main ()
23950{
23951bool b = true; return f(b);
23952 ;
23953 return 0;
23954}
23955_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023956if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023957 ax_cv_cxx_bool=yes
cristy3ed852e2009-09-05 21:47:34 +000023958else
cristy964cb7f2010-04-25 23:18:00 +000023959 ax_cv_cxx_bool=no
cristy3ed852e2009-09-05 21:47:34 +000023960fi
cristy3ed852e2009-09-05 21:47:34 +000023961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23962 ac_ext=cpp
23963ac_cpp='$CXXCPP $CPPFLAGS'
23964ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23965ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23966ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23967
23968
23969fi
cristy964cb7f2010-04-25 23:18:00 +000023970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23971$as_echo "$ax_cv_cxx_bool" >&6; }
23972if test "$ax_cv_cxx_bool" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023973
cristy8b350f62009-11-15 23:12:43 +000023974$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023975
23976fi
23977
cristy8b350f62009-11-15 23:12:43 +000023978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023979$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023980if test "${ax_cv_cxx_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023981 $as_echo_n "(cached) " >&6
23982else
23983
23984 ac_ext=cpp
23985ac_cpp='$CXXCPP $CPPFLAGS'
23986ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23987ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23988ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23989
cristy8b350f62009-11-15 23:12:43 +000023990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023991/* end confdefs.h. */
23992namespace Outer { namespace Inner { int i = 0; }}
23993int
23994main ()
23995{
23996using namespace Outer::Inner; return i;
23997 ;
23998 return 0;
23999}
24000_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024001if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000024002 ax_cv_cxx_namespaces=yes
cristy3ed852e2009-09-05 21:47:34 +000024003else
cristy964cb7f2010-04-25 23:18:00 +000024004 ax_cv_cxx_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000024005fi
cristy3ed852e2009-09-05 21:47:34 +000024006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24007 ac_ext=cpp
24008ac_cpp='$CXXCPP $CPPFLAGS'
24009ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24010ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24011ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24012
24013
24014fi
cristy964cb7f2010-04-25 23:18:00 +000024015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
24016$as_echo "$ax_cv_cxx_namespaces" >&6; }
24017if test "$ax_cv_cxx_namespaces" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000024018
cristy8b350f62009-11-15 23:12:43 +000024019$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024020
24021fi
24022
cristy964cb7f2010-04-25 23:18:00 +000024023
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
24025$as_echo_n "checking if g++ supports namespace std... " >&6; }
24026if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024027 $as_echo_n "(cached) " >&6
24028else
24029
cristy964cb7f2010-04-25 23:18:00 +000024030 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000024031ac_cpp='$CXXCPP $CPPFLAGS'
24032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24035
cristy964cb7f2010-04-25 23:18:00 +000024036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024037/* end confdefs.h. */
24038#include <iostream>
cristy964cb7f2010-04-25 23:18:00 +000024039 std::istream& is = std::cin;
cristy3ed852e2009-09-05 21:47:34 +000024040int
24041main ()
24042{
cristy964cb7f2010-04-25 23:18:00 +000024043
cristy3ed852e2009-09-05 21:47:34 +000024044 ;
24045 return 0;
24046}
24047_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024048if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000024049 ax_cv_cxx_have_std_namespace=yes
cristy3ed852e2009-09-05 21:47:34 +000024050else
cristy964cb7f2010-04-25 23:18:00 +000024051 ax_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000024052fi
cristy3ed852e2009-09-05 21:47:34 +000024053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +000024054 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000024055ac_cpp='$CXXCPP $CPPFLAGS'
24056ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24057ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24058ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24059
24060
24061fi
cristy964cb7f2010-04-25 23:18:00 +000024062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
24063$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
24064 if test "$ax_cv_cxx_have_std_namespace" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000024065
cristy964cb7f2010-04-25 23:18:00 +000024066$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024067
cristy964cb7f2010-04-25 23:18:00 +000024068 fi
cristy3ed852e2009-09-05 21:47:34 +000024069
cristy8b350f62009-11-15 23:12:43 +000024070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000024071$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024072if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024073 $as_echo_n "(cached) " >&6
24074else
24075
24076
24077 ac_ext=cpp
24078ac_cpp='$CXXCPP $CPPFLAGS'
24079ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24080ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24081ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24082
cristy8b350f62009-11-15 23:12:43 +000024083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024084/* end confdefs.h. */
24085#include <iostream>
24086#include <map>
24087#include <iomanip>
24088#include <cmath>
24089#ifdef HAVE_NAMESPACES
24090using namespace std;
24091#endif
24092int
24093main ()
24094{
24095return 0;
24096 ;
24097 return 0;
24098}
24099_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024100if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024101 ac_cv_cxx_have_std_libs=yes
24102else
cristy8b350f62009-11-15 23:12:43 +000024103 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000024104fi
cristy3ed852e2009-09-05 21:47:34 +000024105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24106 ac_ext=cpp
24107ac_cpp='$CXXCPP $CPPFLAGS'
24108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24111
24112
24113fi
cristy8b350f62009-11-15 23:12:43 +000024114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000024115$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
24116if test "$ac_cv_cxx_have_std_libs" = yes; then
24117
cristy8b350f62009-11-15 23:12:43 +000024118$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024119
24120fi
24121
cristy8b350f62009-11-15 23:12:43 +000024122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000024123$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024124if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024125 $as_echo_n "(cached) " >&6
24126else
24127
24128 ac_ext=cpp
24129ac_cpp='$CXXCPP $CPPFLAGS'
24130ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24131ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24132ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24133
cristy8b350f62009-11-15 23:12:43 +000024134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024135/* end confdefs.h. */
24136const wchar_t* s=L"wide string";
24137_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024138if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024139 ac_cv_cxx_have_lstring=yes
24140else
cristy8b350f62009-11-15 23:12:43 +000024141 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000024142fi
cristy3ed852e2009-09-05 21:47:34 +000024143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24144 ac_ext=cpp
24145ac_cpp='$CXXCPP $CPPFLAGS'
24146ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24147ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24148ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24149
24150
24151fi
cristy8b350f62009-11-15 23:12:43 +000024152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000024153$as_echo "$ac_cv_cxx_have_lstring" >&6; }
24154if test "$ac_cv_cxx_have_lstring" = yes; then
24155
cristy8b350f62009-11-15 23:12:43 +000024156$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024157
24158fi
24159
24160
24161 OPENMP_CXXFLAGS=
24162 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000024163if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024164 enableval=$enable_openmp;
24165fi
24166
24167 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000024168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
24169$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024170if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024171 $as_echo_n "(cached) " >&6
24172else
cristy8b350f62009-11-15 23:12:43 +000024173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24174/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024175
24176#ifndef _OPENMP
24177 choke me
24178#endif
24179#include <omp.h>
24180int main () { return omp_get_num_threads (); }
24181
24182_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024183if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024184 ac_cv_prog_cxx_openmp='none needed'
24185else
cristy8b350f62009-11-15 23:12:43 +000024186 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000024187 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
24188 ac_save_CXXFLAGS=$CXXFLAGS
24189 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000024190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24191/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024192
24193#ifndef _OPENMP
24194 choke me
24195#endif
24196#include <omp.h>
24197int main () { return omp_get_num_threads (); }
24198
24199_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024200if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024201 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000024202fi
cristy8b350f62009-11-15 23:12:43 +000024203rm -f core conftest.err conftest.$ac_objext \
24204 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024205 CXXFLAGS=$ac_save_CXXFLAGS
24206 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24207 break
24208 fi
24209 done
24210fi
cristy8b350f62009-11-15 23:12:43 +000024211rm -f core conftest.err conftest.$ac_objext \
24212 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024213fi
cristy8b350f62009-11-15 23:12:43 +000024214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024215$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24216 case $ac_cv_prog_cxx_openmp in #(
24217 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000024218 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000024219 *)
cristy8b350f62009-11-15 23:12:43 +000024220 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024221 esac
24222 fi
24223
24224
24225 ac_ext=c
24226ac_cpp='$CPP $CPPFLAGS'
24227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24229ac_compiler_gnu=$ac_cv_c_compiler_gnu
24230
24231
cristy8b350f62009-11-15 23:12:43 +000024232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024233$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24234 if \
cristy964cb7f2010-04-25 23:18:00 +000024235 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024236 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024237 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024238 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024239 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024240 have_magick_plus_plus='yes'
24241 else
24242 have_magick_plus_plus='no (failed tests)'
24243 fi
cristy8b350f62009-11-15 23:12:43 +000024244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024245$as_echo "$have_magick_plus_plus" >&6; }
24246 LIBS="$OLIBS"
24247fi
24248 if test "$have_magick_plus_plus" = 'yes'; then
24249 WITH_MAGICK_PLUS_PLUS_TRUE=
24250 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24251else
24252 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24253 WITH_MAGICK_PLUS_PLUS_FALSE=
24254fi
24255
24256
24257# Only check for delegate libraries in subdirectories if requested.
24258if test "$enable_delegate_build" != 'no'; then
24259 # Check for delegate sub-directories and add -I & -L options as required.
24260 # This presumes that delegates are installed as detailed in the ImageMagick
24261 # README. If delegates are installed in a standard location where the
24262 # compiler will automatically find them then these options should not be
24263 # required.
24264
24265 #
24266 # Most delegates have includes in the same directory as the library, but not all...
24267 #
24268 # Includes
cristy5850e4b2010-01-08 14:28:24 +000024269 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 +000024270 if test -d "$builddir/$dir"; then
24271 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24272 else
24273 if test -d "$srcdirfull/$dir"; then
24274 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24275 fi
24276 fi
24277 done
24278
24279 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000024280 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 +000024281 if test -d "$builddir/$dir/.libs"; then
24282 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24283 else
24284 if test -d "$srcdirfull/$dir/.libs"; then
24285 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24286 fi
24287 fi
24288 if test -d "$builddir/$dir"; then
24289 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24290 else
24291 if test -d "$srcdirfull/$dir"; then
24292 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24293 fi
24294 fi
24295 done
24296fi
24297
24298# Assume that delegate headers reside under same directory as ImageMagick
24299# installation prefix.
24300MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24301
24302#
24303# Find the X11 RGB database
24304#
cristy8b350f62009-11-15 23:12:43 +000024305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024306$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024307if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024308 $as_echo_n "(cached) " >&6
24309else
24310 # Look for the header file in a standard set of common directories.
24311# Check X11 before X11Rn because it is often a symlink to the current release.
24312 for ac_dir in \
24313 /lib/usr/lib/X11 \
24314 /usr/X11/lib \
24315 /usr/X11R4/lib \
24316 /usr/X11R5/lib \
24317 /usr/X11R6/lib \
24318 /usr/X11R7/lib \
24319 /usr/X386/lib \
24320 /usr/XFree86/lib/X11 \
24321 /usr/athena/lib \
24322 /usr/lib \
24323 /usr/lib/X11 \
24324 /usr/lib/X11R4 \
24325 /usr/lib/X11R5 \
24326 /usr/lib/X11R6 \
24327 /usr/lib/X11R7 \
24328 /usr/local/X11/lib \
24329 /usr/local/X11R4/lib \
24330 /usr/local/X11R5/lib \
24331 /usr/local/X11R6/lib \
24332 /usr/local/lib \
24333 /usr/local/lib/X11 \
24334 /usr/local/lib/X11R4 \
24335 /usr/local/lib/X11R5 \
24336 /usr/local/lib/X11R6 \
24337 /usr/local/lib/X11R7 \
24338 /usr/local/x11r5/lib \
24339 /usr/lpp/Xamples/lib \
24340 /usr/openwin/lib \
24341 /usr/openwin/share/lib \
24342 /usr/unsupported/lib \
24343 /usr/x386/lib \
24344 ; do
24345 if test -f "$ac_dir/X11/rgb.txt"; then
24346 im_cv_x_configure="$ac_dir/X11/"
24347 break
24348 elif test -f "$ac_dir/rgb.txt"; then
24349 im_cv_x_configure="$ac_dir/"
24350 break
24351 fi
24352
24353 done
24354fi
cristy8b350f62009-11-15 23:12:43 +000024355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024356$as_echo "$im_cv_x_configure" >&6; }
24357X11_CONFIGURE_PATH="$im_cv_x_configure"
24358case "${build_os}" in
24359 mingw* )
24360 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24361 ;;
24362esac
24363
24364cat >>confdefs.h <<_ACEOF
24365#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24366_ACEOF
24367
24368
24369#
24370# Find OpenMP library
24371#
24372GOMP_LIBS=''
24373if test "$enable_openmp" != 'no'; then
24374 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024376$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024377if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024378 $as_echo_n "(cached) " >&6
24379else
24380 ac_check_lib_save_LIBS=$LIBS
24381LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024383/* end confdefs.h. */
24384
24385/* Override any GCC internal prototype to avoid an error.
24386 Use char because int might match the return type of a GCC
24387 builtin and then its argument prototype would still apply. */
24388#ifdef __cplusplus
24389extern "C"
24390#endif
24391char GOMP_parallel_start ();
24392int
24393main ()
24394{
24395return GOMP_parallel_start ();
24396 ;
24397 return 0;
24398}
24399_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024400if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024401 ac_cv_lib_gomp_GOMP_parallel_start=yes
24402else
cristy8b350f62009-11-15 23:12:43 +000024403 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024404fi
cristy8b350f62009-11-15 23:12:43 +000024405rm -f core conftest.err conftest.$ac_objext \
24406 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024407LIBS=$ac_check_lib_save_LIBS
24408fi
cristy8b350f62009-11-15 23:12:43 +000024409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024410$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024411if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024412 GOMP_LIBS="-lgomp"
24413fi
24414 # gcc
24415 else
cristy8b350f62009-11-15 23:12:43 +000024416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024417$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024418if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024419 $as_echo_n "(cached) " >&6
24420else
24421 ac_check_lib_save_LIBS=$LIBS
24422LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024424/* end confdefs.h. */
24425
24426/* Override any GCC internal prototype to avoid an error.
24427 Use char because int might match the return type of a GCC
24428 builtin and then its argument prototype would still apply. */
24429#ifdef __cplusplus
24430extern "C"
24431#endif
24432char sunw_mp_register_warn ();
24433int
24434main ()
24435{
24436return sunw_mp_register_warn ();
24437 ;
24438 return 0;
24439}
24440_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024441if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024442 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24443else
cristy8b350f62009-11-15 23:12:43 +000024444 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000024445fi
cristy8b350f62009-11-15 23:12:43 +000024446rm -f core conftest.err conftest.$ac_objext \
24447 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024448LIBS=$ac_check_lib_save_LIBS
24449fi
cristy8b350f62009-11-15 23:12:43 +000024450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000024451$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024452if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024453 GOMP_LIBS="-lmtsk"
24454fi
24455 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000024456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024457$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024458if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024459 $as_echo_n "(cached) " >&6
24460else
24461 ac_check_lib_save_LIBS=$LIBS
24462LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024464/* end confdefs.h. */
24465
24466/* Override any GCC internal prototype to avoid an error.
24467 Use char because int might match the return type of a GCC
24468 builtin and then its argument prototype would still apply. */
24469#ifdef __cplusplus
24470extern "C"
24471#endif
24472char _xlsmpFlush ();
24473int
24474main ()
24475{
24476return _xlsmpFlush ();
24477 ;
24478 return 0;
24479}
24480_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024481if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024482 ac_cv_lib_xlsmp__xlsmpFlush=yes
24483else
cristy8b350f62009-11-15 23:12:43 +000024484 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000024485fi
cristy8b350f62009-11-15 23:12:43 +000024486rm -f core conftest.err conftest.$ac_objext \
24487 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024488LIBS=$ac_check_lib_save_LIBS
24489fi
cristy8b350f62009-11-15 23:12:43 +000024490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000024491$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024492if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024493 GOMP_LIBS="-lxlsmp"
24494fi
24495 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000024496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024497$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024498if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024499 $as_echo_n "(cached) " >&6
24500else
24501 ac_check_lib_save_LIBS=$LIBS
24502LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024504/* end confdefs.h. */
24505
24506/* Override any GCC internal prototype to avoid an error.
24507 Use char because int might match the return type of a GCC
24508 builtin and then its argument prototype would still apply. */
24509#ifdef __cplusplus
24510extern "C"
24511#endif
24512char mp_destroy ();
24513int
24514main ()
24515{
24516return mp_destroy ();
24517 ;
24518 return 0;
24519}
24520_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024521if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024522 ac_cv_lib_mp_mp_destroy=yes
24523else
cristy8b350f62009-11-15 23:12:43 +000024524 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000024525fi
cristy8b350f62009-11-15 23:12:43 +000024526rm -f core conftest.err conftest.$ac_objext \
24527 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024528LIBS=$ac_check_lib_save_LIBS
24529fi
cristy8b350f62009-11-15 23:12:43 +000024530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000024531$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024532if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024533 GOMP_LIBS="-lmp"
24534fi
24535 # SGI IRIX 6.5 MIPSpro C/C++
24536 fi
24537 LIBS="$GOMP_LIBS $LIBS"
24538fi
24539
24540
24541#
24542# Find Posix threads library
24543#
24544THREAD_LIBS=''
24545if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24546
24547 if test "x$PTHREAD_LIBS" = "x"; then
24548 case "${host_cpu}-${host_os}" in
24549 *-freebsd*)
24550
24551
24552
24553ac_ext=c
24554ac_cpp='$CPP $CPPFLAGS'
24555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24557ac_compiler_gnu=$ac_cv_c_compiler_gnu
24558
24559magick_pthread_lib_ok=no
24560
24561LIB=-lc_r
24562save_LIBS="$LIBS"
24563LIBS="$LIBS $LIB"
24564
cristy8b350f62009-11-15 23:12:43 +000024565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024566$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024568/* end confdefs.h. */
24569#include <pthread.h>
24570int
24571main ()
24572{
24573 pthread_t th;
24574 pthread_join(th, 0);
24575 pthread_attr_init(0);
24576 pthread_cleanup_push(0, 0);
24577 pthread_create(0,0,0,0);
24578 pthread_cleanup_pop(0);
24579 ;
24580 return 0;
24581}
24582_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024583if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024584 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024585fi
cristy8b350f62009-11-15 23:12:43 +000024586rm -f core conftest.err conftest.$ac_objext \
24587 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024588
cristy8b350f62009-11-15 23:12:43 +000024589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024590$as_echo "${magick_pthread_lib_ok}" >&6; }
24591if test "$magick_pthread_lib_ok" = yes
24592then
24593 PTHREAD_LIBS=-lc_r
24594 :
24595else
24596
24597 :
24598fi
24599
24600LIBS="$save_LIBS"
24601
24602ac_ext=c
24603ac_cpp='$CPP $CPPFLAGS'
24604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24606ac_compiler_gnu=$ac_cv_c_compiler_gnu
24607
24608 ;;
24609 esac
24610 fi
24611
24612 for lib in pthread pthreads; do
24613 if test "x$PTHREAD_LIBS" = "x"; then
24614
24615
24616
24617ac_ext=c
24618ac_cpp='$CPP $CPPFLAGS'
24619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24621ac_compiler_gnu=$ac_cv_c_compiler_gnu
24622
24623magick_pthread_lib_ok=no
24624
24625LIB=-l$lib
24626save_LIBS="$LIBS"
24627LIBS="$LIBS $LIB"
24628
cristy8b350f62009-11-15 23:12:43 +000024629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024630$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024632/* end confdefs.h. */
24633#include <pthread.h>
24634int
24635main ()
24636{
24637 pthread_t th;
24638 pthread_join(th, 0);
24639 pthread_attr_init(0);
24640 pthread_cleanup_push(0, 0);
24641 pthread_create(0,0,0,0);
24642 pthread_cleanup_pop(0);
24643 ;
24644 return 0;
24645}
24646_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024647if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024648 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024649fi
cristy8b350f62009-11-15 23:12:43 +000024650rm -f core conftest.err conftest.$ac_objext \
24651 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024652
cristy8b350f62009-11-15 23:12:43 +000024653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024654$as_echo "${magick_pthread_lib_ok}" >&6; }
24655if test "$magick_pthread_lib_ok" = yes
24656then
24657 PTHREAD_LIBS=-l$lib
24658 :
24659else
24660
24661 :
24662fi
24663
24664LIBS="$save_LIBS"
24665
24666ac_ext=c
24667ac_cpp='$CPP $CPPFLAGS'
24668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24670ac_compiler_gnu=$ac_cv_c_compiler_gnu
24671
24672
24673 fi
24674 done
24675
24676 THREAD_LIBS="$PTHREAD_LIBS"
24677 LIBS="$LIBS $THREAD_LIBS"
24678fi
24679
24680
24681#
24682# Check for umem.
24683#
24684have_umem='no'
24685UMEM_LIBS=''
24686if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024688$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024690$as_echo "" >&6; }
24691 failed=0
24692 passed=0
cristy8b350f62009-11-15 23:12:43 +000024693 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24694if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024695 passed=`expr $passed + 1`
24696else
24697 failed=`expr $failed + 1`
24698fi
24699
24700
cristy8b350f62009-11-15 23:12:43 +000024701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024702$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024703if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024704 $as_echo_n "(cached) " >&6
24705else
24706 ac_check_lib_save_LIBS=$LIBS
24707LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024709/* end confdefs.h. */
24710
24711/* Override any GCC internal prototype to avoid an error.
24712 Use char because int might match the return type of a GCC
24713 builtin and then its argument prototype would still apply. */
24714#ifdef __cplusplus
24715extern "C"
24716#endif
24717char umem_alloc ();
24718int
24719main ()
24720{
24721return umem_alloc ();
24722 ;
24723 return 0;
24724}
24725_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024726if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024727 ac_cv_lib_umem_umem_alloc=yes
24728else
cristy8b350f62009-11-15 23:12:43 +000024729 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024730fi
cristy8b350f62009-11-15 23:12:43 +000024731rm -f core conftest.err conftest.$ac_objext \
24732 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024733LIBS=$ac_check_lib_save_LIBS
24734fi
cristy8b350f62009-11-15 23:12:43 +000024735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024736$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024737if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024738 passed=`expr $passed + 1`
24739else
24740 failed=`expr $failed + 1`
24741fi
24742
cristy8b350f62009-11-15 23:12:43 +000024743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024744$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024745if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024746 $as_echo_n "(cached) " >&6
24747else
24748 ac_check_lib_save_LIBS=$LIBS
24749LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024751/* end confdefs.h. */
24752
24753/* Override any GCC internal prototype to avoid an error.
24754 Use char because int might match the return type of a GCC
24755 builtin and then its argument prototype would still apply. */
24756#ifdef __cplusplus
24757extern "C"
24758#endif
24759char umem_free ();
24760int
24761main ()
24762{
24763return umem_free ();
24764 ;
24765 return 0;
24766}
24767_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024768if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024769 ac_cv_lib_umem_umem_free=yes
24770else
cristy8b350f62009-11-15 23:12:43 +000024771 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024772fi
cristy8b350f62009-11-15 23:12:43 +000024773rm -f core conftest.err conftest.$ac_objext \
24774 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024775LIBS=$ac_check_lib_save_LIBS
24776fi
cristy8b350f62009-11-15 23:12:43 +000024777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024778$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024779if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024780 passed=`expr $passed + 1`
24781else
24782 failed=`expr $failed + 1`
24783fi
24784
cristy8b350f62009-11-15 23:12:43 +000024785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024786$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24787 if test $passed -gt 0; then
24788 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024790$as_echo "no -- some components failed test" >&6; }
24791 have_umem='no (failed tests)'
24792 else
24793 UMEM_LIBS='-lumem'
24794 LIBS="$UMEM_LIBS $LIBS"
24795
cristy8b350f62009-11-15 23:12:43 +000024796$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024797
cristy8b350f62009-11-15 23:12:43 +000024798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024799$as_echo "yes" >&6; }
24800 have_umem='yes'
24801 fi
24802 else
cristy8b350f62009-11-15 23:12:43 +000024803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024804$as_echo "no" >&6; }
24805 fi
24806fi
24807 if test "$have_umem" = 'yes'; then
24808 HasUMEM_TRUE=
24809 HasUMEM_FALSE='#'
24810else
24811 HasUMEM_TRUE='#'
24812 HasUMEM_FALSE=
24813fi
24814
24815
24816
24817#
24818# Add support for ccmalloc memory debugging library if requested
24819#
24820have_ccmalloc='no'
24821CCMALLOC_LIBS=''
24822if test "$enable_ccmalloc" = 'yes'; then
24823 # Extract the first word of "ccmalloc", so it can be a program name with args.
24824set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024826$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024827if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024828 $as_echo_n "(cached) " >&6
24829else
24830 case $CCMALLOCDelegate in
24831 [\\/]* | ?:[\\/]*)
24832 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24833 ;;
24834 *)
24835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24836for as_dir in $PATH
24837do
24838 IFS=$as_save_IFS
24839 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024840 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24842 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024844 break 2
24845 fi
24846done
cristy8b350f62009-11-15 23:12:43 +000024847 done
cristy3ed852e2009-09-05 21:47:34 +000024848IFS=$as_save_IFS
24849
24850 ;;
24851esac
24852fi
24853CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24854if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024856$as_echo "$CCMALLOCDelegate" >&6; }
24857else
cristy8b350f62009-11-15 23:12:43 +000024858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024859$as_echo "no" >&6; }
24860fi
24861
24862
24863 if test -n "$CCMALLOCDelegate"; then
24864 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24865 OLIBS="$LIBS"
24866 # Assume that gcc is used with ccmalloc.
24867 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024869$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024870if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024871 $as_echo_n "(cached) " >&6
24872else
24873 ac_check_lib_save_LIBS=$LIBS
24874LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024876/* end confdefs.h. */
24877
24878/* Override any GCC internal prototype to avoid an error.
24879 Use char because int might match the return type of a GCC
24880 builtin and then its argument prototype would still apply. */
24881#ifdef __cplusplus
24882extern "C"
24883#endif
24884char ccmalloc_malloc ();
24885int
24886main ()
24887{
24888return ccmalloc_malloc ();
24889 ;
24890 return 0;
24891}
24892_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024893if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024894 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24895else
cristy8b350f62009-11-15 23:12:43 +000024896 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024897fi
cristy8b350f62009-11-15 23:12:43 +000024898rm -f core conftest.err conftest.$ac_objext \
24899 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024900LIBS=$ac_check_lib_save_LIBS
24901fi
cristy8b350f62009-11-15 23:12:43 +000024902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024903$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024904if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024905 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24906fi
24907
24908 if test -n "$CCMALLOC_LIBS"; then
24909 LIBS="$OLIBS"
24910 LIBS="$LIBS $CCMALLOC_LIBS"
24911 have_ccmalloc='yes'
24912 else
24913 LIBS="$OLIBS"
24914 fi
24915 fi
24916fi
24917
24918#
24919# Add support for efence memory debugging library if requested
24920#
24921if test "$enable_efence" = 'yes'; then
24922 EFENCE_LIBS='-lefence'
24923 LIBS="$EFENCE_LIBS $LIBS"
24924fi
24925
cristy3ed852e2009-09-05 21:47:34 +000024926
24927#
24928# Check for BZLIB
24929#
24930
24931
24932# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024933if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024934 withval=$with_bzlib; with_bzlib=$withval
24935else
24936 with_bzlib='yes'
24937fi
24938
24939
24940if test "$with_bzlib" != 'yes'; then
24941 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24942fi
24943
24944have_bzlib='no'
24945if test "$with_bzlib" != 'no'; then
24946 BZLIB_LIBS=''
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; }
cristy8b350f62009-11-15 23:12:43 +000024949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024950$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024952$as_echo "" >&6; }
24953 failed=0
24954 passed=0
24955 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024956 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24957if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024958 passed=`expr $passed + 1`
24959else
24960 failed=`expr $failed + 1`
24961fi
24962
24963
cristy8b350f62009-11-15 23:12:43 +000024964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024965$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024966if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024967 $as_echo_n "(cached) " >&6
24968else
24969 ac_check_lib_save_LIBS=$LIBS
24970LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024972/* end confdefs.h. */
24973
24974/* Override any GCC internal prototype to avoid an error.
24975 Use char because int might match the return type of a GCC
24976 builtin and then its argument prototype would still apply. */
24977#ifdef __cplusplus
24978extern "C"
24979#endif
24980char BZ2_bzDecompress ();
24981int
24982main ()
24983{
24984return BZ2_bzDecompress ();
24985 ;
24986 return 0;
24987}
24988_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024989if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024990 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24991else
cristy8b350f62009-11-15 23:12:43 +000024992 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024993fi
cristy8b350f62009-11-15 23:12:43 +000024994rm -f core conftest.err conftest.$ac_objext \
24995 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024996LIBS=$ac_check_lib_save_LIBS
24997fi
cristy8b350f62009-11-15 23:12:43 +000024998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024999$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025000if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025001 found_libbz=`expr $found_libbz + 1`
25002fi
25003
25004 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000025006$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025007if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025008 $as_echo_n "(cached) " >&6
25009else
25010 ac_check_lib_save_LIBS=$LIBS
25011LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025013/* end confdefs.h. */
25014
25015/* Override any GCC internal prototype to avoid an error.
25016 Use char because int might match the return type of a GCC
25017 builtin and then its argument prototype would still apply. */
25018#ifdef __cplusplus
25019extern "C"
25020#endif
25021char _imp__BZ2_decompress ();
25022int
25023main ()
25024{
25025return _imp__BZ2_decompress ();
25026 ;
25027 return 0;
25028}
25029_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025030if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025031 ac_cv_lib_bz2__imp__BZ2_decompress=yes
25032else
cristy8b350f62009-11-15 23:12:43 +000025033 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000025034fi
cristy8b350f62009-11-15 23:12:43 +000025035rm -f core conftest.err conftest.$ac_objext \
25036 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025037LIBS=$ac_check_lib_save_LIBS
25038fi
cristy8b350f62009-11-15 23:12:43 +000025039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025040$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025041if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025042 found_libbz=`expr $found_libbz + 1`
25043fi
25044
25045 fi
25046 if test $found_libbz -gt 0; then
25047 passed=`expr $passed + 1`
25048 else
25049 failed=`expr $failed + 1`
25050 fi
cristy8b350f62009-11-15 23:12:43 +000025051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025052$as_echo_n "checking if BZLIB package is complete... " >&6; }
25053 if test $passed -gt 0; then
25054 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025056$as_echo "no -- some components failed test" >&6; }
25057 have_bzlib='no (failed tests)'
25058 else
25059 BZLIB_LIBS='-lbz2'
25060 LIBS="$BZLIB_LIBS $LIBS"
25061
cristy8b350f62009-11-15 23:12:43 +000025062$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025063
cristy8b350f62009-11-15 23:12:43 +000025064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025065$as_echo "yes" >&6; }
25066 have_bzlib='yes'
25067 fi
25068 else
cristy8b350f62009-11-15 23:12:43 +000025069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025070$as_echo "no" >&6; }
25071 fi
25072fi
25073 if test "$have_bzlib" = 'yes'; then
25074 BZLIB_DELEGATE_TRUE=
25075 BZLIB_DELEGATE_FALSE='#'
25076else
25077 BZLIB_DELEGATE_TRUE='#'
25078 BZLIB_DELEGATE_FALSE=
25079fi
25080
25081
25082
25083#
25084# Find the X11 include and library directories.
25085#
25086IPC_LIBS=''
25087X11_LIBS=''
25088XEXT_LIBS=''
25089XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000025091$as_echo_n "checking for X... " >&6; }
25092
25093
25094# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000025095if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025096 withval=$with_x;
25097fi
25098
25099# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25100if test "x$with_x" = xno; then
25101 # The user explicitly disabled X.
25102 have_x=disabled
25103else
25104 case $x_includes,$x_libraries in #(
cristyf6fcb5d2010-09-24 01:19:13 +000025105 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
cristy8b350f62009-11-15 23:12:43 +000025106 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025107 $as_echo_n "(cached) " >&6
25108else
25109 # One or both of the vars are not set, and there is no cached value.
25110ac_x_includes=no ac_x_libraries=no
25111rm -f -r conftest.dir
25112if mkdir conftest.dir; then
25113 cd conftest.dir
25114 cat >Imakefile <<'_ACEOF'
25115incroot:
25116 @echo incroot='${INCROOT}'
25117usrlibdir:
25118 @echo usrlibdir='${USRLIBDIR}'
25119libdir:
25120 @echo libdir='${LIBDIR}'
25121_ACEOF
25122 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristyf6fcb5d2010-09-24 01:19:13 +000025123 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000025124 for ac_var in incroot usrlibdir libdir; do
25125 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25126 done
25127 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25128 for ac_extension in a so sl dylib la dll; do
25129 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25130 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25131 ac_im_usrlibdir=$ac_im_libdir; break
25132 fi
25133 done
25134 # Screen out bogus values from the imake configuration. They are
25135 # bogus both because they are the default anyway, and because
25136 # using them would break gcc on systems where it needs fixed includes.
25137 case $ac_im_incroot in
25138 /usr/include) ac_x_includes= ;;
25139 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25140 esac
25141 case $ac_im_usrlibdir in
25142 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25143 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25144 esac
25145 fi
25146 cd ..
25147 rm -f -r conftest.dir
25148fi
25149
25150# Standard set of common directories for X headers.
25151# Check X11 before X11Rn because it is often a symlink to the current release.
25152ac_x_header_dirs='
25153/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000025154/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025155/usr/X11R6/include
25156/usr/X11R5/include
25157/usr/X11R4/include
25158
25159/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000025160/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025161/usr/include/X11R6
25162/usr/include/X11R5
25163/usr/include/X11R4
25164
25165/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000025166/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025167/usr/local/X11R6/include
25168/usr/local/X11R5/include
25169/usr/local/X11R4/include
25170
25171/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000025172/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025173/usr/local/include/X11R6
25174/usr/local/include/X11R5
25175/usr/local/include/X11R4
25176
25177/usr/X386/include
25178/usr/x386/include
25179/usr/XFree86/include/X11
25180
25181/usr/include
25182/usr/local/include
25183/usr/unsupported/include
25184/usr/athena/include
25185/usr/local/x11r5/include
25186/usr/lpp/Xamples/include
25187
25188/usr/openwin/include
25189/usr/openwin/share/include'
25190
25191if test "$ac_x_includes" = no; then
25192 # Guess where to find include files, by looking for Xlib.h.
25193 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000025194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025195/* end confdefs.h. */
25196#include <X11/Xlib.h>
25197_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025198if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025199 # We can compile using X headers with no special include directory.
25200ac_x_includes=
25201else
cristyc7083c12009-10-14 03:16:55 +000025202 for ac_dir in $ac_x_header_dirs; do
25203 if test -r "$ac_dir/X11/Xlib.h"; then
25204 ac_x_includes=$ac_dir
25205 break
25206 fi
25207done
25208fi
cristyc7083c12009-10-14 03:16:55 +000025209rm -f conftest.err conftest.$ac_ext
25210fi # $ac_x_includes = no
25211
25212if test "$ac_x_libraries" = no; then
25213 # Check for the libraries.
25214 # See if we find them without any special options.
25215 # Don't add to $LIBS permanently.
25216 ac_save_LIBS=$LIBS
25217 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025219/* end confdefs.h. */
25220#include <X11/Xlib.h>
25221int
25222main ()
25223{
25224XrmInitialize ()
25225 ;
25226 return 0;
25227}
25228_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025229if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025230 LIBS=$ac_save_LIBS
25231# We can link X programs with no special library path.
25232ac_x_libraries=
25233else
cristy8b350f62009-11-15 23:12:43 +000025234 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025235for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25236do
25237 # Don't even attempt the hair of trying to link an X program!
25238 for ac_extension in a so sl dylib la dll; do
25239 if test -r "$ac_dir/libX11.$ac_extension"; then
25240 ac_x_libraries=$ac_dir
25241 break 2
25242 fi
25243 done
25244done
25245fi
cristy8b350f62009-11-15 23:12:43 +000025246rm -f core conftest.err conftest.$ac_objext \
25247 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025248fi # $ac_x_libraries = no
25249
25250case $ac_x_includes,$ac_x_libraries in #(
25251 no,* | *,no | *\'*)
25252 # Didn't find X, or a directory has "'" in its name.
25253 ac_cv_have_x="have_x=no";; #(
25254 *)
25255 # Record where we found X for the cache.
25256 ac_cv_have_x="have_x=yes\
25257 ac_x_includes='$ac_x_includes'\
25258 ac_x_libraries='$ac_x_libraries'"
25259esac
25260fi
25261;; #(
25262 *) have_x=yes;;
25263 esac
25264 eval "$ac_cv_have_x"
25265fi # $with_x != no
25266
25267if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025269$as_echo "$have_x" >&6; }
25270 no_x=yes
25271else
25272 # If each of the values was on the command line, it overrides each guess.
25273 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25274 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25275 # Update the cache value to reflect the command line values.
25276 ac_cv_have_x="have_x=yes\
25277 ac_x_includes='$x_includes'\
25278 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025280$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25281fi
25282
cristy3ed852e2009-09-05 21:47:34 +000025283if test "$no_x" = yes; then
25284 # Not all programs may use this symbol, but it does not hurt to define it.
25285
cristy8b350f62009-11-15 23:12:43 +000025286$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025287
25288 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25289else
25290 if test -n "$x_includes"; then
25291 X_CFLAGS="$X_CFLAGS -I$x_includes"
25292 fi
25293
25294 # It would also be nice to do this for all -L options, not just this one.
25295 if test -n "$x_libraries"; then
25296 X_LIBS="$X_LIBS -L$x_libraries"
25297 # For Solaris; some versions of Sun CC require a space after -R and
25298 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025300$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25301 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25302 ac_xsave_c_werror_flag=$ac_c_werror_flag
25303 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025305/* end confdefs.h. */
25306
25307int
25308main ()
25309{
25310
25311 ;
25312 return 0;
25313}
25314_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025315if ac_fn_c_try_link "$LINENO"; then :
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025317$as_echo "no" >&6; }
25318 X_LIBS="$X_LIBS -R$x_libraries"
25319else
cristy8b350f62009-11-15 23:12:43 +000025320 LIBS="$ac_xsave_LIBS -R $x_libraries"
25321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025322/* end confdefs.h. */
25323
25324int
25325main ()
25326{
25327
25328 ;
25329 return 0;
25330}
25331_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025332if ac_fn_c_try_link "$LINENO"; then :
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025334$as_echo "yes" >&6; }
25335 X_LIBS="$X_LIBS -R $x_libraries"
25336else
cristy8b350f62009-11-15 23:12:43 +000025337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025338$as_echo "neither works" >&6; }
25339fi
cristy8b350f62009-11-15 23:12:43 +000025340rm -f core conftest.err conftest.$ac_objext \
25341 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025342fi
cristy8b350f62009-11-15 23:12:43 +000025343rm -f core conftest.err conftest.$ac_objext \
25344 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025345 ac_c_werror_flag=$ac_xsave_c_werror_flag
25346 LIBS=$ac_xsave_LIBS
25347 fi
25348
25349 # Check for system-dependent libraries X programs must link with.
25350 # Do this before checking for the system-independent R6 libraries
25351 # (-lICE), since we may need -lsocket or whatever for X linking.
25352
25353 if test "$ISC" = yes; then
25354 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25355 else
25356 # Martyn Johnson says this is needed for Ultrix, if the X
25357 # libraries were built with DECnet support. And Karl Berry says
25358 # the Alpha needs dnet_stub (dnet does not exist).
25359 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025361/* end confdefs.h. */
25362
25363/* Override any GCC internal prototype to avoid an error.
25364 Use char because int might match the return type of a GCC
25365 builtin and then its argument prototype would still apply. */
25366#ifdef __cplusplus
25367extern "C"
25368#endif
25369char XOpenDisplay ();
25370int
25371main ()
25372{
25373return XOpenDisplay ();
25374 ;
25375 return 0;
25376}
25377_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025378if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025379
cristy8b350f62009-11-15 23:12:43 +000025380else
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025382$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025383if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025384 $as_echo_n "(cached) " >&6
25385else
25386 ac_check_lib_save_LIBS=$LIBS
25387LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025389/* end confdefs.h. */
25390
25391/* Override any GCC internal prototype to avoid an error.
25392 Use char because int might match the return type of a GCC
25393 builtin and then its argument prototype would still apply. */
25394#ifdef __cplusplus
25395extern "C"
25396#endif
25397char dnet_ntoa ();
25398int
25399main ()
25400{
25401return dnet_ntoa ();
25402 ;
25403 return 0;
25404}
25405_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025406if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025407 ac_cv_lib_dnet_dnet_ntoa=yes
25408else
cristy8b350f62009-11-15 23:12:43 +000025409 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025410fi
cristy8b350f62009-11-15 23:12:43 +000025411rm -f core conftest.err conftest.$ac_objext \
25412 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025413LIBS=$ac_check_lib_save_LIBS
25414fi
cristy8b350f62009-11-15 23:12:43 +000025415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025416$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025417if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025418 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25419fi
25420
25421 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000025422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000025423$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025424if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025425 $as_echo_n "(cached) " >&6
25426else
25427 ac_check_lib_save_LIBS=$LIBS
25428LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025430/* end confdefs.h. */
25431
25432/* Override any GCC internal prototype to avoid an error.
25433 Use char because int might match the return type of a GCC
25434 builtin and then its argument prototype would still apply. */
25435#ifdef __cplusplus
25436extern "C"
25437#endif
25438char dnet_ntoa ();
25439int
25440main ()
25441{
25442return dnet_ntoa ();
25443 ;
25444 return 0;
25445}
25446_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025447if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025448 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25449else
cristy8b350f62009-11-15 23:12:43 +000025450 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025451fi
cristy8b350f62009-11-15 23:12:43 +000025452rm -f core conftest.err conftest.$ac_objext \
25453 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025454LIBS=$ac_check_lib_save_LIBS
25455fi
cristy8b350f62009-11-15 23:12:43 +000025456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025457$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025458if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025459 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25460fi
25461
25462 fi
25463fi
cristy8b350f62009-11-15 23:12:43 +000025464rm -f core conftest.err conftest.$ac_objext \
25465 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025466 LIBS="$ac_xsave_LIBS"
25467
25468 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25469 # to get the SysV transport functions.
25470 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25471 # needs -lnsl.
25472 # The nsl library prevents programs from opening the X display
25473 # on Irix 5.2, according to T.E. Dickey.
25474 # The functions gethostbyname, getservbyname, and inet_addr are
25475 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000025476 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25477if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025478
cristy3ed852e2009-09-05 21:47:34 +000025479fi
25480
cristy3ed852e2009-09-05 21:47:34 +000025481 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025483$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025484if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025485 $as_echo_n "(cached) " >&6
25486else
25487 ac_check_lib_save_LIBS=$LIBS
25488LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025490/* end confdefs.h. */
25491
25492/* Override any GCC internal prototype to avoid an error.
25493 Use char because int might match the return type of a GCC
25494 builtin and then its argument prototype would still apply. */
25495#ifdef __cplusplus
25496extern "C"
25497#endif
25498char gethostbyname ();
25499int
25500main ()
25501{
25502return gethostbyname ();
25503 ;
25504 return 0;
25505}
25506_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025507if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025508 ac_cv_lib_nsl_gethostbyname=yes
25509else
cristy8b350f62009-11-15 23:12:43 +000025510 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025511fi
cristy8b350f62009-11-15 23:12:43 +000025512rm -f core conftest.err conftest.$ac_objext \
25513 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025514LIBS=$ac_check_lib_save_LIBS
25515fi
cristy8b350f62009-11-15 23:12:43 +000025516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025517$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025518if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025519 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25520fi
25521
25522 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000025524$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025525if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025526 $as_echo_n "(cached) " >&6
25527else
25528 ac_check_lib_save_LIBS=$LIBS
25529LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025531/* end confdefs.h. */
25532
25533/* Override any GCC internal prototype to avoid an error.
25534 Use char because int might match the return type of a GCC
25535 builtin and then its argument prototype would still apply. */
25536#ifdef __cplusplus
25537extern "C"
25538#endif
25539char gethostbyname ();
25540int
25541main ()
25542{
25543return gethostbyname ();
25544 ;
25545 return 0;
25546}
25547_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025548if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025549 ac_cv_lib_bsd_gethostbyname=yes
25550else
cristy8b350f62009-11-15 23:12:43 +000025551 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025552fi
cristy8b350f62009-11-15 23:12:43 +000025553rm -f core conftest.err conftest.$ac_objext \
25554 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025555LIBS=$ac_check_lib_save_LIBS
25556fi
cristy8b350f62009-11-15 23:12:43 +000025557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025558$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025559if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025560 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25561fi
25562
25563 fi
25564 fi
25565
25566 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25567 # socket/setsockopt and other routines are undefined under SCO ODT
25568 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25569 # on later versions), says Simon Leinen: it contains gethostby*
25570 # variants that don't use the name server (or something). -lsocket
25571 # must be given before -lnsl if both are needed. We assume that
25572 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000025573 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25574if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025575
cristy3ed852e2009-09-05 21:47:34 +000025576fi
25577
cristy3ed852e2009-09-05 21:47:34 +000025578 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000025579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000025580$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025581if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025582 $as_echo_n "(cached) " >&6
25583else
25584 ac_check_lib_save_LIBS=$LIBS
25585LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025587/* end confdefs.h. */
25588
25589/* Override any GCC internal prototype to avoid an error.
25590 Use char because int might match the return type of a GCC
25591 builtin and then its argument prototype would still apply. */
25592#ifdef __cplusplus
25593extern "C"
25594#endif
25595char connect ();
25596int
25597main ()
25598{
25599return connect ();
25600 ;
25601 return 0;
25602}
25603_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025604if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025605 ac_cv_lib_socket_connect=yes
25606else
cristy8b350f62009-11-15 23:12:43 +000025607 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000025608fi
cristy8b350f62009-11-15 23:12:43 +000025609rm -f core conftest.err conftest.$ac_objext \
25610 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025611LIBS=$ac_check_lib_save_LIBS
25612fi
cristy8b350f62009-11-15 23:12:43 +000025613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000025614$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025615if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025616 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25617fi
25618
25619 fi
25620
25621 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000025622 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25623if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025624
cristy3ed852e2009-09-05 21:47:34 +000025625fi
25626
cristy3ed852e2009-09-05 21:47:34 +000025627 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000025628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000025629$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025630if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025631 $as_echo_n "(cached) " >&6
25632else
25633 ac_check_lib_save_LIBS=$LIBS
25634LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025636/* end confdefs.h. */
25637
25638/* Override any GCC internal prototype to avoid an error.
25639 Use char because int might match the return type of a GCC
25640 builtin and then its argument prototype would still apply. */
25641#ifdef __cplusplus
25642extern "C"
25643#endif
25644char remove ();
25645int
25646main ()
25647{
25648return remove ();
25649 ;
25650 return 0;
25651}
25652_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025653if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025654 ac_cv_lib_posix_remove=yes
25655else
cristy8b350f62009-11-15 23:12:43 +000025656 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025657fi
cristy8b350f62009-11-15 23:12:43 +000025658rm -f core conftest.err conftest.$ac_objext \
25659 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025660LIBS=$ac_check_lib_save_LIBS
25661fi
cristy8b350f62009-11-15 23:12:43 +000025662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025663$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025664if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025665 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25666fi
25667
25668 fi
25669
25670 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025671 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25672if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025673
cristy3ed852e2009-09-05 21:47:34 +000025674fi
25675
cristy3ed852e2009-09-05 21:47:34 +000025676 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025678$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025679if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025680 $as_echo_n "(cached) " >&6
25681else
25682 ac_check_lib_save_LIBS=$LIBS
25683LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025685/* end confdefs.h. */
25686
25687/* Override any GCC internal prototype to avoid an error.
25688 Use char because int might match the return type of a GCC
25689 builtin and then its argument prototype would still apply. */
25690#ifdef __cplusplus
25691extern "C"
25692#endif
25693char shmat ();
25694int
25695main ()
25696{
25697return shmat ();
25698 ;
25699 return 0;
25700}
25701_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025702if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025703 ac_cv_lib_ipc_shmat=yes
25704else
cristy8b350f62009-11-15 23:12:43 +000025705 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025706fi
cristy8b350f62009-11-15 23:12:43 +000025707rm -f core conftest.err conftest.$ac_objext \
25708 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025709LIBS=$ac_check_lib_save_LIBS
25710fi
cristy8b350f62009-11-15 23:12:43 +000025711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025712$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025713if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025714 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25715fi
25716
25717 fi
25718 fi
25719
25720 # Check for libraries that X11R6 Xt/Xaw programs need.
25721 ac_save_LDFLAGS=$LDFLAGS
25722 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25723 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25724 # check for ICE first), but we must link in the order -lSM -lICE or
25725 # we get undefined symbols. So assume we have SM if we have ICE.
25726 # These have to be linked with before -lX11, unlike the other
25727 # libraries we check for below, so use a different variable.
25728 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025730$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025731if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025732 $as_echo_n "(cached) " >&6
25733else
25734 ac_check_lib_save_LIBS=$LIBS
25735LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025737/* end confdefs.h. */
25738
25739/* Override any GCC internal prototype to avoid an error.
25740 Use char because int might match the return type of a GCC
25741 builtin and then its argument prototype would still apply. */
25742#ifdef __cplusplus
25743extern "C"
25744#endif
25745char IceConnectionNumber ();
25746int
25747main ()
25748{
25749return IceConnectionNumber ();
25750 ;
25751 return 0;
25752}
25753_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025754if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025755 ac_cv_lib_ICE_IceConnectionNumber=yes
25756else
cristy8b350f62009-11-15 23:12:43 +000025757 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025758fi
cristy8b350f62009-11-15 23:12:43 +000025759rm -f core conftest.err conftest.$ac_objext \
25760 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025761LIBS=$ac_check_lib_save_LIBS
25762fi
cristy8b350f62009-11-15 23:12:43 +000025763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025764$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025765if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025766 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25767fi
25768
25769 LDFLAGS=$ac_save_LDFLAGS
25770
25771fi
25772
25773if test "$no_x" != 'yes'; then
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; }
cristy8b350f62009-11-15 23:12:43 +000025776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025777$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025779$as_echo "" >&6; }
25780 LDFLAGS="$LDFLAGS $X_LIBS"
25781 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25782 LIBS="$X11_LIBS $LIBS"
25783 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25784
25785
cristy8b350f62009-11-15 23:12:43 +000025786$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025787
25788 #
25789 # Check for X11 shared memory extension
25790 #
25791 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025792 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25793if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025794 have_shmctl='yes'
25795fi
25796
25797 if test "$have_shmctl" != 'yes'; then
25798 PERSIST_LIBS=$LIBS
25799 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025801/* end confdefs.h. */
25802
25803/* Override any GCC internal prototype to avoid an error.
25804 Use char because int might match the return type of a GCC
25805 builtin and then its argument prototype would still apply. */
25806#ifdef __cplusplus
25807extern "C"
25808#endif
25809char shmctl ();
25810int
25811main ()
25812{
25813return shmctl ();
25814 ;
25815 return 0;
25816}
25817_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025818if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025819 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025820fi
cristy8b350f62009-11-15 23:12:43 +000025821rm -f core conftest.err conftest.$ac_objext \
25822 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025823 LIBS=$PERSIST_LIBS
25824 fi
25825
25826 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025828$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025829if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025830 $as_echo_n "(cached) " >&6
25831else
25832 ac_check_lib_save_LIBS=$LIBS
25833LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025835/* end confdefs.h. */
25836
25837/* Override any GCC internal prototype to avoid an error.
25838 Use char because int might match the return type of a GCC
25839 builtin and then its argument prototype would still apply. */
25840#ifdef __cplusplus
25841extern "C"
25842#endif
25843char XShmAttach ();
25844int
25845main ()
25846{
25847return XShmAttach ();
25848 ;
25849 return 0;
25850}
25851_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025852if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025853 ac_cv_lib_Xext_XShmAttach=yes
25854else
cristy8b350f62009-11-15 23:12:43 +000025855 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025856fi
cristy8b350f62009-11-15 23:12:43 +000025857rm -f core conftest.err conftest.$ac_objext \
25858 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025859LIBS=$ac_check_lib_save_LIBS
25860fi
cristy8b350f62009-11-15 23:12:43 +000025861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025862$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025863if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025864 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025865$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025866
25867fi
25868
25869 fi
25870
25871 #
25872 # Check for X11 shape extension
25873 #
cristy8b350f62009-11-15 23:12:43 +000025874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025875$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025876if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025877 $as_echo_n "(cached) " >&6
25878else
25879 ac_check_lib_save_LIBS=$LIBS
25880LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025882/* end confdefs.h. */
25883
25884/* Override any GCC internal prototype to avoid an error.
25885 Use char because int might match the return type of a GCC
25886 builtin and then its argument prototype would still apply. */
25887#ifdef __cplusplus
25888extern "C"
25889#endif
25890char XShapeCombineMask ();
25891int
25892main ()
25893{
25894return XShapeCombineMask ();
25895 ;
25896 return 0;
25897}
25898_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025899if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025900 ac_cv_lib_Xext_XShapeCombineMask=yes
25901else
cristy8b350f62009-11-15 23:12:43 +000025902 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025903fi
cristy8b350f62009-11-15 23:12:43 +000025904rm -f core conftest.err conftest.$ac_objext \
25905 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025906LIBS=$ac_check_lib_save_LIBS
25907fi
cristy8b350f62009-11-15 23:12:43 +000025908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025909$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025910if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025911 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025912$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025913
25914fi
25915
cristy8b350f62009-11-15 23:12:43 +000025916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025917$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025918if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025919 $as_echo_n "(cached) " >&6
25920else
25921 ac_check_lib_save_LIBS=$LIBS
25922LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025924/* end confdefs.h. */
25925
25926/* Override any GCC internal prototype to avoid an error.
25927 Use char because int might match the return type of a GCC
25928 builtin and then its argument prototype would still apply. */
25929#ifdef __cplusplus
25930extern "C"
25931#endif
25932char XtSetEventDispatcher ();
25933int
25934main ()
25935{
25936return XtSetEventDispatcher ();
25937 ;
25938 return 0;
25939}
25940_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025941if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025942 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25943else
cristy8b350f62009-11-15 23:12:43 +000025944 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025945fi
cristy8b350f62009-11-15 23:12:43 +000025946rm -f core conftest.err conftest.$ac_objext \
25947 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025948LIBS=$ac_check_lib_save_LIBS
25949fi
cristy8b350f62009-11-15 23:12:43 +000025950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025951$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025952if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025953 XT_LIBS='-lXt'
25954fi
25955
25956 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25957fi
25958if test "$no_x" != 'yes'; then
25959 have_x='yes'
25960else
25961 have_x='no'
25962fi
25963 if test "$have_x" = 'yes'; then
25964 X11_DELEGATE_TRUE=
25965 X11_DELEGATE_FALSE='#'
25966else
25967 X11_DELEGATE_TRUE='#'
25968 X11_DELEGATE_FALSE=
25969fi
25970
25971
25972
25973
25974
25975#
25976# Check for ZLIB
25977#
25978
25979# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025980if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025981 withval=$with_zlib; with_zlib=$withval
25982else
25983 with_zlib='yes'
25984fi
25985
25986
25987if test "$with_zlib" != 'yes'; then
25988 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25989fi
25990
25991have_zlib='no'
25992ZLIB_LIBS=''
25993if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
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; }
cristy8b350f62009-11-15 23:12:43 +000025996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025997$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025999$as_echo "" >&6; }
26000 ZLIB_LIBS=''
26001 failed=0
26002 passed=0
cristy8b350f62009-11-15 23:12:43 +000026003 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
26004if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026005 passed=`expr $passed + 1`
26006else
26007 failed=`expr $failed + 1`
26008fi
26009
26010
cristy8b350f62009-11-15 23:12:43 +000026011 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
26012if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026013 passed=`expr $passed + 1`
26014else
26015 failed=`expr $failed + 1`
26016fi
26017
26018
cristy8b350f62009-11-15 23:12:43 +000026019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026020$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026021if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026022 $as_echo_n "(cached) " >&6
26023else
26024 ac_check_lib_save_LIBS=$LIBS
26025LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026027/* end confdefs.h. */
26028
26029/* Override any GCC internal prototype to avoid an error.
26030 Use char because int might match the return type of a GCC
26031 builtin and then its argument prototype would still apply. */
26032#ifdef __cplusplus
26033extern "C"
26034#endif
26035char compress ();
26036int
26037main ()
26038{
26039return compress ();
26040 ;
26041 return 0;
26042}
26043_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026044if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026045 ac_cv_lib_z_compress=yes
26046else
cristy8b350f62009-11-15 23:12:43 +000026047 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000026048fi
cristy8b350f62009-11-15 23:12:43 +000026049rm -f core conftest.err conftest.$ac_objext \
26050 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026051LIBS=$ac_check_lib_save_LIBS
26052fi
cristy8b350f62009-11-15 23:12:43 +000026053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026054$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026055if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026056 passed=`expr $passed + 1`
26057else
26058 failed=`expr $failed + 1`
26059fi
26060
cristy8b350f62009-11-15 23:12:43 +000026061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026062$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026063if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026064 $as_echo_n "(cached) " >&6
26065else
26066 ac_check_lib_save_LIBS=$LIBS
26067LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026069/* end confdefs.h. */
26070
26071/* Override any GCC internal prototype to avoid an error.
26072 Use char because int might match the return type of a GCC
26073 builtin and then its argument prototype would still apply. */
26074#ifdef __cplusplus
26075extern "C"
26076#endif
26077char uncompress ();
26078int
26079main ()
26080{
26081return uncompress ();
26082 ;
26083 return 0;
26084}
26085_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026086if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026087 ac_cv_lib_z_uncompress=yes
26088else
cristy8b350f62009-11-15 23:12:43 +000026089 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000026090fi
cristy8b350f62009-11-15 23:12:43 +000026091rm -f core conftest.err conftest.$ac_objext \
26092 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026093LIBS=$ac_check_lib_save_LIBS
26094fi
cristy8b350f62009-11-15 23:12:43 +000026095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026096$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026097if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026098 passed=`expr $passed + 1`
26099else
26100 failed=`expr $failed + 1`
26101fi
26102
cristy8b350f62009-11-15 23:12:43 +000026103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026104$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026105if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026106 $as_echo_n "(cached) " >&6
26107else
26108 ac_check_lib_save_LIBS=$LIBS
26109LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026111/* end confdefs.h. */
26112
26113/* Override any GCC internal prototype to avoid an error.
26114 Use char because int might match the return type of a GCC
26115 builtin and then its argument prototype would still apply. */
26116#ifdef __cplusplus
26117extern "C"
26118#endif
26119char deflate ();
26120int
26121main ()
26122{
26123return deflate ();
26124 ;
26125 return 0;
26126}
26127_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026128if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026129 ac_cv_lib_z_deflate=yes
26130else
cristy8b350f62009-11-15 23:12:43 +000026131 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000026132fi
cristy8b350f62009-11-15 23:12:43 +000026133rm -f core conftest.err conftest.$ac_objext \
26134 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026135LIBS=$ac_check_lib_save_LIBS
26136fi
cristy8b350f62009-11-15 23:12:43 +000026137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026138$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026139if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026140 passed=`expr $passed + 1`
26141else
26142 failed=`expr $failed + 1`
26143fi
26144
cristy8b350f62009-11-15 23:12:43 +000026145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026146$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026147if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026148 $as_echo_n "(cached) " >&6
26149else
26150 ac_check_lib_save_LIBS=$LIBS
26151LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026153/* end confdefs.h. */
26154
26155/* Override any GCC internal prototype to avoid an error.
26156 Use char because int might match the return type of a GCC
26157 builtin and then its argument prototype would still apply. */
26158#ifdef __cplusplus
26159extern "C"
26160#endif
26161char inflate ();
26162int
26163main ()
26164{
26165return inflate ();
26166 ;
26167 return 0;
26168}
26169_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026170if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026171 ac_cv_lib_z_inflate=yes
26172else
cristy8b350f62009-11-15 23:12:43 +000026173 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000026174fi
cristy8b350f62009-11-15 23:12:43 +000026175rm -f core conftest.err conftest.$ac_objext \
26176 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026177LIBS=$ac_check_lib_save_LIBS
26178fi
cristy8b350f62009-11-15 23:12:43 +000026179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026180$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026181if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026182 passed=`expr $passed + 1`
26183else
26184 failed=`expr $failed + 1`
26185fi
26186
cristy8b350f62009-11-15 23:12:43 +000026187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026188$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026189if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026190 $as_echo_n "(cached) " >&6
26191else
26192 ac_check_lib_save_LIBS=$LIBS
26193LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026195/* end confdefs.h. */
26196
26197/* Override any GCC internal prototype to avoid an error.
26198 Use char because int might match the return type of a GCC
26199 builtin and then its argument prototype would still apply. */
26200#ifdef __cplusplus
26201extern "C"
26202#endif
26203char gzseek ();
26204int
26205main ()
26206{
26207return gzseek ();
26208 ;
26209 return 0;
26210}
26211_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026212if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026213 ac_cv_lib_z_gzseek=yes
26214else
cristy8b350f62009-11-15 23:12:43 +000026215 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000026216fi
cristy8b350f62009-11-15 23:12:43 +000026217rm -f core conftest.err conftest.$ac_objext \
26218 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026219LIBS=$ac_check_lib_save_LIBS
26220fi
cristy8b350f62009-11-15 23:12:43 +000026221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026222$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026223if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026224 passed=`expr $passed + 1`
26225else
26226 failed=`expr $failed + 1`
26227fi
26228
cristy8b350f62009-11-15 23:12:43 +000026229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026230$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026231if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026232 $as_echo_n "(cached) " >&6
26233else
26234 ac_check_lib_save_LIBS=$LIBS
26235LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026237/* end confdefs.h. */
26238
26239/* Override any GCC internal prototype to avoid an error.
26240 Use char because int might match the return type of a GCC
26241 builtin and then its argument prototype would still apply. */
26242#ifdef __cplusplus
26243extern "C"
26244#endif
26245char gztell ();
26246int
26247main ()
26248{
26249return gztell ();
26250 ;
26251 return 0;
26252}
26253_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026254if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026255 ac_cv_lib_z_gztell=yes
26256else
cristy8b350f62009-11-15 23:12:43 +000026257 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026258fi
cristy8b350f62009-11-15 23:12:43 +000026259rm -f core conftest.err conftest.$ac_objext \
26260 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026261LIBS=$ac_check_lib_save_LIBS
26262fi
cristy8b350f62009-11-15 23:12:43 +000026263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026264$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026265if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026266 passed=`expr $passed + 1`
26267else
26268 failed=`expr $failed + 1`
26269fi
26270
cristy8b350f62009-11-15 23:12:43 +000026271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026272$as_echo_n "checking if ZLIB package is complete... " >&6; }
26273 if test $passed -gt 0; then
26274 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026276$as_echo "no -- some components failed test" >&6; }
26277 have_zlib='no (failed tests)'
26278 else
26279 ZLIB_LIBS='-lz'
26280 LIBS="$ZLIB_LIBS $LIBS"
26281
cristy8b350f62009-11-15 23:12:43 +000026282$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026283
cristy8b350f62009-11-15 23:12:43 +000026284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026285$as_echo "yes" >&6; }
26286 have_zlib='yes'
26287 fi
26288 else
cristy8b350f62009-11-15 23:12:43 +000026289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026290$as_echo "no" >&6; }
26291 fi
26292fi
26293 if test "$have_zlib" = 'yes'; then
26294 ZLIB_DELEGATE_TRUE=
26295 ZLIB_DELEGATE_FALSE='#'
26296else
26297 ZLIB_DELEGATE_TRUE='#'
26298 ZLIB_DELEGATE_FALSE=
26299fi
26300
26301
26302
26303#
26304# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26305#
26306LIB_DL=''
26307if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026309$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026310if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026311 $as_echo_n "(cached) " >&6
26312else
26313 ac_check_lib_save_LIBS=$LIBS
26314LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026316/* end confdefs.h. */
26317
26318/* Override any GCC internal prototype to avoid an error.
26319 Use char because int might match the return type of a GCC
26320 builtin and then its argument prototype would still apply. */
26321#ifdef __cplusplus
26322extern "C"
26323#endif
26324char dlopen ();
26325int
26326main ()
26327{
26328return dlopen ();
26329 ;
26330 return 0;
26331}
26332_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026333if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026334 ac_cv_lib_dl_dlopen=yes
26335else
cristy8b350f62009-11-15 23:12:43 +000026336 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026337fi
cristy8b350f62009-11-15 23:12:43 +000026338rm -f core conftest.err conftest.$ac_objext \
26339 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026340LIBS=$ac_check_lib_save_LIBS
26341fi
cristy8b350f62009-11-15 23:12:43 +000026342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026343$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026344if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026345 LIB_DL='-ldl'
26346fi
26347
26348 LIBS="$LIB_DL $LIBS"
26349fi
26350
26351
26352
26353#
26354# Check for Autotrace delegate library.
26355#
26356
26357# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026358if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026359 withval=$with_autotrace; with_autotrace=$withval
26360else
26361 with_autotrace='no'
26362fi
26363
26364
26365if test "$with_autotrace" != 'yes'; then
26366 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26367fi
26368
26369have_autotrace='no'
26370AUTOTRACE_CFLAGS=""
26371AUTOTRACE_LIBS=""
26372AUTOTRACE_PKG=""
26373if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026375$as_echo "-------------------------------------------------------------" >&6; }
26376
26377pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026379$as_echo_n "checking for AUTOTRACE... " >&6; }
26380
26381if test -n "$AUTOTRACE_CFLAGS"; then
26382 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26383 elif test -n "$PKG_CONFIG"; then
26384 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026385 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026386 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26387 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26389 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026390 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26391else
26392 pkg_failed=yes
26393fi
26394 else
26395 pkg_failed=untried
26396fi
26397if test -n "$AUTOTRACE_LIBS"; then
26398 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26399 elif test -n "$PKG_CONFIG"; then
26400 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026401 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026402 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26403 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26405 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026406 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26407else
26408 pkg_failed=yes
26409fi
26410 else
26411 pkg_failed=untried
26412fi
26413
26414
26415
26416if test $pkg_failed = yes; then
26417
26418if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26419 _pkg_short_errors_supported=yes
26420else
26421 _pkg_short_errors_supported=no
26422fi
26423 if test $_pkg_short_errors_supported = yes; then
26424 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26425 else
26426 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26427 fi
26428 # Put the nasty error message in config.log where it belongs
26429 echo "$AUTOTRACE_PKG_ERRORS" >&5
26430
cristy8b350f62009-11-15 23:12:43 +000026431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026432$as_echo "no" >&6; }
26433 have_autotrace=no
26434elif test $pkg_failed = untried; then
26435 have_autotrace=no
26436else
26437 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26438 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000026439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026440$as_echo "yes" >&6; }
26441 have_autotrace=yes
26442fi
cristy8b350f62009-11-15 23:12:43 +000026443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026444$as_echo "" >&6; }
26445fi
26446
26447if test "$have_autotrace" = 'yes'; then
26448 failed=0
26449
cristy8b350f62009-11-15 23:12:43 +000026450$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026451
26452 if test "$with_modules" = 'no'; then
26453 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26454 fi
26455fi
26456
26457 if test "$have_autotrace" = 'yes'; then
26458 AUTOTRACE_DELEGATE_TRUE=
26459 AUTOTRACE_DELEGATE_FALSE='#'
26460else
26461 AUTOTRACE_DELEGATE_TRUE='#'
26462 AUTOTRACE_DELEGATE_FALSE=
26463fi
26464
26465
26466
26467
26468
26469#
26470# Check for Display Postscript delegate library.
26471#
26472
26473# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000026474if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026475 withval=$with_dps; with_dps=$withval
26476else
26477 with_dps='yes'
26478fi
26479
26480
26481if test "$with_dps" != 'yes'; then
26482 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26483fi
26484
26485have_dps='no'
26486DPS_LIBS=''
26487if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
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; }
cristy8b350f62009-11-15 23:12:43 +000026490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026491$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026493$as_echo "" >&6; }
26494 failed=0
26495 passed=0
26496 PERSIST_CPPFLAGS="$CPPFLAGS"
26497 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000026498 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26499if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026500 passed=`expr $passed + 1`
26501else
26502 failed=`expr $failed + 1`
26503fi
26504
26505
26506 # DPS issues:
26507 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26508 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26509 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26510 # ImageMagick itself doesn't use -lXt.
26511 have_libdps='no'
26512 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000026513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026514$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026515if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026516 $as_echo_n "(cached) " >&6
26517else
26518 ac_check_lib_save_LIBS=$LIBS
26519LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026521/* end confdefs.h. */
26522
26523/* Override any GCC internal prototype to avoid an error.
26524 Use char because int might match the return type of a GCC
26525 builtin and then its argument prototype would still apply. */
26526#ifdef __cplusplus
26527extern "C"
26528#endif
26529char DPSInitialize ();
26530int
26531main ()
26532{
26533return DPSInitialize ();
26534 ;
26535 return 0;
26536}
26537_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026538if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026539 ac_cv_lib_dps_DPSInitialize=yes
26540else
cristy8b350f62009-11-15 23:12:43 +000026541 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026542fi
cristy8b350f62009-11-15 23:12:43 +000026543rm -f core conftest.err conftest.$ac_objext \
26544 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026545LIBS=$ac_check_lib_save_LIBS
26546fi
cristy8b350f62009-11-15 23:12:43 +000026547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026548$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026549if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026550 have_libdps='yes'
26551else
26552 have_libdps='no'
26553fi
26554
26555 if test "$have_libdps" != 'yes'; then
26556 # Unset cache variable so we can try again.
26557 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000026558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026559$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026560if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026561 $as_echo_n "(cached) " >&6
26562else
26563 ac_check_lib_save_LIBS=$LIBS
26564LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026566/* end confdefs.h. */
26567
26568/* Override any GCC internal prototype to avoid an error.
26569 Use char because int might match the return type of a GCC
26570 builtin and then its argument prototype would still apply. */
26571#ifdef __cplusplus
26572extern "C"
26573#endif
26574char DPSInitialize ();
26575int
26576main ()
26577{
26578return DPSInitialize ();
26579 ;
26580 return 0;
26581}
26582_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026583if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026584 ac_cv_lib_dps_DPSInitialize=yes
26585else
cristy8b350f62009-11-15 23:12:43 +000026586 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026587fi
cristy8b350f62009-11-15 23:12:43 +000026588rm -f core conftest.err conftest.$ac_objext \
26589 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026590LIBS=$ac_check_lib_save_LIBS
26591fi
cristy8b350f62009-11-15 23:12:43 +000026592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026593$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026594if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026595 have_libdps='yes'
26596else
26597 have_libdps='no'
26598fi
26599
26600 if test "$have_libdps" = 'yes'; then
26601 LIBDPS_XT='-lXt'
26602 fi
26603 fi
26604 if test "$have_libdps" = 'yes'; then
26605 passed=`expr $passed + 1`
26606 else
26607 failed=`expr $failed + 1`
26608 fi
cristy8b350f62009-11-15 23:12:43 +000026609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026610$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026611if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026612 $as_echo_n "(cached) " >&6
26613else
26614 ac_check_lib_save_LIBS=$LIBS
26615LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026617/* end confdefs.h. */
26618
26619/* Override any GCC internal prototype to avoid an error.
26620 Use char because int might match the return type of a GCC
26621 builtin and then its argument prototype would still apply. */
26622#ifdef __cplusplus
26623extern "C"
26624#endif
26625char XDPSPixelsPerPoint ();
26626int
26627main ()
26628{
26629return XDPSPixelsPerPoint ();
26630 ;
26631 return 0;
26632}
26633_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026634if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026635 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26636else
cristy8b350f62009-11-15 23:12:43 +000026637 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000026638fi
cristy8b350f62009-11-15 23:12:43 +000026639rm -f core conftest.err conftest.$ac_objext \
26640 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026641LIBS=$ac_check_lib_save_LIBS
26642fi
cristy8b350f62009-11-15 23:12:43 +000026643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026644$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026645if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026646 passed=`expr $passed + 1`
26647else
26648 failed=`expr $failed + 1`
26649fi
26650
cristy8b350f62009-11-15 23:12:43 +000026651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026652$as_echo_n "checking if DPS package is complete... " >&6; }
26653 if test $passed -gt 0; then
26654 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026656$as_echo "no -- some components failed test" >&6; }
26657 have_dps='no (failed tests)'
26658 CPPFLAGS="$PERSIST_CPPFLAGS"
26659 else
26660 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26661 LIBS="$DPS_LIBS $LIBS"
26662
cristy8b350f62009-11-15 23:12:43 +000026663$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026664
cristy8b350f62009-11-15 23:12:43 +000026665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026666$as_echo "yes" >&6; }
26667 have_dps='yes'
26668 fi
26669 else
cristy8b350f62009-11-15 23:12:43 +000026670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026671$as_echo "no" >&6; }
26672 CPPFLAGS=$PERSIST_CPPFLAGS
26673 fi
26674fi
26675 if test "$have_dps" = 'yes'; then
26676 DPS_DELEGATE_TRUE=
26677 DPS_DELEGATE_FALSE='#'
26678else
26679 DPS_DELEGATE_TRUE='#'
26680 DPS_DELEGATE_FALSE=
26681fi
26682
26683
26684
26685
26686#
26687# Check for DJVU delegate library.
26688#
26689
26690# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026691if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026692 withval=$with_djvu; with_djvu=$withval
26693else
26694 with_djvu='yes'
26695fi
26696
26697
26698if test "$with_djvu" != 'yes'; then
26699 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26700fi
26701
26702have_djvu='no'
26703DJVU_LIBS=''
26704if test "$with_djvu" != 'no'; then
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; }
cristy8b350f62009-11-15 23:12:43 +000026707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026708$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026710$as_echo "" >&6; }
26711 failed=0
26712 passed=0
cristy8b350f62009-11-15 23:12:43 +000026713 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26714if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026715 passed=`expr $passed + 1`
26716else
26717 failed=`expr $failed + 1`
26718fi
26719
26720
cristy8b350f62009-11-15 23:12:43 +000026721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026722$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026723if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026724 $as_echo_n "(cached) " >&6
26725else
26726 ac_check_lib_save_LIBS=$LIBS
26727LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026729/* end confdefs.h. */
26730
26731/* Override any GCC internal prototype to avoid an error.
26732 Use char because int might match the return type of a GCC
26733 builtin and then its argument prototype would still apply. */
26734#ifdef __cplusplus
26735extern "C"
26736#endif
26737char ddjvu_context_create ();
26738int
26739main ()
26740{
26741return ddjvu_context_create ();
26742 ;
26743 return 0;
26744}
26745_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026746if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026747 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26748else
cristy8b350f62009-11-15 23:12:43 +000026749 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026750fi
cristy8b350f62009-11-15 23:12:43 +000026751rm -f core conftest.err conftest.$ac_objext \
26752 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026753LIBS=$ac_check_lib_save_LIBS
26754fi
cristy8b350f62009-11-15 23:12:43 +000026755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026756$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026757if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026758 passed=`expr $passed + 1`
26759else
26760 failed=`expr $failed + 1`
26761fi
26762
cristy8b350f62009-11-15 23:12:43 +000026763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026764$as_echo_n "checking if DJVU package is complete... " >&6; }
26765 if test $passed -gt 0; then
26766 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026768$as_echo "no -- some components failed test" >&6; }
26769 have_djvu='no (failed tests)'
26770 else
26771 DJVU_LIBS='-ldjvulibre'
26772 LIBS="$DJVU_LIBS $LIBS"
26773
cristy8b350f62009-11-15 23:12:43 +000026774$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026775
cristy8b350f62009-11-15 23:12:43 +000026776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026777$as_echo "yes" >&6; }
26778 have_djvu='yes'
26779 fi
26780 else
cristy8b350f62009-11-15 23:12:43 +000026781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026782$as_echo "no" >&6; }
26783 fi
26784fi
26785 if test "$have_djvu" = 'yes'; then
26786 DJVU_DELEGATE_TRUE=
26787 DJVU_DELEGATE_FALSE='#'
26788else
26789 DJVU_DELEGATE_TRUE='#'
26790 DJVU_DELEGATE_FALSE=
26791fi
26792
26793
26794
26795
26796#
cristy430a7312010-01-21 20:44:04 +000026797# Set DejaVu font directory.
26798#
26799
26800# Check whether --with-dejavu-font-dir was given.
26801if test "${with_dejavu_font_dir+set}" = set; then :
26802 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26803else
26804 with_dejavu_font_dir='default'
26805fi
26806
26807
26808if test "$with_dejavu_font_dir" != 'default'; then
26809 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26810fi
26811
26812
26813#
cristy3ed852e2009-09-05 21:47:34 +000026814# Check for FFTW delegate library.
26815#
26816
26817# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026818if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026819 withval=$with_fftw; with_fftw=$withval
26820else
26821 with_fftw='yes'
26822fi
26823
26824
26825if test "$with_fftw" != 'yes'; then
26826 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26827fi
26828
26829have_fftw='no'
26830FFTW_LIBS=''
26831if test "$with_fftw" != 'no'; then
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; }
cristy8b350f62009-11-15 23:12:43 +000026834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026835$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026837$as_echo "" >&6; }
26838 failed=0
26839 passed=0
cristy8b350f62009-11-15 23:12:43 +000026840 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26841if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026842 passed=`expr $passed + 1`
26843else
26844 failed=`expr $failed + 1`
26845fi
26846
26847
cristy8b350f62009-11-15 23:12:43 +000026848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026849$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026850if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026851 $as_echo_n "(cached) " >&6
26852else
26853 ac_check_lib_save_LIBS=$LIBS
26854LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026856/* end confdefs.h. */
26857
26858/* Override any GCC internal prototype to avoid an error.
26859 Use char because int might match the return type of a GCC
26860 builtin and then its argument prototype would still apply. */
26861#ifdef __cplusplus
26862extern "C"
26863#endif
26864char fftw_execute ();
26865int
26866main ()
26867{
26868return fftw_execute ();
26869 ;
26870 return 0;
26871}
26872_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026873if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026874 ac_cv_lib_fftw3_fftw_execute=yes
26875else
cristy8b350f62009-11-15 23:12:43 +000026876 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026877fi
cristy8b350f62009-11-15 23:12:43 +000026878rm -f core conftest.err conftest.$ac_objext \
26879 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026880LIBS=$ac_check_lib_save_LIBS
26881fi
cristy8b350f62009-11-15 23:12:43 +000026882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026883$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026884if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026885 passed=`expr $passed + 1`
26886else
26887 failed=`expr $failed + 1`
26888fi
26889
cristy8b350f62009-11-15 23:12:43 +000026890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026891$as_echo_n "checking if FFTW package is complete... " >&6; }
26892 if test $passed -gt 0; then
26893 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026895$as_echo "no -- some components failed test" >&6; }
26896 have_fftw='no (failed tests)'
26897 else
26898 FFTW_LIBS='-lfftw3'
26899 LIBS="$FFTW_LIBS $LIBS"
26900
cristy8b350f62009-11-15 23:12:43 +000026901$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026902
cristy8b350f62009-11-15 23:12:43 +000026903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026904$as_echo "yes" >&6; }
26905 have_fftw='yes'
26906 fi
26907 else
cristy8b350f62009-11-15 23:12:43 +000026908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026909$as_echo "no" >&6; }
26910 fi
26911fi
26912 if test "$have_fftw" = 'yes'; then
26913 FFTW_DELEGATE_TRUE=
26914 FFTW_DELEGATE_FALSE='#'
26915else
26916 FFTW_DELEGATE_TRUE='#'
26917 FFTW_DELEGATE_FALSE=
26918fi
26919
26920
26921
26922
26923#
26924# Check for FlashPIX delegate library.
26925#
26926
26927# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026928if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026929 withval=$with_fpx; with_fpx=$withval
26930else
26931 with_fpx='yes'
26932fi
26933
26934
26935if test "$with_fpx" != 'yes'; then
26936 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26937fi
26938
26939have_fpx='no'
26940FPX_LIBS=''
26941if test "$with_fpx" != 'no'; then
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; }
cristy8b350f62009-11-15 23:12:43 +000026944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026945$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026947$as_echo "" >&6; }
26948 failed=0
26949 passed=0
26950 ac_ext=cpp
26951ac_cpp='$CXXCPP $CPPFLAGS'
26952ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26953ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26954ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26955
26956
cristy8b350f62009-11-15 23:12:43 +000026957ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26958if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026959 passed=`expr $passed + 1`
26960else
26961 failed=`expr $failed + 1`
26962fi
26963
26964
cristy8b350f62009-11-15 23:12:43 +000026965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026966$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026967if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026968 $as_echo_n "(cached) " >&6
26969else
26970 ac_check_lib_save_LIBS=$LIBS
26971LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026973/* end confdefs.h. */
26974
26975/* Override any GCC internal prototype to avoid an error.
26976 Use char because int might match the return type of a GCC
26977 builtin and then its argument prototype would still apply. */
26978#ifdef __cplusplus
26979extern "C"
26980#endif
26981char FPX_OpenImageByFilename ();
26982int
26983main ()
26984{
26985return FPX_OpenImageByFilename ();
26986 ;
26987 return 0;
26988}
26989_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026990if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026991 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26992else
cristy8b350f62009-11-15 23:12:43 +000026993 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026994fi
cristy8b350f62009-11-15 23:12:43 +000026995rm -f core conftest.err conftest.$ac_objext \
26996 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026997LIBS=$ac_check_lib_save_LIBS
26998fi
cristy8b350f62009-11-15 23:12:43 +000026999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000027000$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027001if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027002 passed=`expr $passed + 1`
27003else
27004 failed=`expr $failed + 1`
27005fi
27006
27007 ac_ext=c
27008ac_cpp='$CPP $CPPFLAGS'
27009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27011ac_compiler_gnu=$ac_cv_c_compiler_gnu
27012
cristy8b350f62009-11-15 23:12:43 +000027013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027014$as_echo_n "checking if FlashPIX package is complete... " >&6; }
27015 if test $passed -gt 0; then
27016 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027018$as_echo "no -- some components failed test" >&6; }
27019 have_fpx='no (failed tests)'
27020 else
27021 FPX_LIBS='-lfpx'
27022
cristy8b350f62009-11-15 23:12:43 +000027023$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027024
cristy8b350f62009-11-15 23:12:43 +000027025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027026$as_echo "yes" >&6; }
27027 have_fpx='yes'
27028 PERLMAINCC="$CXX"
27029 fi
27030 else
cristy8b350f62009-11-15 23:12:43 +000027031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027032$as_echo "no" >&6; }
27033 fi
27034fi
27035 if test "$have_fpx" = 'yes'; then
27036 FPX_DELEGATE_TRUE=
27037 FPX_DELEGATE_FALSE='#'
27038else
27039 FPX_DELEGATE_TRUE='#'
27040 FPX_DELEGATE_FALSE=
27041fi
27042
27043
27044
27045
27046#
27047# Check for fontconfig delegate library.
27048#
27049
27050# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000027051if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027052 withval=$with_fontconfig; with_fontconfig=$withval
27053else
27054 with_fontconfig=$have_x
27055fi
27056
27057
27058if test "$with_fontconfig" != 'yes'; then
27059 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
27060fi
27061
27062have_fontconfig='no'
27063FONTCONFIG_CFLAGS=""
27064FONTCONFIG_LIBS=""
27065FONTCONFIG_PKG=""
27066if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027068$as_echo "-------------------------------------------------------------" >&6; }
27069
27070pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027072$as_echo_n "checking for FONTCONFIG... " >&6; }
27073
27074if test -n "$FONTCONFIG_CFLAGS"; then
27075 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
27076 elif test -n "$PKG_CONFIG"; then
27077 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027078 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027079 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27080 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27082 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027083 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
27084else
27085 pkg_failed=yes
27086fi
27087 else
27088 pkg_failed=untried
27089fi
27090if test -n "$FONTCONFIG_LIBS"; then
27091 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
27092 elif test -n "$PKG_CONFIG"; then
27093 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027094 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027095 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27096 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27098 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027099 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
27100else
27101 pkg_failed=yes
27102fi
27103 else
27104 pkg_failed=untried
27105fi
27106
27107
27108
27109if test $pkg_failed = yes; then
27110
27111if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27112 _pkg_short_errors_supported=yes
27113else
27114 _pkg_short_errors_supported=no
27115fi
27116 if test $_pkg_short_errors_supported = yes; then
27117 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
27118 else
27119 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
27120 fi
27121 # Put the nasty error message in config.log where it belongs
27122 echo "$FONTCONFIG_PKG_ERRORS" >&5
27123
cristy8b350f62009-11-15 23:12:43 +000027124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027125$as_echo "no" >&6; }
27126 have_fontconfig=no
27127elif test $pkg_failed = untried; then
27128 have_fontconfig=no
27129else
27130 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
27131 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027133$as_echo "yes" >&6; }
27134 have_fontconfig=yes
27135fi
cristy8b350f62009-11-15 23:12:43 +000027136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027137$as_echo "" >&6; }
27138fi
27139
27140if test "$have_fontconfig" = 'yes'; then
27141
cristy8b350f62009-11-15 23:12:43 +000027142$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027143
cristyd09bcf92010-03-25 03:04:45 +000027144 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000027145 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000027146 fi
cristy3ed852e2009-09-05 21:47:34 +000027147fi
27148
27149 if test "$have_fontconfig" = 'yes'; then
27150 FONTCONFIG_DELEGATE_TRUE=
27151 FONTCONFIG_DELEGATE_FALSE='#'
27152else
27153 FONTCONFIG_DELEGATE_TRUE='#'
27154 FONTCONFIG_DELEGATE_FALSE=
27155fi
27156
27157
27158
27159
27160
27161#
27162# Check for freetype delegate library.
27163#
27164
27165# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000027166if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027167 withval=$with_freetype; with_freetype=$withval
27168else
27169 with_freetype='yes'
27170fi
27171
27172
27173
27174if test "$with_freetype" != 'yes'; then
27175 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
27176fi
27177
27178have_freetype='no'
27179FREETYPE_LIBS=''
27180if test "$with_freetype" != 'no'; then
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; }
cristy8b350f62009-11-15 23:12:43 +000027183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000027184$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027186$as_echo "" >&6; }
27187 failed=0
27188 passed=0
cristy66291112009-10-03 22:44:36 +000027189 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027190 PERSIST_CPPFLAGS="$CPPFLAGS"
27191 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
27192 :
27193 else
27194 freetype_config=''
27195 for ac_prog in freetype-config
27196do
27197 # Extract the first word of "$ac_prog", so it can be a program name with args.
27198set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027200$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027201if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027202 $as_echo_n "(cached) " >&6
27203else
27204 if test -n "$freetype_config"; then
27205 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27206else
27207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27208for as_dir in $PATH
27209do
27210 IFS=$as_save_IFS
27211 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027212 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27214 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027216 break 2
27217 fi
27218done
cristy8b350f62009-11-15 23:12:43 +000027219 done
cristy3ed852e2009-09-05 21:47:34 +000027220IFS=$as_save_IFS
27221
27222fi
27223fi
27224freetype_config=$ac_cv_prog_freetype_config
27225if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027227$as_echo "$freetype_config" >&6; }
27228else
cristy8b350f62009-11-15 23:12:43 +000027229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027230$as_echo "no" >&6; }
27231fi
27232
27233
27234 test -n "$freetype_config" && break
27235done
27236 if test -n "$freetype_config"; then
27237 freetype_cflags=`$freetype_config --cflags`
27238 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027239 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027240 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27241 fi
27242 fi
27243
27244 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027246$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027247if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027248 $as_echo_n "(cached) " >&6
27249else
27250 ac_check_lib_save_LIBS=$LIBS
27251LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027253/* end confdefs.h. */
27254
27255/* Override any GCC internal prototype to avoid an error.
27256 Use char because int might match the return type of a GCC
27257 builtin and then its argument prototype would still apply. */
27258#ifdef __cplusplus
27259extern "C"
27260#endif
27261char FT_Init_FreeType ();
27262int
27263main ()
27264{
27265return FT_Init_FreeType ();
27266 ;
27267 return 0;
27268}
27269_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027270if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027271 ac_cv_lib_freetype_FT_Init_FreeType=yes
27272else
cristy8b350f62009-11-15 23:12:43 +000027273 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027274fi
cristy8b350f62009-11-15 23:12:43 +000027275rm -f core conftest.err conftest.$ac_objext \
27276 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027277LIBS=$ac_check_lib_save_LIBS
27278fi
cristy8b350f62009-11-15 23:12:43 +000027279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027280$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027281if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027282 FREETYPE_LIBS='-lfreetype'
27283fi
27284
27285 if test "$FREETYPE_LIBS" != ''; then
27286 passed=`expr $passed + 1`
27287 else
27288 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027289 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027290 fi
27291 fi
27292
cristy8b350f62009-11-15 23:12:43 +000027293 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27294if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027295 FT2BUILD_H='#include <ft2build.h>'
27296else
27297 ft2build=''
27298fi
27299
27300
cristy8b350f62009-11-15 23:12:43 +000027301 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27302"
27303if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027304 have_freetype_h='yes'
27305else
27306 have_freetype_h='no'
27307fi
27308
27309
27310 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27311 passed=`expr $passed + 1`
27312 else
27313 failed=`expr $failed + 1`
27314 CPPFLAGS="$PERSIST_CPPFLAGS"
27315 fi
27316
cristy8b350f62009-11-15 23:12:43 +000027317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027318$as_echo_n "checking if FreeType package is complete... " >&6; }
27319 if test $passed -gt 0; then
27320 if test $failed -gt 0; then
27321 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027323$as_echo "no -- some components failed test" >&6; }
27324 have_freetype='no (failed tests)'
27325 else
27326 LIBS="$FREETYPE_LIBS $LIBS"
27327
cristy8b350f62009-11-15 23:12:43 +000027328$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027329
27330 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27331
cristy8b350f62009-11-15 23:12:43 +000027332$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027333
27334 fi
cristy8b350f62009-11-15 23:12:43 +000027335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027336$as_echo "yes" >&6; }
27337 have_freetype='yes'
27338 fi
27339 else
cristy8b350f62009-11-15 23:12:43 +000027340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027341$as_echo "no" >&6; }
27342 fi
27343fi
27344 if test "$have_freetype" = 'yes'; then
27345 FREETYPE_DELEGATE_TRUE=
27346 FREETYPE_DELEGATE_FALSE='#'
27347else
27348 FREETYPE_DELEGATE_TRUE='#'
27349 FREETYPE_DELEGATE_FALSE=
27350fi
27351
27352
27353
27354
27355
27356#
27357# Check for Ghostscript library or framework.
27358#
27359# Test for iapi.h & test for gsapi_new_instance in -lgs
27360# or -framework Ghostscript
27361
27362
27363# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027364if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027365 withval=$with_gslib; with_gslib=$withval
27366else
27367 with_gslib='no'
27368fi
27369
27370
cristyb7931f12009-09-25 10:22:21 +000027371gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027372if test "$with_gslib" != 'yes'; then
27373 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27374fi
27375
27376have_gslib='no'
27377GS_LIBS=''
27378if test "$with_gslib" != 'no'; then
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; }
cristy8b350f62009-11-15 23:12:43 +000027381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027382$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027384$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027385 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027386 failed=0
27387 passed=0
cristy8b350f62009-11-15 23:12:43 +000027388 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27389if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027390 passed=`expr $passed + 1`
27391else
27392 failed=`expr $failed + 1`
27393fi
27394
27395
cristy8b350f62009-11-15 23:12:43 +000027396 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27397if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027398 passed=`expr $passed + 1`
27399else
27400 failed=`expr $failed + 1`
27401fi
27402
27403
cristy8b350f62009-11-15 23:12:43 +000027404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000027405$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027406if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027407 $as_echo_n "(cached) " >&6
27408else
27409 ac_check_framework_save_LIBS=$LIBS
27410LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027412/* end confdefs.h. */
27413
27414/* Override any GCC internal prototype to avoid an error.
27415 Use char because int might match the return type of a GCC
27416 builtin and then its argument prototype would still apply. */
27417#ifdef __cplusplus
27418extern "C"
27419#endif
27420char gsapi_new_instance ();
27421int
27422main ()
27423{
27424return gsapi_new_instance ();
27425 ;
27426 return 0;
27427}
27428_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027429if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027430 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27431else
cristy8b350f62009-11-15 23:12:43 +000027432 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027433fi
cristy8b350f62009-11-15 23:12:43 +000027434rm -f core conftest.err conftest.$ac_objext \
27435 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027436LIBS=$ac_check_framework_save_LIBS
27437fi
cristy8b350f62009-11-15 23:12:43 +000027438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027439$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027440if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027441 framework=`expr $framework + 1`
27442else
cristy8b350f62009-11-15 23:12:43 +000027443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027444$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027445if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027446 $as_echo_n "(cached) " >&6
27447else
27448 ac_check_lib_save_LIBS=$LIBS
27449LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027451/* end confdefs.h. */
27452
27453/* Override any GCC internal prototype to avoid an error.
27454 Use char because int might match the return type of a GCC
27455 builtin and then its argument prototype would still apply. */
27456#ifdef __cplusplus
27457extern "C"
27458#endif
27459char gsapi_new_instance ();
27460int
27461main ()
27462{
27463return gsapi_new_instance ();
27464 ;
27465 return 0;
27466}
27467_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027468if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027469 ac_cv_lib_gs_gsapi_new_instance=yes
27470else
cristy8b350f62009-11-15 23:12:43 +000027471 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027472fi
cristy8b350f62009-11-15 23:12:43 +000027473rm -f core conftest.err conftest.$ac_objext \
27474 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027475LIBS=$ac_check_lib_save_LIBS
27476fi
cristy8b350f62009-11-15 23:12:43 +000027477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027478$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027479if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027480 passed=`expr $passed + 1`
27481else
27482 failed=`expr $failed + 1`
27483fi
27484
27485fi
cristy8b350f62009-11-15 23:12:43 +000027486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027487$as_echo_n "checking if Ghostscript package is complete... " >&6; }
27488 if test $passed -gt 0; then
27489 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027491$as_echo "no -- some components failed test" >&6; }
27492 have_gslib='no (failed tests)'
27493 else
27494 if test $framework -gt 0; then
27495 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000027496 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000027497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000027498$as_echo "yes, using framework." >&6; }
27499 else
cristy8b350f62009-11-15 23:12:43 +000027500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000027501$as_echo "yes, using library." >&6; }
27502 GS_LIBS='-lgs'
27503 fi
27504 LIBS="$GS_LIBS $LIBS"
27505
cristy8b350f62009-11-15 23:12:43 +000027506$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027507
27508 have_gslib='yes'
27509 fi
27510 else
cristy8b350f62009-11-15 23:12:43 +000027511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027512$as_echo "no" >&6; }
27513 fi
27514fi
27515 if test "$have_gslib" = 'yes'; then
27516 GS_DELEGATE_TRUE=
27517 GS_DELEGATE_FALSE='#'
27518else
27519 GS_DELEGATE_TRUE='#'
27520 GS_DELEGATE_FALSE=
27521fi
27522
27523
27524
27525# Set default font search path
27526
27527# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000027528if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027529 withval=$with_fontpath; with_fontpath=$withval
27530else
27531 with_fontpath=''
27532fi
27533
27534
27535if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27536 with_fontpath=''
27537else
27538
27539cat >>confdefs.h <<_ACEOF
27540#define MAGICK_FONT_PATH "$with_fontpath"
27541_ACEOF
27542
27543fi
27544if test "$with_fontpath=" != ''; then
27545 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27546fi
27547
27548# Set Ghostscript font directory
27549
27550# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027551if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027552 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27553else
27554 with_gs_font_dir='default'
27555fi
27556
27557
27558if test "$with_gs_font_dir" != 'default'; then
27559 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27560fi
27561
27562
27563#
27564# Check for GVC delegate library.
27565#
27566
27567# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000027568if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027569 withval=$with_gvc; with_gvc=$withval
27570else
27571 with_gvc='yes'
27572fi
27573
27574
27575if test "$with_gvc" != 'yes'; then
27576 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27577fi
27578
27579GVC_PKG=""
27580if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027582$as_echo "-------------------------------------------------------------" >&6; }
27583
27584pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000027586$as_echo_n "checking for GVC... " >&6; }
27587
27588if test -n "$GVC_CFLAGS"; then
27589 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27590 elif test -n "$PKG_CONFIG"; then
27591 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027592 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027593 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27594 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27596 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027597 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27598else
27599 pkg_failed=yes
27600fi
27601 else
27602 pkg_failed=untried
27603fi
27604if test -n "$GVC_LIBS"; then
27605 pkg_cv_GVC_LIBS="$GVC_LIBS"
27606 elif test -n "$PKG_CONFIG"; then
27607 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027608 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027609 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27610 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27612 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027613 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27614else
27615 pkg_failed=yes
27616fi
27617 else
27618 pkg_failed=untried
27619fi
27620
27621
27622
27623if test $pkg_failed = yes; then
27624
27625if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27626 _pkg_short_errors_supported=yes
27627else
27628 _pkg_short_errors_supported=no
27629fi
27630 if test $_pkg_short_errors_supported = yes; then
27631 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27632 else
27633 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27634 fi
27635 # Put the nasty error message in config.log where it belongs
27636 echo "$GVC_PKG_ERRORS" >&5
27637
cristy8b350f62009-11-15 23:12:43 +000027638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027639$as_echo "no" >&6; }
27640 have_gvc=no
27641elif test $pkg_failed = untried; then
27642 have_gvc=no
27643else
27644 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27645 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000027646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027647$as_echo "yes" >&6; }
27648 have_gvc=yes
27649fi
cristy8b350f62009-11-15 23:12:43 +000027650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027651$as_echo "" >&6; }
27652fi
27653
27654if test "$have_gvc" = 'yes'; then
27655
cristy8b350f62009-11-15 23:12:43 +000027656$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027657
27658 if test "$with_modules" = 'no'; then
27659 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27660 fi
27661fi
27662
27663 if test "$have_gvc" = 'yes'; then
27664 GVC_DELEGATE_TRUE=
27665 GVC_DELEGATE_FALSE='#'
27666else
27667 GVC_DELEGATE_TRUE='#'
27668 GVC_DELEGATE_FALSE=
27669fi
27670
27671
27672
27673
27674
27675#
27676# Check for JBIG delegate library.
27677#
27678
27679
27680# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027681if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027682 withval=$with_jbig; with_jbig=$withval
27683else
27684 with_jbig='yes'
27685fi
27686
27687
27688have_jbig='no'
27689JBIG_LIBS=''
27690if test "$with_jbig" != 'no'; then
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; }
cristy8b350f62009-11-15 23:12:43 +000027693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027694$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027696$as_echo "" >&6; }
27697 failed=0
27698 passed=0
cristy8b350f62009-11-15 23:12:43 +000027699 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27700if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027701 passed=`expr $passed + 1`
27702else
27703 failed=`expr $failed + 1`
27704fi
27705
27706
cristy8b350f62009-11-15 23:12:43 +000027707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027708$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027709if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027710 $as_echo_n "(cached) " >&6
27711else
27712 ac_check_lib_save_LIBS=$LIBS
27713LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027715/* end confdefs.h. */
27716
27717/* Override any GCC internal prototype to avoid an error.
27718 Use char because int might match the return type of a GCC
27719 builtin and then its argument prototype would still apply. */
27720#ifdef __cplusplus
27721extern "C"
27722#endif
27723char jbg_dec_init ();
27724int
27725main ()
27726{
27727return jbg_dec_init ();
27728 ;
27729 return 0;
27730}
27731_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027732if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027733 ac_cv_lib_jbig_jbg_dec_init=yes
27734else
cristy8b350f62009-11-15 23:12:43 +000027735 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027736fi
cristy8b350f62009-11-15 23:12:43 +000027737rm -f core conftest.err conftest.$ac_objext \
27738 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027739LIBS=$ac_check_lib_save_LIBS
27740fi
cristy8b350f62009-11-15 23:12:43 +000027741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027742$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027743if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027744 passed=`expr $passed + 1`
27745else
27746 failed=`expr $failed + 1`
27747fi
27748
cristy8b350f62009-11-15 23:12:43 +000027749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027750$as_echo_n "checking if JBIG package is complete... " >&6; }
27751 if test $passed -gt 0; then
27752 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027754$as_echo "no -- some components failed test" >&6; }
27755 have_jbig='no (failed tests)'
27756 else
27757 JBIG_LIBS='-ljbig'
27758 LIBS="$JBIG_LIBS $LIBS"
27759
cristy8b350f62009-11-15 23:12:43 +000027760$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027761
cristy8b350f62009-11-15 23:12:43 +000027762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027763$as_echo "yes" >&6; }
27764 have_jbig='yes'
27765 fi
27766 else
cristy8b350f62009-11-15 23:12:43 +000027767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027768$as_echo "no" >&6; }
27769 fi
27770fi
27771 if test "$have_jbig" = 'yes'; then
27772 JBIG_DELEGATE_TRUE=
27773 JBIG_DELEGATE_FALSE='#'
27774else
27775 JBIG_DELEGATE_TRUE='#'
27776 JBIG_DELEGATE_FALSE=
27777fi
27778
27779
27780
27781
27782#
27783# Check for JPEG delegate library.
27784#
27785
27786# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027787if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027788 withval=$with_jpeg; with_jpeg=$withval
27789else
27790 with_jpeg='yes'
27791fi
27792
27793
27794if test "$with_jpeg" != 'yes'; then
27795 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27796fi
27797
27798have_jpeg='no'
27799JPEG_LIBS=''
27800if test "$with_jpeg" != 'no'; then
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; }
cristy8b350f62009-11-15 23:12:43 +000027803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027804$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027806$as_echo "" >&6; }
27807 failed=0
27808 passed=0
cristy8b350f62009-11-15 23:12:43 +000027809 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27810if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027811 passed=`expr $passed + 1`
27812else
27813 failed=`expr $failed + 1`
27814fi
27815
27816
cristy8b350f62009-11-15 23:12:43 +000027817 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27818if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027819 passed=`expr $passed + 1`
27820else
27821 failed=`expr $failed + 1`
27822fi
27823
27824
cristy8b350f62009-11-15 23:12:43 +000027825 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27826if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027827 passed=`expr $passed + 1`
27828else
27829 failed=`expr $failed + 1`
27830fi
27831
27832
cristy8b350f62009-11-15 23:12:43 +000027833 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27834if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027835 passed=`expr $passed + 1`
27836else
27837 failed=`expr $failed + 1`
27838fi
27839
27840
cristy8b350f62009-11-15 23:12:43 +000027841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027842$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027843if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027844 $as_echo_n "(cached) " >&6
27845else
27846 ac_check_lib_save_LIBS=$LIBS
27847LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027849/* end confdefs.h. */
27850
27851/* Override any GCC internal prototype to avoid an error.
27852 Use char because int might match the return type of a GCC
27853 builtin and then its argument prototype would still apply. */
27854#ifdef __cplusplus
27855extern "C"
27856#endif
27857char jpeg_read_header ();
27858int
27859main ()
27860{
27861return jpeg_read_header ();
27862 ;
27863 return 0;
27864}
27865_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027866if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027867 ac_cv_lib_jpeg_jpeg_read_header=yes
27868else
cristy8b350f62009-11-15 23:12:43 +000027869 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027870fi
cristy8b350f62009-11-15 23:12:43 +000027871rm -f core conftest.err conftest.$ac_objext \
27872 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027873LIBS=$ac_check_lib_save_LIBS
27874fi
cristy8b350f62009-11-15 23:12:43 +000027875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027876$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027877if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027878 passed=`expr $passed + 1`
27879else
27880 failed=`expr $failed + 1`
27881fi
27882
27883
27884# Test for compatible JPEG library
27885if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027887$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027888if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027889 $as_echo_n "(cached) " >&6
27890else
cristy8b350f62009-11-15 23:12:43 +000027891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027892/* end confdefs.h. */
27893#include <stdio.h>
27894#include <stdlib.h>
27895#include <jpeglib.h>
27896
27897int
27898main ()
27899{
27900
27901#if JPEG_LIB_VERSION < 62
27902#error IJG JPEG library must be version 6b or newer!
27903#endif
27904return 0;
27905
27906 ;
27907 return 0;
27908}
27909_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027910if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027911 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27912else
cristy8b350f62009-11-15 23:12:43 +000027913 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027914fi
cristy3ed852e2009-09-05 21:47:34 +000027915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27916fi
cristy8b350f62009-11-15 23:12:43 +000027917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027918$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27919fi
cristy8b350f62009-11-15 23:12:43 +000027920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027921$as_echo_n "checking if JPEG package is complete... " >&6; }
27922 if test $passed -gt 0; then
27923 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027925$as_echo "no -- some components failed test" >&6; }
27926 have_jpeg='no (failed tests)'
27927 else
27928 JPEG_LIBS='-ljpeg'
27929 LIBS="$JPEG_LIBS $LIBS"
27930
cristy8b350f62009-11-15 23:12:43 +000027931$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027932
cristy8b350f62009-11-15 23:12:43 +000027933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027934$as_echo "yes" >&6; }
27935 have_jpeg='yes'
27936 fi
27937 else
cristy8b350f62009-11-15 23:12:43 +000027938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027939$as_echo "no" >&6; }
27940 fi
27941fi
27942 if test "$have_jpeg" = 'yes'; then
27943 JPEG_DELEGATE_TRUE=
27944 JPEG_DELEGATE_FALSE='#'
27945else
27946 JPEG_DELEGATE_TRUE='#'
27947 JPEG_DELEGATE_FALSE=
27948fi
27949
27950
27951
27952
27953#
27954# Check for JPEG Version 2 delegate library.
27955#
27956
27957# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027958if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027959 withval=$with_jp2; with_jp2=$withval
27960else
27961 with_jp2='yes'
27962fi
27963
27964
27965if test "$with_jp2" != 'yes'; then
27966 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27967fi
27968
27969have_jp2='no'
27970JP2_LIBS=''
27971if test "$with_jp2" != 'no'; then
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; }
cristy8b350f62009-11-15 23:12:43 +000027974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027975$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027977$as_echo "" >&6; }
27978 failed=0
27979 passed=0
cristy8b350f62009-11-15 23:12:43 +000027980 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27981if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027982 passed=`expr $passed + 1`
27983else
27984 failed=`expr $failed + 1`
27985fi
27986
27987
cristy8b350f62009-11-15 23:12:43 +000027988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027989$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027990if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027991 $as_echo_n "(cached) " >&6
27992else
27993 ac_check_lib_save_LIBS=$LIBS
27994LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027996/* end confdefs.h. */
27997
27998/* Override any GCC internal prototype to avoid an error.
27999 Use char because int might match the return type of a GCC
28000 builtin and then its argument prototype would still apply. */
28001#ifdef __cplusplus
28002extern "C"
28003#endif
28004char jas_stream_fopen ();
28005int
28006main ()
28007{
28008return jas_stream_fopen ();
28009 ;
28010 return 0;
28011}
28012_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028013if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028014 ac_cv_lib_jasper_jas_stream_fopen=yes
28015else
cristy8b350f62009-11-15 23:12:43 +000028016 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000028017fi
cristy8b350f62009-11-15 23:12:43 +000028018rm -f core conftest.err conftest.$ac_objext \
28019 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028020LIBS=$ac_check_lib_save_LIBS
28021fi
cristy8b350f62009-11-15 23:12:43 +000028022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028023$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028024if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028025 passed=`expr $passed + 1`
28026else
28027 failed=`expr $failed + 1`
28028fi
28029
cristy8b350f62009-11-15 23:12:43 +000028030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028031$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
28032 if test $passed -gt 0; then
28033 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028035$as_echo "no -- some components failed test" >&6; }
28036 have_jp2='no (failed tests)'
28037 else
28038 JP2_LIBS='-ljasper'
28039 LIBS="$JP2_LIBS $LIBS"
28040
cristy8b350f62009-11-15 23:12:43 +000028041$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028042
cristy8b350f62009-11-15 23:12:43 +000028043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028044$as_echo "yes" >&6; }
28045 have_jp2='yes'
28046 fi
28047 else
cristy8b350f62009-11-15 23:12:43 +000028048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028049$as_echo "no" >&6; }
28050 fi
28051fi
28052 if test "$have_jp2" = 'yes'; then
28053 JP2_DELEGATE_TRUE=
28054 JP2_DELEGATE_FALSE='#'
28055else
28056 JP2_DELEGATE_TRUE='#'
28057 JP2_DELEGATE_FALSE=
28058fi
28059
28060
28061
28062
28063#
28064# Check for LCMS delegate library.
28065#
cristy71203402010-06-18 13:12:03 +000028066# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000028067
28068# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000028069if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028070 withval=$with_lcms; with_lcms=$withval
28071else
28072 with_lcms='yes'
28073fi
28074
cristy71203402010-06-18 13:12:03 +000028075if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000028076 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
28077fi
28078
cristy71203402010-06-18 13:12:03 +000028079# Disable LCMS2.
28080
28081# Check whether --with-lcms2 was given.
28082if test "${with_lcms2+set}" = set; then :
28083 withval=$with_lcms2; with_lcms2=$withval
28084else
28085 with_lcms2='yes'
28086fi
28087
28088if test "$with_lcms2" != 'yes' ; then
28089 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
28090fi
28091
28092have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000028093LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000028094if test "$with_lcms2" != 'no'; then
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; }
cristy71203402010-06-18 13:12:03 +000028097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
28098$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028100$as_echo "" >&6; }
28101 failed=0
28102 passed=0
28103 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028104
28105 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000028106 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
28107if test "x$ac_cv_header_lcms2_h" = x""yes; then :
28108 have_lcms_header='yes'
28109fi
28110
28111
28112 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000028113
28114$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
28115
cristy71203402010-06-18 13:12:03 +000028116 passed=`expr $passed + 1`
28117 fi
28118
28119 # Check for <lcms2/lcms2.h)
28120 if test "$have_lcms_header" != 'yes'; then
28121 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
28122if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000028123 have_lcms_header='yes'
28124fi
28125
28126
cristy71203402010-06-18 13:12:03 +000028127 if test "$have_lcms_header" = 'yes'; then
28128 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000028129
cristy71203402010-06-18 13:12:03 +000028130$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000028131
cristy71203402010-06-18 13:12:03 +000028132 fi
cristyd09bcf92010-03-25 03:04:45 +000028133 fi
cristy71203402010-06-18 13:12:03 +000028134
28135 # Failed to find lcms header?
28136 if test "$have_lcms_header" != 'yes'; then
28137 failed=`expr $failed + 1`
28138 fi
28139
28140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
28141$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
28142if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
cristyd09bcf92010-03-25 03:04:45 +000028143 $as_echo_n "(cached) " >&6
28144else
28145 ac_check_lib_save_LIBS=$LIBS
28146LIBS="-llcms2 $LIBS"
28147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28148/* end confdefs.h. */
28149
28150/* Override any GCC internal prototype to avoid an error.
28151 Use char because int might match the return type of a GCC
28152 builtin and then its argument prototype would still apply. */
28153#ifdef __cplusplus
28154extern "C"
28155#endif
cristy71203402010-06-18 13:12:03 +000028156char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028157int
28158main ()
28159{
cristy71203402010-06-18 13:12:03 +000028160return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028161 ;
28162 return 0;
28163}
28164_ACEOF
28165if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028166 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000028167else
cristy71203402010-06-18 13:12:03 +000028168 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000028169fi
28170rm -f core conftest.err conftest.$ac_objext \
28171 conftest$ac_exeext conftest.$ac_ext
28172LIBS=$ac_check_lib_save_LIBS
28173fi
cristy71203402010-06-18 13:12:03 +000028174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
28175$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
28176if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000028177 passed=`expr $passed + 1`
28178else
28179 failed=`expr $failed + 1`
28180fi
28181
cristy71203402010-06-18 13:12:03 +000028182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
28183$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028184 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028185 if test $failed -gt 0; then
28186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000028187$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028188 have_lcms2='no (failed tests)'
28189 else
28190 LCMS_LIBS='-llcms2'
28191 LIBS="$LCMS_LIBS $LIBS"
28192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000028193$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028194 have_lcms2='yes'
28195 fi
cristyd09bcf92010-03-25 03:04:45 +000028196 else
cristy71203402010-06-18 13:12:03 +000028197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000028198$as_echo "no" >&6; }
28199 fi
28200fi
28201
cristy71203402010-06-18 13:12:03 +000028202#
28203# Check for LCMS v1 (1.11 or later)
28204#
28205if test $have_lcms2 = 'yes'; then
28206 with_lcms='no'
28207fi
28208
28209have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000028210if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000028211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28212$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
28214$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28216$as_echo "" >&6; }
28217 failed=0
28218 passed=0
28219 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028220
28221 # Check for <lcms.h>
28222 if test "$have_lcms_header" != 'yes'; then
28223 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristy8b350f62009-11-15 23:12:43 +000028224if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028225 have_lcms_header='yes'
28226fi
28227
28228
cristy71203402010-06-18 13:12:03 +000028229 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028230 passed=`expr $passed + 1`
28231
cristy8b350f62009-11-15 23:12:43 +000028232$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028233
cristy71203402010-06-18 13:12:03 +000028234 fi
28235 fi
28236
28237 # Check for <lcms/lcms.h>
28238 if test "$have_lcms_header" != 'yes'; then
28239 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 +000028240if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028241 have_lcms_header='yes'
28242fi
28243
28244
cristy71203402010-06-18 13:12:03 +000028245 if test "$have_lcms_header" = 'yes'; then
28246 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028247
cristy8b350f62009-11-15 23:12:43 +000028248$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028249
cristy71203402010-06-18 13:12:03 +000028250 fi
cristy3ed852e2009-09-05 21:47:34 +000028251 fi
cristy71203402010-06-18 13:12:03 +000028252
28253 # Failed to find lcms header?
28254 if test "$have_lcms_header" != 'yes'; then
28255 failed=`expr $failed + 1`
28256 fi
28257
28258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28259$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28260if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028261 $as_echo_n "(cached) " >&6
28262else
28263 ac_check_lib_save_LIBS=$LIBS
28264LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028266/* end confdefs.h. */
28267
28268/* Override any GCC internal prototype to avoid an error.
28269 Use char because int might match the return type of a GCC
28270 builtin and then its argument prototype would still apply. */
28271#ifdef __cplusplus
28272extern "C"
28273#endif
cristy71203402010-06-18 13:12:03 +000028274char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028275int
28276main ()
28277{
cristy71203402010-06-18 13:12:03 +000028278return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028279 ;
28280 return 0;
28281}
28282_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028283if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028284 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028285else
cristy71203402010-06-18 13:12:03 +000028286 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028287fi
cristy8b350f62009-11-15 23:12:43 +000028288rm -f core conftest.err conftest.$ac_objext \
28289 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028290LIBS=$ac_check_lib_save_LIBS
28291fi
cristy71203402010-06-18 13:12:03 +000028292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28293$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28294if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028295 passed=`expr $passed + 1`
28296else
28297 failed=`expr $failed + 1`
28298fi
28299
cristy8b350f62009-11-15 23:12:43 +000028300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028301$as_echo_n "checking if LCMS package is complete... " >&6; }
28302 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028303 if test $failed -gt 0; then
28304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028305$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028306 have_lcms='no (failed tests)'
28307 else
28308 LCMS_LIBS='-llcms'
28309 LIBS="$LCMS_LIBS $LIBS"
28310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028311$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028312 have_lcms='yes'
28313 fi
cristy3ed852e2009-09-05 21:47:34 +000028314 else
cristy71203402010-06-18 13:12:03 +000028315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028316$as_echo "no" >&6; }
28317 fi
28318fi
cristy71203402010-06-18 13:12:03 +000028319
28320 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028321 LCMS_DELEGATE_TRUE=
28322 LCMS_DELEGATE_FALSE='#'
28323else
28324 LCMS_DELEGATE_TRUE='#'
28325 LCMS_DELEGATE_FALSE=
28326fi
28327
cristy71203402010-06-18 13:12:03 +000028328if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28329
28330$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28331
28332fi
28333
cristy3ed852e2009-09-05 21:47:34 +000028334
28335
28336
28337#
28338# Check for the LQR (Liquid Rescale) delegate library.
28339#
28340
28341# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028342if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028343 withval=$with_lqr; with_lqr=$withval
28344else
28345 with_lqr='yes'
28346fi
28347
28348
28349if test "$with_lqr" != 'yes'; then
28350 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28351fi
28352
28353have_lqr='no'
28354LQR_CFLAGS=""
28355LQR_LIBS=""
28356LQR_PKG=""
28357if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028359$as_echo "-------------------------------------------------------------" >&6; }
28360
28361pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028363$as_echo_n "checking for LQR... " >&6; }
28364
28365if test -n "$LQR_CFLAGS"; then
28366 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28367 elif test -n "$PKG_CONFIG"; then
28368 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028369 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028370 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28371 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28373 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028374 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28375else
28376 pkg_failed=yes
28377fi
28378 else
28379 pkg_failed=untried
28380fi
28381if test -n "$LQR_LIBS"; then
28382 pkg_cv_LQR_LIBS="$LQR_LIBS"
28383 elif test -n "$PKG_CONFIG"; then
28384 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028385 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028386 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28387 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28389 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028390 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28391else
28392 pkg_failed=yes
28393fi
28394 else
28395 pkg_failed=untried
28396fi
28397
28398
28399
28400if test $pkg_failed = yes; then
28401
28402if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28403 _pkg_short_errors_supported=yes
28404else
28405 _pkg_short_errors_supported=no
28406fi
28407 if test $_pkg_short_errors_supported = yes; then
28408 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28409 else
28410 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28411 fi
28412 # Put the nasty error message in config.log where it belongs
28413 echo "$LQR_PKG_ERRORS" >&5
28414
cristy8b350f62009-11-15 23:12:43 +000028415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028416$as_echo "no" >&6; }
28417 have_lqr=no
28418elif test $pkg_failed = untried; then
28419 have_lqr=no
28420else
28421 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28422 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028424$as_echo "yes" >&6; }
28425 have_lqr=yes
28426fi
cristy8b350f62009-11-15 23:12:43 +000028427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028428$as_echo "" >&6; }
28429fi
28430
28431if test "$have_lqr" = 'yes'; then
28432
cristy8b350f62009-11-15 23:12:43 +000028433$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028434
28435 CFLAGS="$LQR_CFLAGS $CFLAGS"
28436fi
28437
28438 if test "$have_lqr" = 'yes'; then
28439 LQR_DELEGATE_TRUE=
28440 LQR_DELEGATE_FALSE='#'
28441else
28442 LQR_DELEGATE_TRUE='#'
28443 LQR_DELEGATE_FALSE=
28444fi
28445
28446
28447
28448
28449
28450#
28451# Check for the OpenEXR delegate library.
28452#
28453
28454# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000028455if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028456 withval=$with_openexr; with_openexr=$withval
28457else
28458 with_openexr='yes'
28459fi
28460
28461
28462if test "$with_openexr" != 'yes'; then
28463 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28464fi
28465
28466have_openexr='no'
28467OPENEXR_CFLAGS=""
28468OPENEXR_LIBS=""
28469OPENEXR_PKG=""
28470if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028472$as_echo "-------------------------------------------------------------" >&6; }
28473
28474pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028476$as_echo_n "checking for OPENEXR... " >&6; }
28477
28478if test -n "$OPENEXR_CFLAGS"; then
28479 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28480 elif test -n "$PKG_CONFIG"; then
28481 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028483 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28484 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28486 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028487 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28488else
28489 pkg_failed=yes
28490fi
28491 else
28492 pkg_failed=untried
28493fi
28494if test -n "$OPENEXR_LIBS"; then
28495 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28496 elif test -n "$PKG_CONFIG"; then
28497 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028498 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028499 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28500 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28502 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028503 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28504else
28505 pkg_failed=yes
28506fi
28507 else
28508 pkg_failed=untried
28509fi
28510
28511
28512
28513if test $pkg_failed = yes; then
28514
28515if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28516 _pkg_short_errors_supported=yes
28517else
28518 _pkg_short_errors_supported=no
28519fi
28520 if test $_pkg_short_errors_supported = yes; then
28521 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28522 else
28523 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28524 fi
28525 # Put the nasty error message in config.log where it belongs
28526 echo "$OPENEXR_PKG_ERRORS" >&5
28527
cristy8b350f62009-11-15 23:12:43 +000028528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028529$as_echo "no" >&6; }
28530 have_openexr=no
28531elif test $pkg_failed = untried; then
28532 have_openexr=no
28533else
28534 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28535 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028537$as_echo "yes" >&6; }
28538 have_openexr=yes
28539fi
cristy8b350f62009-11-15 23:12:43 +000028540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028541$as_echo "" >&6; }
28542fi
28543
28544if test "$have_openexr" = 'yes'; then
28545
cristy8b350f62009-11-15 23:12:43 +000028546$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028547
28548 if test "$with_modules" = 'no'; then
28549 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28550 fi
28551fi
28552
28553 if test "$have_openexr" = 'yes'; then
28554 OPENEXR_DELEGATE_TRUE=
28555 OPENEXR_DELEGATE_FALSE='#'
28556else
28557 OPENEXR_DELEGATE_TRUE='#'
28558 OPENEXR_DELEGATE_FALSE=
28559fi
28560
28561
28562
28563
28564
28565#
28566# Check for PNG delegate library.
28567#
28568
28569# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000028570if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028571 withval=$with_png; with_png=$withval
28572else
28573 with_png='yes'
28574fi
28575
28576
28577if test "$with_png" != 'yes'; then
28578 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28579fi
28580
28581have_png='no'
28582PNG_LIBS=''
28583if test "$with_png" != 'no'; then
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; }
cristy8b350f62009-11-15 23:12:43 +000028586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028587$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028589$as_echo "" >&6; }
28590 failed=0
28591 passed=0
cristy8b350f62009-11-15 23:12:43 +000028592 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28593if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028594 passed=`expr $passed + 1`
28595else
28596 failed=`expr $failed + 1`
28597fi
28598
28599
cristy8b350f62009-11-15 23:12:43 +000028600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000028601$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028602if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028603 $as_echo_n "(cached) " >&6
28604else
28605 ac_check_lib_save_LIBS=$LIBS
28606LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028608/* end confdefs.h. */
28609
28610/* Override any GCC internal prototype to avoid an error.
28611 Use char because int might match the return type of a GCC
28612 builtin and then its argument prototype would still apply. */
28613#ifdef __cplusplus
28614extern "C"
28615#endif
28616char png_get_io_ptr ();
28617int
28618main ()
28619{
28620return png_get_io_ptr ();
28621 ;
28622 return 0;
28623}
28624_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028625if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028626 ac_cv_lib_png_png_get_io_ptr=yes
28627else
cristy8b350f62009-11-15 23:12:43 +000028628 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000028629fi
cristy8b350f62009-11-15 23:12:43 +000028630rm -f core conftest.err conftest.$ac_objext \
28631 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028632LIBS=$ac_check_lib_save_LIBS
28633fi
cristy8b350f62009-11-15 23:12:43 +000028634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000028635$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028636if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028637 passed=`expr $passed + 1`
28638else
28639 failed=`expr $failed + 1`
28640fi
28641
cristy8b350f62009-11-15 23:12:43 +000028642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028643$as_echo_n "checking if PNG package is complete... " >&6; }
28644 if test $passed -gt 0; then
28645 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028647$as_echo "no -- some components failed test" >&6; }
28648 have_png='no (failed tests)'
28649 else
28650 PNG_LIBS='-lpng'
28651 LIBS="$PNG_LIBS $LIBS"
28652
cristy8b350f62009-11-15 23:12:43 +000028653$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028654
cristy8b350f62009-11-15 23:12:43 +000028655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028656$as_echo "yes" >&6; }
28657 have_png='yes'
28658 fi
28659 else
cristy8b350f62009-11-15 23:12:43 +000028660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028661$as_echo "no" >&6; }
28662 fi
28663fi
28664 if test "$have_png" = 'yes'; then
28665 PNG_DELEGATE_TRUE=
28666 PNG_DELEGATE_FALSE='#'
28667else
28668 PNG_DELEGATE_TRUE='#'
28669 PNG_DELEGATE_FALSE=
28670fi
28671
28672
28673
28674
28675#
28676# Check for RSVG delegate library.
28677#
28678
28679# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000028680if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028681 withval=$with_rsvg; with_rsvg=$withval
28682else
28683 with_rsvg=$have_x
28684fi
28685
28686
28687if test "$with_rsvg" != 'yes'; then
28688 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28689fi
28690
28691have_rsvg='no'
28692have_cairo='no'
28693RSVG_CFLAGS=""
28694RSVG_LIBS=""
28695RSVG_PKG=""
28696if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028698$as_echo "-------------------------------------------------------------" >&6; }
28699
28700pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028702$as_echo_n "checking for RSVG... " >&6; }
28703
28704if test -n "$RSVG_CFLAGS"; then
28705 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28706 elif test -n "$PKG_CONFIG"; then
28707 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028708 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028709 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28710 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28712 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028713 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28714else
28715 pkg_failed=yes
28716fi
28717 else
28718 pkg_failed=untried
28719fi
28720if test -n "$RSVG_LIBS"; then
28721 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28722 elif test -n "$PKG_CONFIG"; then
28723 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028724 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028725 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28726 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28728 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028729 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28730else
28731 pkg_failed=yes
28732fi
28733 else
28734 pkg_failed=untried
28735fi
28736
28737
28738
28739if test $pkg_failed = yes; then
28740
28741if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28742 _pkg_short_errors_supported=yes
28743else
28744 _pkg_short_errors_supported=no
28745fi
28746 if test $_pkg_short_errors_supported = yes; then
28747 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28748 else
28749 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28750 fi
28751 # Put the nasty error message in config.log where it belongs
28752 echo "$RSVG_PKG_ERRORS" >&5
28753
cristy8b350f62009-11-15 23:12:43 +000028754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028755$as_echo "no" >&6; }
28756 have_rsvg=no
28757elif test $pkg_failed = untried; then
28758 have_rsvg=no
28759else
28760 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28761 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028763$as_echo "yes" >&6; }
28764 have_rsvg=yes
28765fi
cristy8b350f62009-11-15 23:12:43 +000028766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028767$as_echo "" >&6; }
28768
28769pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028771$as_echo_n "checking for CAIRO_SVG... " >&6; }
28772
28773if test -n "$CAIRO_SVG_CFLAGS"; then
28774 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28775 elif test -n "$PKG_CONFIG"; then
28776 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028777 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028778 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28779 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28781 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028782 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28783else
28784 pkg_failed=yes
28785fi
28786 else
28787 pkg_failed=untried
28788fi
28789if test -n "$CAIRO_SVG_LIBS"; then
28790 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28791 elif test -n "$PKG_CONFIG"; then
28792 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028793 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028794 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28795 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28797 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028798 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28799else
28800 pkg_failed=yes
28801fi
28802 else
28803 pkg_failed=untried
28804fi
28805
28806
28807
28808if test $pkg_failed = yes; then
28809
28810if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28811 _pkg_short_errors_supported=yes
28812else
28813 _pkg_short_errors_supported=no
28814fi
28815 if test $_pkg_short_errors_supported = yes; then
28816 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28817 else
28818 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28819 fi
28820 # Put the nasty error message in config.log where it belongs
28821 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28822
cristy8b350f62009-11-15 23:12:43 +000028823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028824$as_echo "no" >&6; }
28825 have_cairo=no
28826elif test $pkg_failed = untried; then
28827 have_cairo=no
28828else
28829 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28830 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028832$as_echo "yes" >&6; }
28833 have_cairo=yes
28834fi
cristy8b350f62009-11-15 23:12:43 +000028835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028836$as_echo "" >&6; }
28837fi
28838
28839if test "$have_rsvg" = 'yes'; then
28840
cristy8b350f62009-11-15 23:12:43 +000028841$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028842
28843 if test "$with_modules" = 'no'; then
28844 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28845 fi
28846fi
28847
28848if test "$have_cairo" = 'yes'; then
28849
cristy8b350f62009-11-15 23:12:43 +000028850$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028851
28852 if test "$with_modules" = 'no'; then
28853 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28854 fi
28855fi
28856
28857 if test "$have_rsvg" = 'yes'; then
28858 RSVG_DELEGATE_TRUE=
28859 RSVG_DELEGATE_FALSE='#'
28860else
28861 RSVG_DELEGATE_TRUE='#'
28862 RSVG_DELEGATE_FALSE=
28863fi
28864
28865 if test "$have_cairo" = 'yes'; then
28866 CAIRO_DELEGATE_TRUE=
28867 CAIRO_DELEGATE_FALSE='#'
28868else
28869 CAIRO_DELEGATE_TRUE='#'
28870 CAIRO_DELEGATE_FALSE=
28871fi
28872
28873
28874
28875
28876
28877#
28878# Check for TIFF delegate library.
28879#
28880
28881# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028882if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028883 withval=$with_tiff; with_tiff=$withval
28884else
28885 with_tiff='yes'
28886fi
28887
28888
28889if test "$with_tiff" != 'yes'; then
28890 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28891fi
28892
28893have_tiff='no'
28894TIFF_LIBS=''
28895if test "$with_tiff" != 'no'; then
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; }
cristy8b350f62009-11-15 23:12:43 +000028898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028899$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028901$as_echo "" >&6; }
28902 failed=0
28903 passed=0
cristy8b350f62009-11-15 23:12:43 +000028904 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28905if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028906 passed=`expr $passed + 1`
28907else
28908 failed=`expr $failed + 1`
28909fi
28910
28911
cristy8b350f62009-11-15 23:12:43 +000028912 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28913if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028914 passed=`expr $passed + 1`
28915else
28916 failed=`expr $failed + 1`
28917fi
28918
28919
cristy8b350f62009-11-15 23:12:43 +000028920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028921$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028922if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028923 $as_echo_n "(cached) " >&6
28924else
28925 ac_check_lib_save_LIBS=$LIBS
28926LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028928/* end confdefs.h. */
28929
28930/* Override any GCC internal prototype to avoid an error.
28931 Use char because int might match the return type of a GCC
28932 builtin and then its argument prototype would still apply. */
28933#ifdef __cplusplus
28934extern "C"
28935#endif
28936char TIFFOpen ();
28937int
28938main ()
28939{
28940return TIFFOpen ();
28941 ;
28942 return 0;
28943}
28944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028945if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028946 ac_cv_lib_tiff_TIFFOpen=yes
28947else
cristy8b350f62009-11-15 23:12:43 +000028948 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028949fi
cristy8b350f62009-11-15 23:12:43 +000028950rm -f core conftest.err conftest.$ac_objext \
28951 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028952LIBS=$ac_check_lib_save_LIBS
28953fi
cristy8b350f62009-11-15 23:12:43 +000028954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028955$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028956if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028957 passed=`expr $passed + 1`
28958else
28959 failed=`expr $failed + 1`
28960fi
28961
cristy8b350f62009-11-15 23:12:43 +000028962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028963$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028964if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028965 $as_echo_n "(cached) " >&6
28966else
28967 ac_check_lib_save_LIBS=$LIBS
28968LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028970/* end confdefs.h. */
28971
28972/* Override any GCC internal prototype to avoid an error.
28973 Use char because int might match the return type of a GCC
28974 builtin and then its argument prototype would still apply. */
28975#ifdef __cplusplus
28976extern "C"
28977#endif
28978char TIFFClientOpen ();
28979int
28980main ()
28981{
28982return TIFFClientOpen ();
28983 ;
28984 return 0;
28985}
28986_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028987if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028988 ac_cv_lib_tiff_TIFFClientOpen=yes
28989else
cristy8b350f62009-11-15 23:12:43 +000028990 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028991fi
cristy8b350f62009-11-15 23:12:43 +000028992rm -f core conftest.err conftest.$ac_objext \
28993 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028994LIBS=$ac_check_lib_save_LIBS
28995fi
cristy8b350f62009-11-15 23:12:43 +000028996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028997$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028998if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028999 passed=`expr $passed + 1`
29000else
29001 failed=`expr $failed + 1`
29002fi
29003
cristyb97f1002010-07-26 14:02:57 +000029004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
29005$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
29006if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then :
29007 $as_echo_n "(cached) " >&6
29008else
29009 ac_check_lib_save_LIBS=$LIBS
29010LIBS="-ltiff $LIBS"
29011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29012/* end confdefs.h. */
29013
29014/* Override any GCC internal prototype to avoid an error.
29015 Use char because int might match the return type of a GCC
29016 builtin and then its argument prototype would still apply. */
29017#ifdef __cplusplus
29018extern "C"
29019#endif
29020char TIFFIsBigEndian ();
29021int
29022main ()
29023{
29024return TIFFIsBigEndian ();
29025 ;
29026 return 0;
29027}
29028_ACEOF
29029if ac_fn_c_try_link "$LINENO"; then :
29030 ac_cv_lib_tiff_TIFFIsBigEndian=yes
29031else
29032 ac_cv_lib_tiff_TIFFIsBigEndian=no
29033fi
29034rm -f core conftest.err conftest.$ac_objext \
29035 conftest$ac_exeext conftest.$ac_ext
29036LIBS=$ac_check_lib_save_LIBS
29037fi
29038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
29039$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
29040if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then :
29041 passed=`expr $passed + 1`
29042else
29043 failed=`expr $failed + 1`
29044fi
29045
cristy8b350f62009-11-15 23:12:43 +000029046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029047$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029048if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029049 $as_echo_n "(cached) " >&6
29050else
29051 ac_check_lib_save_LIBS=$LIBS
29052LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029054/* end confdefs.h. */
29055
29056/* Override any GCC internal prototype to avoid an error.
29057 Use char because int might match the return type of a GCC
29058 builtin and then its argument prototype would still apply. */
29059#ifdef __cplusplus
29060extern "C"
29061#endif
29062char TIFFIsByteSwapped ();
29063int
29064main ()
29065{
29066return TIFFIsByteSwapped ();
29067 ;
29068 return 0;
29069}
29070_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029071if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029072 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
29073else
cristy8b350f62009-11-15 23:12:43 +000029074 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000029075fi
cristy8b350f62009-11-15 23:12:43 +000029076rm -f core conftest.err conftest.$ac_objext \
29077 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029078LIBS=$ac_check_lib_save_LIBS
29079fi
cristy8b350f62009-11-15 23:12:43 +000029080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000029081$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029082if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029083 passed=`expr $passed + 1`
29084else
29085 failed=`expr $failed + 1`
29086fi
29087
cristy8b350f62009-11-15 23:12:43 +000029088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029089$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029090if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029091 $as_echo_n "(cached) " >&6
29092else
29093 ac_check_lib_save_LIBS=$LIBS
29094LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029096/* end confdefs.h. */
29097
29098/* Override any GCC internal prototype to avoid an error.
29099 Use char because int might match the return type of a GCC
29100 builtin and then its argument prototype would still apply. */
29101#ifdef __cplusplus
29102extern "C"
29103#endif
29104char TIFFReadRGBATile ();
29105int
29106main ()
29107{
29108return TIFFReadRGBATile ();
29109 ;
29110 return 0;
29111}
29112_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029113if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029114 ac_cv_lib_tiff_TIFFReadRGBATile=yes
29115else
cristy8b350f62009-11-15 23:12:43 +000029116 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000029117fi
cristy8b350f62009-11-15 23:12:43 +000029118rm -f core conftest.err conftest.$ac_objext \
29119 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029120LIBS=$ac_check_lib_save_LIBS
29121fi
cristy8b350f62009-11-15 23:12:43 +000029122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000029123$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029124if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029125 passed=`expr $passed + 1`
29126else
29127 failed=`expr $failed + 1`
29128fi
29129
cristy8b350f62009-11-15 23:12:43 +000029130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029131$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029132if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029133 $as_echo_n "(cached) " >&6
29134else
29135 ac_check_lib_save_LIBS=$LIBS
29136LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029138/* end confdefs.h. */
29139
29140/* Override any GCC internal prototype to avoid an error.
29141 Use char because int might match the return type of a GCC
29142 builtin and then its argument prototype would still apply. */
29143#ifdef __cplusplus
29144extern "C"
29145#endif
29146char TIFFReadRGBAStrip ();
29147int
29148main ()
29149{
29150return TIFFReadRGBAStrip ();
29151 ;
29152 return 0;
29153}
29154_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029155if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029156 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29157else
cristy8b350f62009-11-15 23:12:43 +000029158 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000029159fi
cristy8b350f62009-11-15 23:12:43 +000029160rm -f core conftest.err conftest.$ac_objext \
29161 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029162LIBS=$ac_check_lib_save_LIBS
29163fi
cristy8b350f62009-11-15 23:12:43 +000029164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000029165$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029166if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029167 passed=`expr $passed + 1`
29168else
29169 failed=`expr $failed + 1`
29170fi
29171
cristy8b350f62009-11-15 23:12:43 +000029172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029173$as_echo_n "checking if TIFF package is complete... " >&6; }
29174 if test $passed -gt 0; then
29175 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029177$as_echo "no -- some components failed test" >&6; }
29178 have_tiff='no (failed tests)'
29179 else
29180 TIFF_LIBS='-ltiff'
29181 LIBS="$TIFF_LIBS $LIBS"
29182
cristy8b350f62009-11-15 23:12:43 +000029183$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029184
cristy8b350f62009-11-15 23:12:43 +000029185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029186$as_echo "yes" >&6; }
29187 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000029188 for ac_header in tiffconf.h
29189do :
29190 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
29191if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029192 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029193#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000029194_ACEOF
29195
29196fi
29197
29198done
29199
cristy8b350f62009-11-15 23:12:43 +000029200 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000029201 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29202 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000029203do :
29204 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29205ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyf6fcb5d2010-09-24 01:19:13 +000029206eval as_val=\$$as_ac_var
29207 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029208 cat >>confdefs.h <<_ACEOF
29209#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29210_ACEOF
29211
29212fi
29213done
29214
29215 fi
29216 else
cristy8b350f62009-11-15 23:12:43 +000029217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029218$as_echo "no" >&6; }
29219 fi
29220fi
29221 if test "$have_tiff" = 'yes'; then
29222 TIFF_DELEGATE_TRUE=
29223 TIFF_DELEGATE_FALSE='#'
29224else
29225 TIFF_DELEGATE_TRUE='#'
29226 TIFF_DELEGATE_FALSE=
29227fi
29228
29229
29230
29231
29232#
29233# Set Windows font directory.
29234#
29235
29236# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029237if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029238 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29239else
29240 with_windows_font_dir=''
29241fi
29242
29243if test "$with_windows_font_dir" != '' ; then
29244 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29245fi
29246
29247
29248#
29249# Check for WMF delegate library.
29250#
29251
29252# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000029253if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029254 withval=$with_wmf; with_wmf=$withval
29255else
cristy8d63d1d2010-01-06 20:38:37 +000029256 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000029257fi
29258
29259
29260if test "$with_wmf" != 'yes'; then
29261 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29262fi
29263
29264have_wmf='no'
29265WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000029266if test "$with_wmf" != 'no'; then
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; }
cristy8b350f62009-11-15 23:12:43 +000029269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029270$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029272$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000029273 failed=0
29274 passed=0
29275 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29276if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29277 passed=`expr $passed + 1`
29278else
29279 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029280fi
29281
29282
cristy735e8942010-04-02 20:32:57 +000029283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29284$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29285if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029286 $as_echo_n "(cached) " >&6
29287else
29288 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000029289LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029291/* end confdefs.h. */
29292
29293/* Override any GCC internal prototype to avoid an error.
29294 Use char because int might match the return type of a GCC
29295 builtin and then its argument prototype would still apply. */
29296#ifdef __cplusplus
29297extern "C"
29298#endif
cristy735e8942010-04-02 20:32:57 +000029299char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029300int
29301main ()
29302{
cristy735e8942010-04-02 20:32:57 +000029303return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029304 ;
29305 return 0;
29306}
29307_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029308if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000029309 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000029310else
cristy735e8942010-04-02 20:32:57 +000029311 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000029312fi
cristy8b350f62009-11-15 23:12:43 +000029313rm -f core conftest.err conftest.$ac_objext \
29314 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029315LIBS=$ac_check_lib_save_LIBS
29316fi
cristy735e8942010-04-02 20:32:57 +000029317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29318$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29319if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29320 passed=`expr $passed + 1`
29321else
29322 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029323fi
29324
cristy735e8942010-04-02 20:32:57 +000029325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29326$as_echo_n "checking if WMF package is complete... " >&6; }
29327 if test $passed -gt 0; then
29328 if test $failed -gt 0; then
29329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29330$as_echo "no -- some components failed test" >&6; }
29331 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000029332 else
cristy735e8942010-04-02 20:32:57 +000029333 WMF_LIBS='-lwmf -lwmflite'
29334 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029335
cristy8b350f62009-11-15 23:12:43 +000029336$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029337
cristy735e8942010-04-02 20:32:57 +000029338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029339$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000029340 have_wmf='yes'
29341 fi
cristy3ed852e2009-09-05 21:47:34 +000029342 else
cristy8b350f62009-11-15 23:12:43 +000029343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029344$as_echo "no" >&6; }
29345 fi
29346fi
29347 if test "$have_wmf" = 'yes'; then
29348 WMF_DELEGATE_TRUE=
29349 WMF_DELEGATE_FALSE='#'
29350else
29351 WMF_DELEGATE_TRUE='#'
29352 WMF_DELEGATE_FALSE=
29353fi
29354
29355
29356
29357
29358
cristy735e8942010-04-02 20:32:57 +000029359
cristy3ed852e2009-09-05 21:47:34 +000029360#
29361# Check for XML delegate library.
29362#
29363
29364# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000029365if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029366 withval=$with_xml; with_xml=$withval
29367else
29368 with_xml=$have_x
29369fi
29370
29371
29372if test "$with_xml" != 'yes' ; then
29373 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29374fi
29375
29376have_xml='no'
29377XML_LIBS=''
29378if test "$with_xml" != 'no'; then
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; }
cristy8b350f62009-11-15 23:12:43 +000029381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000029382$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029384$as_echo "" >&6; }
29385 PERSIST_LDFLAGS=$LDFLAGS
29386 PERSIST_CPPFLAGS=$CPPFLAGS
29387 xml2_config=''
29388 for ac_prog in xml2-config
29389do
29390 # Extract the first word of "$ac_prog", so it can be a program name with args.
29391set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029393$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029394if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029395 $as_echo_n "(cached) " >&6
29396else
29397 if test -n "$xml2_config"; then
29398 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29399else
29400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29401for as_dir in $PATH
29402do
29403 IFS=$as_save_IFS
29404 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029405 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29407 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029409 break 2
29410 fi
29411done
cristy8b350f62009-11-15 23:12:43 +000029412 done
cristy3ed852e2009-09-05 21:47:34 +000029413IFS=$as_save_IFS
29414
29415fi
29416fi
29417xml2_config=$ac_cv_prog_xml2_config
29418if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000029419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000029420$as_echo "$xml2_config" >&6; }
29421else
cristy8b350f62009-11-15 23:12:43 +000029422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029423$as_echo "no" >&6; }
29424fi
29425
29426
29427 test -n "$xml2_config" && break
29428done
29429 if test -n "$xml2_config"; then
29430 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29431 # the shared library installed under /usr/lib, whereas the package
29432 # installs itself under $prefix/libxml and $prefix/lib.
29433 xml2_prefix=`xml2-config --prefix`
29434 if test -d "${xml2_prefix}/include/libxml2"; then
29435 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29436 fi
29437 if test "${xml2_prefix}" != '/usr'; then
29438 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29439 fi
29440 fi
29441 failed=0
29442 passed=0
cristy8b350f62009-11-15 23:12:43 +000029443 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29444if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029445 passed=`expr $passed + 1`
29446else
29447 failed=`expr $failed + 1`
29448fi
29449
29450
cristy8b350f62009-11-15 23:12:43 +000029451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029452$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029453if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029454 $as_echo_n "(cached) " >&6
29455else
29456 ac_check_lib_save_LIBS=$LIBS
29457LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029459/* end confdefs.h. */
29460
29461/* Override any GCC internal prototype to avoid an error.
29462 Use char because int might match the return type of a GCC
29463 builtin and then its argument prototype would still apply. */
29464#ifdef __cplusplus
29465extern "C"
29466#endif
29467char xmlParseExternalEntity ();
29468int
29469main ()
29470{
29471return xmlParseExternalEntity ();
29472 ;
29473 return 0;
29474}
29475_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029476if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029477 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29478else
cristy8b350f62009-11-15 23:12:43 +000029479 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000029480fi
cristy8b350f62009-11-15 23:12:43 +000029481rm -f core conftest.err conftest.$ac_objext \
29482 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029483LIBS=$ac_check_lib_save_LIBS
29484fi
cristy8b350f62009-11-15 23:12:43 +000029485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000029486$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029487if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029488 passed=`expr $passed + 1`
29489else
29490 failed=`expr $failed + 1`
29491fi
29492
cristy8b350f62009-11-15 23:12:43 +000029493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029494$as_echo_n "checking if XML package is complete... " >&6; }
29495 if test $passed -gt 0; then
29496 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029498$as_echo "no -- some components failed test" >&6; }
29499 have_xml='no (failed tests)'
29500 LDFLAGS="$PERSIST_LDFLAGS"
29501 CPPFLAGS="$PERSIST_CPPFLAGS"
29502 else
29503 XML_LIBS='-lxml2'
29504 LIBS="$XML_LIBS $LIBS"
29505
cristy8b350f62009-11-15 23:12:43 +000029506$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029507
cristy8b350f62009-11-15 23:12:43 +000029508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029509$as_echo "yes" >&6; }
29510 have_xml='yes'
29511 fi
29512 else
cristy8b350f62009-11-15 23:12:43 +000029513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029514$as_echo "no" >&6; }
29515 fi
29516fi
29517 if test "$have_xml" = 'yes'; then
29518 XML_DELEGATE_TRUE=
29519 XML_DELEGATE_FALSE='#'
29520else
29521 XML_DELEGATE_TRUE='#'
29522 XML_DELEGATE_FALSE=
29523fi
29524
29525
29526
29527
29528# Substitute compiler name to build/link PerlMagick
29529#
29530
29531
29532#
29533# Configure install Paths
29534#
29535
29536# Subdirectory under lib to place ImageMagick lib files
29537LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29538
29539cat >>confdefs.h <<_ACEOF
29540#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29541_ACEOF
29542
29543
29544# Path to ImageMagick bin directory
29545EXECUTABLE_PATH="${BIN_DIR}"
29546DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29547case "${build_os}" in
29548 mingw* )
29549 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29550 ;;
29551esac
29552
29553cat >>confdefs.h <<_ACEOF
29554#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29555_ACEOF
29556
29557
29558
29559# Path to ImageMagick lib
29560LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29561DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29562case "${build_os}" in
29563 mingw* )
29564 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29565 ;;
29566esac
29567
29568cat >>confdefs.h <<_ACEOF
29569#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29570_ACEOF
29571
29572
29573
29574# Subdirectory under lib to place ImageMagick configuration files
29575CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29576
29577cat >>confdefs.h <<_ACEOF
29578#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29579_ACEOF
29580
29581CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29582DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29583case "${build_os}" in
29584 mingw* )
29585 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29586 ;;
29587esac
29588
29589cat >>confdefs.h <<_ACEOF
29590#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29591_ACEOF
29592
29593
29594
29595#
29596# Subdirectory under lib to place ImageMagick coder module files
29597CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29598
29599cat >>confdefs.h <<_ACEOF
29600#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29601_ACEOF
29602
29603CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29604DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29605case "${build_os}" in
29606 mingw* )
29607 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29608 ;;
29609esac
29610
29611cat >>confdefs.h <<_ACEOF
29612#define CODER_PATH "$DEFINE_CODER_PATH"
29613_ACEOF
29614
29615
29616
29617#
29618# Subdirectory under lib to place ImageMagick filter module files
29619FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29620
29621cat >>confdefs.h <<_ACEOF
29622#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29623_ACEOF
29624
29625FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29626DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29627case "${build_os}" in
29628 mingw* )
29629 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29630 ;;
29631esac
29632
29633cat >>confdefs.h <<_ACEOF
29634#define FILTER_PATH "$DEFINE_FILTER_PATH"
29635_ACEOF
29636
29637
29638
29639#
29640# Path to ImageMagick documentation files
29641DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29642DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29643DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29644case "${build_os}" in
29645 mingw* )
29646 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29647 ;;
29648esac
29649
29650cat >>confdefs.h <<_ACEOF
29651#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29652_ACEOF
29653
29654
29655
29656#
29657# Path to ImageMagick share files
29658SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29659SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29660DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29661case "${build_os}" in
29662 mingw* )
29663 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29664 ;;
29665esac
29666
29667cat >>confdefs.h <<_ACEOF
29668#define SHARE_PATH "$DEFINE_SHARE_PATH"
29669_ACEOF
29670
29671
29672
29673# Subdirectory under share to place ImageMagick configuration files
29674SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29675
29676cat >>confdefs.h <<_ACEOF
29677#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29678_ACEOF
29679
29680SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29681DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29682case "${build_os}" in
29683 mingw* )
29684 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29685 ;;
29686esac
29687
29688cat >>confdefs.h <<_ACEOF
29689#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29690_ACEOF
29691
29692
29693
29694#
29695# program_transform_name is formed for use in a Makefile, so create a
29696# modified version for use in a shell script.
29697configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29698
29699# Default delegate definitions
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; }
cristy8b350f62009-11-15 23:12:43 +000029702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029703$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029705$as_echo "" >&6; }
29706AutotraceDecodeDelegateDefault='autotrace'
29707AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000029708BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000029709BZIPDelegateDefault='bzip2'
29710BrowseDelegateDefault='xdg-open'
29711CGMDecodeDelegateDefault='ralcgm'
29712CatDelegateDefault='cat'
29713DNGDecodeDelegateDefault='ufraw-batch'
29714GVCDecodeDelegateDefault='dot'
29715DVIDecodeDelegateDefault='dvips'
29716EchoDelegateDefault='echo'
29717EditorDelegateDefault='xterm'
29718FIGDecodeDelegateDefault='fig2dev'
29719ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29720DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29721MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29722GnuplotDecodeDelegateDefault='gnuplot'
29723HDRDecodeDelegateDefault='ra_pfm'
29724HPGLDecodeDelegateDefault='hp2xx'
29725HTMLDecodeDelegateDefault='html2ps'
29726ILBMDecodeDelegateDefault='ilbmtoppm'
29727ILBMEncodeDelegateDefault='ppmtoilbm'
29728LPDelegateDefault='lp'
29729LPRDelegateDefault='lpr'
29730LZWDecodeDelegateDefault='uncompress'
29731LZWEncodeDelegateDefault='compress'
29732LaunchDelegateDefault='gimp'
29733MANDelegateDefault='groff'
29734MPEGDecodeDelegateDefault='ffmpeg'
29735MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000029736MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000029737MVDelegateDefault='mv'
29738PCLDelegateDefault='pcl6'
29739PGPDecodeDelegateDefault='pgpv'
29740POVDelegateDefault='povray'
29741if test "$native_win32_build" = 'yes'; then
29742 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029743elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029744 PSDelegateDefault='gsc'
29745else
29746 PSDelegateDefault='gs'
29747fi
29748RLEEncodeDelegateDefault='rawtorle'
29749RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029750RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029751SCANDecodeDelegateDefault='scanimage'
29752TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000029753UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000029754WMFDecodeDelegateDefault='wmf2eps'
29755WWWDecodeDelegateDefault='curl'
29756XPSDelegateDefault='gxps'
29757ZipDelegateDefault='gzip'
29758
29759# Search for delegates
29760# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29761set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029763$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029764if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029765 $as_echo_n "(cached) " >&6
29766else
29767 case $AutotraceDecodeDelegate in
29768 [\\/]* | ?:[\\/]*)
29769 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29770 ;;
29771 *)
29772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29773for as_dir in $PATH
29774do
29775 IFS=$as_save_IFS
29776 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029777 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29779 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029781 break 2
29782 fi
29783done
cristy8b350f62009-11-15 23:12:43 +000029784 done
cristy3ed852e2009-09-05 21:47:34 +000029785IFS=$as_save_IFS
29786
29787 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29788 ;;
29789esac
29790fi
29791AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29792if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029794$as_echo "$AutotraceDecodeDelegate" >&6; }
29795else
cristy8b350f62009-11-15 23:12:43 +000029796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029797$as_echo "no" >&6; }
29798fi
29799
29800
29801# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29802set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029804$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029805if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029806 $as_echo_n "(cached) " >&6
29807else
29808 case $AVIDecodeDelegate in
29809 [\\/]* | ?:[\\/]*)
29810 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29811 ;;
29812 *)
29813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29814for as_dir in $PATH
29815do
29816 IFS=$as_save_IFS
29817 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029818 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29820 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029822 break 2
29823 fi
29824done
cristy8b350f62009-11-15 23:12:43 +000029825 done
cristy3ed852e2009-09-05 21:47:34 +000029826IFS=$as_save_IFS
29827
29828 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29829 ;;
29830esac
29831fi
29832AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29833if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029835$as_echo "$AVIDecodeDelegate" >&6; }
29836else
cristy8b350f62009-11-15 23:12:43 +000029837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029838$as_echo "no" >&6; }
29839fi
29840
29841
29842# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29843set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029845$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029846if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029847 $as_echo_n "(cached) " >&6
29848else
29849 case $BlenderDecodeDelegate in
29850 [\\/]* | ?:[\\/]*)
29851 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29852 ;;
29853 *)
29854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29855for as_dir in $PATH
29856do
29857 IFS=$as_save_IFS
29858 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029859 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29861 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029863 break 2
29864 fi
29865done
cristy8b350f62009-11-15 23:12:43 +000029866 done
cristy3ed852e2009-09-05 21:47:34 +000029867IFS=$as_save_IFS
29868
29869 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29870 ;;
29871esac
29872fi
29873BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29874if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029876$as_echo "$BlenderDecodeDelegate" >&6; }
29877else
cristy8b350f62009-11-15 23:12:43 +000029878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029879$as_echo "no" >&6; }
29880fi
29881
29882
29883# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29884set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029886$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029887if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029888 $as_echo_n "(cached) " >&6
29889else
29890 case $BZIPDelegate in
29891 [\\/]* | ?:[\\/]*)
29892 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29893 ;;
29894 *)
29895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29896for as_dir in $PATH
29897do
29898 IFS=$as_save_IFS
29899 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029900 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29902 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029904 break 2
29905 fi
29906done
cristy8b350f62009-11-15 23:12:43 +000029907 done
cristy3ed852e2009-09-05 21:47:34 +000029908IFS=$as_save_IFS
29909
29910 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29911 ;;
29912esac
29913fi
29914BZIPDelegate=$ac_cv_path_BZIPDelegate
29915if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029917$as_echo "$BZIPDelegate" >&6; }
29918else
cristy8b350f62009-11-15 23:12:43 +000029919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029920$as_echo "no" >&6; }
29921fi
29922
29923
29924# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29925set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029927$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029928if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029929 $as_echo_n "(cached) " >&6
29930else
29931 case $BrowseDelegate in
29932 [\\/]* | ?:[\\/]*)
29933 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29934 ;;
29935 *)
29936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29937for as_dir in $PATH
29938do
29939 IFS=$as_save_IFS
29940 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029941 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29943 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029945 break 2
29946 fi
29947done
cristy8b350f62009-11-15 23:12:43 +000029948 done
cristy3ed852e2009-09-05 21:47:34 +000029949IFS=$as_save_IFS
29950
29951 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29952 ;;
29953esac
29954fi
29955BrowseDelegate=$ac_cv_path_BrowseDelegate
29956if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029958$as_echo "$BrowseDelegate" >&6; }
29959else
cristy8b350f62009-11-15 23:12:43 +000029960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029961$as_echo "no" >&6; }
29962fi
29963
29964
29965# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29966set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029968$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029969if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029970 $as_echo_n "(cached) " >&6
29971else
29972 case $CGMDecodeDelegate in
29973 [\\/]* | ?:[\\/]*)
29974 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29975 ;;
29976 *)
29977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29978for as_dir in $PATH
29979do
29980 IFS=$as_save_IFS
29981 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029982 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29984 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029986 break 2
29987 fi
29988done
cristy8b350f62009-11-15 23:12:43 +000029989 done
cristy3ed852e2009-09-05 21:47:34 +000029990IFS=$as_save_IFS
29991
29992 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29993 ;;
29994esac
29995fi
29996CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29997if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029999$as_echo "$CGMDecodeDelegate" >&6; }
30000else
cristy8b350f62009-11-15 23:12:43 +000030001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030002$as_echo "no" >&6; }
30003fi
30004
30005
30006# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
30007set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030009$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030010if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030011 $as_echo_n "(cached) " >&6
30012else
30013 case $CatDelegate in
30014 [\\/]* | ?:[\\/]*)
30015 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
30016 ;;
30017 *)
30018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30019for as_dir in $PATH
30020do
30021 IFS=$as_save_IFS
30022 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030023 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30025 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030027 break 2
30028 fi
30029done
cristy8b350f62009-11-15 23:12:43 +000030030 done
cristy3ed852e2009-09-05 21:47:34 +000030031IFS=$as_save_IFS
30032
30033 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
30034 ;;
30035esac
30036fi
30037CatDelegate=$ac_cv_path_CatDelegate
30038if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030040$as_echo "$CatDelegate" >&6; }
30041else
cristy8b350f62009-11-15 23:12:43 +000030042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030043$as_echo "no" >&6; }
30044fi
30045
30046
30047# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
30048set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030050$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030051if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030052 $as_echo_n "(cached) " >&6
30053else
30054 case $DNGDecodeDelegate in
30055 [\\/]* | ?:[\\/]*)
30056 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
30057 ;;
30058 *)
30059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30060for as_dir in $PATH
30061do
30062 IFS=$as_save_IFS
30063 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030064 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30066 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030068 break 2
30069 fi
30070done
cristy8b350f62009-11-15 23:12:43 +000030071 done
cristy3ed852e2009-09-05 21:47:34 +000030072IFS=$as_save_IFS
30073
30074 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
30075 ;;
30076esac
30077fi
30078DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
30079if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030081$as_echo "$DNGDecodeDelegate" >&6; }
30082else
cristy8b350f62009-11-15 23:12:43 +000030083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030084$as_echo "no" >&6; }
30085fi
30086
30087
30088# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
30089set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030091$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030092if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030093 $as_echo_n "(cached) " >&6
30094else
30095 case $GVCDecodeDelegate in
30096 [\\/]* | ?:[\\/]*)
30097 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
30098 ;;
30099 *)
30100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30101for as_dir in $PATH
30102do
30103 IFS=$as_save_IFS
30104 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030105 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30107 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030109 break 2
30110 fi
30111done
cristy8b350f62009-11-15 23:12:43 +000030112 done
cristy3ed852e2009-09-05 21:47:34 +000030113IFS=$as_save_IFS
30114
30115 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
30116 ;;
30117esac
30118fi
30119GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
30120if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030122$as_echo "$GVCDecodeDelegate" >&6; }
30123else
cristy8b350f62009-11-15 23:12:43 +000030124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030125$as_echo "no" >&6; }
30126fi
30127
30128
30129# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
30130set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030132$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030133if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030134 $as_echo_n "(cached) " >&6
30135else
30136 case $DVIDecodeDelegate in
30137 [\\/]* | ?:[\\/]*)
30138 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
30139 ;;
30140 *)
30141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30142for as_dir in $PATH
30143do
30144 IFS=$as_save_IFS
30145 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030146 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30148 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030150 break 2
30151 fi
30152done
cristy8b350f62009-11-15 23:12:43 +000030153 done
cristy3ed852e2009-09-05 21:47:34 +000030154IFS=$as_save_IFS
30155
30156 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30157 ;;
30158esac
30159fi
30160DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30161if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030163$as_echo "$DVIDecodeDelegate" >&6; }
30164else
cristy8b350f62009-11-15 23:12:43 +000030165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030166$as_echo "no" >&6; }
30167fi
30168
30169
30170# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30171set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030173$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030174if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030175 $as_echo_n "(cached) " >&6
30176else
30177 case $EchoDelegate in
30178 [\\/]* | ?:[\\/]*)
30179 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30180 ;;
30181 *)
30182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30183for as_dir in $PATH
30184do
30185 IFS=$as_save_IFS
30186 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030187 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30189 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030191 break 2
30192 fi
30193done
cristy8b350f62009-11-15 23:12:43 +000030194 done
cristy3ed852e2009-09-05 21:47:34 +000030195IFS=$as_save_IFS
30196
30197 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30198 ;;
30199esac
30200fi
30201EchoDelegate=$ac_cv_path_EchoDelegate
30202if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030204$as_echo "$EchoDelegate" >&6; }
30205else
cristy8b350f62009-11-15 23:12:43 +000030206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030207$as_echo "no" >&6; }
30208fi
30209
30210
30211# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30212set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030214$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030215if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030216 $as_echo_n "(cached) " >&6
30217else
30218 case $EditorDelegate in
30219 [\\/]* | ?:[\\/]*)
30220 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30221 ;;
30222 *)
30223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30224for as_dir in $PATH
30225do
30226 IFS=$as_save_IFS
30227 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030228 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30230 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030232 break 2
30233 fi
30234done
cristy8b350f62009-11-15 23:12:43 +000030235 done
cristy3ed852e2009-09-05 21:47:34 +000030236IFS=$as_save_IFS
30237
30238 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30239 ;;
30240esac
30241fi
30242EditorDelegate=$ac_cv_path_EditorDelegate
30243if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030245$as_echo "$EditorDelegate" >&6; }
30246else
cristy8b350f62009-11-15 23:12:43 +000030247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030248$as_echo "no" >&6; }
30249fi
30250
30251
30252# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30253set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030255$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030256if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030257 $as_echo_n "(cached) " >&6
30258else
30259 case $FIGDecodeDelegate in
30260 [\\/]* | ?:[\\/]*)
30261 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30262 ;;
30263 *)
30264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30265for as_dir in $PATH
30266do
30267 IFS=$as_save_IFS
30268 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030269 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30271 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030273 break 2
30274 fi
30275done
cristy8b350f62009-11-15 23:12:43 +000030276 done
cristy3ed852e2009-09-05 21:47:34 +000030277IFS=$as_save_IFS
30278
30279 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30280 ;;
30281esac
30282fi
30283FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30284if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030286$as_echo "$FIGDecodeDelegate" >&6; }
30287else
cristy8b350f62009-11-15 23:12:43 +000030288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030289$as_echo "no" >&6; }
30290fi
30291
30292
30293# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30294set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030296$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030297if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030298 $as_echo_n "(cached) " >&6
30299else
30300 case $ConvertDelegate in
30301 [\\/]* | ?:[\\/]*)
30302 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30303 ;;
30304 *)
30305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30306for as_dir in $PATH
30307do
30308 IFS=$as_save_IFS
30309 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030310 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30312 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030314 break 2
30315 fi
30316done
cristy8b350f62009-11-15 23:12:43 +000030317 done
cristy3ed852e2009-09-05 21:47:34 +000030318IFS=$as_save_IFS
30319
30320 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30321 ;;
30322esac
30323fi
30324ConvertDelegate=$ac_cv_path_ConvertDelegate
30325if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030327$as_echo "$ConvertDelegate" >&6; }
30328else
cristy8b350f62009-11-15 23:12:43 +000030329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030330$as_echo "no" >&6; }
30331fi
30332
30333
30334# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30335set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030337$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030338if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030339 $as_echo_n "(cached) " >&6
30340else
30341 case $DisplayDelegate in
30342 [\\/]* | ?:[\\/]*)
30343 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30344 ;;
30345 *)
30346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30347for as_dir in $PATH
30348do
30349 IFS=$as_save_IFS
30350 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030351 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30353 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030355 break 2
30356 fi
30357done
cristy8b350f62009-11-15 23:12:43 +000030358 done
cristy3ed852e2009-09-05 21:47:34 +000030359IFS=$as_save_IFS
30360
30361 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30362 ;;
30363esac
30364fi
30365DisplayDelegate=$ac_cv_path_DisplayDelegate
30366if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030368$as_echo "$DisplayDelegate" >&6; }
30369else
cristy8b350f62009-11-15 23:12:43 +000030370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030371$as_echo "no" >&6; }
30372fi
30373
30374
30375# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30376set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030378$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030379if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030380 $as_echo_n "(cached) " >&6
30381else
30382 case $MogrifyDelegate in
30383 [\\/]* | ?:[\\/]*)
30384 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30385 ;;
30386 *)
30387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30388for as_dir in $PATH
30389do
30390 IFS=$as_save_IFS
30391 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030392 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30394 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030396 break 2
30397 fi
30398done
cristy8b350f62009-11-15 23:12:43 +000030399 done
cristy3ed852e2009-09-05 21:47:34 +000030400IFS=$as_save_IFS
30401
30402 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30403 ;;
30404esac
30405fi
30406MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30407if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030409$as_echo "$MogrifyDelegate" >&6; }
30410else
cristy8b350f62009-11-15 23:12:43 +000030411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030412$as_echo "no" >&6; }
30413fi
30414
30415
30416# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30417set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030419$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030420if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030421 $as_echo_n "(cached) " >&6
30422else
30423 case $GnuplotDecodeDelegate in
30424 [\\/]* | ?:[\\/]*)
30425 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30426 ;;
30427 *)
30428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30429for as_dir in $PATH
30430do
30431 IFS=$as_save_IFS
30432 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030433 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30435 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030437 break 2
30438 fi
30439done
cristy8b350f62009-11-15 23:12:43 +000030440 done
cristy3ed852e2009-09-05 21:47:34 +000030441IFS=$as_save_IFS
30442
30443 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30444 ;;
30445esac
30446fi
30447GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30448if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030450$as_echo "$GnuplotDecodeDelegate" >&6; }
30451else
cristy8b350f62009-11-15 23:12:43 +000030452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030453$as_echo "no" >&6; }
30454fi
30455
30456
30457# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30458set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030460$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030461if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030462 $as_echo_n "(cached) " >&6
30463else
30464 case $HDRDecodeDelegate in
30465 [\\/]* | ?:[\\/]*)
30466 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30467 ;;
30468 *)
30469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30470for as_dir in $PATH
30471do
30472 IFS=$as_save_IFS
30473 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030474 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30476 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030478 break 2
30479 fi
30480done
cristy8b350f62009-11-15 23:12:43 +000030481 done
cristy3ed852e2009-09-05 21:47:34 +000030482IFS=$as_save_IFS
30483
30484 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30485 ;;
30486esac
30487fi
30488HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30489if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030491$as_echo "$HDRDecodeDelegate" >&6; }
30492else
cristy8b350f62009-11-15 23:12:43 +000030493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030494$as_echo "no" >&6; }
30495fi
30496
30497
30498# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30499set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030501$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030502if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030503 $as_echo_n "(cached) " >&6
30504else
30505 case $HPGLDecodeDelegate in
30506 [\\/]* | ?:[\\/]*)
30507 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30508 ;;
30509 *)
30510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30511for as_dir in $PATH
30512do
30513 IFS=$as_save_IFS
30514 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030515 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30517 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030519 break 2
30520 fi
30521done
cristy8b350f62009-11-15 23:12:43 +000030522 done
cristy3ed852e2009-09-05 21:47:34 +000030523IFS=$as_save_IFS
30524
30525 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30526 ;;
30527esac
30528fi
30529HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30530if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030532$as_echo "$HPGLDecodeDelegate" >&6; }
30533else
cristy8b350f62009-11-15 23:12:43 +000030534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030535$as_echo "no" >&6; }
30536fi
30537
30538
30539# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30540set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030542$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030543if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030544 $as_echo_n "(cached) " >&6
30545else
30546 case $HTMLDecodeDelegate in
30547 [\\/]* | ?:[\\/]*)
30548 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30549 ;;
30550 *)
30551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30552for as_dir in $PATH
30553do
30554 IFS=$as_save_IFS
30555 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030556 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30558 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030560 break 2
30561 fi
30562done
cristy8b350f62009-11-15 23:12:43 +000030563 done
cristy3ed852e2009-09-05 21:47:34 +000030564IFS=$as_save_IFS
30565
30566 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30567 ;;
30568esac
30569fi
30570HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30571if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030573$as_echo "$HTMLDecodeDelegate" >&6; }
30574else
cristy8b350f62009-11-15 23:12:43 +000030575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030576$as_echo "no" >&6; }
30577fi
30578
30579
30580# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30581set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030583$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030584if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030585 $as_echo_n "(cached) " >&6
30586else
30587 case $ILBMDecodeDelegate in
30588 [\\/]* | ?:[\\/]*)
30589 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30590 ;;
30591 *)
30592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30593for as_dir in $PATH
30594do
30595 IFS=$as_save_IFS
30596 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030597 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30599 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030601 break 2
30602 fi
30603done
cristy8b350f62009-11-15 23:12:43 +000030604 done
cristy3ed852e2009-09-05 21:47:34 +000030605IFS=$as_save_IFS
30606
30607 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30608 ;;
30609esac
30610fi
30611ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30612if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030614$as_echo "$ILBMDecodeDelegate" >&6; }
30615else
cristy8b350f62009-11-15 23:12:43 +000030616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030617$as_echo "no" >&6; }
30618fi
30619
30620
30621# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30622set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030624$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030625if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030626 $as_echo_n "(cached) " >&6
30627else
30628 case $ILBMEncodeDelegate in
30629 [\\/]* | ?:[\\/]*)
30630 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30631 ;;
30632 *)
30633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30634for as_dir in $PATH
30635do
30636 IFS=$as_save_IFS
30637 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030638 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30640 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030642 break 2
30643 fi
30644done
cristy8b350f62009-11-15 23:12:43 +000030645 done
cristy3ed852e2009-09-05 21:47:34 +000030646IFS=$as_save_IFS
30647
30648 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30649 ;;
30650esac
30651fi
30652ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30653if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030655$as_echo "$ILBMEncodeDelegate" >&6; }
30656else
cristy8b350f62009-11-15 23:12:43 +000030657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030658$as_echo "no" >&6; }
30659fi
30660
30661
30662# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30663set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030665$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030666if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030667 $as_echo_n "(cached) " >&6
30668else
30669 case $LPDelegate in
30670 [\\/]* | ?:[\\/]*)
30671 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30672 ;;
30673 *)
30674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30675for as_dir in $PATH
30676do
30677 IFS=$as_save_IFS
30678 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030679 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30681 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030683 break 2
30684 fi
30685done
cristy8b350f62009-11-15 23:12:43 +000030686 done
cristy3ed852e2009-09-05 21:47:34 +000030687IFS=$as_save_IFS
30688
30689 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30690 ;;
30691esac
30692fi
30693LPDelegate=$ac_cv_path_LPDelegate
30694if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030696$as_echo "$LPDelegate" >&6; }
30697else
cristy8b350f62009-11-15 23:12:43 +000030698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030699$as_echo "no" >&6; }
30700fi
30701
30702
30703# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30704set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030706$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030707if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030708 $as_echo_n "(cached) " >&6
30709else
30710 case $LPRDelegate in
30711 [\\/]* | ?:[\\/]*)
30712 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30713 ;;
30714 *)
30715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30716for as_dir in $PATH
30717do
30718 IFS=$as_save_IFS
30719 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030720 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30722 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030724 break 2
30725 fi
30726done
cristy8b350f62009-11-15 23:12:43 +000030727 done
cristy3ed852e2009-09-05 21:47:34 +000030728IFS=$as_save_IFS
30729
30730 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30731 ;;
30732esac
30733fi
30734LPRDelegate=$ac_cv_path_LPRDelegate
30735if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030737$as_echo "$LPRDelegate" >&6; }
30738else
cristy8b350f62009-11-15 23:12:43 +000030739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030740$as_echo "no" >&6; }
30741fi
30742
30743
30744# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30745set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030747$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030748if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030749 $as_echo_n "(cached) " >&6
30750else
30751 case $LZWDecodeDelegate in
30752 [\\/]* | ?:[\\/]*)
30753 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30754 ;;
30755 *)
30756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30757for as_dir in $PATH
30758do
30759 IFS=$as_save_IFS
30760 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030761 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30763 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030765 break 2
30766 fi
30767done
cristy8b350f62009-11-15 23:12:43 +000030768 done
cristy3ed852e2009-09-05 21:47:34 +000030769IFS=$as_save_IFS
30770
30771 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30772 ;;
30773esac
30774fi
30775LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30776if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030778$as_echo "$LZWDecodeDelegate" >&6; }
30779else
cristy8b350f62009-11-15 23:12:43 +000030780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030781$as_echo "no" >&6; }
30782fi
30783
30784
30785# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30786set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030788$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030789if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030790 $as_echo_n "(cached) " >&6
30791else
30792 case $LZWEncodeDelegate in
30793 [\\/]* | ?:[\\/]*)
30794 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30795 ;;
30796 *)
30797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30798for as_dir in $PATH
30799do
30800 IFS=$as_save_IFS
30801 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030802 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30804 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030806 break 2
30807 fi
30808done
cristy8b350f62009-11-15 23:12:43 +000030809 done
cristy3ed852e2009-09-05 21:47:34 +000030810IFS=$as_save_IFS
30811
30812 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30813 ;;
30814esac
30815fi
30816LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30817if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030819$as_echo "$LZWEncodeDelegate" >&6; }
30820else
cristy8b350f62009-11-15 23:12:43 +000030821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030822$as_echo "no" >&6; }
30823fi
30824
30825
30826# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30827set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030829$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030830if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030831 $as_echo_n "(cached) " >&6
30832else
30833 case $LaunchDelegate in
30834 [\\/]* | ?:[\\/]*)
30835 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30836 ;;
30837 *)
30838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30839for as_dir in $PATH
30840do
30841 IFS=$as_save_IFS
30842 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030843 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30845 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030847 break 2
30848 fi
30849done
cristy8b350f62009-11-15 23:12:43 +000030850 done
cristy3ed852e2009-09-05 21:47:34 +000030851IFS=$as_save_IFS
30852
30853 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30854 ;;
30855esac
30856fi
30857LaunchDelegate=$ac_cv_path_LaunchDelegate
30858if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030860$as_echo "$LaunchDelegate" >&6; }
30861else
cristy8b350f62009-11-15 23:12:43 +000030862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030863$as_echo "no" >&6; }
30864fi
30865
30866
30867# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30868set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030870$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030871if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030872 $as_echo_n "(cached) " >&6
30873else
30874 case $MANDelegate in
30875 [\\/]* | ?:[\\/]*)
30876 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30877 ;;
30878 *)
30879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30880for as_dir in $PATH
30881do
30882 IFS=$as_save_IFS
30883 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030884 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30886 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030888 break 2
30889 fi
30890done
cristy8b350f62009-11-15 23:12:43 +000030891 done
cristy3ed852e2009-09-05 21:47:34 +000030892IFS=$as_save_IFS
30893
30894 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30895 ;;
30896esac
30897fi
30898MANDelegate=$ac_cv_path_MANDelegate
30899if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030901$as_echo "$MANDelegate" >&6; }
30902else
cristy8b350f62009-11-15 23:12:43 +000030903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030904$as_echo "no" >&6; }
30905fi
30906
30907
30908# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30909set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030911$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030912if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030913 $as_echo_n "(cached) " >&6
30914else
30915 case $MPEGDecodeDelegate in
30916 [\\/]* | ?:[\\/]*)
30917 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30918 ;;
30919 *)
30920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30921for as_dir in $PATH
30922do
30923 IFS=$as_save_IFS
30924 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030925 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30927 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030929 break 2
30930 fi
30931done
cristy8b350f62009-11-15 23:12:43 +000030932 done
cristy3ed852e2009-09-05 21:47:34 +000030933IFS=$as_save_IFS
30934
30935 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30936 ;;
30937esac
30938fi
30939MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30940if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030942$as_echo "$MPEGDecodeDelegate" >&6; }
30943else
cristy8b350f62009-11-15 23:12:43 +000030944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030945$as_echo "no" >&6; }
30946fi
30947
30948
30949# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30950set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030952$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030953if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030954 $as_echo_n "(cached) " >&6
30955else
30956 case $MPEGEncodeDelegate in
30957 [\\/]* | ?:[\\/]*)
30958 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30959 ;;
30960 *)
30961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30962for as_dir in $PATH
30963do
30964 IFS=$as_save_IFS
30965 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030966 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30968 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030970 break 2
30971 fi
30972done
cristy8b350f62009-11-15 23:12:43 +000030973 done
cristy3ed852e2009-09-05 21:47:34 +000030974IFS=$as_save_IFS
30975
30976 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30977 ;;
30978esac
30979fi
30980MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30981if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030983$as_echo "$MPEGEncodeDelegate" >&6; }
30984else
cristy8b350f62009-11-15 23:12:43 +000030985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030986$as_echo "no" >&6; }
30987fi
30988
30989
cristy935c86e2010-06-05 23:50:07 +000030990# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30991set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30993$as_echo_n "checking for $ac_word... " >&6; }
30994if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30995 $as_echo_n "(cached) " >&6
30996else
30997 case $MrSIDDecodeDelegate in
30998 [\\/]* | ?:[\\/]*)
30999 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
31000 ;;
31001 *)
31002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31003for as_dir in $PATH
31004do
31005 IFS=$as_save_IFS
31006 test -z "$as_dir" && as_dir=.
31007 for ac_exec_ext in '' $ac_executable_extensions; do
31008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31009 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31011 break 2
31012 fi
31013done
31014 done
31015IFS=$as_save_IFS
31016
31017 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
31018 ;;
31019esac
31020fi
31021MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
31022if test -n "$MrSIDDecodeDelegate"; then
31023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
31024$as_echo "$MrSIDDecodeDelegate" >&6; }
31025else
31026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31027$as_echo "no" >&6; }
31028fi
31029
31030
cristy3ed852e2009-09-05 21:47:34 +000031031# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
31032set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031034$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031035if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031036 $as_echo_n "(cached) " >&6
31037else
31038 case $MVDelegate in
31039 [\\/]* | ?:[\\/]*)
31040 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
31041 ;;
31042 *)
31043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31044for as_dir in $PATH
31045do
31046 IFS=$as_save_IFS
31047 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031048 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31050 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031052 break 2
31053 fi
31054done
cristy8b350f62009-11-15 23:12:43 +000031055 done
cristy3ed852e2009-09-05 21:47:34 +000031056IFS=$as_save_IFS
31057
31058 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
31059 ;;
31060esac
31061fi
31062MVDelegate=$ac_cv_path_MVDelegate
31063if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031065$as_echo "$MVDelegate" >&6; }
31066else
cristy8b350f62009-11-15 23:12:43 +000031067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031068$as_echo "no" >&6; }
31069fi
31070
31071
31072# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
31073set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031075$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031076if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031077 $as_echo_n "(cached) " >&6
31078else
31079 case $PCLDelegate in
31080 [\\/]* | ?:[\\/]*)
31081 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
31082 ;;
31083 *)
31084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31085for as_dir in $PATH
31086do
31087 IFS=$as_save_IFS
31088 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031089 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31091 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031093 break 2
31094 fi
31095done
cristy8b350f62009-11-15 23:12:43 +000031096 done
cristy3ed852e2009-09-05 21:47:34 +000031097IFS=$as_save_IFS
31098
31099 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
31100 ;;
31101esac
31102fi
31103PCLDelegate=$ac_cv_path_PCLDelegate
31104if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031106$as_echo "$PCLDelegate" >&6; }
31107else
cristy8b350f62009-11-15 23:12:43 +000031108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031109$as_echo "no" >&6; }
31110fi
31111
31112
31113# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
31114set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031116$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031117if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031118 $as_echo_n "(cached) " >&6
31119else
31120 case $PGPDecodeDelegate in
31121 [\\/]* | ?:[\\/]*)
31122 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
31123 ;;
31124 *)
31125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31126for as_dir in $PATH
31127do
31128 IFS=$as_save_IFS
31129 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031130 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31132 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031134 break 2
31135 fi
31136done
cristy8b350f62009-11-15 23:12:43 +000031137 done
cristy3ed852e2009-09-05 21:47:34 +000031138IFS=$as_save_IFS
31139
31140 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
31141 ;;
31142esac
31143fi
31144PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
31145if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031147$as_echo "$PGPDecodeDelegate" >&6; }
31148else
cristy8b350f62009-11-15 23:12:43 +000031149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031150$as_echo "no" >&6; }
31151fi
31152
31153
31154# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31155set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031157$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031158if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031159 $as_echo_n "(cached) " >&6
31160else
31161 case $POVDelegate in
31162 [\\/]* | ?:[\\/]*)
31163 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31164 ;;
31165 *)
31166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31167for as_dir in $PATH
31168do
31169 IFS=$as_save_IFS
31170 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031171 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31173 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031175 break 2
31176 fi
31177done
cristy8b350f62009-11-15 23:12:43 +000031178 done
cristy3ed852e2009-09-05 21:47:34 +000031179IFS=$as_save_IFS
31180
31181 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31182 ;;
31183esac
31184fi
31185POVDelegate=$ac_cv_path_POVDelegate
31186if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031188$as_echo "$POVDelegate" >&6; }
31189else
cristy8b350f62009-11-15 23:12:43 +000031190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031191$as_echo "no" >&6; }
31192fi
31193
31194
31195for ac_prog in gsx gsc "$PSDelegateDefault"
31196do
31197 # Extract the first word of "$ac_prog", so it can be a program name with args.
31198set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031200$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031201if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031202 $as_echo_n "(cached) " >&6
31203else
31204 case $PSDelegate in
31205 [\\/]* | ?:[\\/]*)
31206 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31207 ;;
31208 *)
31209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31210for as_dir in $PATH
31211do
31212 IFS=$as_save_IFS
31213 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031214 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31216 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031218 break 2
31219 fi
31220done
cristy8b350f62009-11-15 23:12:43 +000031221 done
cristy3ed852e2009-09-05 21:47:34 +000031222IFS=$as_save_IFS
31223
31224 ;;
31225esac
31226fi
31227PSDelegate=$ac_cv_path_PSDelegate
31228if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031230$as_echo "$PSDelegate" >&6; }
31231else
cristy8b350f62009-11-15 23:12:43 +000031232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031233$as_echo "no" >&6; }
31234fi
31235
31236
31237 test -n "$PSDelegate" && break
31238done
31239test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31240
31241# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31242set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031244$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031245if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031246 $as_echo_n "(cached) " >&6
31247else
31248 case $RLEEncodeDelegate in
31249 [\\/]* | ?:[\\/]*)
31250 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31251 ;;
31252 *)
31253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31254for as_dir in $PATH
31255do
31256 IFS=$as_save_IFS
31257 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031258 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31260 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031262 break 2
31263 fi
31264done
cristy8b350f62009-11-15 23:12:43 +000031265 done
cristy3ed852e2009-09-05 21:47:34 +000031266IFS=$as_save_IFS
31267
31268 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31269 ;;
31270esac
31271fi
31272RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31273if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031275$as_echo "$RLEEncodeDelegate" >&6; }
31276else
cristy8b350f62009-11-15 23:12:43 +000031277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031278$as_echo "no" >&6; }
31279fi
31280
31281
31282# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31283set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031285$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031286if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031287 $as_echo_n "(cached) " >&6
31288else
31289 case $RMDelegate in
31290 [\\/]* | ?:[\\/]*)
31291 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31292 ;;
31293 *)
31294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31295for as_dir in $PATH
31296do
31297 IFS=$as_save_IFS
31298 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031299 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31301 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031303 break 2
31304 fi
31305done
cristy8b350f62009-11-15 23:12:43 +000031306 done
cristy3ed852e2009-09-05 21:47:34 +000031307IFS=$as_save_IFS
31308
31309 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31310 ;;
31311esac
31312fi
31313RMDelegate=$ac_cv_path_RMDelegate
31314if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031316$as_echo "$RMDelegate" >&6; }
31317else
cristy8b350f62009-11-15 23:12:43 +000031318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031319$as_echo "no" >&6; }
31320fi
31321
31322
cristy4689cf02010-02-17 21:15:45 +000031323# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31324set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31326$as_echo_n "checking for $ac_word... " >&6; }
31327if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31328 $as_echo_n "(cached) " >&6
31329else
31330 case $RSVGDecodeDelegate in
31331 [\\/]* | ?:[\\/]*)
31332 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31333 ;;
31334 *)
31335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31336for as_dir in $PATH
31337do
31338 IFS=$as_save_IFS
31339 test -z "$as_dir" && as_dir=.
31340 for ac_exec_ext in '' $ac_executable_extensions; do
31341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31342 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31344 break 2
31345 fi
31346done
31347 done
31348IFS=$as_save_IFS
31349
31350 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31351 ;;
31352esac
31353fi
31354RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31355if test -n "$RSVGDecodeDelegate"; then
31356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31357$as_echo "$RSVGDecodeDelegate" >&6; }
31358else
31359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31360$as_echo "no" >&6; }
31361fi
31362
31363
cristy3ed852e2009-09-05 21:47:34 +000031364# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31365set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031367$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031368if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031369 $as_echo_n "(cached) " >&6
31370else
31371 case $SCANDecodeDelegate in
31372 [\\/]* | ?:[\\/]*)
31373 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31374 ;;
31375 *)
31376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31377for as_dir in $PATH
31378do
31379 IFS=$as_save_IFS
31380 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031381 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31383 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031385 break 2
31386 fi
31387done
cristy8b350f62009-11-15 23:12:43 +000031388 done
cristy3ed852e2009-09-05 21:47:34 +000031389IFS=$as_save_IFS
31390
31391 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31392 ;;
31393esac
31394fi
31395SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31396if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031398$as_echo "$SCANDecodeDelegate" >&6; }
31399else
cristy8b350f62009-11-15 23:12:43 +000031400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031401$as_echo "no" >&6; }
31402fi
31403
31404
31405# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31406set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031408$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031409if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031410 $as_echo_n "(cached) " >&6
31411else
31412 case $TXTDelegate in
31413 [\\/]* | ?:[\\/]*)
31414 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31415 ;;
31416 *)
31417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31418for as_dir in $PATH
31419do
31420 IFS=$as_save_IFS
31421 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031422 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31424 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031426 break 2
31427 fi
31428done
cristy8b350f62009-11-15 23:12:43 +000031429 done
cristy3ed852e2009-09-05 21:47:34 +000031430IFS=$as_save_IFS
31431
31432 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31433 ;;
31434esac
31435fi
31436TXTDelegate=$ac_cv_path_TXTDelegate
31437if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031439$as_echo "$TXTDelegate" >&6; }
31440else
cristy8b350f62009-11-15 23:12:43 +000031441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031442$as_echo "no" >&6; }
31443fi
31444
31445
cristy5ac9ac82010-07-29 13:24:24 +000031446# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
31447set dummy "$UniconvertorDelegateDefault"; ac_word=$2
31448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31449$as_echo_n "checking for $ac_word... " >&6; }
31450if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then :
31451 $as_echo_n "(cached) " >&6
31452else
31453 case $UniconvertorDelegate in
31454 [\\/]* | ?:[\\/]*)
31455 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
31456 ;;
31457 *)
31458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31459for as_dir in $PATH
31460do
31461 IFS=$as_save_IFS
31462 test -z "$as_dir" && as_dir=.
31463 for ac_exec_ext in '' $ac_executable_extensions; do
31464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31465 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
31466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31467 break 2
31468 fi
31469done
31470 done
31471IFS=$as_save_IFS
31472
31473 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
31474 ;;
31475esac
31476fi
31477UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
31478if test -n "$UniconvertorDelegate"; then
31479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
31480$as_echo "$UniconvertorDelegate" >&6; }
31481else
31482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31483$as_echo "no" >&6; }
31484fi
31485
31486
cristy3ed852e2009-09-05 21:47:34 +000031487# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31488set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031490$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031491if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031492 $as_echo_n "(cached) " >&6
31493else
31494 case $WMFDecodeDelegate in
31495 [\\/]* | ?:[\\/]*)
31496 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31497 ;;
31498 *)
31499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31500for as_dir in $PATH
31501do
31502 IFS=$as_save_IFS
31503 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031504 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31506 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031508 break 2
31509 fi
31510done
cristy8b350f62009-11-15 23:12:43 +000031511 done
cristy3ed852e2009-09-05 21:47:34 +000031512IFS=$as_save_IFS
31513
31514 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31515 ;;
31516esac
31517fi
31518WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31519if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031521$as_echo "$WMFDecodeDelegate" >&6; }
31522else
cristy8b350f62009-11-15 23:12:43 +000031523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031524$as_echo "no" >&6; }
31525fi
31526
31527
31528# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31529set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031531$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031532if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031533 $as_echo_n "(cached) " >&6
31534else
31535 case $WWWDecodeDelegate in
31536 [\\/]* | ?:[\\/]*)
31537 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31538 ;;
31539 *)
31540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31541for as_dir in $PATH
31542do
31543 IFS=$as_save_IFS
31544 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031545 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31547 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031549 break 2
31550 fi
31551done
cristy8b350f62009-11-15 23:12:43 +000031552 done
cristy3ed852e2009-09-05 21:47:34 +000031553IFS=$as_save_IFS
31554
31555 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31556 ;;
31557esac
31558fi
31559WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31560if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031562$as_echo "$WWWDecodeDelegate" >&6; }
31563else
cristy8b350f62009-11-15 23:12:43 +000031564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031565$as_echo "no" >&6; }
31566fi
31567
31568
31569# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31570set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031572$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031573if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031574 $as_echo_n "(cached) " >&6
31575else
31576 case $XPSDelegate in
31577 [\\/]* | ?:[\\/]*)
31578 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31579 ;;
31580 *)
31581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31582for as_dir in $PATH
31583do
31584 IFS=$as_save_IFS
31585 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031586 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31588 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031590 break 2
31591 fi
31592done
cristy8b350f62009-11-15 23:12:43 +000031593 done
cristy3ed852e2009-09-05 21:47:34 +000031594IFS=$as_save_IFS
31595
31596 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31597 ;;
31598esac
31599fi
31600XPSDelegate=$ac_cv_path_XPSDelegate
31601if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031603$as_echo "$XPSDelegate" >&6; }
31604else
cristy8b350f62009-11-15 23:12:43 +000031605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031606$as_echo "no" >&6; }
31607fi
31608
31609
31610# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31611set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031613$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031614if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031615 $as_echo_n "(cached) " >&6
31616else
31617 case $ZipDelegate in
31618 [\\/]* | ?:[\\/]*)
31619 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31620 ;;
31621 *)
31622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31623for as_dir in $PATH
31624do
31625 IFS=$as_save_IFS
31626 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031627 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31629 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031631 break 2
31632 fi
31633done
cristy8b350f62009-11-15 23:12:43 +000031634 done
cristy3ed852e2009-09-05 21:47:34 +000031635IFS=$as_save_IFS
31636
31637 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31638 ;;
31639esac
31640fi
31641ZipDelegate=$ac_cv_path_ZipDelegate
31642if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031644$as_echo "$ZipDelegate" >&6; }
31645else
cristy8b350f62009-11-15 23:12:43 +000031646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031647$as_echo "no" >&6; }
31648fi
31649
31650
31651
31652# Prefer lpr to lp; lp needs options tacked on.
31653if test "$LPRDelegate" != no; then
31654 PrintDelegate="$LPRDelegate"
31655else
31656 PrintDelegate="$LPDelegate -c -s"
31657fi
31658
31659
31660# Installed ImageMagick utiltity paths
31661ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31662DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31663MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31664
31665# Set delegate booleans
31666have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31667have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31668have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31669have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31670have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31671have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000031672have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000031673have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31674have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31675have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31676have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31677have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31678
31679#
31680# Test for font directories
31681#
31682type_include_files=''
31683
cristy430a7312010-01-21 20:44:04 +000031684# Dejavu fonts.
31685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31686$as_echo_n "checking for Dejavu fonts directory... " >&6; }
31687dejavu_font_dir=''
31688if test "${with_dejavu_font_dir}" != 'default'; then
31689 dejavu_font_dir="${with_dejavu_font_dir}/"
31690else
31691 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31692 if test -f "${font_dir}DejaVuSerif.ttf"; then
31693 dejavu_font_dir="${font_dir}"
31694 break 1
31695 fi
31696 done
31697fi
31698if test "${dejavu_font_dir}x" != 'x'; then
31699 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31701$as_echo "$dejavu_font_dir" >&6; }
31702else
31703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31704$as_echo "not found!" >&6; };
31705fi
31706
31707
cristy3ed852e2009-09-05 21:47:34 +000031708# Windows
31709windows_font_dir=''
31710if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31711 windows_font_dir="${with_windows_font_dir}/"
31712fi
cristy430a7312010-01-21 20:44:04 +000031713if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031714 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31715 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31716 fi
31717 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31718 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31719 fi
31720 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31721 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31722 fi
31723fi
cristy430a7312010-01-21 20:44:04 +000031724if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031725 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31726fi
31727
31728
31729# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000031730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000031731$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31732ghostscript_font_dir=''
31733if test "${with_gs_font_dir}" != 'default'; then
31734 ghostscript_font_dir="${with_gs_font_dir}/"
31735else
31736 if test "${native_win32_build}" = 'yes'; then
31737 # Native Windows Build
31738 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31739 if test -f "${font_dir}a010013l.pfb"; then
31740 ghostscript_font_dir="$font_dir"
31741 break 1
31742 fi
31743 done
31744 if test "${PSDelegate}" != 'gswin32c'; then
31745 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31746 fi
31747 else
31748 # Linux / Mac OS X / Unix Build
31749 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
31750 if test -f "${font_dir}a010013l.pfb"; then
31751 ghostscript_font_dir="${font_dir}"
31752 break 1
31753 fi
31754 done
31755 if test "${ghostscript_font_dir}x" = 'x'; then
31756 if test "$PSDelegate" != 'gs'; then
31757 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31758 fi
31759 fi
31760 fi
31761fi
31762if test "${ghostscript_font_dir}x" != 'x'; then
31763 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000031764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000031765$as_echo "$ghostscript_font_dir" >&6; }
31766else
cristy8b350f62009-11-15 23:12:43 +000031767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000031768$as_echo "not found!" >&6; };
31769fi
31770
31771case "${build_os}" in
31772 mingw* )
31773 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31774 ;;
31775esac
31776
31777
31778
31779#
31780# Handle case where user doesn't want frozen paths
31781#
31782if test "$with_frozenpaths" != 'yes'; then
31783 # Re-set delegate definitions to default (no paths)
31784 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31785 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31786 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31787 BZIPDelegate="$BZIPDelegateDefault"
31788 BrowseDelegate="$BrowseDelegateDefault"
31789 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31790 CatDelegate="$CatDelegateDefault"
31791 ConvertDelegate="$ConvertDelegateDefault"
31792 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31793 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31794 EchoDelegate="$EchoDelegateDefault"
31795 EditorDelegate="$EditorDelegateDefault"
31796 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31797 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31798 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31799 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31800 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31801 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31802 LPDelegate="$LPDelegateDefault"
31803 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31804 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31805 LaunchDelegate="$LaunchDelegateDefault"
31806 MANDelegate="$MANDelegateDefault"
31807 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31808 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031809 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000031810 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31811 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031812 PCLDelegate="$PCLDelegateDefault"
31813 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31814 POVDelegate="$POVDelegateDefault"
31815 PSDelegate="$PSDelegateDefault"
31816 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31817 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31818 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031819 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031820 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31821 ShowImageDelegate="$ShowImageDelegateDefault"
31822 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000031823 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031824 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31825 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31826 XPSDelegate="$XPSDelegateDefault"
31827 ZipDelegate="$ZipDelegateDefault"
31828fi
31829
31830# Delegate substitutions
31831
31832
31833
31834
31835
31836
31837
31838
31839
31840
31841
31842
31843
31844
31845
31846
31847
31848
31849
31850
31851
31852
31853
31854
31855
31856
31857
31858
31859
31860
31861
31862
31863
31864
31865
31866
31867
31868
31869
31870
31871
31872
cristy935c86e2010-06-05 23:50:07 +000031873
cristy5ac9ac82010-07-29 13:24:24 +000031874
cristy3ed852e2009-09-05 21:47:34 +000031875#
31876# RPM support.
31877#
31878RPM=''
31879for ac_prog in gnutar gtar tar
31880do
31881 # Extract the first word of "$ac_prog", so it can be a program name with args.
31882set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031884$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031885if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031886 $as_echo_n "(cached) " >&6
31887else
31888 if test -n "$TAR"; then
31889 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31890else
31891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31892for as_dir in $PATH
31893do
31894 IFS=$as_save_IFS
31895 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031896 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31898 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031900 break 2
31901 fi
31902done
cristy8b350f62009-11-15 23:12:43 +000031903 done
cristy3ed852e2009-09-05 21:47:34 +000031904IFS=$as_save_IFS
31905
31906fi
31907fi
31908TAR=$ac_cv_prog_TAR
31909if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031911$as_echo "$TAR" >&6; }
31912else
cristy8b350f62009-11-15 23:12:43 +000031913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031914$as_echo "no" >&6; }
31915fi
31916
31917
31918 test -n "$TAR" && break
31919done
31920
31921for ac_prog in perl
31922do
31923 # Extract the first word of "$ac_prog", so it can be a program name with args.
31924set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031926$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031927if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031928 $as_echo_n "(cached) " >&6
31929else
31930 if test -n "$PERL"; then
31931 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31932else
31933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31934for as_dir in $PATH
31935do
31936 IFS=$as_save_IFS
31937 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031938 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31940 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031942 break 2
31943 fi
31944done
cristy8b350f62009-11-15 23:12:43 +000031945 done
cristy3ed852e2009-09-05 21:47:34 +000031946IFS=$as_save_IFS
31947
31948fi
31949fi
31950PERL=$ac_cv_prog_PERL
31951if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031953$as_echo "$PERL" >&6; }
31954else
cristy8b350f62009-11-15 23:12:43 +000031955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031956$as_echo "no" >&6; }
31957fi
31958
31959
31960 test -n "$PERL" && break
31961done
31962
31963for ac_prog in rpmbuild rpm
31964do
31965 # Extract the first word of "$ac_prog", so it can be a program name with args.
31966set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031968$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031969if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031970 $as_echo_n "(cached) " >&6
31971else
31972 if test -n "$RPM"; then
31973 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31974else
31975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31976for as_dir in $PATH
31977do
31978 IFS=$as_save_IFS
31979 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031980 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31982 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031984 break 2
31985 fi
31986done
cristy8b350f62009-11-15 23:12:43 +000031987 done
cristy3ed852e2009-09-05 21:47:34 +000031988IFS=$as_save_IFS
31989
31990fi
31991fi
31992RPM=$ac_cv_prog_RPM
31993if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000031994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000031995$as_echo "$RPM" >&6; }
31996else
cristy8b350f62009-11-15 23:12:43 +000031997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031998$as_echo "no" >&6; }
31999fi
32000
32001
32002 test -n "$RPM" && break
32003done
32004
32005
32006ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
32007
32008
32009AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
32010
32011
32012AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
32013
32014
32015AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
32016
32017
32018 if test "x$RPM" != "x" ; then
32019 RPM_DELEGATE_TRUE=
32020 RPM_DELEGATE_FALSE='#'
32021else
32022 RPM_DELEGATE_TRUE='#'
32023 RPM_DELEGATE_FALSE=
32024fi
32025
32026
32027#
32028# 7ZIP support (http://p7zip.sourceforge.net/)
32029#
32030P7ZIP=''
32031for ac_prog in 7za
32032do
32033 # Extract the first word of "$ac_prog", so it can be a program name with args.
32034set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032036$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032037if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032038 $as_echo_n "(cached) " >&6
32039else
32040 if test -n "$P7ZIP"; then
32041 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
32042else
32043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32044for as_dir in $PATH
32045do
32046 IFS=$as_save_IFS
32047 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032048 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32050 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032052 break 2
32053 fi
32054done
cristy8b350f62009-11-15 23:12:43 +000032055 done
cristy3ed852e2009-09-05 21:47:34 +000032056IFS=$as_save_IFS
32057
32058fi
32059fi
32060P7ZIP=$ac_cv_prog_P7ZIP
32061if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032063$as_echo "$P7ZIP" >&6; }
32064else
cristy8b350f62009-11-15 23:12:43 +000032065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032066$as_echo "no" >&6; }
32067fi
32068
32069
32070 test -n "$P7ZIP" && break
32071done
32072
32073
32074 if test "x$P7ZIP" != "x" ; then
32075 P7ZIP_DELEGATE_TRUE=
32076 P7ZIP_DELEGATE_FALSE='#'
32077else
32078 P7ZIP_DELEGATE_TRUE='#'
32079 P7ZIP_DELEGATE_FALSE=
32080fi
32081
32082
32083#
32084# ZIP support (http://www.info-zip.org/Zip.html)
32085#
32086ZIP=''
32087for ac_prog in zip
32088do
32089 # Extract the first word of "$ac_prog", so it can be a program name with args.
32090set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032092$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032093if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032094 $as_echo_n "(cached) " >&6
32095else
32096 if test -n "$ZIP"; then
32097 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
32098else
32099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32100for as_dir in $PATH
32101do
32102 IFS=$as_save_IFS
32103 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032104 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32106 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032108 break 2
32109 fi
32110done
cristy8b350f62009-11-15 23:12:43 +000032111 done
cristy3ed852e2009-09-05 21:47:34 +000032112IFS=$as_save_IFS
32113
32114fi
32115fi
32116ZIP=$ac_cv_prog_ZIP
32117if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032119$as_echo "$ZIP" >&6; }
32120else
cristy8b350f62009-11-15 23:12:43 +000032121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032122$as_echo "no" >&6; }
32123fi
32124
32125
32126 test -n "$ZIP" && break
32127done
32128
32129
32130 if test "x$ZIP" != "x" ; then
32131 ZIP_DELEGATE_TRUE=
32132 ZIP_DELEGATE_FALSE='#'
32133else
32134 ZIP_DELEGATE_TRUE='#'
32135 ZIP_DELEGATE_FALSE=
32136fi
32137
32138
32139#
32140# GhostPCL related configuration.
32141#
32142PCLColorDevice=ppmraw
32143PCLCMYKDevice=bmpsep8
32144PCLMonoDevice=pbmraw
32145if test -z "$PCLVersion"; then
32146 PCLVersion='unknown'
32147fi
32148if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032150$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032152$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032154$as_echo "" >&6; }
32155 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000032156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032157$as_echo_n "checking for pcl color device... " >&6; }
32158 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32159 :
32160 else
32161 PCLColorDevice=ppmraw
32162 fi
cristy8b350f62009-11-15 23:12:43 +000032163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032164$as_echo "$PCLColorDevice" >&6; }
32165
32166 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032168$as_echo_n "checking for pcl CMYK device... " >&6; }
32169 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32170 :
32171 else
32172 PCLCMYKDevice=$PCLColorDevice
32173 fi
cristy8b350f62009-11-15 23:12:43 +000032174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032175$as_echo "$PCLCMYKDevice" >&6; }
32176
32177 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032179$as_echo_n "checking for pcl mono device... " >&6; }
32180 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32181 :
32182 else
32183 PCLMonoDevice=$PCLColorDevice
32184 fi
cristy8b350f62009-11-15 23:12:43 +000032185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032186$as_echo "$PCLMonoDevice" >&6; }
32187fi
32188
32189
32190
32191
32192
32193
32194#
32195# GhostXPS related configuration.
32196#
32197XPSColorDevice=ppmraw
32198XPSCMYKDevice=bmpsep8
32199XPSMonoDevice=pbmraw
32200if test -z "$XPSVersion"; then
32201 XPSVersion='unknown'
32202fi
32203if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032205$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032207$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032209$as_echo "" >&6; }
32210 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032212$as_echo_n "checking for xps color device... " >&6; }
32213 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32214 :
32215 else
32216 XPSColorDevice=ppmraw
32217 fi
cristy8b350f62009-11-15 23:12:43 +000032218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032219$as_echo "$XPSColorDevice" >&6; }
32220
32221 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032223$as_echo_n "checking for xps CMYK device... " >&6; }
32224 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32225 :
32226 else
32227 XPSCMYKDevice=$XPSColorDevice
32228 fi
cristy8b350f62009-11-15 23:12:43 +000032229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032230$as_echo "$XPSCMYKDevice" >&6; }
32231
32232 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032234$as_echo_n "checking for xps mono device... " >&6; }
32235 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32236 :
32237 else
32238 XPSMonoDevice=$XPSColorDevice
32239 fi
cristy8b350f62009-11-15 23:12:43 +000032240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032241$as_echo "$XPSMonoDevice" >&6; }
32242fi
32243
32244
32245
32246
32247
32248
32249#
32250# Ghostscript related configuration.
32251#
32252if test "$have_png" = 'yes'; then
32253 GSAlphaDevice=pngalpha
32254else
32255 GSAlphaDevice=pnmraw
32256fi
32257GSColorDevice=pnmraw
32258GSCMYKDevice=pam
32259GSMonoDevice=pbmraw
32260GSPDFDevice=pdfwrite
32261GSPSDevice=pswrite
32262GSEPSDevice=epswrite
32263GSVersion='unknown'
32264if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032266$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032268$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032270$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032272$as_echo_n "checking for Ghostscript version... " >&6; }
32273 if GSVersion=`$PSDelegate --version`; then
32274 :
32275 else
32276 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32277 fi
cristy8b350f62009-11-15 23:12:43 +000032278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032279$as_echo "$GSVersion" >&6; }
32280
32281 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032283$as_echo_n "checking for gs alpha device... " >&6; }
32284 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32285 :
32286 else
32287 GSAlphaDevice=pnmraw
32288 fi
cristy8b350f62009-11-15 23:12:43 +000032289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032290$as_echo "$GSAlphaDevice" >&6; }
32291
32292 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032294$as_echo_n "checking for gs color device... " >&6; }
32295 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32296 :
32297 else
32298 GSColorDevice=pnmraw
32299 fi
cristy8b350f62009-11-15 23:12:43 +000032300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032301$as_echo "$GSColorDevice" >&6; }
32302
32303 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032305$as_echo_n "checking for gs CMYK device... " >&6; }
32306 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32307 :
32308 else
32309 GSCMYKDevice=bmpsep8
32310 fi
cristy8b350f62009-11-15 23:12:43 +000032311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032312$as_echo "$GSCMYKDevice" >&6; }
32313
32314 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032316$as_echo_n "checking for gs mono device... " >&6; }
32317 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32318 :
32319 else
32320 GSMonoDevice=$GSColorDevice
32321 fi
cristy8b350f62009-11-15 23:12:43 +000032322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032323$as_echo "$GSMonoDevice" >&6; }
32324
32325 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000032326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032327$as_echo_n "checking for gs PDF writing device... " >&6; }
32328 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32329 :
32330 else
32331 GSPDFDevice=nodevice
32332 fi
cristy8b350f62009-11-15 23:12:43 +000032333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032334$as_echo "$GSPDFDevice" >&6; }
32335
32336 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000032337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032338$as_echo_n "checking for gs PS writing device... " >&6; }
32339 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32340 :
32341 else
32342 GSPSDevice=nodevice
32343 fi
cristy8b350f62009-11-15 23:12:43 +000032344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032345$as_echo "$GSPSDevice" >&6; }
32346
32347 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000032348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032349$as_echo_n "checking for gs EPS writing device... " >&6; }
32350 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32351 :
32352 else
32353 GSEPSDevice=nodevice
32354 fi
cristy8b350f62009-11-15 23:12:43 +000032355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032356$as_echo "$GSEPSDevice" >&6; }
32357fi
32358
32359
32360
32361
32362
32363
32364
32365
32366
32367
32368#
32369# PerlMagick-related configuration
32370#
32371
32372# Look for PERL if PerlMagick requested
32373# If name/path of desired PERL interpreter is specified, look for that one first
32374have_perl='no'
32375if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000032376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032377$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032379$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032381$as_echo "" >&6; }
32382 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032384$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032385if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032386 $as_echo_n "(cached) " >&6
32387else
32388 ac_cv_path_PERL="$with_perl"
32389fi
cristy8b350f62009-11-15 23:12:43 +000032390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032391$as_echo "$ac_cv_path_PERL" >&6; };
32392 PERL=$ac_cv_path_PERL
32393 have_perl="$ac_cv_path_PERL"
32394 else
32395 for ac_prog in perl perl5
32396do
32397 # Extract the first word of "$ac_prog", so it can be a program name with args.
32398set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032400$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032401if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032402 $as_echo_n "(cached) " >&6
32403else
32404 case $PERL in
32405 [\\/]* | ?:[\\/]*)
32406 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32407 ;;
32408 *)
32409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32410for as_dir in $PATH
32411do
32412 IFS=$as_save_IFS
32413 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032414 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32416 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032418 break 2
32419 fi
32420done
cristy8b350f62009-11-15 23:12:43 +000032421 done
cristy3ed852e2009-09-05 21:47:34 +000032422IFS=$as_save_IFS
32423
32424 ;;
32425esac
32426fi
32427PERL=$ac_cv_path_PERL
32428if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032430$as_echo "$PERL" >&6; }
32431else
cristy8b350f62009-11-15 23:12:43 +000032432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032433$as_echo "no" >&6; }
32434fi
32435
32436
32437 test -n "$PERL" && break
32438done
32439 if test "$ac_cv_path_PERL"; then
32440 have_perl="$ac_cv_path_PERL"
32441 fi
32442 fi
32443fi
32444
cristy949301e2010-01-06 01:38:40 +000032445if test "$with_perl" != 'yes' ; then
32446 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32447fi
32448
32449PERL_SUPPORTS_DESTDIR='no'
32450
cristy3ed852e2009-09-05 21:47:34 +000032451with_perl_static='no'
32452with_perl_dynamic='no'
32453if test "$have_perl" != 'no'; then
32454 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32455 with_perl_static='yes'
32456 fi
32457 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32458 with_perl_dynamic='yes'
32459 fi
32460 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy964cb7f2010-04-25 23:18:00 +000032461
32462
32463
32464
32465 if test -n "$PERL"; then :
32466
32467 ax_perl_version="5.8.1"
32468
32469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32470$as_echo_n "checking for perl version... " >&6; }
32471
32472 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32473
32474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32475$as_echo "$perl_version" >&6; }
32476
32477 PERL_VERSION=$perl_version
32478
32479
32480
32481
32482
32483 # Used to indicate true or false condition
32484 ax_compare_version=false
32485
32486 # Convert the two version strings to be compared into a format that
32487 # allows a simple string comparison. The end result is that a version
32488 # string of the form 1.12.5-r617 will be converted to the form
32489 # 0001001200050617. In other words, each number is zero padded to four
32490 # digits, and non digits are removed.
32491
32492 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32493 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32494 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32495 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32496 -e 's/[^0-9]//g'`
32497
32498
32499 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32500 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32501 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32502 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32503 -e 's/[^0-9]//g'`
32504
32505
32506 ax_compare_version=`echo "x$ax_compare_version_A
32507x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32508
32509
32510
32511 if test "$ax_compare_version" = "true" ; then
32512
32513 :
32514 PERL_SUPPORTS_DESTDIR='yes'
32515
32516 else
32517 :
32518 PERL_SUPPORTS_DESTDIR='no'
32519
cristy3ed852e2009-09-05 21:47:34 +000032520 fi
cristy3ed852e2009-09-05 21:47:34 +000032521
cristy964cb7f2010-04-25 23:18:00 +000032522
cristy3ed852e2009-09-05 21:47:34 +000032523else
cristy3ed852e2009-09-05 21:47:34 +000032524
cristy964cb7f2010-04-25 23:18:00 +000032525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32526$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32527 PERL_SUPPORTS_DESTDIR='no'
cristy3ed852e2009-09-05 21:47:34 +000032528
32529fi
32530
cristy3ed852e2009-09-05 21:47:34 +000032531fi
32532 if test "$have_perl" != 'no'; then
32533 WITH_PERL_TRUE=
32534 WITH_PERL_FALSE='#'
32535else
32536 WITH_PERL_TRUE='#'
32537 WITH_PERL_FALSE=
32538fi
32539
32540 if test $with_perl_static = 'yes'; then
32541 WITH_PERL_STATIC_TRUE=
32542 WITH_PERL_STATIC_FALSE='#'
32543else
32544 WITH_PERL_STATIC_TRUE='#'
32545 WITH_PERL_STATIC_FALSE=
32546fi
32547
32548 if test $with_perl_dynamic = 'yes'; then
32549 WITH_PERL_DYNAMIC_TRUE=
32550 WITH_PERL_DYNAMIC_FALSE='#'
32551else
32552 WITH_PERL_DYNAMIC_TRUE='#'
32553 WITH_PERL_DYNAMIC_FALSE=
32554fi
32555
32556
32557
32558# Determine path to pick up MagickCore library from for use with building PerlMagick
32559MAGICKCORE_PATH="${LIB_DIR}"
32560if test $with_perl_static = 'yes'; then
32561 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32562 libtool_objdir=$objdir
32563
32564 # Linker search path to library, followed by -lMagickCore
32565 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32566fi
32567
32568
32569# Create a simple string containing format names for all delegate libraries
32570DELEGATES=''
32571if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32572if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32573if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32574if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32575if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32576if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32577if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32578if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32579if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32580if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32581if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32582if test "$have_jpeg" = 'yes'; then
32583 DELEGATES="$DELEGATES jpeg";
32584 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32585fi
32586if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000032587if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000032588if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32589if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32590if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32591if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32592if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32593if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32594if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32595if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32596if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32597if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32598if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32599
32600
32601
32602#
32603# Handle special compiler flags
32604#
32605
32606# Add '-p' if prof source profiling support enabled
32607if test "$enable_prof" = 'yes'; then
32608 CFLAGS="-p $CFLAGS"
32609 CXXFLAGS="-p $CXXFLAGS"
32610 LDFLAGS="-p $LDFLAGS"
32611fi
32612
32613# Add '-pg' if gprof source profiling support enabled
32614if test "$enable_gprof" = 'yes'; then
32615 CFLAGS="-pg $CFLAGS"
32616 CXXFLAGS="-pg $CXXFLAGS"
32617 LDFLAGS="-pg $LDFLAGS"
32618fi
32619
32620# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32621# This is a gcc-specific feature
32622if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032624$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032625if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032626 $as_echo_n "(cached) " >&6
32627else
32628 ac_check_lib_save_LIBS=$LIBS
32629LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032631/* end confdefs.h. */
32632
32633/* Override any GCC internal prototype to avoid an error.
32634 Use char because int might match the return type of a GCC
32635 builtin and then its argument prototype would still apply. */
32636#ifdef __cplusplus
32637extern "C"
32638#endif
32639char _gcov_init ();
32640int
32641main ()
32642{
32643return _gcov_init ();
32644 ;
32645 return 0;
32646}
32647_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032648if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032649 ac_cv_lib_gcov__gcov_init=yes
32650else
cristy8b350f62009-11-15 23:12:43 +000032651 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032652fi
cristy8b350f62009-11-15 23:12:43 +000032653rm -f core conftest.err conftest.$ac_objext \
32654 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032655LIBS=$ac_check_lib_save_LIBS
32656fi
cristy8b350f62009-11-15 23:12:43 +000032657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032658$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032659if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032660 cat >>confdefs.h <<_ACEOF
32661#define HAVE_LIBGCOV 1
32662_ACEOF
32663
32664 LIBS="-lgcov $LIBS"
32665
32666fi
32667
cristy8b350f62009-11-15 23:12:43 +000032668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032669$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032670if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032671 $as_echo_n "(cached) " >&6
32672else
32673 ac_check_lib_save_LIBS=$LIBS
32674LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032676/* end confdefs.h. */
32677
32678/* Override any GCC internal prototype to avoid an error.
32679 Use char because int might match the return type of a GCC
32680 builtin and then its argument prototype would still apply. */
32681#ifdef __cplusplus
32682extern "C"
32683#endif
32684char __gcov_init ();
32685int
32686main ()
32687{
32688return __gcov_init ();
32689 ;
32690 return 0;
32691}
32692_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032693if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032694 ac_cv_lib_gcov___gcov_init=yes
32695else
cristy8b350f62009-11-15 23:12:43 +000032696 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032697fi
cristy8b350f62009-11-15 23:12:43 +000032698rm -f core conftest.err conftest.$ac_objext \
32699 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032700LIBS=$ac_check_lib_save_LIBS
32701fi
cristy8b350f62009-11-15 23:12:43 +000032702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032703$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032704if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032705 cat >>confdefs.h <<_ACEOF
32706#define HAVE_LIBGCOV 1
32707_ACEOF
32708
32709 LIBS="-lgcov $LIBS"
32710
32711fi
32712
32713 case "$target_os" in
32714 darwin*)
32715 OSX_GCOV_LDFLAG="-Wl,-single_module"
32716 ;;
32717 *)
32718 OSX_GCOV_LDFLAG=""
32719 ;;
32720 esac
32721
32722 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32723 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32724 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32725fi
32726
32727#
32728# Build library dependency list for libMagickCore
32729#
32730
32731MAGICK_LIBLTDL='' # Libltdl for build
32732MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32733MAGICK_LTDLDEPS='' # extra libltdl dependencies
32734if test "$with_ltdl" != 'no'
32735then
32736 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32737 MAGICK_API_LIBLTDL='-lltdl'
32738 fi
32739 MAGICK_LIBLTDL=${LIBLTDL}
32740 MAGICK_LTDLDEPS=${LTDLDEPS}
32741fi
32742
32743
32744
32745if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000032746 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 +000032747else
cristy2e8b51d2009-10-17 18:26:15 +000032748 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 +000032749fi
32750
32751
32752#
32753# Remove extraneous spaces from output variables (asthetic)
32754#
32755X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32756X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32757X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32758X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32759
32760CC=`echo $CC | sed -e 's/ */ /g'`
32761CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32762CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32763CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32764DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32765DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32766LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32767TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32768MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32769#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32770
32771# Pass only user-provided LIBS as "global" libraries
32772LIBS=$USER_LIBS
32773
32774#AC_SUBST(CPPFLAGS)
32775
32776#AC_SUBST(LDFLAGS)
32777#AC_SUBST(X_PRE_LIBS)
32778#AC_SUBST(X_LIBS)
32779#AC_SUBST(X_EXTRA_LIBS)
32780
32781MAGICK_CFLAGS=$CFLAGS
32782MAGICK_CXXFLAGS="$CXXFLAGS"
32783MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32784MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32785MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32786MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32787
32788
32789
32790
32791
32792
32793
32794
cristyfd9dcd42010-08-08 18:07:02 +000032795
cristy3ed852e2009-09-05 21:47:34 +000032796# Set configured scripts to executable.
32797ac_config_commands="$ac_config_commands default"
32798
32799ac_config_commands="$ac_config_commands MagickCore-config.in"
32800
32801ac_config_commands="$ac_config_commands Magick-config.in"
32802
32803ac_config_commands="$ac_config_commands MagickWand-config.in"
32804
32805ac_config_commands="$ac_config_commands Wand-config.in"
32806
32807ac_config_commands="$ac_config_commands Magick++-config.in"
32808
32809ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32810
32811
cristy8b350f62009-11-15 23:12:43 +000032812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032813$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032815$as_echo "Update ImageMagick configuration" >&6; }
32816cat >confcache <<\_ACEOF
32817# This file is a shell script that caches the results of configure
32818# tests run on this system so they can be shared between configure
32819# scripts and configure runs, see configure's option --config-cache.
32820# It is not useful on other systems. If it contains results you don't
32821# want to keep, you may remove or edit it.
32822#
32823# config.status only pays attention to the cache file if you give it
32824# the --recheck option to rerun configure.
32825#
32826# `ac_cv_env_foo' variables (set or unset) will be overridden when
32827# loading this file, other *unset* `ac_cv_foo' will be assigned the
32828# following values.
32829
32830_ACEOF
32831
32832# The following way of writing the cache mishandles newlines in values,
32833# but we know of no workaround that is simple, portable, and efficient.
32834# So, we kill variables containing newlines.
32835# Ultrix sh set writes to stderr and can't be redirected directly,
32836# and sets the high bit in the cache file unless we assign to the vars.
32837(
32838 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32839 eval ac_val=\$$ac_var
32840 case $ac_val in #(
32841 *${as_nl}*)
32842 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032843 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032844$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32845 esac
32846 case $ac_var in #(
32847 _ | IFS | as_nl) ;; #(
32848 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032849 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032850 esac ;;
32851 esac
32852 done
32853
32854 (set) 2>&1 |
32855 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32856 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032857 # `set' does not quote correctly, so add quotes: double-quote
32858 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032859 sed -n \
32860 "s/'/'\\\\''/g;
32861 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32862 ;; #(
32863 *)
32864 # `set' quotes correctly as required by POSIX, so do not add quotes.
32865 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32866 ;;
32867 esac |
32868 sort
32869) |
32870 sed '
32871 /^ac_cv_env_/b end
32872 t clear
32873 :clear
32874 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32875 t end
32876 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32877 :end' >>confcache
32878if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32879 if test -w "$cache_file"; then
32880 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032881 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032882$as_echo "$as_me: updating cache $cache_file" >&6;}
32883 cat confcache >$cache_file
32884 else
cristy8b350f62009-11-15 23:12:43 +000032885 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032886$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32887 fi
32888fi
32889rm -f confcache
32890
32891test "x$prefix" = xNONE && prefix=$ac_default_prefix
32892# Let make expand exec_prefix.
32893test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32894
32895DEFS=-DHAVE_CONFIG_H
32896
32897ac_libobjs=
32898ac_ltlibobjs=
32899for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32900 # 1. Remove the extension, and $U if already installed.
32901 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32902 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32903 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32904 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032905 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32906 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032907done
32908LIBOBJS=$ac_libobjs
32909
32910LTLIBOBJS=$ac_ltlibobjs
32911
32912
32913 if test -n "$EXEEXT"; then
32914 am__EXEEXT_TRUE=
32915 am__EXEEXT_FALSE='#'
32916else
32917 am__EXEEXT_TRUE='#'
32918 am__EXEEXT_FALSE=
32919fi
32920
32921if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032922 as_fn_error "conditional \"AMDEP\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032923Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032924fi
32925if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032926 as_fn_error "conditional \"am__fastdepCC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032927Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032928fi
cristya0b81c32010-01-22 02:54:33 +000032929if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032930 as_fn_error "conditional \"am__fastdepCC\" was never defined.
cristya0b81c32010-01-22 02:54:33 +000032931Usually this means the macro was only invoked conditionally." "$LINENO" 5
32932fi
cristy3ed852e2009-09-05 21:47:34 +000032933if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032934 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032935Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032936fi
32937if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032938 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032939Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032940fi
32941if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032942 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032943Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032944fi
32945if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032946 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032947Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032948fi
32949if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032950 as_fn_error "conditional \"USING_CL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032951Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032952fi
cristyd0bd44a2010-09-24 12:38:11 +000032953if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32954 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32955Usually this means the macro was only invoked conditionally." "$LINENO" 5
32956fi
cristy3ed852e2009-09-05 21:47:34 +000032957if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032958 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032959Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032960fi
32961if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032962 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032963Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032964fi
32965LT_CONFIG_H=config/config.h
32966
32967 _ltdl_libobjs=
32968 _ltdl_ltlibobjs=
32969 if test -n "$_LT_LIBOBJS"; then
32970 # Remove the extension.
32971 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32972 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32973 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32974 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32975 done
32976 fi
32977 ltdl_LIBOBJS=$_ltdl_libobjs
32978
32979 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32980
32981
cristyfa112112010-01-04 17:48:07 +000032982if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032983 as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
cristyfa112112010-01-04 17:48:07 +000032984Usually this means the macro was only invoked conditionally." "$LINENO" 5
32985fi
cristy3ed852e2009-09-05 21:47:34 +000032986if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032987 as_fn_error "conditional \"WITH_MODULES\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032988Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032989fi
32990if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032991 as_fn_error "conditional \"WITH_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032992Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032993fi
32994if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000032995 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032996Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032997fi
32998
32999if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033000 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033001Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033002fi
33003if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033004 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033005Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033006fi
33007if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033008 as_fn_error "conditional \"HasUMEM\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033009Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033010fi
33011if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033012 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033013Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033014fi
33015if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033016 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033017Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033018fi
33019if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033020 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033021Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033022fi
33023if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033024 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033025Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033026fi
33027if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033028 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033029Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033030fi
33031if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033032 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033033Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033034fi
33035if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033036 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033037Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033038fi
33039if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033040 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033041Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033042fi
33043if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033044 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033045Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033046fi
33047if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033048 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033049Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033050fi
33051if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033052 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033053Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033054fi
33055if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033056 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033057Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033058fi
33059if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033060 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033061Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033062fi
33063if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033064 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033065Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033066fi
33067if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033068 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033069Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033070fi
33071if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033072 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033073Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033074fi
33075if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033076 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033077Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033078fi
33079if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033080 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033081Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033082fi
33083if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033084 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033085Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033086fi
33087if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033088 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033089Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033090fi
33091if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033092 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033093Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033094fi
33095if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033096 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033097Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033098fi
33099if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033100 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033101Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033102fi
33103if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033104 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033105Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033106fi
33107if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033108 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033109Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033110fi
33111if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033112 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033113Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033114fi
33115if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033116 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033117Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033118fi
33119if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033120 as_fn_error "conditional \"WITH_PERL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033121Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033122fi
33123if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033124 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033125Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033126fi
33127if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristyf6fcb5d2010-09-24 01:19:13 +000033128 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033129Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033130fi
33131
33132: ${CONFIG_STATUS=./config.status}
33133ac_write_fail=0
33134ac_clean_files_save=$ac_clean_files
33135ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000033136{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000033137$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000033138as_write_fail=0
33139cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033140#! $SHELL
33141# Generated by $as_me.
33142# Run this file to recreate the current configuration.
33143# Compiler output produced by configure, useful for debugging
33144# configure, is in config.log if it exists.
33145
33146debug=false
33147ac_cs_recheck=false
33148ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000033149
cristy8b350f62009-11-15 23:12:43 +000033150SHELL=\${CONFIG_SHELL-$SHELL}
33151export SHELL
33152_ASEOF
33153cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33154## -------------------- ##
33155## M4sh Initialization. ##
33156## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000033157
33158# Be more Bourne compatible
33159DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000033160if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000033161 emulate sh
33162 NULLCMD=:
33163 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33164 # is contrary to our usage. Disable this feature.
33165 alias -g '${1+"$@"}'='"$@"'
33166 setopt NO_GLOB_SUBST
33167else
cristy8b350f62009-11-15 23:12:43 +000033168 case `(set -o) 2>/dev/null` in #(
33169 *posix*) :
33170 set -o posix ;; #(
33171 *) :
33172 ;;
cristy3ed852e2009-09-05 21:47:34 +000033173esac
cristy3ed852e2009-09-05 21:47:34 +000033174fi
33175
33176
cristy3ed852e2009-09-05 21:47:34 +000033177as_nl='
33178'
33179export as_nl
33180# Printing a long string crashes Solaris 7 /usr/bin/printf.
33181as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33182as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33183as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000033184# Prefer a ksh shell builtin over an external printf program on Solaris,
33185# but without wasting forks for bash or zsh.
33186if test -z "$BASH_VERSION$ZSH_VERSION" \
33187 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33188 as_echo='print -r --'
33189 as_echo_n='print -rn --'
33190elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000033191 as_echo='printf %s\n'
33192 as_echo_n='printf %s'
33193else
33194 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33195 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33196 as_echo_n='/usr/ucb/echo -n'
33197 else
33198 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33199 as_echo_n_body='eval
33200 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000033201 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000033202 *"$as_nl"*)
33203 expr "X$arg" : "X\\(.*\\)$as_nl";
33204 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33205 esac;
33206 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33207 '
33208 export as_echo_n_body
33209 as_echo_n='sh -c $as_echo_n_body as_echo'
33210 fi
33211 export as_echo_body
33212 as_echo='sh -c $as_echo_body as_echo'
33213fi
33214
33215# The user is always right.
33216if test "${PATH_SEPARATOR+set}" != set; then
33217 PATH_SEPARATOR=:
33218 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33219 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33220 PATH_SEPARATOR=';'
33221 }
33222fi
33223
cristy3ed852e2009-09-05 21:47:34 +000033224
33225# IFS
33226# We need space, tab and new line, in precisely that order. Quoting is
33227# there to prevent editors from complaining about space-tab.
33228# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33229# splitting by setting IFS to empty value.)
33230IFS=" "" $as_nl"
33231
33232# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000033233case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033234 *[\\/]* ) as_myself=$0 ;;
33235 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33236for as_dir in $PATH
33237do
33238 IFS=$as_save_IFS
33239 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033240 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33241 done
cristy3ed852e2009-09-05 21:47:34 +000033242IFS=$as_save_IFS
33243
33244 ;;
33245esac
33246# We did not find ourselves, most probably we were run as `sh COMMAND'
33247# in which case we are not to be found in the path.
33248if test "x$as_myself" = x; then
33249 as_myself=$0
33250fi
33251if test ! -f "$as_myself"; then
33252 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033253 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033254fi
33255
cristy8b350f62009-11-15 23:12:43 +000033256# Unset variables that we do not need and which cause bugs (e.g. in
33257# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33258# suppresses any "Segmentation fault" message there. '((' could
33259# trigger a bug in pdksh 5.2.14.
33260for as_var in BASH_ENV ENV MAIL MAILPATH
33261do eval test x\${$as_var+set} = xset \
33262 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033263done
33264PS1='$ '
33265PS2='> '
33266PS4='+ '
33267
33268# NLS nuisances.
33269LC_ALL=C
33270export LC_ALL
33271LANGUAGE=C
33272export LANGUAGE
33273
cristy8b350f62009-11-15 23:12:43 +000033274# CDPATH.
33275(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33276
33277
cristyf6fcb5d2010-09-24 01:19:13 +000033278# as_fn_error ERROR [LINENO LOG_FD]
33279# ---------------------------------
cristy8b350f62009-11-15 23:12:43 +000033280# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33281# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristyf6fcb5d2010-09-24 01:19:13 +000033282# script with status $?, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000033283as_fn_error ()
33284{
cristyf6fcb5d2010-09-24 01:19:13 +000033285 as_status=$?; test $as_status -eq 0 && as_status=1
33286 if test "$3"; then
33287 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33288 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
cristy8b350f62009-11-15 23:12:43 +000033289 fi
cristyf6fcb5d2010-09-24 01:19:13 +000033290 $as_echo "$as_me: error: $1" >&2
cristy8b350f62009-11-15 23:12:43 +000033291 as_fn_exit $as_status
33292} # as_fn_error
33293
33294
33295# as_fn_set_status STATUS
33296# -----------------------
33297# Set $? to STATUS, without forking.
33298as_fn_set_status ()
33299{
33300 return $1
33301} # as_fn_set_status
33302
33303# as_fn_exit STATUS
33304# -----------------
33305# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33306as_fn_exit ()
33307{
33308 set +e
33309 as_fn_set_status $1
33310 exit $1
33311} # as_fn_exit
33312
33313# as_fn_unset VAR
33314# ---------------
33315# Portably unset VAR.
33316as_fn_unset ()
33317{
33318 { eval $1=; unset $1;}
33319}
33320as_unset=as_fn_unset
33321# as_fn_append VAR VALUE
33322# ----------------------
33323# Append the text in VALUE to the end of the definition contained in VAR. Take
33324# advantage of any shell optimizations that allow amortized linear growth over
33325# repeated appends, instead of the typical quadratic growth present in naive
33326# implementations.
33327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33328 eval 'as_fn_append ()
33329 {
33330 eval $1+=\$2
33331 }'
33332else
33333 as_fn_append ()
33334 {
33335 eval $1=\$$1\$2
33336 }
33337fi # as_fn_append
33338
33339# as_fn_arith ARG...
33340# ------------------
33341# Perform arithmetic evaluation on the ARGs, and store the result in the
33342# global $as_val. Take advantage of shells that can avoid forks. The arguments
33343# must be portable across $(()) and expr.
33344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33345 eval 'as_fn_arith ()
33346 {
33347 as_val=$(( $* ))
33348 }'
33349else
33350 as_fn_arith ()
33351 {
33352 as_val=`expr "$@" || test $? -eq 1`
33353 }
33354fi # as_fn_arith
33355
33356
cristy3ed852e2009-09-05 21:47:34 +000033357if expr a : '\(a\)' >/dev/null 2>&1 &&
33358 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33359 as_expr=expr
33360else
33361 as_expr=false
33362fi
33363
33364if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33365 as_basename=basename
33366else
33367 as_basename=false
33368fi
33369
cristy8b350f62009-11-15 23:12:43 +000033370if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33371 as_dirname=dirname
33372else
33373 as_dirname=false
33374fi
cristy3ed852e2009-09-05 21:47:34 +000033375
cristy3ed852e2009-09-05 21:47:34 +000033376as_me=`$as_basename -- "$0" ||
33377$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33378 X"$0" : 'X\(//\)$' \| \
33379 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33380$as_echo X/"$0" |
33381 sed '/^.*\/\([^/][^/]*\)\/*$/{
33382 s//\1/
33383 q
33384 }
33385 /^X\/\(\/\/\)$/{
33386 s//\1/
33387 q
33388 }
33389 /^X\/\(\/\).*/{
33390 s//\1/
33391 q
33392 }
33393 s/.*/./; q'`
33394
cristy8b350f62009-11-15 23:12:43 +000033395# Avoid depending upon Character Ranges.
33396as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33397as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33398as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33399as_cr_digits='0123456789'
33400as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000033401
33402ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000033403case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000033404-n*)
cristy8b350f62009-11-15 23:12:43 +000033405 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000033406 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000033407 xy) ECHO_C='\c';;
33408 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33409 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000033410 esac;;
33411*)
33412 ECHO_N='-n';;
33413esac
cristy3ed852e2009-09-05 21:47:34 +000033414
33415rm -f conf$$ conf$$.exe conf$$.file
33416if test -d conf$$.dir; then
33417 rm -f conf$$.dir/conf$$.file
33418else
33419 rm -f conf$$.dir
33420 mkdir conf$$.dir 2>/dev/null
33421fi
33422if (echo >conf$$.file) 2>/dev/null; then
33423 if ln -s conf$$.file conf$$ 2>/dev/null; then
33424 as_ln_s='ln -s'
33425 # ... but there are two gotchas:
33426 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33427 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33428 # In both cases, we have to default to `cp -p'.
33429 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33430 as_ln_s='cp -p'
33431 elif ln conf$$.file conf$$ 2>/dev/null; then
33432 as_ln_s=ln
33433 else
33434 as_ln_s='cp -p'
33435 fi
33436else
33437 as_ln_s='cp -p'
33438fi
33439rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33440rmdir conf$$.dir 2>/dev/null
33441
cristy8b350f62009-11-15 23:12:43 +000033442
33443# as_fn_mkdir_p
33444# -------------
33445# Create "$as_dir" as a directory, including parents if necessary.
33446as_fn_mkdir_p ()
33447{
33448
33449 case $as_dir in #(
33450 -*) as_dir=./$as_dir;;
33451 esac
33452 test -d "$as_dir" || eval $as_mkdir_p || {
33453 as_dirs=
33454 while :; do
33455 case $as_dir in #(
33456 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33457 *) as_qdir=$as_dir;;
33458 esac
33459 as_dirs="'$as_qdir' $as_dirs"
33460 as_dir=`$as_dirname -- "$as_dir" ||
33461$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33462 X"$as_dir" : 'X\(//\)[^/]' \| \
33463 X"$as_dir" : 'X\(//\)$' \| \
33464 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33465$as_echo X"$as_dir" |
33466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33467 s//\1/
33468 q
33469 }
33470 /^X\(\/\/\)[^/].*/{
33471 s//\1/
33472 q
33473 }
33474 /^X\(\/\/\)$/{
33475 s//\1/
33476 q
33477 }
33478 /^X\(\/\).*/{
33479 s//\1/
33480 q
33481 }
33482 s/.*/./; q'`
33483 test -d "$as_dir" && break
33484 done
33485 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristyf6fcb5d2010-09-24 01:19:13 +000033486 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000033487
33488
33489} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033490if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033491 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000033492else
33493 test -d ./-p && rmdir ./-p
33494 as_mkdir_p=false
33495fi
33496
33497if test -x / >/dev/null 2>&1; then
33498 as_test_x='test -x'
33499else
33500 if ls -dL / >/dev/null 2>&1; then
33501 as_ls_L_option=L
33502 else
33503 as_ls_L_option=
33504 fi
33505 as_test_x='
33506 eval sh -c '\''
33507 if test -d "$1"; then
33508 test -d "$1/.";
33509 else
cristy8b350f62009-11-15 23:12:43 +000033510 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000033511 -*)set "./$1";;
33512 esac;
cristy8b350f62009-11-15 23:12:43 +000033513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000033514 ???[sx]*):;;*)false;;esac;fi
33515 '\'' sh
33516 '
33517fi
33518as_executable_p=$as_test_x
33519
33520# Sed expression to map a string onto a valid CPP name.
33521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33522
33523# Sed expression to map a string onto a valid variable name.
33524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33525
33526
33527exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000033528## ----------------------------------- ##
33529## Main body of $CONFIG_STATUS script. ##
33530## ----------------------------------- ##
33531_ASEOF
33532test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033533
cristy8b350f62009-11-15 23:12:43 +000033534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33535# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000033536# report actual input values of CONFIG_FILES etc. instead of their
33537# values after options handling.
33538ac_log="
cristy56225732010-09-04 23:44:25 +000033539This file was extended by ImageMagick $as_me 6.6.4, which was
cristyf6fcb5d2010-09-24 01:19:13 +000033540generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000033541
33542 CONFIG_FILES = $CONFIG_FILES
33543 CONFIG_HEADERS = $CONFIG_HEADERS
33544 CONFIG_LINKS = $CONFIG_LINKS
33545 CONFIG_COMMANDS = $CONFIG_COMMANDS
33546 $ $0 $@
33547
33548on `(hostname || uname -n) 2>/dev/null | sed 1q`
33549"
33550
33551_ACEOF
33552
33553case $ac_config_files in *"
33554"*) set x $ac_config_files; shift; ac_config_files=$*;;
33555esac
33556
33557case $ac_config_headers in *"
33558"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33559esac
33560
33561
33562cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33563# Files that config.status was made for.
33564config_files="$ac_config_files"
33565config_headers="$ac_config_headers"
33566config_commands="$ac_config_commands"
33567
33568_ACEOF
33569
33570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33571ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000033572\`$as_me' instantiates files and other configuration actions
33573from templates according to the current configuration. Unless the files
33574and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000033575
cristy8b350f62009-11-15 23:12:43 +000033576Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000033577
33578 -h, --help print this help, then exit
33579 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000033580 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000033581 -q, --quiet, --silent
33582 do not print progress messages
33583 -d, --debug don't remove temporary files
33584 --recheck update $as_me by reconfiguring in the same conditions
33585 --file=FILE[:TEMPLATE]
33586 instantiate the configuration file FILE
33587 --header=FILE[:TEMPLATE]
33588 instantiate the configuration header FILE
33589
33590Configuration files:
33591$config_files
33592
33593Configuration headers:
33594$config_headers
33595
33596Configuration commands:
33597$config_commands
33598
cristy8b350f62009-11-15 23:12:43 +000033599Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000033600
33601_ACEOF
33602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000033603ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000033604ac_cs_version="\\
cristy56225732010-09-04 23:44:25 +000033605ImageMagick config.status 6.6.4
cristyf6fcb5d2010-09-24 01:19:13 +000033606configured by $0, generated by GNU Autoconf 2.65,
cristycd4c5312009-11-22 01:19:08 +000033607 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000033608
cristyf6fcb5d2010-09-24 01:19:13 +000033609Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033610This config.status script is free software; the Free Software Foundation
33611gives unlimited permission to copy, distribute and modify it."
33612
33613ac_pwd='$ac_pwd'
33614srcdir='$srcdir'
33615INSTALL='$INSTALL'
33616MKDIR_P='$MKDIR_P'
33617AWK='$AWK'
33618test -n "\$AWK" || AWK=awk
33619_ACEOF
33620
33621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33622# The default lists apply if the user does not specify any file.
33623ac_need_defaults=:
33624while test $# != 0
33625do
33626 case $1 in
33627 --*=*)
33628 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33629 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33630 ac_shift=:
33631 ;;
33632 *)
33633 ac_option=$1
33634 ac_optarg=$2
33635 ac_shift=shift
33636 ;;
33637 esac
33638
33639 case $ac_option in
33640 # Handling of the options.
33641 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33642 ac_cs_recheck=: ;;
33643 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33644 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000033645 --config | --confi | --conf | --con | --co | --c )
33646 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000033647 --debug | --debu | --deb | --de | --d | -d )
33648 debug=: ;;
33649 --file | --fil | --fi | --f )
33650 $ac_shift
33651 case $ac_optarg in
33652 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33653 esac
cristy8b350f62009-11-15 23:12:43 +000033654 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033655 ac_need_defaults=false;;
33656 --header | --heade | --head | --hea )
33657 $ac_shift
33658 case $ac_optarg in
33659 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33660 esac
cristy8b350f62009-11-15 23:12:43 +000033661 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033662 ac_need_defaults=false;;
33663 --he | --h)
33664 # Conflict between --help and --header
cristyf6fcb5d2010-09-24 01:19:13 +000033665 as_fn_error "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033666Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000033667 --help | --hel | -h )
33668 $as_echo "$ac_cs_usage"; exit ;;
33669 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33670 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33671 ac_cs_silent=: ;;
33672
33673 # This is an error.
cristyf6fcb5d2010-09-24 01:19:13 +000033674 -*) as_fn_error "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033675Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000033676
cristy8b350f62009-11-15 23:12:43 +000033677 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000033678 ac_need_defaults=false ;;
33679
33680 esac
33681 shift
33682done
33683
33684ac_configure_extra_args=
33685
33686if $ac_cs_silent; then
33687 exec 6>/dev/null
33688 ac_configure_extra_args="$ac_configure_extra_args --silent"
33689fi
33690
33691_ACEOF
33692cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33693if \$ac_cs_recheck; then
33694 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33695 shift
33696 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33697 CONFIG_SHELL='$SHELL'
33698 export CONFIG_SHELL
33699 exec "\$@"
33700fi
33701
33702_ACEOF
33703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33704exec 5>>config.log
33705{
33706 echo
33707 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33708## Running $as_me. ##
33709_ASBOX
33710 $as_echo "$ac_log"
33711} >&5
33712
33713_ACEOF
33714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33715#
33716# INIT-COMMANDS
33717#
33718PACKAGE="$PACKAGE"
33719AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33720
33721
33722# The HP-UX ksh and POSIX shell print the target directory to stdout
33723# if CDPATH is set.
33724(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33725
33726sed_quote_subst='$sed_quote_subst'
33727double_quote_subst='$double_quote_subst'
33728delay_variable_subst='$delay_variable_subst'
cristyd0bd44a2010-09-24 12:38:11 +000033729SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
33730Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
33731GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
33732EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
33733FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
33734LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
33735macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
33736macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
33737AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
33738DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33739OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
33740enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
33741enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
33742pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
33743enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
33744host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
33745host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
33746host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
33747build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
33748build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
33749build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
33750NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
33751LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
33752max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
33753ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
33754exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
33755lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
33756lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
33757lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
33758reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
33759reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33760deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
33761file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
33762AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
33763AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33764STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
33765RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
33766old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33767old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33768old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33769CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
33770CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33771compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
33772GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
33773lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
33774lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
33775lt_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"`'
33776lt_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"`'
33777objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
33778SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
33779ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
33780MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
33781lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
33782lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
33783lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
33784lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
33785lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
33786need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
33787DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
33788NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
33789LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
33790OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33791OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
33792libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
33793shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33794extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33795archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
33796enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
33797export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33798whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33799compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
33800old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33801old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33802archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33803archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33804module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33805module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33806with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
33807allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33808no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33809hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33810hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
33811hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
33812hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
33813hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
33814hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
33815hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33816hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
33817inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
33818link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
33819fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
33820always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
33821export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33822exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33823include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33824prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33825file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
33826variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
33827need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33828need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
33829version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
33830runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33831shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33832shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
33833libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33834library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
33835soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33836postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33837postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33838finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33839finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
33840hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
33841sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33842sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33843hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
33844enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
33845enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
33846enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
33847old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
33848striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
33849compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
33850predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33851postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33852predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
33853postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
33854compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
33855LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33856old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33857compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33858GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33859lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33860lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33861lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33862lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33863lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33864archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33865enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33866export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33867whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33868compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33869old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33870old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33871archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33872archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33873module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33874module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33875with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33876allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33877no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33878hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33879hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33880hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33881hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33882hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33883hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33884hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33885hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33886inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33887link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33888fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33889always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33890export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33891exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33892include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33893prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33894file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33895hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33896compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33897predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33898postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33899predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33900postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33901compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000033902
33903LTCC='$LTCC'
33904LTCFLAGS='$LTCFLAGS'
33905compiler='$compiler_DEFAULT'
33906
33907# Quote evaled strings.
33908for var in SED \
33909GREP \
33910EGREP \
33911FGREP \
33912LD \
33913NM \
33914LN_S \
33915lt_SP2NL \
33916lt_NL2SP \
33917reload_flag \
33918deplibs_check_method \
33919file_magic_cmd \
33920AR \
33921AR_FLAGS \
33922STRIP \
33923RANLIB \
33924CC \
33925CFLAGS \
33926compiler \
33927lt_cv_sys_global_symbol_pipe \
33928lt_cv_sys_global_symbol_to_cdecl \
33929lt_cv_sys_global_symbol_to_c_name_address \
33930lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyd0bd44a2010-09-24 12:38:11 +000033931SHELL \
33932ECHO \
cristy3ed852e2009-09-05 21:47:34 +000033933lt_prog_compiler_no_builtin_flag \
33934lt_prog_compiler_wl \
33935lt_prog_compiler_pic \
33936lt_prog_compiler_static \
33937lt_cv_prog_compiler_c_o \
33938need_locks \
33939DSYMUTIL \
33940NMEDIT \
33941LIPO \
33942OTOOL \
33943OTOOL64 \
33944shrext_cmds \
33945export_dynamic_flag_spec \
33946whole_archive_flag_spec \
33947compiler_needs_object \
33948with_gnu_ld \
33949allow_undefined_flag \
33950no_undefined_flag \
33951hardcode_libdir_flag_spec \
33952hardcode_libdir_flag_spec_ld \
33953hardcode_libdir_separator \
33954fix_srcfile_path \
33955exclude_expsyms \
33956include_expsyms \
33957file_list_spec \
33958variables_saved_for_relink \
33959libname_spec \
33960library_names_spec \
33961soname_spec \
33962finish_eval \
33963old_striplib \
33964striplib \
33965compiler_lib_search_dirs \
33966predep_objects \
33967postdep_objects \
33968predeps \
33969postdeps \
33970compiler_lib_search_path \
33971LD_CXX \
33972compiler_CXX \
33973lt_prog_compiler_no_builtin_flag_CXX \
33974lt_prog_compiler_wl_CXX \
33975lt_prog_compiler_pic_CXX \
33976lt_prog_compiler_static_CXX \
33977lt_cv_prog_compiler_c_o_CXX \
33978export_dynamic_flag_spec_CXX \
33979whole_archive_flag_spec_CXX \
33980compiler_needs_object_CXX \
33981with_gnu_ld_CXX \
33982allow_undefined_flag_CXX \
33983no_undefined_flag_CXX \
33984hardcode_libdir_flag_spec_CXX \
33985hardcode_libdir_flag_spec_ld_CXX \
33986hardcode_libdir_separator_CXX \
33987fix_srcfile_path_CXX \
33988exclude_expsyms_CXX \
33989include_expsyms_CXX \
33990file_list_spec_CXX \
33991compiler_lib_search_dirs_CXX \
33992predep_objects_CXX \
33993postdep_objects_CXX \
33994predeps_CXX \
33995postdeps_CXX \
33996compiler_lib_search_path_CXX; do
cristyd0bd44a2010-09-24 12:38:11 +000033997 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000033998 *[\\\\\\\`\\"\\\$]*)
cristyd0bd44a2010-09-24 12:38:11 +000033999 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000034000 ;;
34001 *)
34002 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34003 ;;
34004 esac
34005done
34006
34007# Double-quote double-evaled strings.
34008for var in reload_cmds \
34009old_postinstall_cmds \
34010old_postuninstall_cmds \
34011old_archive_cmds \
34012extract_expsyms_cmds \
34013old_archive_from_new_cmds \
34014old_archive_from_expsyms_cmds \
34015archive_cmds \
34016archive_expsym_cmds \
34017module_cmds \
34018module_expsym_cmds \
34019export_symbols_cmds \
34020prelink_cmds \
34021postinstall_cmds \
34022postuninstall_cmds \
34023finish_cmds \
34024sys_lib_search_path_spec \
34025sys_lib_dlsearch_path_spec \
34026old_archive_cmds_CXX \
34027old_archive_from_new_cmds_CXX \
34028old_archive_from_expsyms_cmds_CXX \
34029archive_cmds_CXX \
34030archive_expsym_cmds_CXX \
34031module_cmds_CXX \
34032module_expsym_cmds_CXX \
34033export_symbols_cmds_CXX \
34034prelink_cmds_CXX; do
cristyd0bd44a2010-09-24 12:38:11 +000034035 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000034036 *[\\\\\\\`\\"\\\$]*)
cristyd0bd44a2010-09-24 12:38:11 +000034037 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000034038 ;;
34039 *)
34040 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34041 ;;
34042 esac
34043done
34044
cristyd0bd44a2010-09-24 12:38:11 +000034045# Fix-up fallback echo if it was mangled by the above quoting rules.
34046case \$lt_ECHO in
34047*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
34048 ;;
34049esac
34050
cristy3ed852e2009-09-05 21:47:34 +000034051ac_aux_dir='$ac_aux_dir'
34052xsi_shell='$xsi_shell'
34053lt_shell_append='$lt_shell_append'
34054
34055# See if we are running on zsh, and set the options which allow our
34056# commands through without removal of \ escapes INIT.
34057if test -n "\${ZSH_VERSION+set}" ; then
34058 setopt NO_GLOB_SUBST
34059fi
34060
34061
34062 PACKAGE='$PACKAGE'
34063 VERSION='$VERSION'
34064 TIMESTAMP='$TIMESTAMP'
34065 RM='$RM'
34066 ofile='$ofile'
34067
34068
34069
34070
34071
34072
34073_ACEOF
34074
34075cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34076
34077# Handling of arguments.
34078for ac_config_target in $ac_config_targets
34079do
34080 case $ac_config_target in
34081 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
34082 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
34083 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
34084 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
34085 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
34086 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
34087 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000034088 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000034089 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
34090 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
34091 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
34092 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
34093 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
34094 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
34095 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
34096 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
34097 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
34098 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
34099 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
34100 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
34101 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34102 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
34103 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
34104 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
34105 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
34106 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
34107 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
34108 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
34109 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
34110 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
34111 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
34112 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
34113 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
34114 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
34115 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
34116 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
34117 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
34118 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
34119 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
34120 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
34121 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
34122 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34123 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34124 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34125 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
34126 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
34127 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
34128 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
34129 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
34130 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
34131
cristyf6fcb5d2010-09-24 01:19:13 +000034132 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034133 esac
34134done
34135
34136
34137# If the user did not use the arguments to specify the items to instantiate,
34138# then the envvar interface is used. Set only those that are not.
34139# We use the long form for the default assignment because of an extremely
34140# bizarre bug on SunOS 4.1.3.
34141if $ac_need_defaults; then
34142 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34143 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34144 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34145fi
34146
34147# Have a temporary directory for convenience. Make it in the build tree
34148# simply because there is no reason against having it here, and in addition,
34149# creating and moving files from /tmp can sometimes cause problems.
34150# Hook for its removal unless debugging.
34151# Note that there is a small window in which the directory will not be cleaned:
34152# after its creation but before its name has been assigned to `$tmp'.
34153$debug ||
34154{
34155 tmp=
34156 trap 'exit_status=$?
34157 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34158' 0
cristy8b350f62009-11-15 23:12:43 +000034159 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000034160}
34161# Create a (secure) tmp directory for tmp files.
34162
34163{
34164 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34165 test -n "$tmp" && test -d "$tmp"
34166} ||
34167{
34168 tmp=./conf$$-$RANDOM
34169 (umask 077 && mkdir "$tmp")
cristyf6fcb5d2010-09-24 01:19:13 +000034170} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034171
34172# Set up the scripts for CONFIG_FILES section.
34173# No need to generate them if there are no CONFIG_FILES.
34174# This happens for instance with `./config.status config.h'.
34175if test -n "$CONFIG_FILES"; then
34176
34177
cristy8b350f62009-11-15 23:12:43 +000034178ac_cr=`echo X | tr X '\015'`
34179# On cygwin, bash can eat \r inside `` if the user requested igncr.
34180# But we know of no other shell where ac_cr would be empty at this
34181# point, so we can use a bashism as a fallback.
34182if test "x$ac_cr" = x; then
34183 eval ac_cr=\$\'\\r\'
34184fi
cristy3ed852e2009-09-05 21:47:34 +000034185ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34186if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristyf6fcb5d2010-09-24 01:19:13 +000034187 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000034188else
34189 ac_cs_awk_cr=$ac_cr
34190fi
34191
34192echo 'BEGIN {' >"$tmp/subs1.awk" &&
34193_ACEOF
34194
34195
34196{
34197 echo "cat >conf$$subs.awk <<_ACEOF" &&
34198 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34199 echo "_ACEOF"
34200} >conf$$subs.sh ||
cristyf6fcb5d2010-09-24 01:19:13 +000034201 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
34202ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
cristy3ed852e2009-09-05 21:47:34 +000034203ac_delim='%!_!# '
34204for ac_last_try in false false false false false :; do
34205 . ./conf$$subs.sh ||
cristyf6fcb5d2010-09-24 01:19:13 +000034206 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034207
34208 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34209 if test $ac_delim_n = $ac_delim_num; then
34210 break
34211 elif $ac_last_try; then
cristyf6fcb5d2010-09-24 01:19:13 +000034212 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034213 else
34214 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34215 fi
34216done
34217rm -f conf$$subs.sh
34218
34219cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34220cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34221_ACEOF
34222sed -n '
34223h
34224s/^/S["/; s/!.*/"]=/
34225p
34226g
34227s/^[^!]*!//
34228:repl
34229t repl
34230s/'"$ac_delim"'$//
34231t delim
34232:nl
34233h
cristycd4c5312009-11-22 01:19:08 +000034234s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034235t more1
34236s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34237p
34238n
34239b repl
34240:more1
34241s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34242p
34243g
34244s/.\{148\}//
34245t nl
34246:delim
34247h
cristycd4c5312009-11-22 01:19:08 +000034248s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034249t more2
34250s/["\\]/\\&/g; s/^/"/; s/$/"/
34251p
34252b
34253:more2
34254s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34255p
34256g
34257s/.\{148\}//
34258t delim
34259' <conf$$subs.awk | sed '
34260/^[^""]/{
34261 N
34262 s/\n//
34263}
34264' >>$CONFIG_STATUS || ac_write_fail=1
34265rm -f conf$$subs.awk
34266cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34267_ACAWK
34268cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34269 for (key in S) S_is_set[key] = 1
34270 FS = ""
34271
34272}
34273{
34274 line = $ 0
34275 nfields = split(line, field, "@")
34276 substed = 0
34277 len = length(field[1])
34278 for (i = 2; i < nfields; i++) {
34279 key = field[i]
34280 keylen = length(key)
34281 if (S_is_set[key]) {
34282 value = S[key]
34283 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34284 len += length(value) + length(field[++i])
34285 substed = 1
34286 } else
34287 len += 1 + keylen
34288 }
34289
34290 print line
34291}
34292
34293_ACAWK
34294_ACEOF
34295cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34296if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34297 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34298else
34299 cat
34300fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristyf6fcb5d2010-09-24 01:19:13 +000034301 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034302_ACEOF
34303
cristyf6fcb5d2010-09-24 01:19:13 +000034304# VPATH may cause trouble with some makes, so we remove $(srcdir),
34305# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000034306# trailing colons and then remove the whole line if VPATH becomes empty
34307# (actually we leave an empty line to preserve line numbers).
34308if test "x$srcdir" = x.; then
cristyf6fcb5d2010-09-24 01:19:13 +000034309 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34310s/:*\$(srcdir):*/:/
34311s/:*\${srcdir}:*/:/
34312s/:*@srcdir@:*/:/
34313s/^\([^=]*=[ ]*\):*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034314s/:*$//
34315s/^[^=]*=[ ]*$//
34316}'
34317fi
34318
34319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34320fi # test -n "$CONFIG_FILES"
34321
34322# Set up the scripts for CONFIG_HEADERS section.
34323# No need to generate them if there are no CONFIG_HEADERS.
34324# This happens for instance with `./config.status Makefile'.
34325if test -n "$CONFIG_HEADERS"; then
34326cat >"$tmp/defines.awk" <<\_ACAWK ||
34327BEGIN {
34328_ACEOF
34329
34330# Transform confdefs.h into an awk script `defines.awk', embedded as
34331# here-document in config.status, that substitutes the proper values into
34332# config.h.in to produce config.h.
34333
34334# Create a delimiter string that does not exist in confdefs.h, to ease
34335# handling of long lines.
34336ac_delim='%!_!# '
34337for ac_last_try in false false :; do
34338 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34339 if test -z "$ac_t"; then
34340 break
34341 elif $ac_last_try; then
cristyf6fcb5d2010-09-24 01:19:13 +000034342 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034343 else
34344 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34345 fi
34346done
34347
34348# For the awk script, D is an array of macro values keyed by name,
34349# likewise P contains macro parameters if any. Preserve backslash
34350# newline sequences.
34351
34352ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34353sed -n '
34354s/.\{148\}/&'"$ac_delim"'/g
34355t rset
34356:rset
34357s/^[ ]*#[ ]*define[ ][ ]*/ /
34358t def
34359d
34360:def
34361s/\\$//
34362t bsnl
34363s/["\\]/\\&/g
34364s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34365D["\1"]=" \3"/p
34366s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34367d
34368:bsnl
34369s/["\\]/\\&/g
34370s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34371D["\1"]=" \3\\\\\\n"\\/p
34372t cont
34373s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34374t cont
34375d
34376:cont
34377n
34378s/.\{148\}/&'"$ac_delim"'/g
34379t clear
34380:clear
34381s/\\$//
34382t bsnlc
34383s/["\\]/\\&/g; s/^/"/; s/$/"/p
34384d
34385:bsnlc
34386s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34387b cont
34388' <confdefs.h | sed '
34389s/'"$ac_delim"'/"\\\
34390"/g' >>$CONFIG_STATUS || ac_write_fail=1
34391
34392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34393 for (key in D) D_is_set[key] = 1
34394 FS = ""
34395}
34396/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34397 line = \$ 0
34398 split(line, arg, " ")
34399 if (arg[1] == "#") {
34400 defundef = arg[2]
34401 mac1 = arg[3]
34402 } else {
34403 defundef = substr(arg[1], 2)
34404 mac1 = arg[2]
34405 }
34406 split(mac1, mac2, "(") #)
34407 macro = mac2[1]
34408 prefix = substr(line, 1, index(line, defundef) - 1)
34409 if (D_is_set[macro]) {
34410 # Preserve the white space surrounding the "#".
34411 print prefix "define", macro P[macro] D[macro]
34412 next
34413 } else {
34414 # Replace #undef with comments. This is necessary, for example,
34415 # in the case of _POSIX_SOURCE, which is predefined and required
34416 # on some systems where configure will not decide to define it.
34417 if (defundef == "undef") {
34418 print "/*", prefix defundef, macro, "*/"
34419 next
34420 }
34421 }
34422}
34423{ print }
34424_ACAWK
34425_ACEOF
34426cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristyf6fcb5d2010-09-24 01:19:13 +000034427 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034428fi # test -n "$CONFIG_HEADERS"
34429
34430
34431eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34432shift
34433for ac_tag
34434do
34435 case $ac_tag in
34436 :[FHLC]) ac_mode=$ac_tag; continue;;
34437 esac
34438 case $ac_mode$ac_tag in
34439 :[FHL]*:*);;
cristyf6fcb5d2010-09-24 01:19:13 +000034440 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034441 :[FH]-) ac_tag=-:-;;
34442 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34443 esac
34444 ac_save_IFS=$IFS
34445 IFS=:
34446 set x $ac_tag
34447 IFS=$ac_save_IFS
34448 shift
34449 ac_file=$1
34450 shift
34451
34452 case $ac_mode in
34453 :L) ac_source=$1;;
34454 :[FH])
34455 ac_file_inputs=
34456 for ac_f
34457 do
34458 case $ac_f in
34459 -) ac_f="$tmp/stdin";;
34460 *) # Look for the file first in the build tree, then in the source tree
34461 # (if the path is not absolute). The absolute path cannot be DOS-style,
34462 # because $ac_f cannot contain `:'.
34463 test -f "$ac_f" ||
34464 case $ac_f in
34465 [\\/$]*) false;;
34466 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34467 esac ||
cristyf6fcb5d2010-09-24 01:19:13 +000034468 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034469 esac
34470 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000034471 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000034472 done
34473
34474 # Let's still pretend it is `configure' which instantiates (i.e., don't
34475 # use $as_me), people would be surprised to read:
34476 # /* config.h. Generated by config.status. */
34477 configure_input='Generated from '`
34478 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34479 `' by configure.'
34480 if test x"$ac_file" != x-; then
34481 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000034482 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034483$as_echo "$as_me: creating $ac_file" >&6;}
34484 fi
34485 # Neutralize special characters interpreted by sed in replacement strings.
34486 case $configure_input in #(
34487 *\&* | *\|* | *\\* )
34488 ac_sed_conf_input=`$as_echo "$configure_input" |
34489 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34490 *) ac_sed_conf_input=$configure_input;;
34491 esac
34492
34493 case $ac_tag in
34494 *:-:* | *:-) cat >"$tmp/stdin" \
cristyf6fcb5d2010-09-24 01:19:13 +000034495 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000034496 esac
34497 ;;
34498 esac
34499
34500 ac_dir=`$as_dirname -- "$ac_file" ||
34501$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34502 X"$ac_file" : 'X\(//\)[^/]' \| \
34503 X"$ac_file" : 'X\(//\)$' \| \
34504 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34505$as_echo X"$ac_file" |
34506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34507 s//\1/
34508 q
34509 }
34510 /^X\(\/\/\)[^/].*/{
34511 s//\1/
34512 q
34513 }
34514 /^X\(\/\/\)$/{
34515 s//\1/
34516 q
34517 }
34518 /^X\(\/\).*/{
34519 s//\1/
34520 q
34521 }
34522 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034523 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034524 ac_builddir=.
34525
34526case "$ac_dir" in
34527.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34528*)
34529 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34530 # A ".." for each directory in $ac_dir_suffix.
34531 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34532 case $ac_top_builddir_sub in
34533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34535 esac ;;
34536esac
34537ac_abs_top_builddir=$ac_pwd
34538ac_abs_builddir=$ac_pwd$ac_dir_suffix
34539# for backward compatibility:
34540ac_top_builddir=$ac_top_build_prefix
34541
34542case $srcdir in
34543 .) # We are building in place.
34544 ac_srcdir=.
34545 ac_top_srcdir=$ac_top_builddir_sub
34546 ac_abs_top_srcdir=$ac_pwd ;;
34547 [\\/]* | ?:[\\/]* ) # Absolute name.
34548 ac_srcdir=$srcdir$ac_dir_suffix;
34549 ac_top_srcdir=$srcdir
34550 ac_abs_top_srcdir=$srcdir ;;
34551 *) # Relative name.
34552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34553 ac_top_srcdir=$ac_top_build_prefix$srcdir
34554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34555esac
34556ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34557
34558
34559 case $ac_mode in
34560 :F)
34561 #
34562 # CONFIG_FILE
34563 #
34564
34565 case $INSTALL in
34566 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34567 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34568 esac
34569 ac_MKDIR_P=$MKDIR_P
34570 case $MKDIR_P in
34571 [\\/$]* | ?:[\\/]* ) ;;
34572 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34573 esac
34574_ACEOF
34575
34576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34577# If the template does not know about datarootdir, expand it.
34578# FIXME: This hack should be removed a few years after 2.60.
34579ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000034580ac_sed_dataroot='
34581/datarootdir/ {
34582 p
34583 q
34584}
34585/@datadir@/p
34586/@docdir@/p
34587/@infodir@/p
34588/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000034589/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000034590case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34591*datarootdir*) ac_datarootdir_seen=yes;;
34592*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000034593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000034594$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34595_ACEOF
34596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34597 ac_datarootdir_hack='
34598 s&@datadir@&$datadir&g
34599 s&@docdir@&$docdir&g
34600 s&@infodir@&$infodir&g
34601 s&@localedir@&$localedir&g
34602 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000034603 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000034604esac
34605_ACEOF
34606
34607# Neutralize VPATH when `$srcdir' = `.'.
34608# Shell code in configure.ac might set extrasub.
34609# FIXME: do we really want to maintain this feature?
34610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34611ac_sed_extra="$ac_vpsub
34612$extrasub
34613_ACEOF
34614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34615:t
34616/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34617s|@configure_input@|$ac_sed_conf_input|;t t
34618s&@top_builddir@&$ac_top_builddir_sub&;t t
34619s&@top_build_prefix@&$ac_top_build_prefix&;t t
34620s&@srcdir@&$ac_srcdir&;t t
34621s&@abs_srcdir@&$ac_abs_srcdir&;t t
34622s&@top_srcdir@&$ac_top_srcdir&;t t
34623s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34624s&@builddir@&$ac_builddir&;t t
34625s&@abs_builddir@&$ac_abs_builddir&;t t
34626s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34627s&@INSTALL@&$ac_INSTALL&;t t
34628s&@MKDIR_P@&$ac_MKDIR_P&;t t
34629$ac_datarootdir_hack
34630"
34631eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristyf6fcb5d2010-09-24 01:19:13 +000034632 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034633
34634test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34635 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34636 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000034637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristyf6fcb5d2010-09-24 01:19:13 +000034638which seems to be undefined. Please make sure it is defined." >&5
cristy3ed852e2009-09-05 21:47:34 +000034639$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristyf6fcb5d2010-09-24 01:19:13 +000034640which seems to be undefined. Please make sure it is defined." >&2;}
cristy3ed852e2009-09-05 21:47:34 +000034641
34642 rm -f "$tmp/stdin"
34643 case $ac_file in
34644 -) cat "$tmp/out" && rm -f "$tmp/out";;
34645 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34646 esac \
cristyf6fcb5d2010-09-24 01:19:13 +000034647 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034648 ;;
34649 :H)
34650 #
34651 # CONFIG_HEADER
34652 #
34653 if test x"$ac_file" != x-; then
34654 {
34655 $as_echo "/* $configure_input */" \
34656 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34657 } >"$tmp/config.h" \
cristyf6fcb5d2010-09-24 01:19:13 +000034658 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034659 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000034660 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034661$as_echo "$as_me: $ac_file is unchanged" >&6;}
34662 else
34663 rm -f "$ac_file"
34664 mv "$tmp/config.h" "$ac_file" \
cristyf6fcb5d2010-09-24 01:19:13 +000034665 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034666 fi
34667 else
34668 $as_echo "/* $configure_input */" \
34669 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristyf6fcb5d2010-09-24 01:19:13 +000034670 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034671 fi
34672# Compute "$ac_file"'s index in $config_headers.
34673_am_arg="$ac_file"
34674_am_stamp_count=1
34675for _am_header in $config_headers :; do
34676 case $_am_header in
34677 $_am_arg | $_am_arg:* )
34678 break ;;
34679 * )
34680 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34681 esac
34682done
34683echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34684$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34685 X"$_am_arg" : 'X\(//\)[^/]' \| \
34686 X"$_am_arg" : 'X\(//\)$' \| \
34687 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34688$as_echo X"$_am_arg" |
34689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34690 s//\1/
34691 q
34692 }
34693 /^X\(\/\/\)[^/].*/{
34694 s//\1/
34695 q
34696 }
34697 /^X\(\/\/\)$/{
34698 s//\1/
34699 q
34700 }
34701 /^X\(\/\).*/{
34702 s//\1/
34703 q
34704 }
34705 s/.*/./; q'`/stamp-h$_am_stamp_count
34706 ;;
34707
cristy8b350f62009-11-15 23:12:43 +000034708 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000034709$as_echo "$as_me: executing $ac_file commands" >&6;}
34710 ;;
34711 esac
34712
34713
34714 case $ac_file$ac_mode in
34715 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34716ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34717ac_prefix_conf_PKG=`echo MagickCore`
34718ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34719ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34720ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34721if test ".$ac_prefix_conf_INP" = "."; then
34722 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34723 case "$ac_file" in
34724 *.h) ac_prefix_conf_INP=$ac_file ;;
34725 *)
34726 esac
34727 test ".$ac_prefix_conf_INP" != "." && break
34728 done
34729fi
34730if test ".$ac_prefix_conf_INP" = "."; then
34731 case "$ac_prefix_conf_OUT" in
34732 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34733 ;;
34734 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34735 ;;
34736 *) ac_prefix_conf_INP=config.h
34737 ;;
34738 esac
34739fi
34740if test -z "$ac_prefix_conf_PKG" ; then
cristyf6fcb5d2010-09-24 01:19:13 +000034741 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034742else
34743 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34744 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34745 fi fi
cristy8b350f62009-11-15 23:12:43 +000034746 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
cristy3ed852e2009-09-05 21:47:34 +000034747$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34748 if test -f $ac_prefix_conf_INP ; then
34749 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34750 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034751 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34752 echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034753 echo "#endif/" >>conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034754 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34755 echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034756 echo "#endif/" >> conftest.prefix
34757 # now executing _script on _DEF input to create _OUT output file
34758 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34759 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34760 echo ' ' >>$tmp/pconfig.h
34761 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34762
34763 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34764 echo ' ' >>$tmp/pconfig.h
34765 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34766 echo "#endif" >>$tmp/pconfig.h
34767 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034768 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034769$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34770 else
34771 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34772$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34773 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34774 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34775 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34776$as_echo X"$ac_prefix_conf_OUT" |
34777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34778 s//\1/
34779 q
34780 }
34781 /^X\(\/\/\)[^/].*/{
34782 s//\1/
34783 q
34784 }
34785 /^X\(\/\/\)$/{
34786 s//\1/
34787 q
34788 }
34789 /^X\(\/\).*/{
34790 s//\1/
34791 q
34792 }
34793 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034794 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034795 rm -f "$ac_prefix_conf_OUT"
34796 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34797 fi
34798 cp conftest.prefix _configs.sed
34799 else
cristyf6fcb5d2010-09-24 01:19:13 +000034800 as_fn_error "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034801 fi
34802 rm -f conftest.*
34803fi
34804 ;;
34805 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34806 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34807 # are listed without --file. Let's play safe and only enable the eval
34808 # if we detect the quoting.
34809 case $CONFIG_FILES in
34810 *\'*) eval set x "$CONFIG_FILES" ;;
34811 *) set x $CONFIG_FILES ;;
34812 esac
34813 shift
34814 for mf
34815 do
34816 # Strip MF so we end up with the name of the file.
34817 mf=`echo "$mf" | sed -e 's/:.*$//'`
34818 # Check whether this is an Automake generated Makefile or not.
34819 # We used to match only the files named `Makefile.in', but
34820 # some people rename them; so instead we look at the file content.
34821 # Grep'ing the first line is not enough: some people post-process
34822 # each Makefile.in and add a new line on top of each file to say so.
34823 # Grep'ing the whole file is not good either: AIX grep has a line
34824 # limit of 2048, but all sed's we know have understand at least 4000.
34825 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34826 dirpart=`$as_dirname -- "$mf" ||
34827$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34828 X"$mf" : 'X\(//\)[^/]' \| \
34829 X"$mf" : 'X\(//\)$' \| \
34830 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34831$as_echo X"$mf" |
34832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34833 s//\1/
34834 q
34835 }
34836 /^X\(\/\/\)[^/].*/{
34837 s//\1/
34838 q
34839 }
34840 /^X\(\/\/\)$/{
34841 s//\1/
34842 q
34843 }
34844 /^X\(\/\).*/{
34845 s//\1/
34846 q
34847 }
34848 s/.*/./; q'`
34849 else
34850 continue
34851 fi
34852 # Extract the definition of DEPDIR, am__include, and am__quote
34853 # from the Makefile without running `make'.
34854 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34855 test -z "$DEPDIR" && continue
34856 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34857 test -z "am__include" && continue
34858 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34859 # When using ansi2knr, U may be empty or an underscore; expand it
34860 U=`sed -n 's/^U = //p' < "$mf"`
34861 # Find all dependency output files, they are included files with
34862 # $(DEPDIR) in their names. We invoke sed twice because it is the
34863 # simplest approach to changing $(DEPDIR) to its actual value in the
34864 # expansion.
34865 for file in `sed -n "
34866 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34867 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34868 # Make sure the directory exists.
34869 test -f "$dirpart/$file" && continue
34870 fdir=`$as_dirname -- "$file" ||
34871$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34872 X"$file" : 'X\(//\)[^/]' \| \
34873 X"$file" : 'X\(//\)$' \| \
34874 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34875$as_echo X"$file" |
34876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34877 s//\1/
34878 q
34879 }
34880 /^X\(\/\/\)[^/].*/{
34881 s//\1/
34882 q
34883 }
34884 /^X\(\/\/\)$/{
34885 s//\1/
34886 q
34887 }
34888 /^X\(\/\).*/{
34889 s//\1/
34890 q
34891 }
34892 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034893 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034894 # echo "creating $dirpart/$file"
34895 echo '# dummy' > "$dirpart/$file"
34896 done
34897 done
34898}
34899 ;;
34900 "libtool":C)
34901
34902 # See if we are running on zsh, and set the options which allow our
34903 # commands through without removal of \ escapes.
34904 if test -n "${ZSH_VERSION+set}" ; then
34905 setopt NO_GLOB_SUBST
34906 fi
34907
34908 cfgfile="${ofile}T"
34909 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34910 $RM "$cfgfile"
34911
34912 cat <<_LT_EOF >> "$cfgfile"
34913#! $SHELL
34914
34915# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34916# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34917# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34918# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34919#
34920# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristyd0bd44a2010-09-24 12:38:11 +000034921# 2006, 2007, 2008 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000034922# Written by Gordon Matzigkeit, 1996
34923#
34924# This file is part of GNU Libtool.
34925#
34926# GNU Libtool is free software; you can redistribute it and/or
34927# modify it under the terms of the GNU General Public License as
34928# published by the Free Software Foundation; either version 2 of
34929# the License, or (at your option) any later version.
34930#
34931# As a special exception to the GNU General Public License,
34932# if you distribute this file as part of a program or library that
34933# is built using GNU Libtool, you may include this file under the
34934# same distribution terms that you use for the rest of that program.
34935#
34936# GNU Libtool is distributed in the hope that it will be useful,
34937# but WITHOUT ANY WARRANTY; without even the implied warranty of
34938# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34939# GNU General Public License for more details.
34940#
34941# You should have received a copy of the GNU General Public License
34942# along with GNU Libtool; see the file COPYING. If not, a copy
34943# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34944# obtained by writing to the Free Software Foundation, Inc.,
34945# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34946
34947
34948# The names of the tagged configurations supported by this script.
34949available_tags="CXX "
34950
34951# ### BEGIN LIBTOOL CONFIG
34952
34953# A sed program that does not truncate output.
34954SED=$lt_SED
34955
34956# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34957Xsed="\$SED -e 1s/^X//"
34958
34959# A grep program that handles long lines.
34960GREP=$lt_GREP
34961
34962# An ERE matcher.
34963EGREP=$lt_EGREP
34964
34965# A literal string matcher.
34966FGREP=$lt_FGREP
34967
34968# Which release of libtool.m4 was used?
34969macro_version=$macro_version
34970macro_revision=$macro_revision
34971
34972# Assembler program.
cristyd0bd44a2010-09-24 12:38:11 +000034973AS=$AS
cristy3ed852e2009-09-05 21:47:34 +000034974
34975# DLL creation program.
cristyd0bd44a2010-09-24 12:38:11 +000034976DLLTOOL=$DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000034977
34978# Object dumper program.
cristyd0bd44a2010-09-24 12:38:11 +000034979OBJDUMP=$OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000034980
34981# Whether or not to build shared libraries.
34982build_libtool_libs=$enable_shared
34983
34984# Whether or not to build static libraries.
34985build_old_libs=$enable_static
34986
34987# What type of objects to build.
34988pic_mode=$pic_mode
34989
34990# Whether or not to optimize for fast installation.
34991fast_install=$enable_fast_install
34992
34993# The host system.
34994host_alias=$host_alias
34995host=$host
34996host_os=$host_os
34997
34998# The build system.
34999build_alias=$build_alias
35000build=$build
35001build_os=$build_os
35002
35003# A BSD- or MS-compatible name lister.
35004NM=$lt_NM
35005
35006# Whether we need soft or hard links.
35007LN_S=$lt_LN_S
35008
35009# What is the maximum length of a command?
35010max_cmd_len=$max_cmd_len
35011
35012# Object file suffix (normally "o").
35013objext=$ac_objext
35014
35015# Executable file suffix (normally "").
35016exeext=$exeext
35017
35018# whether the shell understands "unset".
35019lt_unset=$lt_unset
35020
35021# turn spaces into newlines.
35022SP2NL=$lt_lt_SP2NL
35023
35024# turn newlines into spaces.
35025NL2SP=$lt_lt_NL2SP
35026
cristyd0bd44a2010-09-24 12:38:11 +000035027# How to create reloadable object files.
35028reload_flag=$lt_reload_flag
35029reload_cmds=$lt_reload_cmds
35030
cristy3ed852e2009-09-05 21:47:34 +000035031# Method to check whether dependent libraries are shared objects.
35032deplibs_check_method=$lt_deplibs_check_method
35033
35034# Command to use when deplibs_check_method == "file_magic".
35035file_magic_cmd=$lt_file_magic_cmd
35036
35037# The archiver.
35038AR=$lt_AR
35039AR_FLAGS=$lt_AR_FLAGS
35040
35041# A symbol stripping program.
35042STRIP=$lt_STRIP
35043
35044# Commands used to install an old-style archive.
35045RANLIB=$lt_RANLIB
35046old_postinstall_cmds=$lt_old_postinstall_cmds
35047old_postuninstall_cmds=$lt_old_postuninstall_cmds
35048
35049# A C compiler.
35050LTCC=$lt_CC
35051
35052# LTCC compiler flags.
35053LTCFLAGS=$lt_CFLAGS
35054
35055# Take the output of nm and produce a listing of raw symbols and C names.
35056global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35057
35058# Transform the output of nm in a proper C declaration.
35059global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35060
35061# Transform the output of nm in a C name address pair.
35062global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35063
35064# Transform the output of nm in a C name address pair when lib prefix is needed.
35065global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35066
35067# The name of the directory that contains temporary libtool files.
35068objdir=$objdir
35069
cristyd0bd44a2010-09-24 12:38:11 +000035070# Shell to use when invoking shell scripts.
35071SHELL=$lt_SHELL
35072
35073# An echo program that does not interpret backslashes.
35074ECHO=$lt_ECHO
35075
cristy3ed852e2009-09-05 21:47:34 +000035076# Used to examine libraries when file_magic_cmd begins with "file".
35077MAGIC_CMD=$MAGIC_CMD
35078
35079# Must we lock files when doing compilation?
35080need_locks=$lt_need_locks
35081
35082# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35083DSYMUTIL=$lt_DSYMUTIL
35084
35085# Tool to change global to local symbols on Mac OS X.
35086NMEDIT=$lt_NMEDIT
35087
35088# Tool to manipulate fat objects and archives on Mac OS X.
35089LIPO=$lt_LIPO
35090
35091# ldd/readelf like tool for Mach-O binaries on Mac OS X.
35092OTOOL=$lt_OTOOL
35093
35094# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35095OTOOL64=$lt_OTOOL64
35096
35097# Old archive suffix (normally "a").
35098libext=$libext
35099
35100# Shared library suffix (normally ".so").
35101shrext_cmds=$lt_shrext_cmds
35102
35103# The commands to extract the exported symbol list from a shared archive.
35104extract_expsyms_cmds=$lt_extract_expsyms_cmds
35105
35106# Variables whose values should be saved in libtool wrapper scripts and
35107# restored at link time.
35108variables_saved_for_relink=$lt_variables_saved_for_relink
35109
35110# Do we need the "lib" prefix for modules?
35111need_lib_prefix=$need_lib_prefix
35112
35113# Do we need a version for libraries?
35114need_version=$need_version
35115
35116# Library versioning type.
35117version_type=$version_type
35118
35119# Shared library runtime path variable.
35120runpath_var=$runpath_var
35121
35122# Shared library path variable.
35123shlibpath_var=$shlibpath_var
35124
35125# Is shlibpath searched before the hard-coded library search path?
35126shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35127
35128# Format of library name prefix.
35129libname_spec=$lt_libname_spec
35130
35131# List of archive names. First name is the real one, the rest are links.
35132# The last name is the one that the linker finds with -lNAME
35133library_names_spec=$lt_library_names_spec
35134
35135# The coded name of the library, if different from the real name.
35136soname_spec=$lt_soname_spec
35137
35138# Command to use after installation of a shared archive.
35139postinstall_cmds=$lt_postinstall_cmds
35140
35141# Command to use after uninstallation of a shared archive.
35142postuninstall_cmds=$lt_postuninstall_cmds
35143
35144# Commands used to finish a libtool library installation in a directory.
35145finish_cmds=$lt_finish_cmds
35146
35147# As "finish_cmds", except a single script fragment to be evaled but
35148# not shown.
35149finish_eval=$lt_finish_eval
35150
35151# Whether we should hardcode library paths into libraries.
35152hardcode_into_libs=$hardcode_into_libs
35153
35154# Compile-time system search path for libraries.
35155sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35156
35157# Run-time system search path for libraries.
35158sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35159
35160# Whether dlopen is supported.
35161dlopen_support=$enable_dlopen
35162
35163# Whether dlopen of programs is supported.
35164dlopen_self=$enable_dlopen_self
35165
35166# Whether dlopen of statically linked programs is supported.
35167dlopen_self_static=$enable_dlopen_self_static
35168
35169# Commands to strip libraries.
35170old_striplib=$lt_old_striplib
35171striplib=$lt_striplib
35172
35173
35174# The linker used to build libraries.
35175LD=$lt_LD
35176
35177# Commands used to build an old-style archive.
35178old_archive_cmds=$lt_old_archive_cmds
35179
35180# A language specific compiler.
35181CC=$lt_compiler
35182
35183# Is the compiler the GNU compiler?
35184with_gcc=$GCC
35185
35186# Compiler flag to turn off builtin functions.
35187no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35188
35189# How to pass a linker flag through the compiler.
35190wl=$lt_lt_prog_compiler_wl
35191
35192# Additional compiler flags for building library objects.
35193pic_flag=$lt_lt_prog_compiler_pic
35194
35195# Compiler flag to prevent dynamic linking.
35196link_static_flag=$lt_lt_prog_compiler_static
35197
35198# Does compiler simultaneously support -c and -o options?
35199compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35200
35201# Whether or not to add -lc for building shared libraries.
35202build_libtool_need_lc=$archive_cmds_need_lc
35203
35204# Whether or not to disallow shared libs when runtime libs are static.
35205allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35206
35207# Compiler flag to allow reflexive dlopens.
35208export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35209
35210# Compiler flag to generate shared objects directly from archives.
35211whole_archive_flag_spec=$lt_whole_archive_flag_spec
35212
35213# Whether the compiler copes with passing no objects directly.
35214compiler_needs_object=$lt_compiler_needs_object
35215
35216# Create an old-style archive from a shared archive.
35217old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35218
35219# Create a temporary old-style archive to link instead of a shared archive.
35220old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35221
35222# Commands used to build a shared archive.
35223archive_cmds=$lt_archive_cmds
35224archive_expsym_cmds=$lt_archive_expsym_cmds
35225
35226# Commands used to build a loadable module if different from building
35227# a shared archive.
35228module_cmds=$lt_module_cmds
35229module_expsym_cmds=$lt_module_expsym_cmds
35230
35231# Whether we are building with GNU ld or not.
35232with_gnu_ld=$lt_with_gnu_ld
35233
35234# Flag that allows shared libraries with undefined symbols to be built.
35235allow_undefined_flag=$lt_allow_undefined_flag
35236
35237# Flag that enforces no undefined symbols.
35238no_undefined_flag=$lt_no_undefined_flag
35239
35240# Flag to hardcode \$libdir into a binary during linking.
35241# This must work even if \$libdir does not exist
35242hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35243
35244# If ld is used when linking, flag to hardcode \$libdir into a binary
35245# during linking. This must work even if \$libdir does not exist.
35246hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35247
35248# Whether we need a single "-rpath" flag with a separated argument.
35249hardcode_libdir_separator=$lt_hardcode_libdir_separator
35250
35251# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35252# DIR into the resulting binary.
35253hardcode_direct=$hardcode_direct
35254
35255# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35256# DIR into the resulting binary and the resulting library dependency is
35257# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35258# library is relocated.
35259hardcode_direct_absolute=$hardcode_direct_absolute
35260
35261# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35262# into the resulting binary.
35263hardcode_minus_L=$hardcode_minus_L
35264
35265# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35266# into the resulting binary.
35267hardcode_shlibpath_var=$hardcode_shlibpath_var
35268
35269# Set to "yes" if building a shared library automatically hardcodes DIR
35270# into the library and all subsequent libraries and executables linked
35271# against it.
35272hardcode_automatic=$hardcode_automatic
35273
35274# Set to yes if linker adds runtime paths of dependent libraries
35275# to runtime path list.
35276inherit_rpath=$inherit_rpath
35277
35278# Whether libtool must link a program against all its dependency libraries.
35279link_all_deplibs=$link_all_deplibs
35280
35281# Fix the shell variable \$srcfile for the compiler.
35282fix_srcfile_path=$lt_fix_srcfile_path
35283
35284# Set to "yes" if exported symbols are required.
35285always_export_symbols=$always_export_symbols
35286
35287# The commands to list exported symbols.
35288export_symbols_cmds=$lt_export_symbols_cmds
35289
35290# Symbols that should not be listed in the preloaded symbols.
35291exclude_expsyms=$lt_exclude_expsyms
35292
35293# Symbols that must always be exported.
35294include_expsyms=$lt_include_expsyms
35295
35296# Commands necessary for linking programs (against libraries) with templates.
35297prelink_cmds=$lt_prelink_cmds
35298
35299# Specify filename containing input files.
35300file_list_spec=$lt_file_list_spec
35301
35302# How to hardcode a shared library path into an executable.
35303hardcode_action=$hardcode_action
35304
35305# The directories searched by this compiler when creating a shared library.
35306compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35307
35308# Dependencies to place before and after the objects being linked to
35309# create a shared library.
35310predep_objects=$lt_predep_objects
35311postdep_objects=$lt_postdep_objects
35312predeps=$lt_predeps
35313postdeps=$lt_postdeps
35314
35315# The library search path used internally by the compiler when linking
35316# a shared library.
35317compiler_lib_search_path=$lt_compiler_lib_search_path
35318
35319# ### END LIBTOOL CONFIG
35320
35321_LT_EOF
35322
35323 case $host_os in
35324 aix3*)
35325 cat <<\_LT_EOF >> "$cfgfile"
35326# AIX sometimes has problems with the GCC collect2 program. For some
35327# reason, if we set the COLLECT_NAMES environment variable, the problems
35328# vanish in a puff of smoke.
35329if test "X${COLLECT_NAMES+set}" != Xset; then
35330 COLLECT_NAMES=
35331 export COLLECT_NAMES
35332fi
35333_LT_EOF
35334 ;;
35335 esac
35336
35337
35338ltmain="$ac_aux_dir/ltmain.sh"
35339
35340
35341 # We use sed instead of cat because bash on DJGPP gets confused if
35342 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35343 # text mode, it properly converts lines to CR/LF. This bash problem
35344 # is reportedly fixed, but why not run on old versions too?
35345 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35346 || (rm -f "$cfgfile"; exit 1)
35347
35348 case $xsi_shell in
35349 yes)
35350 cat << \_LT_EOF >> "$cfgfile"
35351
35352# func_dirname file append nondir_replacement
35353# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35354# otherwise set result to NONDIR_REPLACEMENT.
35355func_dirname ()
35356{
35357 case ${1} in
35358 */*) func_dirname_result="${1%/*}${2}" ;;
35359 * ) func_dirname_result="${3}" ;;
35360 esac
35361}
35362
35363# func_basename file
35364func_basename ()
35365{
35366 func_basename_result="${1##*/}"
35367}
35368
35369# func_dirname_and_basename file append nondir_replacement
35370# perform func_basename and func_dirname in a single function
35371# call:
35372# dirname: Compute the dirname of FILE. If nonempty,
35373# add APPEND to the result, otherwise set result
35374# to NONDIR_REPLACEMENT.
35375# value returned in "$func_dirname_result"
35376# basename: Compute filename of FILE.
35377# value retuned in "$func_basename_result"
35378# Implementation must be kept synchronized with func_dirname
35379# and func_basename. For efficiency, we do not delegate to
35380# those functions but instead duplicate the functionality here.
35381func_dirname_and_basename ()
35382{
35383 case ${1} in
35384 */*) func_dirname_result="${1%/*}${2}" ;;
35385 * ) func_dirname_result="${3}" ;;
35386 esac
35387 func_basename_result="${1##*/}"
35388}
35389
35390# func_stripname prefix suffix name
35391# strip PREFIX and SUFFIX off of NAME.
35392# PREFIX and SUFFIX must not contain globbing or regex special
35393# characters, hashes, percent signs, but SUFFIX may contain a leading
35394# dot (in which case that matches only a dot).
35395func_stripname ()
35396{
35397 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35398 # positional parameters, so assign one to ordinary parameter first.
35399 func_stripname_result=${3}
35400 func_stripname_result=${func_stripname_result#"${1}"}
35401 func_stripname_result=${func_stripname_result%"${2}"}
35402}
35403
35404# func_opt_split
35405func_opt_split ()
35406{
35407 func_opt_split_opt=${1%%=*}
35408 func_opt_split_arg=${1#*=}
35409}
35410
35411# func_lo2o object
35412func_lo2o ()
35413{
35414 case ${1} in
35415 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35416 *) func_lo2o_result=${1} ;;
35417 esac
35418}
35419
35420# func_xform libobj-or-source
35421func_xform ()
35422{
35423 func_xform_result=${1%.*}.lo
35424}
35425
35426# func_arith arithmetic-term...
35427func_arith ()
35428{
35429 func_arith_result=$(( $* ))
35430}
35431
35432# func_len string
35433# STRING may not start with a hyphen.
35434func_len ()
35435{
35436 func_len_result=${#1}
35437}
35438
35439_LT_EOF
35440 ;;
35441 *) # Bourne compatible functions.
35442 cat << \_LT_EOF >> "$cfgfile"
35443
35444# func_dirname file append nondir_replacement
35445# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35446# otherwise set result to NONDIR_REPLACEMENT.
35447func_dirname ()
35448{
35449 # Extract subdirectory from the argument.
cristyd0bd44a2010-09-24 12:38:11 +000035450 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000035451 if test "X$func_dirname_result" = "X${1}"; then
35452 func_dirname_result="${3}"
35453 else
35454 func_dirname_result="$func_dirname_result${2}"
35455 fi
35456}
35457
35458# func_basename file
35459func_basename ()
35460{
cristyd0bd44a2010-09-24 12:38:11 +000035461 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000035462}
35463
35464
35465# func_stripname prefix suffix name
35466# strip PREFIX and SUFFIX off of NAME.
35467# PREFIX and SUFFIX must not contain globbing or regex special
35468# characters, hashes, percent signs, but SUFFIX may contain a leading
35469# dot (in which case that matches only a dot).
35470# func_strip_suffix prefix name
35471func_stripname ()
35472{
35473 case ${2} in
cristyd0bd44a2010-09-24 12:38:11 +000035474 .*) func_stripname_result=`$ECHO "X${3}" \
35475 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
35476 *) func_stripname_result=`$ECHO "X${3}" \
35477 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000035478 esac
35479}
35480
35481# sed scripts:
35482my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35483my_sed_long_arg='1s/^-[^=]*=//'
35484
35485# func_opt_split
35486func_opt_split ()
35487{
cristyd0bd44a2010-09-24 12:38:11 +000035488 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
35489 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000035490}
35491
35492# func_lo2o object
35493func_lo2o ()
35494{
cristyd0bd44a2010-09-24 12:38:11 +000035495 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000035496}
35497
35498# func_xform libobj-or-source
35499func_xform ()
35500{
cristyd0bd44a2010-09-24 12:38:11 +000035501 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000035502}
35503
35504# func_arith arithmetic-term...
35505func_arith ()
35506{
35507 func_arith_result=`expr "$@"`
35508}
35509
35510# func_len string
35511# STRING may not start with a hyphen.
35512func_len ()
35513{
35514 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35515}
35516
35517_LT_EOF
35518esac
35519
35520case $lt_shell_append in
35521 yes)
35522 cat << \_LT_EOF >> "$cfgfile"
35523
35524# func_append var value
35525# Append VALUE to the end of shell variable VAR.
35526func_append ()
35527{
35528 eval "$1+=\$2"
35529}
35530_LT_EOF
35531 ;;
35532 *)
35533 cat << \_LT_EOF >> "$cfgfile"
35534
35535# func_append var value
35536# Append VALUE to the end of shell variable VAR.
35537func_append ()
35538{
35539 eval "$1=\$$1\$2"
35540}
35541
35542_LT_EOF
35543 ;;
35544 esac
35545
35546
35547 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35548 || (rm -f "$cfgfile"; exit 1)
35549
35550 mv -f "$cfgfile" "$ofile" ||
35551 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35552 chmod +x "$ofile"
35553
35554
35555 cat <<_LT_EOF >> "$ofile"
35556
35557# ### BEGIN LIBTOOL TAG CONFIG: CXX
35558
35559# The linker used to build libraries.
35560LD=$lt_LD_CXX
35561
35562# Commands used to build an old-style archive.
35563old_archive_cmds=$lt_old_archive_cmds_CXX
35564
35565# A language specific compiler.
35566CC=$lt_compiler_CXX
35567
35568# Is the compiler the GNU compiler?
35569with_gcc=$GCC_CXX
35570
35571# Compiler flag to turn off builtin functions.
35572no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35573
35574# How to pass a linker flag through the compiler.
35575wl=$lt_lt_prog_compiler_wl_CXX
35576
35577# Additional compiler flags for building library objects.
35578pic_flag=$lt_lt_prog_compiler_pic_CXX
35579
35580# Compiler flag to prevent dynamic linking.
35581link_static_flag=$lt_lt_prog_compiler_static_CXX
35582
35583# Does compiler simultaneously support -c and -o options?
35584compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35585
35586# Whether or not to add -lc for building shared libraries.
35587build_libtool_need_lc=$archive_cmds_need_lc_CXX
35588
35589# Whether or not to disallow shared libs when runtime libs are static.
35590allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35591
35592# Compiler flag to allow reflexive dlopens.
35593export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35594
35595# Compiler flag to generate shared objects directly from archives.
35596whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35597
35598# Whether the compiler copes with passing no objects directly.
35599compiler_needs_object=$lt_compiler_needs_object_CXX
35600
35601# Create an old-style archive from a shared archive.
35602old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35603
35604# Create a temporary old-style archive to link instead of a shared archive.
35605old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35606
35607# Commands used to build a shared archive.
35608archive_cmds=$lt_archive_cmds_CXX
35609archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35610
35611# Commands used to build a loadable module if different from building
35612# a shared archive.
35613module_cmds=$lt_module_cmds_CXX
35614module_expsym_cmds=$lt_module_expsym_cmds_CXX
35615
35616# Whether we are building with GNU ld or not.
35617with_gnu_ld=$lt_with_gnu_ld_CXX
35618
35619# Flag that allows shared libraries with undefined symbols to be built.
35620allow_undefined_flag=$lt_allow_undefined_flag_CXX
35621
35622# Flag that enforces no undefined symbols.
35623no_undefined_flag=$lt_no_undefined_flag_CXX
35624
35625# Flag to hardcode \$libdir into a binary during linking.
35626# This must work even if \$libdir does not exist
35627hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35628
35629# If ld is used when linking, flag to hardcode \$libdir into a binary
35630# during linking. This must work even if \$libdir does not exist.
35631hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35632
35633# Whether we need a single "-rpath" flag with a separated argument.
35634hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35635
35636# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35637# DIR into the resulting binary.
35638hardcode_direct=$hardcode_direct_CXX
35639
35640# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35641# DIR into the resulting binary and the resulting library dependency is
35642# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35643# library is relocated.
35644hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35645
35646# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35647# into the resulting binary.
35648hardcode_minus_L=$hardcode_minus_L_CXX
35649
35650# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35651# into the resulting binary.
35652hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35653
35654# Set to "yes" if building a shared library automatically hardcodes DIR
35655# into the library and all subsequent libraries and executables linked
35656# against it.
35657hardcode_automatic=$hardcode_automatic_CXX
35658
35659# Set to yes if linker adds runtime paths of dependent libraries
35660# to runtime path list.
35661inherit_rpath=$inherit_rpath_CXX
35662
35663# Whether libtool must link a program against all its dependency libraries.
35664link_all_deplibs=$link_all_deplibs_CXX
35665
35666# Fix the shell variable \$srcfile for the compiler.
35667fix_srcfile_path=$lt_fix_srcfile_path_CXX
35668
35669# Set to "yes" if exported symbols are required.
35670always_export_symbols=$always_export_symbols_CXX
35671
35672# The commands to list exported symbols.
35673export_symbols_cmds=$lt_export_symbols_cmds_CXX
35674
35675# Symbols that should not be listed in the preloaded symbols.
35676exclude_expsyms=$lt_exclude_expsyms_CXX
35677
35678# Symbols that must always be exported.
35679include_expsyms=$lt_include_expsyms_CXX
35680
35681# Commands necessary for linking programs (against libraries) with templates.
35682prelink_cmds=$lt_prelink_cmds_CXX
35683
35684# Specify filename containing input files.
35685file_list_spec=$lt_file_list_spec_CXX
35686
35687# How to hardcode a shared library path into an executable.
35688hardcode_action=$hardcode_action_CXX
35689
35690# The directories searched by this compiler when creating a shared library.
35691compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35692
35693# Dependencies to place before and after the objects being linked to
35694# create a shared library.
35695predep_objects=$lt_predep_objects_CXX
35696postdep_objects=$lt_postdep_objects_CXX
35697predeps=$lt_predeps_CXX
35698postdeps=$lt_postdeps_CXX
35699
35700# The library search path used internally by the compiler when linking
35701# a shared library.
35702compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35703
35704# ### END LIBTOOL TAG CONFIG: CXX
35705_LT_EOF
35706
35707 ;;
35708 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35709 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35710 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35711 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35712 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35713 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35714
35715 esac
35716done # for ac_tag
35717
35718
cristy8b350f62009-11-15 23:12:43 +000035719as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000035720_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000035721ac_clean_files=$ac_clean_files_save
35722
35723test $ac_write_fail = 0 ||
cristyf6fcb5d2010-09-24 01:19:13 +000035724 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035725
35726
35727# configure is writing to config.log, and then calls config.status.
35728# config.status does its own redirection, appending to config.log.
35729# Unfortunately, on DOS this fails, as config.log is still kept open
35730# by configure, so config.status won't be able to write to it; its
35731# output is simply discarded. So we exec the FD to /dev/null,
35732# effectively closing config.log, so it can be properly (re)opened and
35733# appended to by config.status. When coming back to configure, we
35734# need to make the FD available again.
35735if test "$no_create" != yes; then
35736 ac_cs_success=:
35737 ac_config_status_args=
35738 test "$silent" = yes &&
35739 ac_config_status_args="$ac_config_status_args --quiet"
35740 exec 5>/dev/null
35741 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35742 exec 5>>config.log
35743 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35744 # would make configure fail if this is the last instruction.
cristyf6fcb5d2010-09-24 01:19:13 +000035745 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000035746fi
35747if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000035748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000035749$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35750fi
35751
35752
35753rm -f magick-version
35754
cristy430a7312010-01-21 20:44:04 +000035755result_dejavu_font_dir='none'
35756if test "${dejavu_font_dir}x" != 'x'; then
35757 result_dejavu_font_dir=$dejavu_font_dir
35758fi
35759
cristy3ed852e2009-09-05 21:47:34 +000035760result_ghostscript_font_dir='none'
35761if test "${ghostscript_font_dir}x" != 'x'; then
35762 result_ghostscript_font_dir=$ghostscript_font_dir
35763fi
35764
35765result_windows_font_dir='none'
35766if test "${windows_font_dir}x" != 'x'; then
35767 result_windows_font_dir=${windows_font_dir}
35768fi
35769
cristy8b350f62009-11-15 23:12:43 +000035770{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000035771ImageMagick is configured as follows. Please verify that this configuration
35772matches your expectations.
35773
35774Host system type: $host
35775Build system type: $build
35776
35777 Option Value
35778-------------------------------------------------------------------------------
35779Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35780Static libraries --enable-static=$enable_static $libtool_build_static_libs
35781Module support --with-modules=$with_modules $with_modules
35782GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35783Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35784High Dynamic Range Imagery
35785 --enable-hdri=$enable_hdri $enable_hdri
35786
35787Delegate Configuration:
35788BZLIB --with-bzlib=$with_bzlib $have_bzlib
35789Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035790Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035791DJVU --with-djvu=$with_djvu $have_djvu
35792DPS --with-dps=$with_dps $have_dps
35793FFTW --with-fftw=$with_fftw $have_fftw
35794FlashPIX --with-fpx=$with_fpx $have_fpx
35795FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35796FreeType --with-freetype=$with_freetype $have_freetype
35797GhostPCL None $PCLDelegate ($PCLVersion)
35798GhostXPS None $XPSDelegate ($XPSVersion)
35799Ghostscript None $PSDelegate ($GSVersion)
35800Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35801Ghostscript lib --with-gslib=$with_gslib $have_gslib
35802Graphviz --with-gvc=$with_gvc $have_gvc
35803JBIG --with-jbig=$with_jbig $have_jbig
35804JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35805JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035806LCMS v1 --with-lcms=$with_lcms $have_lcms
35807LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035808LQR --with-lqr=$with_lqr $have_lqr
35809Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35810OpenEXR --with-openexr=$with_openexr $have_openexr
35811PERL --with-perl=$with_perl $have_perl
35812PNG --with-png=$with_png $have_png
35813RSVG --with-rsvg=$with_rsvg $have_rsvg
35814TIFF --with-tiff=$with_tiff $have_tiff
35815Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35816WMF --with-wmf=$with_wmf $have_wmf
35817X11 --with-x=$with_x $have_x
35818XML --with-xml=$with_xml $have_xml
35819ZLIB --with-zlib=$with_zlib $have_zlib
35820
35821X11 Configuration:
35822 X_CFLAGS = $X_CFLAGS
35823 X_PRE_LIBS = $X_PRE_LIBS
35824 X_LIBS = $X_LIBS
35825 X_EXTRA_LIBS = $X_EXTRA_LIBS
35826
35827Options used to compile and link:
35828 PREFIX = $PREFIX_DIR
35829 EXEC-PREFIX = $EXEC_PREFIX_DIR
35830 VERSION = $PACKAGE_VERSION
35831 CC = $CC
35832 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035833 CPPFLAGS = $MAGICK_CPPFLAGS
35834 PCFLAGS = $MAGICK_PCFLAGS
35835 DEFS = $DEFS
35836 LDFLAGS = $LDFLAGS
35837 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35838 LIBS = $MAGICK_LIBS
35839 CXX = $CXX
35840 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035841 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035842" >&5
35843$as_echo "
35844ImageMagick is configured as follows. Please verify that this configuration
35845matches your expectations.
35846
35847Host system type: $host
35848Build system type: $build
35849
35850 Option Value
35851-------------------------------------------------------------------------------
35852Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35853Static libraries --enable-static=$enable_static $libtool_build_static_libs
35854Module support --with-modules=$with_modules $with_modules
35855GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35856Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35857High Dynamic Range Imagery
35858 --enable-hdri=$enable_hdri $enable_hdri
35859
35860Delegate Configuration:
35861BZLIB --with-bzlib=$with_bzlib $have_bzlib
35862Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035863Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035864DJVU --with-djvu=$with_djvu $have_djvu
35865DPS --with-dps=$with_dps $have_dps
35866FFTW --with-fftw=$with_fftw $have_fftw
35867FlashPIX --with-fpx=$with_fpx $have_fpx
35868FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35869FreeType --with-freetype=$with_freetype $have_freetype
35870GhostPCL None $PCLDelegate ($PCLVersion)
35871GhostXPS None $XPSDelegate ($XPSVersion)
35872Ghostscript None $PSDelegate ($GSVersion)
35873Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35874Ghostscript lib --with-gslib=$with_gslib $have_gslib
35875Graphviz --with-gvc=$with_gvc $have_gvc
35876JBIG --with-jbig=$with_jbig $have_jbig
35877JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35878JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035879LCMS v1 --with-lcms=$with_lcms $have_lcms
35880LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035881LQR --with-lqr=$with_lqr $have_lqr
35882Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35883OpenEXR --with-openexr=$with_openexr $have_openexr
35884PERL --with-perl=$with_perl $have_perl
35885PNG --with-png=$with_png $have_png
35886RSVG --with-rsvg=$with_rsvg $have_rsvg
35887TIFF --with-tiff=$with_tiff $have_tiff
35888Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35889WMF --with-wmf=$with_wmf $have_wmf
35890X11 --with-x=$with_x $have_x
35891XML --with-xml=$with_xml $have_xml
35892ZLIB --with-zlib=$with_zlib $have_zlib
35893
35894X11 Configuration:
35895 X_CFLAGS = $X_CFLAGS
35896 X_PRE_LIBS = $X_PRE_LIBS
35897 X_LIBS = $X_LIBS
35898 X_EXTRA_LIBS = $X_EXTRA_LIBS
35899
35900Options used to compile and link:
35901 PREFIX = $PREFIX_DIR
35902 EXEC-PREFIX = $EXEC_PREFIX_DIR
35903 VERSION = $PACKAGE_VERSION
35904 CC = $CC
35905 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035906 CPPFLAGS = $MAGICK_CPPFLAGS
35907 PCFLAGS = $MAGICK_PCFLAGS
35908 DEFS = $DEFS
35909 LDFLAGS = $LDFLAGS
35910 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35911 LIBS = $MAGICK_LIBS
35912 CXX = $CXX
35913 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035914 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035915" >&6; }