blob: bed9885b0a75d9800ef68da0e74395edfc532733 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy664b8d72010-05-17 13:53:36 +00003# Generated by GNU Autoconf 2.65 for ImageMagick 6.6.2.
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,
cristycd4c5312009-11-22 01:19:08 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
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
cristyb7c7b8e2010-06-22 14:22:40 +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"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
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
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# 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
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369 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
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 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
cristyb7c7b8e2010-06-22 14:22:40 +0000531
532
533# Check that we are running under the correct shell.
cristy3ed852e2009-09-05 21:47:34 +0000534SHELL=${CONFIG_SHELL-/bin/sh}
535
cristyb7c7b8e2010-06-22 14:22:40 +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.
689# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
690# 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'
cristy664b8d72010-05-17 13:53:36 +0000708PACKAGE_VERSION='6.6.2'
709PACKAGE_STRING='ImageMagick 6.6.2'
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
757MAGICK_LIBS
758MAGICK_LDFLAGS
759MAGICK_PCFLAGS
760MAGICK_CPPFLAGS
761MAGICK_CXXFLAGS
762MAGICK_CFLAGS
763MAGICK_DEP_LIBS
764MAGICK_LTDLDEPS
765MAGICK_LIBLTDL
766OSX_GCOV_LDFLAG
767DELEGATES
768MAGICKCORE_PATH
769PERL_SUPPORTS_DESTDIR
770WITH_PERL_DYNAMIC_FALSE
771WITH_PERL_DYNAMIC_TRUE
772WITH_PERL_STATIC_FALSE
773WITH_PERL_STATIC_TRUE
774WITH_PERL_FALSE
775WITH_PERL_TRUE
cristy964cb7f2010-04-25 23:18:00 +0000776PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000777GSVersion
778GSPSDevice
779GSPDFDevice
780GSMonoDevice
781GSEPSDevice
782GSColorDevice
783GSCMYKDevice
784GSAlphaDevice
785XPSVersion
786XPSCMYKDevice
787XPSColorDevice
788XPSMonoDevice
789PCLVersion
790PCLCMYKDevice
791PCLColorDevice
792PCLMonoDevice
793ZIP_DELEGATE_FALSE
794ZIP_DELEGATE_TRUE
795ZIP
796P7ZIP_DELEGATE_FALSE
797P7ZIP_DELEGATE_TRUE
798P7ZIP
799RPM_DELEGATE_FALSE
800RPM_DELEGATE_TRUE
801RPM
802PERL
803TAR
804ShowImageDelegate
805type_include_files
806ghostscript_font_dir
807windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000808dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000809PrintDelegate
810ZipDelegate
811XPSDelegate
812WWWDecodeDelegate
813WMFDecodeDelegate
814TXTDelegate
815SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000816RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000817RMDelegate
818RLEEncodeDelegate
819PSDelegate
820POVDelegate
821PGPDecodeDelegate
822PCLDelegate
823MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000824MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000825MPEGEncodeDelegate
826MPEGDecodeDelegate
827MANDelegate
828LaunchDelegate
829LZWEncodeDelegate
830LZWDecodeDelegate
831LPRDelegate
832LPDelegate
833ILBMEncodeDelegate
834ILBMDecodeDelegate
835HTMLDecodeDelegate
836HPGLDecodeDelegate
837HDRDecodeDelegate
838GnuplotDecodeDelegate
839MogrifyDelegate
840DisplayDelegate
841ConvertDelegate
842FIGDecodeDelegate
843EditorDelegate
844EchoDelegate
845DVIDecodeDelegate
846GVCDecodeDelegate
847DNGDecodeDelegate
848CatDelegate
849CGMDecodeDelegate
850BrowseDelegate
851BZIPDelegate
852BlenderDecodeDelegate
853AVIDecodeDelegate
854AutotraceDecodeDelegate
855SHARE_CONFIGURE_PATH
856SHARE_PATH
857DOCUMENTATION_PATH
858FILTER_PATH
859CODER_PATH
860CONFIGURE_PATH
861LIBRARY_PATH
862EXECUTABLE_PATH
863PERLMAINCC
864XML_LIBS
865XML_DELEGATE_FALSE
866XML_DELEGATE_TRUE
867xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000868WMF_LIBS
869WMF_DELEGATE_FALSE
870WMF_DELEGATE_TRUE
871TIFF_LIBS
872TIFF_DELEGATE_FALSE
873TIFF_DELEGATE_TRUE
874CAIRO_DELEGATE_FALSE
875CAIRO_DELEGATE_TRUE
876RSVG_DELEGATE_FALSE
877RSVG_DELEGATE_TRUE
878CAIRO_SVG_LIBS
879CAIRO_SVG_CFLAGS
880RSVG_LIBS
881RSVG_CFLAGS
882PNG_LIBS
883PNG_DELEGATE_FALSE
884PNG_DELEGATE_TRUE
885OPENEXR_DELEGATE_FALSE
886OPENEXR_DELEGATE_TRUE
887OPENEXR_LIBS
888OPENEXR_CFLAGS
889LQR_DELEGATE_FALSE
890LQR_DELEGATE_TRUE
891LQR_LIBS
892LQR_CFLAGS
893LCMS_LIBS
894LCMS_DELEGATE_FALSE
895LCMS_DELEGATE_TRUE
896JP2_LIBS
897JP2_DELEGATE_FALSE
898JP2_DELEGATE_TRUE
899JPEG_LIBS
900JPEG_DELEGATE_FALSE
901JPEG_DELEGATE_TRUE
902JBIG_LIBS
903JBIG_DELEGATE_FALSE
904JBIG_DELEGATE_TRUE
905GVC_DELEGATE_FALSE
906GVC_DELEGATE_TRUE
907GVC_LIBS
908GVC_CFLAGS
909GS_LIBS
910GS_DELEGATE_FALSE
911GS_DELEGATE_TRUE
912FREETYPE_LIBS
913FREETYPE_DELEGATE_FALSE
914FREETYPE_DELEGATE_TRUE
915freetype_config
916FONTCONFIG_DELEGATE_FALSE
917FONTCONFIG_DELEGATE_TRUE
918FONTCONFIG_LIBS
919FONTCONFIG_CFLAGS
920FPX_LIBS
921FPX_DELEGATE_FALSE
922FPX_DELEGATE_TRUE
923FFTW_LIBS
924FFTW_DELEGATE_FALSE
925FFTW_DELEGATE_TRUE
926DJVU_LIBS
927DJVU_DELEGATE_FALSE
928DJVU_DELEGATE_TRUE
929DPS_LIBS
930DPS_DELEGATE_FALSE
931DPS_DELEGATE_TRUE
932AUTOTRACE_DELEGATE_FALSE
933AUTOTRACE_DELEGATE_TRUE
934AUTOTRACE_LIBS
935AUTOTRACE_CFLAGS
936LIB_DL
937ZLIB_LIBS
938ZLIB_DELEGATE_FALSE
939ZLIB_DELEGATE_TRUE
940XEXT_LIBS
941X11_LIBS
942X11_DELEGATE_FALSE
943X11_DELEGATE_TRUE
944X_EXTRA_LIBS
945X_LIBS
946X_PRE_LIBS
947X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000948XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000949BZLIB_LIBS
950BZLIB_DELEGATE_FALSE
951BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000952CCMALLOCDelegate
953UMEM_LIBS
954HasUMEM_FALSE
955HasUMEM_TRUE
956THREAD_LIBS
957GOMP_LIBS
958WITH_MAGICK_PLUS_PLUS_FALSE
959WITH_MAGICK_PLUS_PLUS_TRUE
960OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000961MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000962POW_LIB
963LIBOBJS
964UINTPTR_T
965UINTMAX_T
966UINT64_T
967INT64_T
968UINT32_T
969INT32_T
970UINT16_T
971INT16_T
972UINT8_T
973INT8_T
974LIBRARY_EXTRA_CPPFLAGS
975MODULE_EXTRA_CPPFLAGS
976LIBSTDCLDFLAGS
977PERL_MAKE_OPTIONS
978QUANTUM_DEPTH
979MAINT
980MAINTAINER_MODE_FALSE
981MAINTAINER_MODE_TRUE
982MAGICK_HDRI
983DLLDFLAGS
984WITH_LTDL_FALSE
985WITH_LTDL_TRUE
986WITH_MODULES_FALSE
987WITH_MODULES_TRUE
cristyfa112112010-01-04 17:48:07 +0000988WITH_SHARED_LIBS_FALSE
989WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000990LTDLOPEN
991LT_CONFIG_H
992CONVENIENCE_LTDL_FALSE
993CONVENIENCE_LTDL_TRUE
994INSTALL_LTDL_FALSE
995INSTALL_LTDL_TRUE
996ARGZ_H
997sys_symbol_underscore
998LIBADD_DL
999LT_DLPREOPEN
1000LIBADD_DLD_LINK
1001LIBADD_SHL_LOAD
1002LIBADD_DLOPEN
1003LT_DLLOADERS
1004INCLTDL
1005LTDLINCL
1006LTDLDEPS
1007LIBLTDL
1008LIBTOOL_DEPS
1009CXXCPP
1010OTOOL64
1011OTOOL
1012LIPO
1013NMEDIT
1014DSYMUTIL
cristyb7c7b8e2010-06-22 14:22:40 +00001015lt_ECHO
cristy4dc44432009-12-30 23:30:06 +00001016RANLIB
cristy3ed852e2009-09-05 21:47:34 +00001017AR
1018NM
1019ac_ct_DUMPBIN
1020DUMPBIN
1021LIBTOOL
1022OBJDUMP
1023DLLTOOL
1024AS
1025LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00001026CL_LIBS
1027CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +00001028OPENMP_CFLAGS
1029PTHREAD_CFLAGS
1030PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +00001031PTHREAD_CC
cristy964cb7f2010-04-25 23:18:00 +00001032ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +00001033WinPathScript
1034USING_CL_FALSE
1035USING_CL_TRUE
1036CYGWIN_BUILD_FALSE
1037CYGWIN_BUILD_TRUE
1038WIN32_NATIVE_BUILD_FALSE
1039WIN32_NATIVE_BUILD_TRUE
1040WINGDI32_DELEGATE_FALSE
1041WINGDI32_DELEGATE_TRUE
1042GDI32_LIBS
1043PKG_CONFIG
1044LN_S
cristy3ed852e2009-09-05 21:47:34 +00001045LD
1046FGREP
cristy3ed852e2009-09-05 21:47:34 +00001047SED
cristy95646052009-11-28 23:05:30 +00001048am__fastdepCXX_FALSE
1049am__fastdepCXX_TRUE
1050CXXDEPMODE
1051ac_ct_CXX
1052CXXFLAGS
1053CXX
cristya0b81c32010-01-22 02:54:33 +00001054EGREP
1055GREP
1056CPP
cristy3ed852e2009-09-05 21:47:34 +00001057am__fastdepCC_FALSE
1058am__fastdepCC_TRUE
1059CCDEPMODE
1060AMDEPBACKSLASH
1061AMDEP_FALSE
1062AMDEP_TRUE
1063am__quote
1064am__include
1065DEPDIR
1066OBJEXT
1067EXEEXT
1068ac_ct_CC
1069CPPFLAGS
1070LDFLAGS
1071CFLAGS
1072CC
1073DIRSEP
1074MAGICK_FILTER_MODULE_PATH
1075MAGICK_CONFIGURE_BUILD_PATH
1076MAGICK_CONFIGURE_SRC_PATH
1077MAGICK_CODER_MODULE_PATH
1078MAN_DIR
1079INFO_DIR
1080PERSISTINCLUDE_DIR
1081INCLUDE_DIR
1082LIB_DIR
1083LOCALSTATE_DIR
1084SHAREDSTATE_DIR
1085SYSCONF_DIR
1086DATA_DIR
1087LIBEXEC_DIR
1088SBIN_DIR
1089BIN_DIR
1090EXEC_PREFIX_DIR
1091PREFIX_DIR
1092CONFIG_STATUS_DEPENDENCIES
1093MAGICK_LIB_VERSION_NUMBER
1094MAGICK_LIB_VERSION_TEXT
1095MAGICK_LIB_VERSION
1096AM_BACKSLASH
1097AM_DEFAULT_VERBOSITY
1098am__untar
1099am__tar
1100AMTAR
1101am__leading_dot
1102SET_MAKE
1103AWK
1104mkdir_p
1105MKDIR_P
1106INSTALL_STRIP_PROGRAM
1107STRIP
1108install_sh
1109MAKEINFO
1110AUTOHEADER
1111AUTOMAKE
1112AUTOCONF
1113ACLOCAL
1114VERSION
1115PACKAGE
1116CYGPATH_W
1117am__isrc
1118INSTALL_DATA
1119INSTALL_SCRIPT
1120INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001121PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001122PACKAGE_RELEASE_DATE
1123PACKAGE_LIB_VERSION_NUMBER
1124PACKAGE_LIB_VERSION
1125PACKAGE_CHANGE_DATE
1126PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +00001127MAGICK_LIBRARY_VERSION_INFO
1128MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001129MAGICK_LIBRARY_AGE
1130MAGICK_LIBRARY_REVISION
1131MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001132MAGICK_TARGET_OS
1133MAGICK_TARGET_VENDOR
1134MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001135target_os
1136target_vendor
1137target_cpu
1138target
1139host_os
1140host_vendor
1141host_cpu
1142host
1143build_os
1144build_vendor
1145build_cpu
1146build
1147CONFIGURE_ARGS
1148DISTCHECK_CONFIG_FLAGS
1149target_alias
1150host_alias
1151build_alias
1152LIBS
1153ECHO_T
1154ECHO_N
1155ECHO_C
1156DEFS
1157mandir
1158localedir
1159libdir
1160psdir
1161pdfdir
1162dvidir
1163htmldir
1164infodir
1165docdir
1166oldincludedir
1167includedir
1168localstatedir
1169sharedstatedir
1170sysconfdir
1171datadir
1172datarootdir
1173libexecdir
1174sbindir
1175bindir
1176program_transform_name
1177prefix
1178exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001179PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001180PACKAGE_BUGREPORT
1181PACKAGE_STRING
1182PACKAGE_VERSION
1183PACKAGE_TARNAME
1184PACKAGE_NAME
1185PATH_SEPARATOR
1186SHELL'
1187ac_subst_files=''
1188ac_user_opts='
1189enable_option_checking
1190enable_silent_rules
1191enable_dependency_tracking
1192with_gnu_ld
cristy3ed852e2009-09-05 21:47:34 +00001193with_dmalloc
1194enable_bounds_checking
1195enable_osx_universal_binary
1196with_threads
1197enable_openmp
cristy43596fe2010-01-21 16:46:08 +00001198enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001199enable_largefile
1200enable_shared
1201enable_static
1202with_pic
1203enable_fast_install
1204enable_libtool_lock
1205with_included_ltdl
1206with_ltdl_include
1207with_ltdl_lib
1208enable_ltdl_install
1209with_modules
1210enable_delegate_build
1211enable_deprecated
1212enable_installed
1213enable_cipher
1214enable_embeddable
1215enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001216enable_assert
1217enable_maintainer_mode
1218enable_ccmalloc
1219enable_efence
1220enable_prof
1221enable_gprof
1222enable_gcov
1223with_method_prefix
1224with_quantum_depth
1225with_cache
1226with_frozenpaths
1227with_magick_plus_plus
1228with_perl
1229with_perl_options
1230with_umem
1231with_libstdc
1232with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001233with_x
cristy3ed852e2009-09-05 21:47:34 +00001234with_zlib
1235with_autotrace
1236with_dps
1237with_djvu
cristy430a7312010-01-21 20:44:04 +00001238with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001239with_fftw
1240with_fpx
1241with_fontconfig
1242with_freetype
1243with_gslib
1244with_fontpath
1245with_gs_font_dir
1246with_gvc
1247with_jbig
1248with_jpeg
1249with_jp2
1250with_lcms
cristy71203402010-06-18 13:12:03 +00001251with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001252with_lqr
1253with_openexr
1254with_png
1255with_rsvg
1256with_tiff
1257with_windows_font_dir
1258with_wmf
1259with_xml
1260'
1261 ac_precious_vars='build_alias
1262host_alias
1263target_alias
1264CC
1265CFLAGS
1266LDFLAGS
1267LIBS
1268CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001269CPP
cristy3ed852e2009-09-05 21:47:34 +00001270CXX
1271CXXFLAGS
1272CCC
1273PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001274CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001275XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001276AUTOTRACE_CFLAGS
1277AUTOTRACE_LIBS
1278FONTCONFIG_CFLAGS
1279FONTCONFIG_LIBS
1280GVC_CFLAGS
1281GVC_LIBS
1282LQR_CFLAGS
1283LQR_LIBS
1284OPENEXR_CFLAGS
1285OPENEXR_LIBS
1286RSVG_CFLAGS
1287RSVG_LIBS
1288CAIRO_SVG_CFLAGS
1289CAIRO_SVG_LIBS'
1290
1291
1292# Initialize some variables set by options.
1293ac_init_help=
1294ac_init_version=false
1295ac_unrecognized_opts=
1296ac_unrecognized_sep=
1297# The variables have the same names as the options, with
1298# dashes changed to underlines.
1299cache_file=/dev/null
1300exec_prefix=NONE
1301no_create=
1302no_recursion=
1303prefix=NONE
1304program_prefix=NONE
1305program_suffix=NONE
1306program_transform_name=s,x,x,
1307silent=
1308site=
1309srcdir=
1310verbose=
1311x_includes=NONE
1312x_libraries=NONE
1313
1314# Installation directory options.
1315# These are left unexpanded so users can "make install exec_prefix=/foo"
1316# and all the variables that are supposed to be based on exec_prefix
1317# by default will actually change.
1318# Use braces instead of parens because sh, perl, etc. also accept them.
1319# (The list follows the same order as the GNU Coding Standards.)
1320bindir='${exec_prefix}/bin'
1321sbindir='${exec_prefix}/sbin'
1322libexecdir='${exec_prefix}/libexec'
1323datarootdir='${prefix}/share'
1324datadir='${datarootdir}'
1325sysconfdir='${prefix}/etc'
1326sharedstatedir='${prefix}/com'
1327localstatedir='${prefix}/var'
1328includedir='${prefix}/include'
1329oldincludedir='/usr/include'
1330docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1331infodir='${datarootdir}/info'
1332htmldir='${docdir}'
1333dvidir='${docdir}'
1334pdfdir='${docdir}'
1335psdir='${docdir}'
1336libdir='${exec_prefix}/lib'
1337localedir='${datarootdir}/locale'
1338mandir='${datarootdir}/man'
1339
1340ac_prev=
1341ac_dashdash=
1342for ac_option
1343do
1344 # If the previous option needs an argument, assign it.
1345 if test -n "$ac_prev"; then
1346 eval $ac_prev=\$ac_option
1347 ac_prev=
1348 continue
1349 fi
1350
1351 case $ac_option in
1352 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1353 *) ac_optarg=yes ;;
1354 esac
1355
1356 # Accept the important Cygnus configure options, so we can diagnose typos.
1357
1358 case $ac_dashdash$ac_option in
1359 --)
1360 ac_dashdash=yes ;;
1361
1362 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1363 ac_prev=bindir ;;
1364 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1365 bindir=$ac_optarg ;;
1366
1367 -build | --build | --buil | --bui | --bu)
1368 ac_prev=build_alias ;;
1369 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1370 build_alias=$ac_optarg ;;
1371
1372 -cache-file | --cache-file | --cache-fil | --cache-fi \
1373 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1374 ac_prev=cache_file ;;
1375 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1376 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1377 cache_file=$ac_optarg ;;
1378
1379 --config-cache | -C)
1380 cache_file=config.cache ;;
1381
1382 -datadir | --datadir | --datadi | --datad)
1383 ac_prev=datadir ;;
1384 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1385 datadir=$ac_optarg ;;
1386
1387 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1388 | --dataroo | --dataro | --datar)
1389 ac_prev=datarootdir ;;
1390 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1391 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1392 datarootdir=$ac_optarg ;;
1393
1394 -disable-* | --disable-*)
1395 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1396 # Reject names that are not valid shell variable names.
1397 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001398 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001399 ac_useropt_orig=$ac_useropt
1400 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1401 case $ac_user_opts in
1402 *"
1403"enable_$ac_useropt"
1404"*) ;;
1405 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1406 ac_unrecognized_sep=', ';;
1407 esac
1408 eval enable_$ac_useropt=no ;;
1409
1410 -docdir | --docdir | --docdi | --doc | --do)
1411 ac_prev=docdir ;;
1412 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1413 docdir=$ac_optarg ;;
1414
1415 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1416 ac_prev=dvidir ;;
1417 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1418 dvidir=$ac_optarg ;;
1419
1420 -enable-* | --enable-*)
1421 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1422 # Reject names that are not valid shell variable names.
1423 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001424 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001425 ac_useropt_orig=$ac_useropt
1426 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1427 case $ac_user_opts in
1428 *"
1429"enable_$ac_useropt"
1430"*) ;;
1431 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1432 ac_unrecognized_sep=', ';;
1433 esac
1434 eval enable_$ac_useropt=\$ac_optarg ;;
1435
1436 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1437 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1438 | --exec | --exe | --ex)
1439 ac_prev=exec_prefix ;;
1440 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1441 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1442 | --exec=* | --exe=* | --ex=*)
1443 exec_prefix=$ac_optarg ;;
1444
1445 -gas | --gas | --ga | --g)
1446 # Obsolete; use --with-gas.
1447 with_gas=yes ;;
1448
1449 -help | --help | --hel | --he | -h)
1450 ac_init_help=long ;;
1451 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1452 ac_init_help=recursive ;;
1453 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1454 ac_init_help=short ;;
1455
1456 -host | --host | --hos | --ho)
1457 ac_prev=host_alias ;;
1458 -host=* | --host=* | --hos=* | --ho=*)
1459 host_alias=$ac_optarg ;;
1460
1461 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1462 ac_prev=htmldir ;;
1463 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1464 | --ht=*)
1465 htmldir=$ac_optarg ;;
1466
1467 -includedir | --includedir | --includedi | --included | --include \
1468 | --includ | --inclu | --incl | --inc)
1469 ac_prev=includedir ;;
1470 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1471 | --includ=* | --inclu=* | --incl=* | --inc=*)
1472 includedir=$ac_optarg ;;
1473
1474 -infodir | --infodir | --infodi | --infod | --info | --inf)
1475 ac_prev=infodir ;;
1476 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1477 infodir=$ac_optarg ;;
1478
1479 -libdir | --libdir | --libdi | --libd)
1480 ac_prev=libdir ;;
1481 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1482 libdir=$ac_optarg ;;
1483
1484 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1485 | --libexe | --libex | --libe)
1486 ac_prev=libexecdir ;;
1487 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1488 | --libexe=* | --libex=* | --libe=*)
1489 libexecdir=$ac_optarg ;;
1490
1491 -localedir | --localedir | --localedi | --localed | --locale)
1492 ac_prev=localedir ;;
1493 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1494 localedir=$ac_optarg ;;
1495
1496 -localstatedir | --localstatedir | --localstatedi | --localstated \
1497 | --localstate | --localstat | --localsta | --localst | --locals)
1498 ac_prev=localstatedir ;;
1499 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1500 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1501 localstatedir=$ac_optarg ;;
1502
1503 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1504 ac_prev=mandir ;;
1505 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1506 mandir=$ac_optarg ;;
1507
1508 -nfp | --nfp | --nf)
1509 # Obsolete; use --without-fp.
1510 with_fp=no ;;
1511
1512 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1513 | --no-cr | --no-c | -n)
1514 no_create=yes ;;
1515
1516 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1517 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1518 no_recursion=yes ;;
1519
1520 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1521 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1522 | --oldin | --oldi | --old | --ol | --o)
1523 ac_prev=oldincludedir ;;
1524 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1525 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1526 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1527 oldincludedir=$ac_optarg ;;
1528
1529 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1530 ac_prev=prefix ;;
1531 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1532 prefix=$ac_optarg ;;
1533
1534 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1535 | --program-pre | --program-pr | --program-p)
1536 ac_prev=program_prefix ;;
1537 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1538 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1539 program_prefix=$ac_optarg ;;
1540
1541 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1542 | --program-suf | --program-su | --program-s)
1543 ac_prev=program_suffix ;;
1544 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1545 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1546 program_suffix=$ac_optarg ;;
1547
1548 -program-transform-name | --program-transform-name \
1549 | --program-transform-nam | --program-transform-na \
1550 | --program-transform-n | --program-transform- \
1551 | --program-transform | --program-transfor \
1552 | --program-transfo | --program-transf \
1553 | --program-trans | --program-tran \
1554 | --progr-tra | --program-tr | --program-t)
1555 ac_prev=program_transform_name ;;
1556 -program-transform-name=* | --program-transform-name=* \
1557 | --program-transform-nam=* | --program-transform-na=* \
1558 | --program-transform-n=* | --program-transform-=* \
1559 | --program-transform=* | --program-transfor=* \
1560 | --program-transfo=* | --program-transf=* \
1561 | --program-trans=* | --program-tran=* \
1562 | --progr-tra=* | --program-tr=* | --program-t=*)
1563 program_transform_name=$ac_optarg ;;
1564
1565 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1566 ac_prev=pdfdir ;;
1567 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1568 pdfdir=$ac_optarg ;;
1569
1570 -psdir | --psdir | --psdi | --psd | --ps)
1571 ac_prev=psdir ;;
1572 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1573 psdir=$ac_optarg ;;
1574
1575 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1576 | -silent | --silent | --silen | --sile | --sil)
1577 silent=yes ;;
1578
1579 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1580 ac_prev=sbindir ;;
1581 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1582 | --sbi=* | --sb=*)
1583 sbindir=$ac_optarg ;;
1584
1585 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1586 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1587 | --sharedst | --shareds | --shared | --share | --shar \
1588 | --sha | --sh)
1589 ac_prev=sharedstatedir ;;
1590 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1591 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1592 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1593 | --sha=* | --sh=*)
1594 sharedstatedir=$ac_optarg ;;
1595
1596 -site | --site | --sit)
1597 ac_prev=site ;;
1598 -site=* | --site=* | --sit=*)
1599 site=$ac_optarg ;;
1600
1601 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1602 ac_prev=srcdir ;;
1603 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1604 srcdir=$ac_optarg ;;
1605
1606 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1607 | --syscon | --sysco | --sysc | --sys | --sy)
1608 ac_prev=sysconfdir ;;
1609 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1610 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1611 sysconfdir=$ac_optarg ;;
1612
1613 -target | --target | --targe | --targ | --tar | --ta | --t)
1614 ac_prev=target_alias ;;
1615 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1616 target_alias=$ac_optarg ;;
1617
1618 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1619 verbose=yes ;;
1620
1621 -version | --version | --versio | --versi | --vers | -V)
1622 ac_init_version=: ;;
1623
1624 -with-* | --with-*)
1625 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1626 # Reject names that are not valid shell variable names.
1627 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001628 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001629 ac_useropt_orig=$ac_useropt
1630 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1631 case $ac_user_opts in
1632 *"
1633"with_$ac_useropt"
1634"*) ;;
1635 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1636 ac_unrecognized_sep=', ';;
1637 esac
1638 eval with_$ac_useropt=\$ac_optarg ;;
1639
1640 -without-* | --without-*)
1641 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1642 # Reject names that are not valid shell variable names.
1643 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001644 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001645 ac_useropt_orig=$ac_useropt
1646 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1647 case $ac_user_opts in
1648 *"
1649"with_$ac_useropt"
1650"*) ;;
1651 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1652 ac_unrecognized_sep=', ';;
1653 esac
1654 eval with_$ac_useropt=no ;;
1655
1656 --x)
1657 # Obsolete; use --with-x.
1658 with_x=yes ;;
1659
1660 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1661 | --x-incl | --x-inc | --x-in | --x-i)
1662 ac_prev=x_includes ;;
1663 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1664 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1665 x_includes=$ac_optarg ;;
1666
1667 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1668 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1669 ac_prev=x_libraries ;;
1670 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1671 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1672 x_libraries=$ac_optarg ;;
1673
cristy8b350f62009-11-15 23:12:43 +00001674 -*) as_fn_error "unrecognized option: \`$ac_option'
1675Try \`$0 --help' for more information."
cristy3ed852e2009-09-05 21:47:34 +00001676 ;;
1677
1678 *=*)
1679 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1680 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001681 case $ac_envvar in #(
1682 '' | [0-9]* | *[!_$as_cr_alnum]* )
1683 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1684 esac
cristy3ed852e2009-09-05 21:47:34 +00001685 eval $ac_envvar=\$ac_optarg
1686 export $ac_envvar ;;
1687
1688 *)
1689 # FIXME: should be removed in autoconf 3.0.
1690 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1691 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1692 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1693 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1694 ;;
1695
1696 esac
1697done
1698
1699if test -n "$ac_prev"; then
1700 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy8b350f62009-11-15 23:12:43 +00001701 as_fn_error "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001702fi
1703
1704if test -n "$ac_unrecognized_opts"; then
1705 case $enable_option_checking in
1706 no) ;;
cristy8b350f62009-11-15 23:12:43 +00001707 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001708 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1709 esac
1710fi
1711
1712# Check all directory arguments for consistency.
1713for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1714 datadir sysconfdir sharedstatedir localstatedir includedir \
1715 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1716 libdir localedir mandir
1717do
1718 eval ac_val=\$$ac_var
1719 # Remove trailing slashes.
1720 case $ac_val in
1721 */ )
1722 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1723 eval $ac_var=\$ac_val;;
1724 esac
1725 # Be sure to have absolute directory names.
1726 case $ac_val in
1727 [\\/$]* | ?:[\\/]* ) continue;;
1728 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1729 esac
cristy8b350f62009-11-15 23:12:43 +00001730 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001731done
1732
1733# There might be people who depend on the old broken behavior: `$host'
1734# used to hold the argument of --host etc.
1735# FIXME: To remove some day.
1736build=$build_alias
1737host=$host_alias
1738target=$target_alias
1739
1740# FIXME: To remove some day.
1741if test "x$host_alias" != x; then
1742 if test "x$build_alias" = x; then
1743 cross_compiling=maybe
1744 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1745 If a cross compiler is detected then cross compile mode will be used." >&2
1746 elif test "x$build_alias" != "x$host_alias"; then
1747 cross_compiling=yes
1748 fi
1749fi
1750
1751ac_tool_prefix=
1752test -n "$host_alias" && ac_tool_prefix=$host_alias-
1753
1754test "$silent" = yes && exec 6>/dev/null
1755
1756
1757ac_pwd=`pwd` && test -n "$ac_pwd" &&
1758ac_ls_di=`ls -di .` &&
1759ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy8b350f62009-11-15 23:12:43 +00001760 as_fn_error "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001761test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy8b350f62009-11-15 23:12:43 +00001762 as_fn_error "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001763
1764
1765# Find the source files, if location was not specified.
1766if test -z "$srcdir"; then
1767 ac_srcdir_defaulted=yes
1768 # Try the directory containing this script, then the parent directory.
1769 ac_confdir=`$as_dirname -- "$as_myself" ||
1770$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1771 X"$as_myself" : 'X\(//\)[^/]' \| \
1772 X"$as_myself" : 'X\(//\)$' \| \
1773 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1774$as_echo X"$as_myself" |
1775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1776 s//\1/
1777 q
1778 }
1779 /^X\(\/\/\)[^/].*/{
1780 s//\1/
1781 q
1782 }
1783 /^X\(\/\/\)$/{
1784 s//\1/
1785 q
1786 }
1787 /^X\(\/\).*/{
1788 s//\1/
1789 q
1790 }
1791 s/.*/./; q'`
1792 srcdir=$ac_confdir
1793 if test ! -r "$srcdir/$ac_unique_file"; then
1794 srcdir=..
1795 fi
1796else
1797 ac_srcdir_defaulted=no
1798fi
1799if test ! -r "$srcdir/$ac_unique_file"; then
1800 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy8b350f62009-11-15 23:12:43 +00001801 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001802fi
1803ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1804ac_abs_confdir=`(
cristy8b350f62009-11-15 23:12:43 +00001805 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001806 pwd)`
1807# When building in place, set srcdir=.
1808if test "$ac_abs_confdir" = "$ac_pwd"; then
1809 srcdir=.
1810fi
1811# Remove unnecessary trailing slashes from srcdir.
1812# Double slashes in file names in object file debugging info
1813# mess up M-x gdb in Emacs.
1814case $srcdir in
1815*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1816esac
1817for ac_var in $ac_precious_vars; do
1818 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1819 eval ac_env_${ac_var}_value=\$${ac_var}
1820 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1821 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1822done
1823
1824#
1825# Report the --help message.
1826#
1827if test "$ac_init_help" = "long"; then
1828 # Omit some internal or obsolete options to make the list less imposing.
1829 # This message is too long to be a string in the A/UX 3.1 sh.
1830 cat <<_ACEOF
cristy664b8d72010-05-17 13:53:36 +00001831\`configure' configures ImageMagick 6.6.2 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001832
1833Usage: $0 [OPTION]... [VAR=VALUE]...
1834
1835To assign environment variables (e.g., CC, CFLAGS...), specify them as
1836VAR=VALUE. See below for descriptions of some of the useful variables.
1837
1838Defaults for the options are specified in brackets.
1839
1840Configuration:
1841 -h, --help display this help and exit
1842 --help=short display options specific to this package
1843 --help=recursive display the short help of all the included packages
1844 -V, --version display version information and exit
1845 -q, --quiet, --silent do not print \`checking...' messages
1846 --cache-file=FILE cache test results in FILE [disabled]
1847 -C, --config-cache alias for \`--cache-file=config.cache'
1848 -n, --no-create do not create output files
1849 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1850
1851Installation directories:
1852 --prefix=PREFIX install architecture-independent files in PREFIX
1853 [$ac_default_prefix]
1854 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1855 [PREFIX]
1856
1857By default, \`make install' will install all the files in
1858\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1859an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1860for instance \`--prefix=\$HOME'.
1861
1862For better control, use the options below.
1863
1864Fine tuning of the installation directories:
1865 --bindir=DIR user executables [EPREFIX/bin]
1866 --sbindir=DIR system admin executables [EPREFIX/sbin]
1867 --libexecdir=DIR program executables [EPREFIX/libexec]
1868 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1869 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1870 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1871 --libdir=DIR object code libraries [EPREFIX/lib]
1872 --includedir=DIR C header files [PREFIX/include]
1873 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1874 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1875 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1876 --infodir=DIR info documentation [DATAROOTDIR/info]
1877 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1878 --mandir=DIR man documentation [DATAROOTDIR/man]
1879 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1880 --htmldir=DIR html documentation [DOCDIR]
1881 --dvidir=DIR dvi documentation [DOCDIR]
1882 --pdfdir=DIR pdf documentation [DOCDIR]
1883 --psdir=DIR ps documentation [DOCDIR]
1884_ACEOF
1885
1886 cat <<\_ACEOF
1887
1888Program names:
1889 --program-prefix=PREFIX prepend PREFIX to installed program names
1890 --program-suffix=SUFFIX append SUFFIX to installed program names
1891 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1892
1893X features:
1894 --x-includes=DIR X include files are in DIR
1895 --x-libraries=DIR X library files are in DIR
1896
1897System types:
1898 --build=BUILD configure for building on BUILD [guessed]
1899 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1900 --target=TARGET configure for building compilers for TARGET [HOST]
1901_ACEOF
1902fi
1903
1904if test -n "$ac_init_help"; then
1905 case $ac_init_help in
cristy664b8d72010-05-17 13:53:36 +00001906 short | recursive ) echo "Configuration of ImageMagick 6.6.2:";;
cristy3ed852e2009-09-05 21:47:34 +00001907 esac
1908 cat <<\_ACEOF
1909
1910Optional Features:
1911 --disable-option-checking ignore unrecognized --enable/--with options
1912 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1913 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1914 --enable-silent-rules less verbose build output (undo: `make V=1')
1915 --disable-silent-rules verbose build output (undo: `make V=0')
1916 --disable-dependency-tracking speeds up one-time build
1917 --enable-dependency-tracking do not reject slow dependency extractors
1918 --bounds-checking enable run-time bounds-checking
1919 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001920 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001921 --disable-openmp do not use OpenMP
cristy43596fe2010-01-21 16:46:08 +00001922 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001923 --disable-largefile omit support for large files
1924 --enable-shared[=PKGS] build shared libraries [default=yes]
1925 --enable-static[=PKGS] build static libraries [default=yes]
1926 --enable-fast-install[=PKGS]
1927 optimize for fast installation [default=yes]
1928 --disable-libtool-lock avoid locking (might break parallel builds)
1929 --enable-ltdl-install install libltdl
1930 --enable-delegate-build look for delegate libraries in build directory
1931 --disable-deprecated exclude deprecated methods in MagickCore and
1932 MagickWand API's
1933 --disable-installed Formally install ImageMagick under PREFIX
1934 --disable-cipher disable enciphering and deciphering image pixels
1935 --enable-embeddable enable self-contained, embeddable,
1936 zero-configuration ImageMagick
1937 --enable-hdri accurately represent the wide range of intensity
1938 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001939 --disable-assert disable assert() statements in build
1940 --enable-maintainer-mode enable make rules and dependencies not useful
1941 (and sometimes confusing) to the casual installer
1942 --enable-ccmalloc enable 'ccmalloc' memory debug support
1943 --enable-efence enable 'efence' memory debug support
1944 --enable-prof enable 'prof' profiling support
1945 --enable-gprof enable 'gprof' profiling support
1946 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001947 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001948
1949Optional Packages:
1950 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1951 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1952 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy3ed852e2009-09-05 21:47:34 +00001953 --with-dmalloc use dmalloc, as in
1954 http://www.dmalloc.com/dmalloc.tar.gz
1955 --without-threads disable threads support
1956 --with-pic try to use only PIC/non-PIC objects [default=use
1957 both]
1958 --with-included-ltdl use the GNU ltdl sources included here
1959 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1960 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1961 --with-modules enable building dynamically loadable modules
1962 --with-method-prefix=PREFIX
1963 prefix MagickCore API methods
1964 --with-quantum-depth=DEPTH
1965 number of bits in a pixel quantum (default 16)
1966 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1967 memory)
1968 --with-frozenpaths freeze delegate paths
1969 --without-magick-plus-plus
1970 disable build/install of Magick++
1971 --with-perl enable build/install of PerlMagick
1972 --with-perl-options=OPTIONS
1973 options to pass on command-line when generating
1974 PerlMagick's build file
1975 --with-umem enable umem memory allocation library support
1976 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1977 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001978 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001979 --without-zlib disable ZLIB support
1980 --with-autotrace enable autotrace support
1981 --without-dps disable Display Postscript support
1982 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001983 --with-dejavu-font-dir=DIR
1984 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001985 --without-fftw disable FFTW support
1986 --without-fpx disable FlashPIX support
1987 --without-fontconfig disable fontconfig support
1988 --without-freetype disable Freetype support
1989 --without-gslib enable Ghostscript library support
1990 --with-fontpath=DIR prepend to default font search path
1991 --with-gs-font-dir=DIR Ghostscript font directory
1992 --without-gvc disable GVC support
1993 --without-jbig disable JBIG support
1994 --without-jpeg disable JPEG support
1995 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001996 --without-lcms disable lcms (v1.1X) support
1997 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001998 --without-lqr disable Liquid Rescale support
cristy3ed852e2009-09-05 21:47:34 +00001999 --without-openexr disable OpenEXR support
2000 --without-png disable PNG support
2001 --without-rsvg disable RSVG support
2002 --without-tiff disable TIFF support
2003 --with-windows-font-dir=DIR
2004 directory containing MS-Windows fonts
2005 --without-wmf disable WMF support
2006 --without-xml disable XML support
2007
2008Some influential environment variables:
2009 CC C compiler command
2010 CFLAGS C compiler flags
2011 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2012 nonstandard directory <lib dir>
2013 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002014 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002015 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00002016 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002017 CXX C++ compiler command
2018 CXXFLAGS C++ compiler flags
2019 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00002020 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00002021 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00002022 AUTOTRACE_CFLAGS
2023 C compiler flags for AUTOTRACE, overriding pkg-config
2024 AUTOTRACE_LIBS
2025 linker flags for AUTOTRACE, overriding pkg-config
2026 FONTCONFIG_CFLAGS
2027 C compiler flags for FONTCONFIG, overriding pkg-config
2028 FONTCONFIG_LIBS
2029 linker flags for FONTCONFIG, overriding pkg-config
2030 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2031 GVC_LIBS linker flags for GVC, overriding pkg-config
2032 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2033 LQR_LIBS linker flags for LQR, overriding pkg-config
2034 OPENEXR_CFLAGS
2035 C compiler flags for OPENEXR, overriding pkg-config
2036 OPENEXR_LIBS
2037 linker flags for OPENEXR, overriding pkg-config
2038 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2039 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2040 CAIRO_SVG_CFLAGS
2041 C compiler flags for CAIRO_SVG, overriding pkg-config
2042 CAIRO_SVG_LIBS
2043 linker flags for CAIRO_SVG, overriding pkg-config
2044
2045Use these variables to override the choices made by `configure' or to help
2046it to find libraries and programs with nonstandard names/locations.
2047
2048Report bugs to <http://www.imagemagick.org>.
2049_ACEOF
2050ac_status=$?
2051fi
2052
2053if test "$ac_init_help" = "recursive"; then
2054 # If there are subdirs, report their specific --help.
2055 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2056 test -d "$ac_dir" ||
2057 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2058 continue
2059 ac_builddir=.
2060
2061case "$ac_dir" in
2062.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2063*)
2064 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2065 # A ".." for each directory in $ac_dir_suffix.
2066 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2067 case $ac_top_builddir_sub in
2068 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2069 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2070 esac ;;
2071esac
2072ac_abs_top_builddir=$ac_pwd
2073ac_abs_builddir=$ac_pwd$ac_dir_suffix
2074# for backward compatibility:
2075ac_top_builddir=$ac_top_build_prefix
2076
2077case $srcdir in
2078 .) # We are building in place.
2079 ac_srcdir=.
2080 ac_top_srcdir=$ac_top_builddir_sub
2081 ac_abs_top_srcdir=$ac_pwd ;;
2082 [\\/]* | ?:[\\/]* ) # Absolute name.
2083 ac_srcdir=$srcdir$ac_dir_suffix;
2084 ac_top_srcdir=$srcdir
2085 ac_abs_top_srcdir=$srcdir ;;
2086 *) # Relative name.
2087 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2088 ac_top_srcdir=$ac_top_build_prefix$srcdir
2089 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2090esac
2091ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2092
2093 cd "$ac_dir" || { ac_status=$?; continue; }
2094 # Check for guested configure.
2095 if test -f "$ac_srcdir/configure.gnu"; then
2096 echo &&
2097 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2098 elif test -f "$ac_srcdir/configure"; then
2099 echo &&
2100 $SHELL "$ac_srcdir/configure" --help=recursive
2101 else
2102 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2103 fi || ac_status=$?
2104 cd "$ac_pwd" || { ac_status=$?; break; }
2105 done
2106fi
2107
2108test -n "$ac_init_help" && exit $ac_status
2109if $ac_init_version; then
2110 cat <<\_ACEOF
cristy664b8d72010-05-17 13:53:36 +00002111ImageMagick configure 6.6.2
cristycd4c5312009-11-22 01:19:08 +00002112generated by GNU Autoconf 2.65
cristy3ed852e2009-09-05 21:47:34 +00002113
cristy8b350f62009-11-15 23:12:43 +00002114Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002115This configure script is free software; the Free Software Foundation
2116gives unlimited permission to copy, distribute and modify it.
2117_ACEOF
2118 exit
2119fi
cristy8b350f62009-11-15 23:12:43 +00002120
2121## ------------------------ ##
2122## Autoconf initialization. ##
2123## ------------------------ ##
2124
2125# ac_fn_c_try_compile LINENO
2126# --------------------------
2127# Try to compile conftest.$ac_ext, and return whether this succeeded.
2128ac_fn_c_try_compile ()
2129{
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 rm -f conftest.$ac_objext
2132 if { { ac_try="$ac_compile"
2133case "(($ac_try" in
2134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135 *) ac_try_echo=$ac_try;;
2136esac
2137eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2138$as_echo "$ac_try_echo"; } >&5
2139 (eval "$ac_compile") 2>conftest.err
2140 ac_status=$?
2141 if test -s conftest.err; then
2142 grep -v '^ *+' conftest.err >conftest.er1
2143 cat conftest.er1 >&5
2144 mv -f conftest.er1 conftest.err
2145 fi
2146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2147 test $ac_status = 0; } && {
2148 test -z "$ac_c_werror_flag" ||
2149 test ! -s conftest.err
2150 } && test -s conftest.$ac_objext; then :
2151 ac_retval=0
2152else
2153 $as_echo "$as_me: failed program was:" >&5
2154sed 's/^/| /' conftest.$ac_ext >&5
2155
2156 ac_retval=1
2157fi
2158 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002159 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002160
2161} # ac_fn_c_try_compile
2162
cristy95646052009-11-28 23:05:30 +00002163# ac_fn_c_try_cpp LINENO
2164# ----------------------
2165# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2166ac_fn_c_try_cpp ()
2167{
2168 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169 if { { ac_try="$ac_cpp conftest.$ac_ext"
2170case "(($ac_try" in
2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172 *) ac_try_echo=$ac_try;;
2173esac
2174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175$as_echo "$ac_try_echo"; } >&5
2176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2177 ac_status=$?
2178 if test -s conftest.err; then
2179 grep -v '^ *+' conftest.err >conftest.er1
2180 cat conftest.er1 >&5
2181 mv -f conftest.er1 conftest.err
2182 fi
2183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184 test $ac_status = 0; } >/dev/null && {
2185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2186 test ! -s conftest.err
2187 }; then :
2188 ac_retval=0
2189else
2190 $as_echo "$as_me: failed program was:" >&5
2191sed 's/^/| /' conftest.$ac_ext >&5
2192
2193 ac_retval=1
2194fi
2195 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2196 as_fn_set_status $ac_retval
2197
2198} # ac_fn_c_try_cpp
2199
cristy8b350f62009-11-15 23:12:43 +00002200# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2201# -------------------------------------------------------
2202# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2203# the include files in INCLUDES and setting the cache variable VAR
2204# accordingly.
2205ac_fn_c_check_header_mongrel ()
2206{
2207 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2210$as_echo_n "checking for $2... " >&6; }
2211if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2212 $as_echo_n "(cached) " >&6
2213fi
2214eval ac_res=\$$3
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2216$as_echo "$ac_res" >&6; }
2217else
2218 # Is the header compilable?
2219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2220$as_echo_n "checking $2 usability... " >&6; }
2221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222/* end confdefs.h. */
2223$4
2224#include <$2>
2225_ACEOF
2226if ac_fn_c_try_compile "$LINENO"; then :
2227 ac_header_compiler=yes
2228else
2229 ac_header_compiler=no
2230fi
2231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2233$as_echo "$ac_header_compiler" >&6; }
2234
2235# Is the header present?
2236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2237$as_echo_n "checking $2 presence... " >&6; }
2238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239/* end confdefs.h. */
2240#include <$2>
2241_ACEOF
2242if ac_fn_c_try_cpp "$LINENO"; then :
2243 ac_header_preproc=yes
2244else
2245 ac_header_preproc=no
2246fi
2247rm -f conftest.err conftest.$ac_ext
2248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2249$as_echo "$ac_header_preproc" >&6; }
2250
2251# So? What about this header?
2252case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2253 yes:no: )
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2255$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2257$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2258 ;;
2259 no:yes:* )
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2261$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2263$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2265$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2267$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2269$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2270( cat <<\_ASBOX
2271## ----------------------------------------- ##
2272## Report this to http://www.imagemagick.org ##
2273## ----------------------------------------- ##
2274_ASBOX
2275 ) | sed "s/^/$as_me: WARNING: /" >&2
2276 ;;
2277esac
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2279$as_echo_n "checking for $2... " >&6; }
2280if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2281 $as_echo_n "(cached) " >&6
2282else
2283 eval "$3=\$ac_header_compiler"
2284fi
2285eval ac_res=\$$3
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2287$as_echo "$ac_res" >&6; }
2288fi
2289 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2290
2291} # ac_fn_c_check_header_mongrel
2292
2293# ac_fn_c_try_run LINENO
2294# ----------------------
2295# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2296# that executables *can* be run.
2297ac_fn_c_try_run ()
2298{
2299 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2300 if { { ac_try="$ac_link"
2301case "(($ac_try" in
2302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303 *) ac_try_echo=$ac_try;;
2304esac
2305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2306$as_echo "$ac_try_echo"; } >&5
2307 (eval "$ac_link") 2>&5
2308 ac_status=$?
2309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2310 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2311 { { case "(($ac_try" in
2312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2313 *) ac_try_echo=$ac_try;;
2314esac
2315eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2316$as_echo "$ac_try_echo"; } >&5
2317 (eval "$ac_try") 2>&5
2318 ac_status=$?
2319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2320 test $ac_status = 0; }; }; then :
2321 ac_retval=0
2322else
2323 $as_echo "$as_me: program exited with status $ac_status" >&5
2324 $as_echo "$as_me: failed program was:" >&5
2325sed 's/^/| /' conftest.$ac_ext >&5
2326
2327 ac_retval=$ac_status
2328fi
2329 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2330 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002331 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002332
2333} # ac_fn_c_try_run
2334
2335# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2336# -------------------------------------------------------
2337# Tests whether HEADER exists and can be compiled using the include files in
2338# INCLUDES, setting the cache variable VAR accordingly.
2339ac_fn_c_check_header_compile ()
2340{
2341 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2343$as_echo_n "checking for $2... " >&6; }
2344if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2345 $as_echo_n "(cached) " >&6
2346else
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348/* end confdefs.h. */
2349$4
2350#include <$2>
2351_ACEOF
2352if ac_fn_c_try_compile "$LINENO"; then :
2353 eval "$3=yes"
2354else
2355 eval "$3=no"
2356fi
2357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358fi
2359eval ac_res=\$$3
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361$as_echo "$ac_res" >&6; }
2362 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2363
2364} # ac_fn_c_check_header_compile
2365
cristya0b81c32010-01-22 02:54:33 +00002366# ac_fn_cxx_try_compile LINENO
2367# ----------------------------
2368# Try to compile conftest.$ac_ext, and return whether this succeeded.
2369ac_fn_cxx_try_compile ()
2370{
2371 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2372 rm -f conftest.$ac_objext
2373 if { { ac_try="$ac_compile"
2374case "(($ac_try" in
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2377esac
2378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2379$as_echo "$ac_try_echo"; } >&5
2380 (eval "$ac_compile") 2>conftest.err
2381 ac_status=$?
2382 if test -s conftest.err; then
2383 grep -v '^ *+' conftest.err >conftest.er1
2384 cat conftest.er1 >&5
2385 mv -f conftest.er1 conftest.err
2386 fi
2387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2388 test $ac_status = 0; } && {
2389 test -z "$ac_cxx_werror_flag" ||
2390 test ! -s conftest.err
2391 } && test -s conftest.$ac_objext; then :
2392 ac_retval=0
2393else
2394 $as_echo "$as_me: failed program was:" >&5
2395sed 's/^/| /' conftest.$ac_ext >&5
2396
2397 ac_retval=1
2398fi
2399 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2400 as_fn_set_status $ac_retval
2401
2402} # ac_fn_cxx_try_compile
2403
cristy8b350f62009-11-15 23:12:43 +00002404# ac_fn_c_try_link LINENO
2405# -----------------------
2406# Try to link conftest.$ac_ext, and return whether this succeeded.
2407ac_fn_c_try_link ()
2408{
2409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410 rm -f conftest.$ac_objext conftest$ac_exeext
2411 if { { ac_try="$ac_link"
2412case "(($ac_try" in
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2415esac
2416eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2417$as_echo "$ac_try_echo"; } >&5
2418 (eval "$ac_link") 2>conftest.err
2419 ac_status=$?
2420 if test -s conftest.err; then
2421 grep -v '^ *+' conftest.err >conftest.er1
2422 cat conftest.er1 >&5
2423 mv -f conftest.er1 conftest.err
2424 fi
2425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2426 test $ac_status = 0; } && {
2427 test -z "$ac_c_werror_flag" ||
2428 test ! -s conftest.err
2429 } && test -s conftest$ac_exeext && {
2430 test "$cross_compiling" = yes ||
2431 $as_test_x conftest$ac_exeext
2432 }; then :
2433 ac_retval=0
2434else
2435 $as_echo "$as_me: failed program was:" >&5
2436sed 's/^/| /' conftest.$ac_ext >&5
2437
2438 ac_retval=1
2439fi
2440 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2441 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2442 # interfere with the next link command; also delete a directory that is
2443 # left behind by Apple's compiler. We do this before executing the actions.
2444 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2445 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002446 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002447
2448} # ac_fn_c_try_link
2449
2450# ac_fn_c_check_func LINENO FUNC VAR
2451# ----------------------------------
2452# Tests whether FUNC exists, setting the cache variable VAR accordingly
2453ac_fn_c_check_func ()
2454{
2455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2457$as_echo_n "checking for $2... " >&6; }
2458if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2459 $as_echo_n "(cached) " >&6
2460else
2461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462/* end confdefs.h. */
2463/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2465#define $2 innocuous_$2
2466
2467/* System header to define __stub macros and hopefully few prototypes,
2468 which can conflict with char $2 (); below.
2469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2470 <limits.h> exists even on freestanding compilers. */
2471
2472#ifdef __STDC__
2473# include <limits.h>
2474#else
2475# include <assert.h>
2476#endif
2477
2478#undef $2
2479
2480/* Override any GCC internal prototype to avoid an error.
2481 Use char because int might match the return type of a GCC
2482 builtin and then its argument prototype would still apply. */
2483#ifdef __cplusplus
2484extern "C"
2485#endif
2486char $2 ();
2487/* The GNU C library defines this for functions which it implements
2488 to always fail with ENOSYS. Some functions are actually named
2489 something starting with __ and the normal name is an alias. */
2490#if defined __stub_$2 || defined __stub___$2
2491choke me
2492#endif
2493
2494int
2495main ()
2496{
2497return $2 ();
2498 ;
2499 return 0;
2500}
2501_ACEOF
2502if ac_fn_c_try_link "$LINENO"; then :
2503 eval "$3=yes"
2504else
2505 eval "$3=no"
2506fi
2507rm -f core conftest.err conftest.$ac_objext \
2508 conftest$ac_exeext conftest.$ac_ext
2509fi
2510eval ac_res=\$$3
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2512$as_echo "$ac_res" >&6; }
2513 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2514
2515} # ac_fn_c_check_func
2516
2517# ac_fn_cxx_try_cpp LINENO
2518# ------------------------
2519# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2520ac_fn_cxx_try_cpp ()
2521{
2522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2523 if { { ac_try="$ac_cpp conftest.$ac_ext"
2524case "(($ac_try" in
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2527esac
2528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2529$as_echo "$ac_try_echo"; } >&5
2530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2531 ac_status=$?
2532 if test -s conftest.err; then
2533 grep -v '^ *+' conftest.err >conftest.er1
2534 cat conftest.er1 >&5
2535 mv -f conftest.er1 conftest.err
2536 fi
2537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2538 test $ac_status = 0; } >/dev/null && {
2539 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2540 test ! -s conftest.err
2541 }; then :
2542 ac_retval=0
2543else
2544 $as_echo "$as_me: failed program was:" >&5
2545sed 's/^/| /' conftest.$ac_ext >&5
2546
2547 ac_retval=1
2548fi
2549 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002550 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002551
2552} # ac_fn_cxx_try_cpp
2553
2554# ac_fn_cxx_try_link LINENO
2555# -------------------------
2556# Try to link conftest.$ac_ext, and return whether this succeeded.
2557ac_fn_cxx_try_link ()
2558{
2559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2560 rm -f conftest.$ac_objext conftest$ac_exeext
2561 if { { ac_try="$ac_link"
2562case "(($ac_try" in
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2565esac
2566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2567$as_echo "$ac_try_echo"; } >&5
2568 (eval "$ac_link") 2>conftest.err
2569 ac_status=$?
2570 if test -s conftest.err; then
2571 grep -v '^ *+' conftest.err >conftest.er1
2572 cat conftest.er1 >&5
2573 mv -f conftest.er1 conftest.err
2574 fi
2575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2576 test $ac_status = 0; } && {
2577 test -z "$ac_cxx_werror_flag" ||
2578 test ! -s conftest.err
2579 } && test -s conftest$ac_exeext && {
2580 test "$cross_compiling" = yes ||
2581 $as_test_x conftest$ac_exeext
2582 }; then :
2583 ac_retval=0
2584else
2585 $as_echo "$as_me: failed program was:" >&5
2586sed 's/^/| /' conftest.$ac_ext >&5
2587
2588 ac_retval=1
2589fi
2590 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2591 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2592 # interfere with the next link command; also delete a directory that is
2593 # left behind by Apple's compiler. We do this before executing the actions.
2594 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002596 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002597
2598} # ac_fn_cxx_try_link
2599
2600# ac_fn_c_check_decl LINENO SYMBOL VAR
2601# ------------------------------------
2602# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2603ac_fn_c_check_decl ()
2604{
2605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2607$as_echo_n "checking whether $2 is declared... " >&6; }
2608if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2609 $as_echo_n "(cached) " >&6
2610else
2611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2612/* end confdefs.h. */
2613$4
2614int
2615main ()
2616{
2617#ifndef $2
2618 (void) $2;
2619#endif
2620
2621 ;
2622 return 0;
2623}
2624_ACEOF
2625if ac_fn_c_try_compile "$LINENO"; then :
2626 eval "$3=yes"
2627else
2628 eval "$3=no"
2629fi
2630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2631fi
2632eval ac_res=\$$3
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2634$as_echo "$ac_res" >&6; }
2635 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2636
2637} # ac_fn_c_check_decl
2638
2639# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2640# -------------------------------------------
2641# Tests whether TYPE exists after having included INCLUDES, setting cache
2642# variable VAR accordingly.
2643ac_fn_c_check_type ()
2644{
2645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2647$as_echo_n "checking for $2... " >&6; }
2648if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2649 $as_echo_n "(cached) " >&6
2650else
2651 eval "$3=no"
2652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653/* end confdefs.h. */
2654$4
2655int
2656main ()
2657{
2658if (sizeof ($2))
2659 return 0;
2660 ;
2661 return 0;
2662}
2663_ACEOF
2664if ac_fn_c_try_compile "$LINENO"; then :
2665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666/* end confdefs.h. */
2667$4
2668int
2669main ()
2670{
2671if (sizeof (($2)))
2672 return 0;
2673 ;
2674 return 0;
2675}
2676_ACEOF
2677if ac_fn_c_try_compile "$LINENO"; then :
2678
2679else
2680 eval "$3=yes"
2681fi
2682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683fi
2684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2685fi
2686eval ac_res=\$$3
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2688$as_echo "$ac_res" >&6; }
2689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2690
2691} # ac_fn_c_check_type
2692
cristy92703d82010-04-26 00:18:18 +00002693# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2694# ----------------------------------------------------
2695# Tries to find if the field MEMBER exists in type AGGR, after including
2696# INCLUDES, setting cache variable VAR accordingly.
2697ac_fn_c_check_member ()
2698{
2699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2701$as_echo_n "checking for $2.$3... " >&6; }
2702if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2703 $as_echo_n "(cached) " >&6
2704else
2705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2706/* end confdefs.h. */
2707$5
2708int
2709main ()
2710{
2711static $2 ac_aggr;
2712if (ac_aggr.$3)
2713return 0;
2714 ;
2715 return 0;
2716}
2717_ACEOF
2718if ac_fn_c_try_compile "$LINENO"; then :
2719 eval "$4=yes"
2720else
2721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2722/* end confdefs.h. */
2723$5
2724int
2725main ()
2726{
2727static $2 ac_aggr;
2728if (sizeof ac_aggr.$3)
2729return 0;
2730 ;
2731 return 0;
2732}
2733_ACEOF
2734if ac_fn_c_try_compile "$LINENO"; then :
2735 eval "$4=yes"
2736else
2737 eval "$4=no"
2738fi
2739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740fi
2741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2742fi
2743eval ac_res=\$$4
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2745$as_echo "$ac_res" >&6; }
2746 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2747
2748} # ac_fn_c_check_member
2749
cristy8b350f62009-11-15 23:12:43 +00002750# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2751# --------------------------------------------
2752# Tries to find the compile-time value of EXPR in a program that includes
2753# INCLUDES, setting VAR accordingly. Returns whether the value could be
2754# computed
2755ac_fn_c_compute_int ()
2756{
2757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2758 if test "$cross_compiling" = yes; then
2759 # Depending upon the size, compute the lo and hi bounds.
2760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761/* end confdefs.h. */
2762$4
2763int
2764main ()
2765{
2766static int test_array [1 - 2 * !(($2) >= 0)];
2767test_array [0] = 0
2768
2769 ;
2770 return 0;
2771}
2772_ACEOF
2773if ac_fn_c_try_compile "$LINENO"; then :
2774 ac_lo=0 ac_mid=0
2775 while :; do
2776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2777/* end confdefs.h. */
2778$4
2779int
2780main ()
2781{
2782static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2783test_array [0] = 0
2784
2785 ;
2786 return 0;
2787}
2788_ACEOF
2789if ac_fn_c_try_compile "$LINENO"; then :
2790 ac_hi=$ac_mid; break
2791else
2792 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2793 if test $ac_lo -le $ac_mid; then
2794 ac_lo= ac_hi=
2795 break
2796 fi
2797 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2798fi
2799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2800 done
2801else
2802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803/* end confdefs.h. */
2804$4
2805int
2806main ()
2807{
2808static int test_array [1 - 2 * !(($2) < 0)];
2809test_array [0] = 0
2810
2811 ;
2812 return 0;
2813}
2814_ACEOF
2815if ac_fn_c_try_compile "$LINENO"; then :
2816 ac_hi=-1 ac_mid=-1
2817 while :; do
2818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2819/* end confdefs.h. */
2820$4
2821int
2822main ()
2823{
2824static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2825test_array [0] = 0
2826
2827 ;
2828 return 0;
2829}
2830_ACEOF
2831if ac_fn_c_try_compile "$LINENO"; then :
2832 ac_lo=$ac_mid; break
2833else
2834 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2835 if test $ac_mid -le $ac_hi; then
2836 ac_lo= ac_hi=
2837 break
2838 fi
2839 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2840fi
2841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2842 done
2843else
2844 ac_lo= ac_hi=
2845fi
2846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2847fi
2848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2849# Binary search between lo and hi bounds.
2850while test "x$ac_lo" != "x$ac_hi"; do
2851 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2853/* end confdefs.h. */
2854$4
2855int
2856main ()
2857{
2858static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2859test_array [0] = 0
2860
2861 ;
2862 return 0;
2863}
2864_ACEOF
2865if ac_fn_c_try_compile "$LINENO"; then :
2866 ac_hi=$ac_mid
2867else
2868 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2869fi
2870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2871done
2872case $ac_lo in #((
2873?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2874'') ac_retval=1 ;;
2875esac
2876 else
2877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2878/* end confdefs.h. */
2879$4
2880static long int longval () { return $2; }
2881static unsigned long int ulongval () { return $2; }
2882#include <stdio.h>
2883#include <stdlib.h>
2884int
2885main ()
2886{
2887
2888 FILE *f = fopen ("conftest.val", "w");
2889 if (! f)
2890 return 1;
2891 if (($2) < 0)
2892 {
2893 long int i = longval ();
2894 if (i != ($2))
2895 return 1;
2896 fprintf (f, "%ld", i);
2897 }
2898 else
2899 {
2900 unsigned long int i = ulongval ();
2901 if (i != ($2))
2902 return 1;
2903 fprintf (f, "%lu", i);
2904 }
2905 /* Do not output a trailing newline, as this causes \r\n confusion
2906 on some platforms. */
2907 return ferror (f) || fclose (f) != 0;
2908
2909 ;
2910 return 0;
2911}
2912_ACEOF
2913if ac_fn_c_try_run "$LINENO"; then :
2914 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2915else
2916 ac_retval=1
2917fi
2918rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2919 conftest.$ac_objext conftest.beam conftest.$ac_ext
2920rm -f conftest.val
2921
2922 fi
2923 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002924 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002925
2926} # ac_fn_c_compute_int
2927
2928# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2929# ---------------------------------------------------------
2930# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2931# the include files in INCLUDES and setting the cache variable VAR
2932# accordingly.
2933ac_fn_cxx_check_header_mongrel ()
2934{
2935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2936 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2938$as_echo_n "checking for $2... " >&6; }
2939if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2940 $as_echo_n "(cached) " >&6
2941fi
2942eval ac_res=\$$3
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2944$as_echo "$ac_res" >&6; }
2945else
2946 # Is the header compilable?
2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2948$as_echo_n "checking $2 usability... " >&6; }
2949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2950/* end confdefs.h. */
2951$4
2952#include <$2>
2953_ACEOF
2954if ac_fn_cxx_try_compile "$LINENO"; then :
2955 ac_header_compiler=yes
2956else
2957 ac_header_compiler=no
2958fi
2959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2961$as_echo "$ac_header_compiler" >&6; }
2962
2963# Is the header present?
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2965$as_echo_n "checking $2 presence... " >&6; }
2966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2967/* end confdefs.h. */
2968#include <$2>
2969_ACEOF
2970if ac_fn_cxx_try_cpp "$LINENO"; then :
2971 ac_header_preproc=yes
2972else
2973 ac_header_preproc=no
2974fi
2975rm -f conftest.err conftest.$ac_ext
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2977$as_echo "$ac_header_preproc" >&6; }
2978
2979# So? What about this header?
2980case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2981 yes:no: )
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2983$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2985$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2986 ;;
2987 no:yes:* )
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2989$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2991$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2993$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2995$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2997$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2998( cat <<\_ASBOX
2999## ----------------------------------------- ##
3000## Report this to http://www.imagemagick.org ##
3001## ----------------------------------------- ##
3002_ASBOX
3003 ) | sed "s/^/$as_me: WARNING: /" >&2
3004 ;;
3005esac
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3007$as_echo_n "checking for $2... " >&6; }
3008if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
3009 $as_echo_n "(cached) " >&6
3010else
3011 eval "$3=\$ac_header_compiler"
3012fi
3013eval ac_res=\$$3
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3015$as_echo "$ac_res" >&6; }
3016fi
3017 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3018
3019} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003020cat >config.log <<_ACEOF
3021This file contains any messages produced by compilers while
3022running configure, to aid debugging if configure makes a mistake.
3023
cristy664b8d72010-05-17 13:53:36 +00003024It was created by ImageMagick $as_me 6.6.2, which was
cristycd4c5312009-11-22 01:19:08 +00003025generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003026
3027 $ $0 $@
3028
3029_ACEOF
3030exec 5>>config.log
3031{
3032cat <<_ASUNAME
3033## --------- ##
3034## Platform. ##
3035## --------- ##
3036
3037hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3038uname -m = `(uname -m) 2>/dev/null || echo unknown`
3039uname -r = `(uname -r) 2>/dev/null || echo unknown`
3040uname -s = `(uname -s) 2>/dev/null || echo unknown`
3041uname -v = `(uname -v) 2>/dev/null || echo unknown`
3042
3043/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3044/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3045
3046/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3047/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3048/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3049/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3050/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3051/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3052/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3053
3054_ASUNAME
3055
3056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057for as_dir in $PATH
3058do
3059 IFS=$as_save_IFS
3060 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003061 $as_echo "PATH: $as_dir"
3062 done
cristy3ed852e2009-09-05 21:47:34 +00003063IFS=$as_save_IFS
3064
3065} >&5
3066
3067cat >&5 <<_ACEOF
3068
3069
3070## ----------- ##
3071## Core tests. ##
3072## ----------- ##
3073
3074_ACEOF
3075
3076
3077# Keep a trace of the command line.
3078# Strip out --no-create and --no-recursion so they do not pile up.
3079# Strip out --silent because we don't want to record it for future runs.
3080# Also quote any args containing shell meta-characters.
3081# Make two passes to allow for proper duplicate-argument suppression.
3082ac_configure_args=
3083ac_configure_args0=
3084ac_configure_args1=
3085ac_must_keep_next=false
3086for ac_pass in 1 2
3087do
3088 for ac_arg
3089 do
3090 case $ac_arg in
3091 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3093 | -silent | --silent | --silen | --sile | --sil)
3094 continue ;;
3095 *\'*)
3096 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3097 esac
3098 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003099 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003100 2)
cristy8b350f62009-11-15 23:12:43 +00003101 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003102 if test $ac_must_keep_next = true; then
3103 ac_must_keep_next=false # Got value, back to normal.
3104 else
3105 case $ac_arg in
3106 *=* | --config-cache | -C | -disable-* | --disable-* \
3107 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3108 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3109 | -with-* | --with-* | -without-* | --without-* | --x)
3110 case "$ac_configure_args0 " in
3111 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3112 esac
3113 ;;
3114 -* ) ac_must_keep_next=true ;;
3115 esac
3116 fi
cristy8b350f62009-11-15 23:12:43 +00003117 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003118 ;;
3119 esac
3120 done
3121done
cristy8b350f62009-11-15 23:12:43 +00003122{ ac_configure_args0=; unset ac_configure_args0;}
3123{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003124
3125# When interrupted or exit'd, cleanup temporary files, and complete
3126# config.log. We remove comments because anyway the quotes in there
3127# would cause problems or look ugly.
3128# WARNING: Use '\'' to represent an apostrophe within the trap.
3129# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3130trap 'exit_status=$?
3131 # Save into config.log some information that might help in debugging.
3132 {
3133 echo
3134
3135 cat <<\_ASBOX
3136## ---------------- ##
3137## Cache variables. ##
3138## ---------------- ##
3139_ASBOX
3140 echo
3141 # The following way of writing the cache mishandles newlines in values,
3142(
3143 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3144 eval ac_val=\$$ac_var
3145 case $ac_val in #(
3146 *${as_nl}*)
3147 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003148 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003149$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3150 esac
3151 case $ac_var in #(
3152 _ | IFS | as_nl) ;; #(
3153 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003154 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003155 esac ;;
3156 esac
3157 done
3158 (set) 2>&1 |
3159 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3160 *${as_nl}ac_space=\ *)
3161 sed -n \
3162 "s/'\''/'\''\\\\'\'''\''/g;
3163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3164 ;; #(
3165 *)
3166 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3167 ;;
3168 esac |
3169 sort
3170)
3171 echo
3172
3173 cat <<\_ASBOX
3174## ----------------- ##
3175## Output variables. ##
3176## ----------------- ##
3177_ASBOX
3178 echo
3179 for ac_var in $ac_subst_vars
3180 do
3181 eval ac_val=\$$ac_var
3182 case $ac_val in
3183 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3184 esac
3185 $as_echo "$ac_var='\''$ac_val'\''"
3186 done | sort
3187 echo
3188
3189 if test -n "$ac_subst_files"; then
3190 cat <<\_ASBOX
3191## ------------------- ##
3192## File substitutions. ##
3193## ------------------- ##
3194_ASBOX
3195 echo
3196 for ac_var in $ac_subst_files
3197 do
3198 eval ac_val=\$$ac_var
3199 case $ac_val in
3200 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3201 esac
3202 $as_echo "$ac_var='\''$ac_val'\''"
3203 done | sort
3204 echo
3205 fi
3206
3207 if test -s confdefs.h; then
3208 cat <<\_ASBOX
3209## ----------- ##
3210## confdefs.h. ##
3211## ----------- ##
3212_ASBOX
3213 echo
3214 cat confdefs.h
3215 echo
3216 fi
3217 test "$ac_signal" != 0 &&
3218 $as_echo "$as_me: caught signal $ac_signal"
3219 $as_echo "$as_me: exit $exit_status"
3220 } >&5
3221 rm -f core *.core core.conftest.* &&
3222 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3223 exit $exit_status
3224' 0
3225for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003226 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003227done
3228ac_signal=0
3229
3230# confdefs.h avoids OS command line length limits that DEFS can exceed.
3231rm -f -r conftest* confdefs.h
3232
cristy8b350f62009-11-15 23:12:43 +00003233$as_echo "/* confdefs.h */" > confdefs.h
3234
cristy3ed852e2009-09-05 21:47:34 +00003235# Predefined preprocessor variables.
3236
3237cat >>confdefs.h <<_ACEOF
3238#define PACKAGE_NAME "$PACKAGE_NAME"
3239_ACEOF
3240
cristy3ed852e2009-09-05 21:47:34 +00003241cat >>confdefs.h <<_ACEOF
3242#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3243_ACEOF
3244
cristy3ed852e2009-09-05 21:47:34 +00003245cat >>confdefs.h <<_ACEOF
3246#define PACKAGE_VERSION "$PACKAGE_VERSION"
3247_ACEOF
3248
cristy3ed852e2009-09-05 21:47:34 +00003249cat >>confdefs.h <<_ACEOF
3250#define PACKAGE_STRING "$PACKAGE_STRING"
3251_ACEOF
3252
cristy3ed852e2009-09-05 21:47:34 +00003253cat >>confdefs.h <<_ACEOF
3254#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3255_ACEOF
3256
cristy8b350f62009-11-15 23:12:43 +00003257cat >>confdefs.h <<_ACEOF
3258#define PACKAGE_URL "$PACKAGE_URL"
3259_ACEOF
3260
cristy3ed852e2009-09-05 21:47:34 +00003261
3262# Let the site file select an alternate cache file if it wants to.
3263# Prefer an explicitly selected file to automatically selected ones.
3264ac_site_file1=NONE
3265ac_site_file2=NONE
3266if test -n "$CONFIG_SITE"; then
3267 ac_site_file1=$CONFIG_SITE
3268elif test "x$prefix" != xNONE; then
3269 ac_site_file1=$prefix/share/config.site
3270 ac_site_file2=$prefix/etc/config.site
3271else
3272 ac_site_file1=$ac_default_prefix/share/config.site
3273 ac_site_file2=$ac_default_prefix/etc/config.site
3274fi
3275for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3276do
3277 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003278 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003279 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003280$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3281 sed 's/^/| /' "$ac_site_file" >&5
3282 . "$ac_site_file"
3283 fi
3284done
3285
3286if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003287 # Some versions of bash will fail to source /dev/null (special files
3288 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3289 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003290 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003291$as_echo "$as_me: loading cache $cache_file" >&6;}
3292 case $cache_file in
3293 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3294 *) . "./$cache_file";;
3295 esac
3296 fi
3297else
cristy8b350f62009-11-15 23:12:43 +00003298 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003299$as_echo "$as_me: creating cache $cache_file" >&6;}
3300 >$cache_file
3301fi
3302
cristycd4c5312009-11-22 01:19:08 +00003303as_fn_append ac_header_list " stdlib.h"
3304as_fn_append ac_header_list " unistd.h"
3305as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003306# Check that the precious variables saved in the cache have kept the same
3307# value.
3308ac_cache_corrupted=false
3309for ac_var in $ac_precious_vars; do
3310 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3311 eval ac_new_set=\$ac_env_${ac_var}_set
3312 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3313 eval ac_new_val=\$ac_env_${ac_var}_value
3314 case $ac_old_set,$ac_new_set in
3315 set,)
cristy8b350f62009-11-15 23:12:43 +00003316 { $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 +00003317$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3318 ac_cache_corrupted=: ;;
3319 ,set)
cristy8b350f62009-11-15 23:12:43 +00003320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003321$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3322 ac_cache_corrupted=: ;;
3323 ,);;
3324 *)
3325 if test "x$ac_old_val" != "x$ac_new_val"; then
3326 # differences in whitespace do not lead to failure.
3327 ac_old_val_w=`echo x $ac_old_val`
3328 ac_new_val_w=`echo x $ac_new_val`
3329 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003331$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3332 ac_cache_corrupted=:
3333 else
cristy8b350f62009-11-15 23:12:43 +00003334 { $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 +00003335$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3336 eval $ac_var=\$ac_old_val
3337 fi
cristy8b350f62009-11-15 23:12:43 +00003338 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003339$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003340 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003341$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3342 fi;;
3343 esac
3344 # Pass precious variables to config.status.
3345 if test "$ac_new_set" = set; then
3346 case $ac_new_val in
3347 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3348 *) ac_arg=$ac_var=$ac_new_val ;;
3349 esac
3350 case " $ac_configure_args " in
3351 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003352 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003353 esac
3354 fi
3355done
3356if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003360$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003361 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003362fi
cristy8b350f62009-11-15 23:12:43 +00003363## -------------------- ##
3364## Main body of script. ##
3365## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003366
3367ac_ext=c
3368ac_cpp='$CPP $CPPFLAGS'
3369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371ac_compiler_gnu=$ac_cv_c_compiler_gnu
3372
3373
3374
3375ac_aux_dir=
3376for ac_dir in config "$srcdir"/config; do
cristy8b350f62009-11-15 23:12:43 +00003377 for ac_t in install-sh install.sh shtool; do
3378 if test -f "$ac_dir/$ac_t"; then
3379 ac_aux_dir=$ac_dir
3380 ac_install_sh="$ac_aux_dir/$ac_t -c"
3381 break 2
3382 fi
3383 done
cristy3ed852e2009-09-05 21:47:34 +00003384done
3385if test -z "$ac_aux_dir"; then
cristy8b350f62009-11-15 23:12:43 +00003386 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003387fi
3388
3389# These three variables are undocumented and unsupported,
3390# and are intended to be withdrawn in a future Autoconf release.
3391# They can cause serious problems if a builder's source tree is in a directory
3392# whose full name contains unusual characters.
3393ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3394ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3395ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3396
3397
3398
3399
3400ac_config_headers="$ac_config_headers config/config.h"
3401
3402ac_config_commands="$ac_config_commands magick/magick-config.h"
3403
cristy430a7312010-01-21 20:44:04 +00003404ac_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 +00003405
3406
3407#
3408# Save initial user-tunable values
3409#
3410USER_LIBS=$LIBS
3411for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3412 eval isset=\${$var+set}
3413 if test "$isset" = 'set'; then
3414 eval val=$`echo $var`
3415 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3416 fi
3417done
3418
3419
3420CONFIGURE_ARGS="$0 ${ac_configure_args}"
3421
3422
3423# Source file containing package/library versioning information.
3424. ${srcdir}/version.sh
3425
cristy15a88782010-01-31 23:24:49 +00003426echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003427# Make sure we can run config.sub.
3428$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy8b350f62009-11-15 23:12:43 +00003429 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003430
cristy8b350f62009-11-15 23:12:43 +00003431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003432$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003433if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003434 $as_echo_n "(cached) " >&6
3435else
3436 ac_build_alias=$build_alias
3437test "x$ac_build_alias" = x &&
3438 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3439test "x$ac_build_alias" = x &&
cristy8b350f62009-11-15 23:12:43 +00003440 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003441ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003442 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003443
3444fi
cristy8b350f62009-11-15 23:12:43 +00003445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003446$as_echo "$ac_cv_build" >&6; }
3447case $ac_cv_build in
3448*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003449*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003450esac
3451build=$ac_cv_build
3452ac_save_IFS=$IFS; IFS='-'
3453set x $ac_cv_build
3454shift
3455build_cpu=$1
3456build_vendor=$2
3457shift; shift
3458# Remember, the first character of IFS is used to create $*,
3459# except with old shells:
3460build_os=$*
3461IFS=$ac_save_IFS
3462case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3463
3464
cristy8b350f62009-11-15 23:12:43 +00003465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003466$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003467if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003468 $as_echo_n "(cached) " >&6
3469else
3470 if test "x$host_alias" = x; then
3471 ac_cv_host=$ac_cv_build
3472else
3473 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003474 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003475fi
3476
3477fi
cristy8b350f62009-11-15 23:12:43 +00003478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003479$as_echo "$ac_cv_host" >&6; }
3480case $ac_cv_host in
3481*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003482*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003483esac
3484host=$ac_cv_host
3485ac_save_IFS=$IFS; IFS='-'
3486set x $ac_cv_host
3487shift
3488host_cpu=$1
3489host_vendor=$2
3490shift; shift
3491# Remember, the first character of IFS is used to create $*,
3492# except with old shells:
3493host_os=$*
3494IFS=$ac_save_IFS
3495case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3496
3497
cristy8b350f62009-11-15 23:12:43 +00003498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003499$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003500if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003501 $as_echo_n "(cached) " >&6
3502else
3503 if test "x$target_alias" = x; then
3504 ac_cv_target=$ac_cv_host
3505else
3506 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003507 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003508fi
3509
3510fi
cristy8b350f62009-11-15 23:12:43 +00003511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003512$as_echo "$ac_cv_target" >&6; }
3513case $ac_cv_target in
3514*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003515*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003516esac
3517target=$ac_cv_target
3518ac_save_IFS=$IFS; IFS='-'
3519set x $ac_cv_target
3520shift
3521target_cpu=$1
3522target_vendor=$2
3523shift; shift
3524# Remember, the first character of IFS is used to create $*,
3525# except with old shells:
3526target_os=$*
3527IFS=$ac_save_IFS
3528case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3529
3530
3531# The aliases save the names the user supplied, while $host etc.
3532# will get canonicalized.
3533test -n "$target_alias" &&
3534 test "$program_prefix$program_suffix$program_transform_name" = \
3535 NONENONEs,x,x, &&
3536 program_prefix=${target_alias}-
3537
cristy837d6dc2010-02-27 01:16:57 +00003538
3539
3540
3541
cristy3225a072010-04-17 01:47:28 +00003542MAGICK_TARGET_CPU=$target_cpu
3543
3544
3545MAGICK_TARGET_VENDOR=$target_vendor
3546
3547
3548MAGICK_TARGET_OS=$target_os
3549
3550
cristy3ed852e2009-09-05 21:47:34 +00003551# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003552MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3553
3554MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3555
cristy3ed852e2009-09-05 21:47:34 +00003556
3557
3558# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003560$as_echo_n "checking whether build environment is sane... " >&6; }
3561# Just in case
3562sleep 1
3563echo timestamp > conftest.file
3564# Reject unsafe characters in $srcdir or the absolute working directory
3565# name. Accept space and tab only in the latter.
3566am_lf='
3567'
3568case `pwd` in
3569 *[\\\"\#\$\&\'\`$am_lf]*)
cristy8b350f62009-11-15 23:12:43 +00003570 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003571esac
3572case $srcdir in
3573 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy8b350f62009-11-15 23:12:43 +00003574 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003575esac
3576
3577# Do `set' in a subshell so we don't clobber the current shell's
3578# arguments. Must try -L first in case configure is actually a
3579# symlink; some systems play weird games with the mod time of symlinks
3580# (eg FreeBSD returns the mod time of the symlink's containing
3581# directory).
3582if (
3583 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3584 if test "$*" = "X"; then
3585 # -L didn't work.
3586 set X `ls -t "$srcdir/configure" conftest.file`
3587 fi
3588 rm -f conftest.file
3589 if test "$*" != "X $srcdir/configure conftest.file" \
3590 && test "$*" != "X conftest.file $srcdir/configure"; then
3591
3592 # If neither matched, then we have a broken ls. This can happen
3593 # if, for instance, CONFIG_SHELL is bash and it inherits a
3594 # broken ls alias from the environment. This has actually
3595 # happened. Such a system could not be considered "sane".
cristy8b350f62009-11-15 23:12:43 +00003596 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3597alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003598 fi
3599
3600 test "$2" = conftest.file
3601 )
3602then
3603 # Ok.
3604 :
3605else
cristy8b350f62009-11-15 23:12:43 +00003606 as_fn_error "newly created file is older than distributed files!
3607Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003608fi
cristy8b350f62009-11-15 23:12:43 +00003609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003610$as_echo "yes" >&6; }
3611
3612am__api_version='1.11'
3613
3614# Find a good install program. We prefer a C program (faster),
3615# so one script is as good as another. But avoid the broken or
3616# incompatible versions:
3617# SysV /etc/install, /usr/sbin/install
3618# SunOS /usr/etc/install
3619# IRIX /sbin/install
3620# AIX /bin/install
3621# AmigaOS /C/install, which installs bootblocks on floppy discs
3622# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3623# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3624# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3625# OS/2's system install, which has a completely different semantic
3626# ./install, which can be erroneously created by make from ./install.sh.
3627# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003629$as_echo_n "checking for a BSD-compatible install... " >&6; }
3630if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003631if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003632 $as_echo_n "(cached) " >&6
3633else
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635for as_dir in $PATH
3636do
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003639 # Account for people who put trailing slashes in PATH elements.
3640case $as_dir/ in #((
3641 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003642 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003643 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003644 /usr/ucb/* ) ;;
3645 *)
3646 # OSF1 and SCO ODT 3.0 have their own names for install.
3647 # Don't use installbsd from OSF since it installs stuff as root
3648 # by default.
3649 for ac_prog in ginstall scoinst install; do
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3652 if test $ac_prog = install &&
3653 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3654 # AIX install. It has an incompatible calling convention.
3655 :
3656 elif test $ac_prog = install &&
3657 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3658 # program-specific install script used by HP pwplus--don't use.
3659 :
3660 else
3661 rm -rf conftest.one conftest.two conftest.dir
3662 echo one > conftest.one
3663 echo two > conftest.two
3664 mkdir conftest.dir
3665 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3666 test -s conftest.one && test -s conftest.two &&
3667 test -s conftest.dir/conftest.one &&
3668 test -s conftest.dir/conftest.two
3669 then
3670 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3671 break 3
3672 fi
3673 fi
3674 fi
3675 done
3676 done
3677 ;;
3678esac
3679
cristy8b350f62009-11-15 23:12:43 +00003680 done
cristy3ed852e2009-09-05 21:47:34 +00003681IFS=$as_save_IFS
3682
3683rm -rf conftest.one conftest.two conftest.dir
3684
3685fi
3686 if test "${ac_cv_path_install+set}" = set; then
3687 INSTALL=$ac_cv_path_install
3688 else
3689 # As a last resort, use the slow shell script. Don't cache a
3690 # value for INSTALL within a source directory, because that will
3691 # break other packages using the cache if that directory is
3692 # removed, or if the value is a relative name.
3693 INSTALL=$ac_install_sh
3694 fi
3695fi
cristy8b350f62009-11-15 23:12:43 +00003696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003697$as_echo "$INSTALL" >&6; }
3698
3699# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3700# It thinks the first close brace ends the variable substitution.
3701test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3702
3703test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3704
3705test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3706
3707test "$program_prefix" != NONE &&
3708 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3709# Use a double $ so make ignores it.
3710test "$program_suffix" != NONE &&
3711 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3712# Double any \ or $.
3713# By default was `s,x,x', remove it if useless.
3714ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3715program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3716
3717# expand $ac_aux_dir to an absolute path
3718am_aux_dir=`cd $ac_aux_dir && pwd`
3719
3720if test x"${MISSING+set}" != xset; then
3721 case $am_aux_dir in
3722 *\ * | *\ *)
3723 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3724 *)
3725 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3726 esac
3727fi
3728# Use eval to expand $SHELL
3729if eval "$MISSING --run true"; then
3730 am_missing_run="$MISSING --run "
3731else
3732 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003734$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3735fi
3736
3737if test x"${install_sh}" != xset; then
3738 case $am_aux_dir in
3739 *\ * | *\ *)
3740 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3741 *)
3742 install_sh="\${SHELL} $am_aux_dir/install-sh"
3743 esac
3744fi
3745
3746# Installed binaries are usually stripped using `strip' when the user
3747# run `make install-strip'. However `strip' might not be the right
3748# tool to use in cross-compilation environments, therefore Automake
3749# will honor the `STRIP' environment variable to overrule this program.
3750if test "$cross_compiling" != no; then
3751 if test -n "$ac_tool_prefix"; then
3752 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3753set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003755$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003756if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003757 $as_echo_n "(cached) " >&6
3758else
3759 if test -n "$STRIP"; then
3760 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3761else
3762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763for as_dir in $PATH
3764do
3765 IFS=$as_save_IFS
3766 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003767 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3769 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003771 break 2
3772 fi
3773done
cristy8b350f62009-11-15 23:12:43 +00003774 done
cristy3ed852e2009-09-05 21:47:34 +00003775IFS=$as_save_IFS
3776
3777fi
3778fi
3779STRIP=$ac_cv_prog_STRIP
3780if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003782$as_echo "$STRIP" >&6; }
3783else
cristy8b350f62009-11-15 23:12:43 +00003784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003785$as_echo "no" >&6; }
3786fi
3787
3788
3789fi
3790if test -z "$ac_cv_prog_STRIP"; then
3791 ac_ct_STRIP=$STRIP
3792 # Extract the first word of "strip", so it can be a program name with args.
3793set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003795$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003796if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003797 $as_echo_n "(cached) " >&6
3798else
3799 if test -n "$ac_ct_STRIP"; then
3800 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3801else
3802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803for as_dir in $PATH
3804do
3805 IFS=$as_save_IFS
3806 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003807 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3809 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003811 break 2
3812 fi
3813done
cristy8b350f62009-11-15 23:12:43 +00003814 done
cristy3ed852e2009-09-05 21:47:34 +00003815IFS=$as_save_IFS
3816
3817fi
3818fi
3819ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3820if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003822$as_echo "$ac_ct_STRIP" >&6; }
3823else
cristy8b350f62009-11-15 23:12:43 +00003824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003825$as_echo "no" >&6; }
3826fi
3827
3828 if test "x$ac_ct_STRIP" = x; then
3829 STRIP=":"
3830 else
3831 case $cross_compiling:$ac_tool_warned in
3832yes:)
cristy8b350f62009-11-15 23:12:43 +00003833{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003834$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3835ac_tool_warned=yes ;;
3836esac
3837 STRIP=$ac_ct_STRIP
3838 fi
3839else
3840 STRIP="$ac_cv_prog_STRIP"
3841fi
3842
3843fi
3844INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3845
cristy8b350f62009-11-15 23:12:43 +00003846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003847$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3848if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003849 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003850 $as_echo_n "(cached) " >&6
3851else
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3854do
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003857 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3860 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3861 'mkdir (GNU coreutils) '* | \
3862 'mkdir (coreutils) '* | \
3863 'mkdir (fileutils) '4.1*)
3864 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3865 break 3;;
3866 esac
3867 done
3868 done
cristy8b350f62009-11-15 23:12:43 +00003869 done
cristy3ed852e2009-09-05 21:47:34 +00003870IFS=$as_save_IFS
3871
3872fi
3873
cristycd4c5312009-11-22 01:19:08 +00003874 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003875 if test "${ac_cv_path_mkdir+set}" = set; then
3876 MKDIR_P="$ac_cv_path_mkdir -p"
3877 else
3878 # As a last resort, use the slow shell script. Don't cache a
3879 # value for MKDIR_P within a source directory, because that will
3880 # break other packages using the cache if that directory is
3881 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003882 MKDIR_P="$ac_install_sh -d"
3883 fi
3884fi
cristy8b350f62009-11-15 23:12:43 +00003885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003886$as_echo "$MKDIR_P" >&6; }
3887
3888mkdir_p="$MKDIR_P"
3889case $mkdir_p in
3890 [\\/$]* | ?:[\\/]*) ;;
3891 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3892esac
3893
3894for ac_prog in gawk mawk nawk awk
3895do
3896 # Extract the first word of "$ac_prog", so it can be a program name with args.
3897set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003899$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003900if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003901 $as_echo_n "(cached) " >&6
3902else
3903 if test -n "$AWK"; then
3904 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3905else
3906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907for as_dir in $PATH
3908do
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003911 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3913 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003915 break 2
3916 fi
3917done
cristy8b350f62009-11-15 23:12:43 +00003918 done
cristy3ed852e2009-09-05 21:47:34 +00003919IFS=$as_save_IFS
3920
3921fi
3922fi
3923AWK=$ac_cv_prog_AWK
3924if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003926$as_echo "$AWK" >&6; }
3927else
cristy8b350f62009-11-15 23:12:43 +00003928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003929$as_echo "no" >&6; }
3930fi
3931
3932
3933 test -n "$AWK" && break
3934done
3935
cristy8b350f62009-11-15 23:12:43 +00003936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003937$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3938set x ${MAKE-make}
3939ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00003940if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003941 $as_echo_n "(cached) " >&6
3942else
3943 cat >conftest.make <<\_ACEOF
3944SHELL = /bin/sh
3945all:
3946 @echo '@@@%%%=$(MAKE)=@@@%%%'
3947_ACEOF
3948# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3949case `${MAKE-make} -f conftest.make 2>/dev/null` in
3950 *@@@%%%=?*=@@@%%%*)
3951 eval ac_cv_prog_make_${ac_make}_set=yes;;
3952 *)
3953 eval ac_cv_prog_make_${ac_make}_set=no;;
3954esac
3955rm -f conftest.make
3956fi
3957if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003959$as_echo "yes" >&6; }
3960 SET_MAKE=
3961else
cristy8b350f62009-11-15 23:12:43 +00003962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003963$as_echo "no" >&6; }
3964 SET_MAKE="MAKE=${MAKE-make}"
3965fi
3966
3967rm -rf .tst 2>/dev/null
3968mkdir .tst 2>/dev/null
3969if test -d .tst; then
3970 am__leading_dot=.
3971else
3972 am__leading_dot=_
3973fi
3974rmdir .tst 2>/dev/null
3975
3976if test "`cd $srcdir && pwd`" != "`pwd`"; then
3977 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3978 # is not polluted with repeated "-I."
3979 am__isrc=' -I$(srcdir)'
3980 # test to see if srcdir already configured
3981 if test -f $srcdir/config.status; then
cristy8b350f62009-11-15 23:12:43 +00003982 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003983 fi
3984fi
3985
3986# test whether we have cygpath
3987if test -z "$CYGPATH_W"; then
3988 if (cygpath --version) >/dev/null 2>/dev/null; then
3989 CYGPATH_W='cygpath -w'
3990 else
3991 CYGPATH_W=echo
3992 fi
3993fi
3994
3995
3996# Define the identity of the package.
3997 PACKAGE=$PACKAGE_NAME
cristy15a88782010-01-31 23:24:49 +00003998 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003999
4000
4001# Some tools Automake needs.
4002
4003ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4004
4005
4006AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4007
4008
4009AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4010
4011
4012AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4013
4014
4015MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4016
4017# We need awk for the "check" target. The system "awk" is bad on
4018# some platforms.
4019# Always define AMTAR for backward compatibility.
4020
4021AMTAR=${AMTAR-"${am_missing_run}tar"}
4022
4023am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4024
4025
4026
4027
4028
4029
4030# Enable support for silent build rules
4031# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00004032if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004033 enableval=$enable_silent_rules;
4034fi
4035
4036case $enable_silent_rules in
4037yes) AM_DEFAULT_VERBOSITY=0;;
4038no) AM_DEFAULT_VERBOSITY=1;;
4039*) AM_DEFAULT_VERBOSITY=0;;
4040esac
4041AM_BACKSLASH='\'
4042
4043
4044MAGICK_LIB_VERSION="0x"
4045if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4046 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4047fi
4048MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4049if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4050 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4051fi
4052MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4053if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4054 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4055fi
4056MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4057
4058
4059# Definition used to define MagickLibVersionText in version.h
4060MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4061
4062
4063# Definition used to define MagickLibVersionNumber in version.h
4064MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4065
4066
4067# Regenerate config.status if ChangeLog or version.sh is updated.
4068CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4069
4070
4071PERLMAINCC=$CC
4072
4073MAGICK_CFLAGS=''
4074MAGICK_CPPFLAGS=$CPPFLAGS_USER
4075MAGICK_PCFLAGS=$CPPFLAGS_USER
4076MAGICK_LDFLAGS=''
4077MAGICK_LIBS=''
4078
4079#
4080# Evaluate shell variable equivalents to Makefile directory variables
4081#
4082if test "x$prefix" = xNONE; then
4083 prefix=$ac_default_prefix
4084fi
4085# Let make expand exec_prefix.
4086if test "x$exec_prefix" = xNONE; then
4087 exec_prefix='${prefix}'
4088fi
4089
4090#
4091eval "eval PREFIX_DIR=${prefix}"
4092
4093eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4094
4095eval "eval BIN_DIR=$bindir"
4096
4097eval "eval SBIN_DIR=$sbindir"
4098
4099eval "eval LIBEXEC_DIR=$libexecdir"
4100
4101eval "eval DATA_DIR=$datadir"
4102
4103eval "eval SYSCONF_DIR=$sysconfdir"
4104
4105eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4106
4107eval "eval LOCALSTATE_DIR=$localstatedir"
4108
4109eval "eval LIB_DIR=$libdir"
4110
4111eval "eval INCLUDE_DIR=$includedir"
4112
4113eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4114
4115eval "eval INFO_DIR=$infodir"
4116
4117eval "eval MAN_DIR=$mandir"
4118
4119
4120# Get full paths to source and build directories
4121srcdirfull="`cd $srcdir && pwd`"
4122builddir="`pwd`"
4123
4124#
4125# Compute variables useful for running uninstalled software.
4126#
4127MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4128MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4129MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4130MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4131DIRSEP=':'
4132case "${build_os}" in
4133 mingw* )
4134 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4135 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4136 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4137 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4138 DIRSEP=';'
4139 ;;
4140esac
4141case "${host_os}" in
4142 mingw* )
4143 DIRSEP=';'
4144 ;;
4145esac
4146
4147
4148
4149
4150
4151
cristya0b81c32010-01-22 02:54:33 +00004152
4153#
4154# Enable OS features.
4155#
4156DEPDIR="${am__leading_dot}deps"
4157
4158ac_config_commands="$ac_config_commands depfiles"
4159
4160
4161am_make=${MAKE-make}
4162cat > confinc << 'END'
4163am__doit:
4164 @echo this is the am__doit target
4165.PHONY: am__doit
4166END
4167# If we don't find an include directive, just comment out the code.
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4169$as_echo_n "checking for style of include used by $am_make... " >&6; }
4170am__include="#"
4171am__quote=
4172_am_result=none
4173# First try GNU make style include.
4174echo "include confinc" > confmf
4175# Ignore all kinds of additional output from `make'.
4176case `$am_make -s -f confmf 2> /dev/null` in #(
4177*the\ am__doit\ target*)
4178 am__include=include
4179 am__quote=
4180 _am_result=GNU
4181 ;;
4182esac
4183# Now try BSD make style include.
4184if test "$am__include" = "#"; then
4185 echo '.include "confinc"' > confmf
4186 case `$am_make -s -f confmf 2> /dev/null` in #(
4187 *the\ am__doit\ target*)
4188 am__include=.include
4189 am__quote="\""
4190 _am_result=BSD
4191 ;;
4192 esac
4193fi
4194
4195
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4197$as_echo "$_am_result" >&6; }
4198rm -f confinc confmf
4199
4200# Check whether --enable-dependency-tracking was given.
4201if test "${enable_dependency_tracking+set}" = set; then :
4202 enableval=$enable_dependency_tracking;
4203fi
4204
4205if test "x$enable_dependency_tracking" != xno; then
4206 am_depcomp="$ac_aux_dir/depcomp"
4207 AMDEPBACKSLASH='\'
4208fi
4209 if test "x$enable_dependency_tracking" != xno; then
4210 AMDEP_TRUE=
4211 AMDEP_FALSE='#'
4212else
4213 AMDEP_TRUE='#'
4214 AMDEP_FALSE=
4215fi
4216
4217
cristy3ed852e2009-09-05 21:47:34 +00004218ac_ext=c
4219ac_cpp='$CPP $CPPFLAGS'
4220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222ac_compiler_gnu=$ac_cv_c_compiler_gnu
4223if test -n "$ac_tool_prefix"; then
4224 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4225set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004227$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004228if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004229 $as_echo_n "(cached) " >&6
4230else
4231 if test -n "$CC"; then
4232 ac_cv_prog_CC="$CC" # Let the user override the test.
4233else
4234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235for as_dir in $PATH
4236do
4237 IFS=$as_save_IFS
4238 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004239 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4241 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004243 break 2
4244 fi
4245done
cristy8b350f62009-11-15 23:12:43 +00004246 done
cristy3ed852e2009-09-05 21:47:34 +00004247IFS=$as_save_IFS
4248
4249fi
4250fi
4251CC=$ac_cv_prog_CC
4252if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004254$as_echo "$CC" >&6; }
4255else
cristy8b350f62009-11-15 23:12:43 +00004256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004257$as_echo "no" >&6; }
4258fi
4259
4260
4261fi
4262if test -z "$ac_cv_prog_CC"; then
4263 ac_ct_CC=$CC
4264 # Extract the first word of "gcc", so it can be a program name with args.
4265set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004267$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004268if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004269 $as_echo_n "(cached) " >&6
4270else
4271 if test -n "$ac_ct_CC"; then
4272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4273else
4274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH
4276do
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004279 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004283 break 2
4284 fi
4285done
cristy8b350f62009-11-15 23:12:43 +00004286 done
cristy3ed852e2009-09-05 21:47:34 +00004287IFS=$as_save_IFS
4288
4289fi
4290fi
4291ac_ct_CC=$ac_cv_prog_ac_ct_CC
4292if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004294$as_echo "$ac_ct_CC" >&6; }
4295else
cristy8b350f62009-11-15 23:12:43 +00004296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004297$as_echo "no" >&6; }
4298fi
4299
4300 if test "x$ac_ct_CC" = x; then
4301 CC=""
4302 else
4303 case $cross_compiling:$ac_tool_warned in
4304yes:)
cristy8b350f62009-11-15 23:12:43 +00004305{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4307ac_tool_warned=yes ;;
4308esac
4309 CC=$ac_ct_CC
4310 fi
4311else
4312 CC="$ac_cv_prog_CC"
4313fi
4314
4315if test -z "$CC"; then
4316 if test -n "$ac_tool_prefix"; then
4317 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4318set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004320$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004321if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004322 $as_echo_n "(cached) " >&6
4323else
4324 if test -n "$CC"; then
4325 ac_cv_prog_CC="$CC" # Let the user override the test.
4326else
4327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328for as_dir in $PATH
4329do
4330 IFS=$as_save_IFS
4331 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004332 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4334 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004336 break 2
4337 fi
4338done
cristy8b350f62009-11-15 23:12:43 +00004339 done
cristy3ed852e2009-09-05 21:47:34 +00004340IFS=$as_save_IFS
4341
4342fi
4343fi
4344CC=$ac_cv_prog_CC
4345if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004347$as_echo "$CC" >&6; }
4348else
cristy8b350f62009-11-15 23:12:43 +00004349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004350$as_echo "no" >&6; }
4351fi
4352
4353
4354 fi
4355fi
4356if test -z "$CC"; then
4357 # Extract the first word of "cc", so it can be a program name with args.
4358set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004360$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004361if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004362 $as_echo_n "(cached) " >&6
4363else
4364 if test -n "$CC"; then
4365 ac_cv_prog_CC="$CC" # Let the user override the test.
4366else
4367 ac_prog_rejected=no
4368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369for as_dir in $PATH
4370do
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004373 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4376 ac_prog_rejected=yes
4377 continue
4378 fi
4379 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004381 break 2
4382 fi
4383done
cristy8b350f62009-11-15 23:12:43 +00004384 done
cristy3ed852e2009-09-05 21:47:34 +00004385IFS=$as_save_IFS
4386
4387if test $ac_prog_rejected = yes; then
4388 # We found a bogon in the path, so make sure we never use it.
4389 set dummy $ac_cv_prog_CC
4390 shift
4391 if test $# != 0; then
4392 # We chose a different compiler from the bogus one.
4393 # However, it has the same basename, so the bogon will be chosen
4394 # first if we set CC to just the basename; use the full file name.
4395 shift
4396 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4397 fi
4398fi
4399fi
4400fi
4401CC=$ac_cv_prog_CC
4402if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004404$as_echo "$CC" >&6; }
4405else
cristy8b350f62009-11-15 23:12:43 +00004406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004407$as_echo "no" >&6; }
4408fi
4409
4410
4411fi
4412if test -z "$CC"; then
4413 if test -n "$ac_tool_prefix"; then
4414 for ac_prog in cl.exe
4415 do
4416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4417set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004419$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004420if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004421 $as_echo_n "(cached) " >&6
4422else
4423 if test -n "$CC"; then
4424 ac_cv_prog_CC="$CC" # Let the user override the test.
4425else
4426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427for as_dir in $PATH
4428do
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004431 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4433 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004435 break 2
4436 fi
4437done
cristy8b350f62009-11-15 23:12:43 +00004438 done
cristy3ed852e2009-09-05 21:47:34 +00004439IFS=$as_save_IFS
4440
4441fi
4442fi
4443CC=$ac_cv_prog_CC
4444if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004446$as_echo "$CC" >&6; }
4447else
cristy8b350f62009-11-15 23:12:43 +00004448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004449$as_echo "no" >&6; }
4450fi
4451
4452
4453 test -n "$CC" && break
4454 done
4455fi
4456if test -z "$CC"; then
4457 ac_ct_CC=$CC
4458 for ac_prog in cl.exe
4459do
4460 # Extract the first word of "$ac_prog", so it can be a program name with args.
4461set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004463$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004464if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004465 $as_echo_n "(cached) " >&6
4466else
4467 if test -n "$ac_ct_CC"; then
4468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4469else
4470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471for as_dir in $PATH
4472do
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004475 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4477 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004479 break 2
4480 fi
4481done
cristy8b350f62009-11-15 23:12:43 +00004482 done
cristy3ed852e2009-09-05 21:47:34 +00004483IFS=$as_save_IFS
4484
4485fi
4486fi
4487ac_ct_CC=$ac_cv_prog_ac_ct_CC
4488if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004490$as_echo "$ac_ct_CC" >&6; }
4491else
cristy8b350f62009-11-15 23:12:43 +00004492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004493$as_echo "no" >&6; }
4494fi
4495
4496
4497 test -n "$ac_ct_CC" && break
4498done
4499
4500 if test "x$ac_ct_CC" = x; then
4501 CC=""
4502 else
4503 case $cross_compiling:$ac_tool_warned in
4504yes:)
cristy8b350f62009-11-15 23:12:43 +00004505{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4507ac_tool_warned=yes ;;
4508esac
4509 CC=$ac_ct_CC
4510 fi
4511fi
4512
4513fi
4514
4515
cristy8b350f62009-11-15 23:12:43 +00004516test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004517$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004518as_fn_error "no acceptable C compiler found in \$PATH
4519See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004520
4521# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004522$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004523set X $ac_compile
4524ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004525for ac_option in --version -v -V -qversion; do
4526 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004527case "(($ac_try" in
4528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529 *) ac_try_echo=$ac_try;;
4530esac
cristy8b350f62009-11-15 23:12:43 +00004531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4532$as_echo "$ac_try_echo"; } >&5
4533 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004534 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004535 if test -s conftest.err; then
4536 sed '10a\
4537... rest of stderr output deleted ...
4538 10q' conftest.err >conftest.er1
4539 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004540 fi
cristycd4c5312009-11-22 01:19:08 +00004541 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4543 test $ac_status = 0; }
4544done
cristy3ed852e2009-09-05 21:47:34 +00004545
cristy8b350f62009-11-15 23:12:43 +00004546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004547/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004548
cristy3ed852e2009-09-05 21:47:34 +00004549int
4550main ()
4551{
4552
4553 ;
4554 return 0;
4555}
4556_ACEOF
4557ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004558ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004559# Try to create an executable without -o first, disregard a.out.
4560# It will help us diagnose broken compilers, and finding out an intuition
4561# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4563$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004564ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4565
4566# The possible output files:
4567ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4568
4569ac_rmfiles=
4570for ac_file in $ac_files
4571do
4572 case $ac_file in
4573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4574 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4575 esac
4576done
4577rm -f $ac_rmfiles
4578
cristy8b350f62009-11-15 23:12:43 +00004579if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004580case "(($ac_try" in
4581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582 *) ac_try_echo=$ac_try;;
4583esac
cristy8b350f62009-11-15 23:12:43 +00004584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4585$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004586 (eval "$ac_link_default") 2>&5
4587 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4589 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004590 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4591# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4592# in a Makefile. We should not override ac_cv_exeext if it was cached,
4593# so that the user can short-circuit this test for compilers unknown to
4594# Autoconf.
4595for ac_file in $ac_files ''
4596do
4597 test -f "$ac_file" || continue
4598 case $ac_file in
4599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4600 ;;
4601 [ab].out )
4602 # We found the default executable, but exeext='' is most
4603 # certainly right.
4604 break;;
4605 *.* )
cristy8b350f62009-11-15 23:12:43 +00004606 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004607 then :; else
4608 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4609 fi
4610 # We set ac_cv_exeext here because the later test for it is not
4611 # safe: cross compilers may not add the suffix if given an `-o'
4612 # argument, so we may need to know it at that point already.
4613 # Even if this section looks crufty: it has the advantage of
4614 # actually working.
4615 break;;
4616 * )
4617 break;;
4618 esac
4619done
4620test "$ac_cv_exeext" = no && ac_cv_exeext=
4621
4622else
4623 ac_file=''
4624fi
cristy8b350f62009-11-15 23:12:43 +00004625if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627$as_echo "no" >&6; }
4628$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004629sed 's/^/| /' conftest.$ac_ext >&5
4630
cristy8b350f62009-11-15 23:12:43 +00004631{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004633{ as_fn_set_status 77
4634as_fn_error "C compiler cannot create executables
4635See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00004636else
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4638$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004639fi
cristycd4c5312009-11-22 01:19:08 +00004640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4641$as_echo_n "checking for C compiler default output file name... " >&6; }
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4643$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004644ac_exeext=$ac_cv_exeext
4645
cristycd4c5312009-11-22 01:19:08 +00004646rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004647ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004649$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004650if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004651case "(($ac_try" in
4652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653 *) ac_try_echo=$ac_try;;
4654esac
cristy8b350f62009-11-15 23:12:43 +00004655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4656$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004657 (eval "$ac_link") 2>&5
4658 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4660 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004661 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4662# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4663# work properly (i.e., refer to `conftest.exe'), while it won't with
4664# `rm'.
4665for ac_file in conftest.exe conftest conftest.*; do
4666 test -f "$ac_file" || continue
4667 case $ac_file in
4668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4669 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4670 break;;
4671 * ) break;;
4672 esac
4673done
4674else
cristy8b350f62009-11-15 23:12:43 +00004675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004677as_fn_error "cannot compute suffix of executables: cannot compile and link
4678See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004679fi
cristycd4c5312009-11-22 01:19:08 +00004680rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004682$as_echo "$ac_cv_exeext" >&6; }
4683
4684rm -f conftest.$ac_ext
4685EXEEXT=$ac_cv_exeext
4686ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688/* end confdefs.h. */
4689#include <stdio.h>
4690int
4691main ()
4692{
4693FILE *f = fopen ("conftest.out", "w");
4694 return ferror (f) || fclose (f) != 0;
4695
4696 ;
4697 return 0;
4698}
4699_ACEOF
4700ac_clean_files="$ac_clean_files conftest.out"
4701# Check that the compiler produces executables we can run. If not, either
4702# the compiler is broken, or we cross compile.
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4704$as_echo_n "checking whether we are cross compiling... " >&6; }
4705if test "$cross_compiling" != yes; then
4706 { { ac_try="$ac_link"
4707case "(($ac_try" in
4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709 *) ac_try_echo=$ac_try;;
4710esac
4711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4712$as_echo "$ac_try_echo"; } >&5
4713 (eval "$ac_link") 2>&5
4714 ac_status=$?
4715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4716 test $ac_status = 0; }
4717 if { ac_try='./conftest$ac_cv_exeext'
4718 { { case "(($ac_try" in
4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720 *) ac_try_echo=$ac_try;;
4721esac
4722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4723$as_echo "$ac_try_echo"; } >&5
4724 (eval "$ac_try") 2>&5
4725 ac_status=$?
4726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4727 test $ac_status = 0; }; }; then
4728 cross_compiling=no
4729 else
4730 if test "$cross_compiling" = maybe; then
4731 cross_compiling=yes
4732 else
4733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4735as_fn_error "cannot run C compiled programs.
4736If you meant to cross compile, use \`--host'.
4737See \`config.log' for more details." "$LINENO" 5; }
4738 fi
4739 fi
4740fi
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4742$as_echo "$cross_compiling" >&6; }
4743
4744rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4745ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004747$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004748if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004749 $as_echo_n "(cached) " >&6
4750else
cristy8b350f62009-11-15 23:12:43 +00004751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004752/* end confdefs.h. */
4753
4754int
4755main ()
4756{
4757
4758 ;
4759 return 0;
4760}
4761_ACEOF
4762rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004763if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004764case "(($ac_try" in
4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4767esac
cristy8b350f62009-11-15 23:12:43 +00004768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4769$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004770 (eval "$ac_compile") 2>&5
4771 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4773 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004774 for ac_file in conftest.o conftest.obj conftest.*; do
4775 test -f "$ac_file" || continue;
4776 case $ac_file in
4777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4778 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4779 break;;
4780 esac
4781done
4782else
4783 $as_echo "$as_me: failed program was:" >&5
4784sed 's/^/| /' conftest.$ac_ext >&5
4785
cristy8b350f62009-11-15 23:12:43 +00004786{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004787$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004788as_fn_error "cannot compute suffix of object files: cannot compile
4789See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004790fi
cristy3ed852e2009-09-05 21:47:34 +00004791rm -f conftest.$ac_cv_objext conftest.$ac_ext
4792fi
cristy8b350f62009-11-15 23:12:43 +00004793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004794$as_echo "$ac_cv_objext" >&6; }
4795OBJEXT=$ac_cv_objext
4796ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004798$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004799if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004800 $as_echo_n "(cached) " >&6
4801else
cristy8b350f62009-11-15 23:12:43 +00004802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004803/* end confdefs.h. */
4804
4805int
4806main ()
4807{
4808#ifndef __GNUC__
4809 choke me
4810#endif
4811
4812 ;
4813 return 0;
4814}
4815_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004816if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004817 ac_compiler_gnu=yes
4818else
cristy8b350f62009-11-15 23:12:43 +00004819 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004820fi
cristy3ed852e2009-09-05 21:47:34 +00004821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822ac_cv_c_compiler_gnu=$ac_compiler_gnu
4823
4824fi
cristy8b350f62009-11-15 23:12:43 +00004825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004826$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4827if test $ac_compiler_gnu = yes; then
4828 GCC=yes
4829else
4830 GCC=
4831fi
4832ac_test_CFLAGS=${CFLAGS+set}
4833ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004835$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004836if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004837 $as_echo_n "(cached) " >&6
4838else
4839 ac_save_c_werror_flag=$ac_c_werror_flag
4840 ac_c_werror_flag=yes
4841 ac_cv_prog_cc_g=no
4842 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004844/* end confdefs.h. */
4845
4846int
4847main ()
4848{
4849
4850 ;
4851 return 0;
4852}
4853_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004854if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004855 ac_cv_prog_cc_g=yes
4856else
cristy8b350f62009-11-15 23:12:43 +00004857 CFLAGS=""
4858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004859/* end confdefs.h. */
4860
4861int
4862main ()
4863{
4864
4865 ;
4866 return 0;
4867}
4868_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004869if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004870
cristy8b350f62009-11-15 23:12:43 +00004871else
4872 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004873 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004875/* end confdefs.h. */
4876
4877int
4878main ()
4879{
4880
4881 ;
4882 return 0;
4883}
4884_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004885if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004886 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004887fi
cristy3ed852e2009-09-05 21:47:34 +00004888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889fi
cristy3ed852e2009-09-05 21:47:34 +00004890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891fi
cristy3ed852e2009-09-05 21:47:34 +00004892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893 ac_c_werror_flag=$ac_save_c_werror_flag
4894fi
cristy8b350f62009-11-15 23:12:43 +00004895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004896$as_echo "$ac_cv_prog_cc_g" >&6; }
4897if test "$ac_test_CFLAGS" = set; then
4898 CFLAGS=$ac_save_CFLAGS
4899elif test $ac_cv_prog_cc_g = yes; then
4900 if test "$GCC" = yes; then
4901 CFLAGS="-g -O2"
4902 else
4903 CFLAGS="-g"
4904 fi
4905else
4906 if test "$GCC" = yes; then
4907 CFLAGS="-O2"
4908 else
4909 CFLAGS=
4910 fi
4911fi
cristy8b350f62009-11-15 23:12:43 +00004912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004913$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004914if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004915 $as_echo_n "(cached) " >&6
4916else
4917 ac_cv_prog_cc_c89=no
4918ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004920/* end confdefs.h. */
4921#include <stdarg.h>
4922#include <stdio.h>
4923#include <sys/types.h>
4924#include <sys/stat.h>
4925/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4926struct buf { int x; };
4927FILE * (*rcsopen) (struct buf *, struct stat *, int);
4928static char *e (p, i)
4929 char **p;
4930 int i;
4931{
4932 return p[i];
4933}
4934static char *f (char * (*g) (char **, int), char **p, ...)
4935{
4936 char *s;
4937 va_list v;
4938 va_start (v,p);
4939 s = g (p, va_arg (v,int));
4940 va_end (v);
4941 return s;
4942}
4943
4944/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4945 function prototypes and stuff, but not '\xHH' hex character constants.
4946 These don't provoke an error unfortunately, instead are silently treated
4947 as 'x'. The following induces an error, until -std is added to get
4948 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4949 array size at least. It's necessary to write '\x00'==0 to get something
4950 that's true only with -std. */
4951int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4952
4953/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4954 inside strings and character constants. */
4955#define FOO(x) 'x'
4956int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4957
4958int test (int i, double x);
4959struct s1 {int (*f) (int a);};
4960struct s2 {int (*f) (double a);};
4961int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4962int argc;
4963char **argv;
4964int
4965main ()
4966{
4967return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4968 ;
4969 return 0;
4970}
4971_ACEOF
4972for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4973 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4974do
4975 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004976 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004977 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004978fi
cristy3ed852e2009-09-05 21:47:34 +00004979rm -f core conftest.err conftest.$ac_objext
4980 test "x$ac_cv_prog_cc_c89" != "xno" && break
4981done
4982rm -f conftest.$ac_ext
4983CC=$ac_save_CC
4984
4985fi
4986# AC_CACHE_VAL
4987case "x$ac_cv_prog_cc_c89" in
4988 x)
cristy8b350f62009-11-15 23:12:43 +00004989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004990$as_echo "none needed" >&6; } ;;
4991 xno)
cristy8b350f62009-11-15 23:12:43 +00004992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004993$as_echo "unsupported" >&6; } ;;
4994 *)
4995 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004997$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4998esac
cristy8b350f62009-11-15 23:12:43 +00004999if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005000
cristy8b350f62009-11-15 23:12:43 +00005001fi
cristy3ed852e2009-09-05 21:47:34 +00005002
5003ac_ext=c
5004ac_cpp='$CPP $CPPFLAGS'
5005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005008
cristya0b81c32010-01-22 02:54:33 +00005009depcc="$CC" am_compiler_list=
cristy3ed852e2009-09-05 21:47:34 +00005010
cristya0b81c32010-01-22 02:54:33 +00005011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5012$as_echo_n "checking dependency style of $depcc... " >&6; }
5013if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5014 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00005015else
cristya0b81c32010-01-22 02:54:33 +00005016 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5017 # We make a subdir and do the tests there. Otherwise we can end up
5018 # making bogus files that we don't know about and never remove. For
5019 # instance it was reported that on HP-UX the gcc test will end up
5020 # making a dummy file named `D' -- because `-MD' means `put the output
5021 # in D'.
5022 mkdir conftest.dir
5023 # Copy depcomp to subdir because otherwise we won't find it if we're
5024 # using a relative directory.
5025 cp "$am_depcomp" conftest.dir
5026 cd conftest.dir
5027 # We will build objects and dependencies in a subdirectory because
5028 # it helps to detect inapplicable dependency modes. For instance
5029 # both Tru64's cc and ICC support -MD to output dependencies as a
5030 # side effect of compilation, but ICC will put the dependencies in
5031 # the current directory while Tru64 will put them in the object
5032 # directory.
5033 mkdir sub
5034
5035 am_cv_CC_dependencies_compiler_type=none
5036 if test "$am_compiler_list" = ""; then
5037 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5038 fi
5039 am__universal=false
5040 case " $depcc " in #(
5041 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5042 esac
5043
5044 for depmode in $am_compiler_list; do
5045 # Setup a source with many dependencies, because some compilers
5046 # like to wrap large dependency lists on column 80 (with \), and
5047 # we should not choose a depcomp mode which is confused by this.
5048 #
5049 # We need to recreate these files for each test, as the compiler may
5050 # overwrite some of them when testing with obscure command lines.
5051 # This happens at least with the AIX C compiler.
5052 : > sub/conftest.c
5053 for i in 1 2 3 4 5 6; do
5054 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5055 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5056 # Solaris 8's {/usr,}/bin/sh.
5057 touch sub/conftst$i.h
5058 done
5059 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5060
5061 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5062 # mode. It turns out that the SunPro C++ compiler does not properly
5063 # handle `-M -o', and we need to detect this. Also, some Intel
5064 # versions had trouble with output in subdirs
5065 am__obj=sub/conftest.${OBJEXT-o}
5066 am__minus_obj="-o $am__obj"
5067 case $depmode in
5068 gcc)
5069 # This depmode causes a compiler race in universal mode.
5070 test "$am__universal" = false || continue
5071 ;;
5072 nosideeffect)
5073 # after this tag, mechanisms are not by side-effect, so they'll
5074 # only be used when explicitly requested
5075 if test "x$enable_dependency_tracking" = xyes; then
5076 continue
5077 else
5078 break
5079 fi
5080 ;;
5081 msvisualcpp | msvcmsys)
5082 # This compiler won't grok `-c -o', but also, the minuso test has
5083 # not run yet. These depmodes are late enough in the game, and
5084 # so weak that their functioning should not be impacted.
5085 am__obj=conftest.${OBJEXT-o}
5086 am__minus_obj=
5087 ;;
5088 none) break ;;
5089 esac
5090 if depmode=$depmode \
5091 source=sub/conftest.c object=$am__obj \
5092 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5093 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5094 >/dev/null 2>conftest.err &&
5095 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5096 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5097 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5098 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5099 # icc doesn't choke on unknown options, it will just issue warnings
5100 # or remarks (even with -Werror). So we grep stderr for any message
5101 # that says an option was ignored or not supported.
5102 # When given -MP, icc 7.0 and 7.1 complain thusly:
5103 # icc: Command line warning: ignoring option '-M'; no argument required
5104 # The diagnosis changed in icc 8.0:
5105 # icc: Command line remark: option '-MP' not supported
5106 if (grep 'ignoring option' conftest.err ||
5107 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5108 am_cv_CC_dependencies_compiler_type=$depmode
5109 break
5110 fi
5111 fi
5112 done
5113
5114 cd ..
5115 rm -rf conftest.dir
5116else
5117 am_cv_CC_dependencies_compiler_type=none
5118fi
5119
5120fi
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5122$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5123CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5124
5125 if
5126 test "x$enable_dependency_tracking" != xno \
5127 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5128 am__fastdepCC_TRUE=
5129 am__fastdepCC_FALSE='#'
5130else
5131 am__fastdepCC_TRUE='#'
5132 am__fastdepCC_FALSE=
cristy3ed852e2009-09-05 21:47:34 +00005133fi
5134
5135
5136
cristya0b81c32010-01-22 02:54:33 +00005137ac_ext=c
5138ac_cpp='$CPP $CPPFLAGS'
5139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141ac_compiler_gnu=$ac_cv_c_compiler_gnu
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5143$as_echo_n "checking how to run the C preprocessor... " >&6; }
5144# On Suns, sometimes $CPP names a directory.
5145if test -n "$CPP" && test -d "$CPP"; then
5146 CPP=
5147fi
5148if test -z "$CPP"; then
5149 if test "${ac_cv_prog_CPP+set}" = set; then :
5150 $as_echo_n "(cached) " >&6
5151else
5152 # Double quotes because CPP needs to be expanded
5153 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5154 do
5155 ac_preproc_ok=false
5156for ac_c_preproc_warn_flag in '' yes
5157do
5158 # Use a header file that comes with gcc, so configuring glibc
5159 # with a fresh cross-compiler works.
5160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5161 # <limits.h> exists even on freestanding compilers.
5162 # On the NeXT, cc -E runs the code through the compiler's parser,
5163 # not just through cpp. "Syntax error" is here to catch this case.
5164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5165/* end confdefs.h. */
5166#ifdef __STDC__
5167# include <limits.h>
5168#else
5169# include <assert.h>
5170#endif
5171 Syntax error
5172_ACEOF
5173if ac_fn_c_try_cpp "$LINENO"; then :
5174
5175else
5176 # Broken: fails on valid input.
5177continue
5178fi
5179rm -f conftest.err conftest.$ac_ext
5180
5181 # OK, works on sane cases. Now check whether nonexistent headers
5182 # can be detected and how.
5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184/* end confdefs.h. */
5185#include <ac_nonexistent.h>
5186_ACEOF
5187if ac_fn_c_try_cpp "$LINENO"; then :
5188 # Broken: success on invalid input.
5189continue
5190else
5191 # Passes both tests.
5192ac_preproc_ok=:
5193break
5194fi
5195rm -f conftest.err conftest.$ac_ext
5196
5197done
5198# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5199rm -f conftest.err conftest.$ac_ext
5200if $ac_preproc_ok; then :
5201 break
5202fi
5203
5204 done
5205 ac_cv_prog_CPP=$CPP
5206
5207fi
5208 CPP=$ac_cv_prog_CPP
5209else
5210 ac_cv_prog_CPP=$CPP
5211fi
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5213$as_echo "$CPP" >&6; }
5214ac_preproc_ok=false
5215for ac_c_preproc_warn_flag in '' yes
5216do
5217 # Use a header file that comes with gcc, so configuring glibc
5218 # with a fresh cross-compiler works.
5219 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5220 # <limits.h> exists even on freestanding compilers.
5221 # On the NeXT, cc -E runs the code through the compiler's parser,
5222 # not just through cpp. "Syntax error" is here to catch this case.
5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224/* end confdefs.h. */
5225#ifdef __STDC__
5226# include <limits.h>
5227#else
5228# include <assert.h>
5229#endif
5230 Syntax error
5231_ACEOF
5232if ac_fn_c_try_cpp "$LINENO"; then :
5233
5234else
5235 # Broken: fails on valid input.
5236continue
5237fi
5238rm -f conftest.err conftest.$ac_ext
5239
5240 # OK, works on sane cases. Now check whether nonexistent headers
5241 # can be detected and how.
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243/* end confdefs.h. */
5244#include <ac_nonexistent.h>
5245_ACEOF
5246if ac_fn_c_try_cpp "$LINENO"; then :
5247 # Broken: success on invalid input.
5248continue
5249else
5250 # Passes both tests.
5251ac_preproc_ok=:
5252break
5253fi
5254rm -f conftest.err conftest.$ac_ext
5255
5256done
5257# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5258rm -f conftest.err conftest.$ac_ext
5259if $ac_preproc_ok; then :
5260
5261else
5262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5264as_fn_error "C preprocessor \"$CPP\" fails sanity check
5265See \`config.log' for more details." "$LINENO" 5; }
5266fi
5267
5268ac_ext=c
5269ac_cpp='$CPP $CPPFLAGS'
5270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5272ac_compiler_gnu=$ac_cv_c_compiler_gnu
5273
5274
5275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5276$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5277if test "${ac_cv_path_GREP+set}" = set; then :
5278 $as_echo_n "(cached) " >&6
5279else
5280 if test -z "$GREP"; then
5281 ac_path_GREP_found=false
5282 # Loop through the user's path and test for each of PROGNAME-LIST
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5285do
5286 IFS=$as_save_IFS
5287 test -z "$as_dir" && as_dir=.
5288 for ac_prog in grep ggrep; do
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5291 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5292# Check for GNU ac_path_GREP and select it if it is found.
5293 # Check for GNU $ac_path_GREP
5294case `"$ac_path_GREP" --version 2>&1` in
5295*GNU*)
5296 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5297*)
5298 ac_count=0
5299 $as_echo_n 0123456789 >"conftest.in"
5300 while :
5301 do
5302 cat "conftest.in" "conftest.in" >"conftest.tmp"
5303 mv "conftest.tmp" "conftest.in"
5304 cp "conftest.in" "conftest.nl"
5305 $as_echo 'GREP' >> "conftest.nl"
5306 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5307 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5308 as_fn_arith $ac_count + 1 && ac_count=$as_val
5309 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5310 # Best one so far, save it but keep looking for a better one
5311 ac_cv_path_GREP="$ac_path_GREP"
5312 ac_path_GREP_max=$ac_count
5313 fi
5314 # 10*(2^10) chars as input seems more than enough
5315 test $ac_count -gt 10 && break
5316 done
5317 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5318esac
5319
5320 $ac_path_GREP_found && break 3
5321 done
5322 done
5323 done
5324IFS=$as_save_IFS
5325 if test -z "$ac_cv_path_GREP"; then
5326 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5327 fi
5328else
5329 ac_cv_path_GREP=$GREP
5330fi
5331
5332fi
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5334$as_echo "$ac_cv_path_GREP" >&6; }
5335 GREP="$ac_cv_path_GREP"
5336
5337
5338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5339$as_echo_n "checking for egrep... " >&6; }
5340if test "${ac_cv_path_EGREP+set}" = set; then :
5341 $as_echo_n "(cached) " >&6
5342else
5343 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5344 then ac_cv_path_EGREP="$GREP -E"
5345 else
5346 if test -z "$EGREP"; then
5347 ac_path_EGREP_found=false
5348 # Loop through the user's path and test for each of PROGNAME-LIST
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5351do
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
5354 for ac_prog in egrep; do
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5357 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5358# Check for GNU ac_path_EGREP and select it if it is found.
5359 # Check for GNU $ac_path_EGREP
5360case `"$ac_path_EGREP" --version 2>&1` in
5361*GNU*)
5362 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5363*)
5364 ac_count=0
5365 $as_echo_n 0123456789 >"conftest.in"
5366 while :
5367 do
5368 cat "conftest.in" "conftest.in" >"conftest.tmp"
5369 mv "conftest.tmp" "conftest.in"
5370 cp "conftest.in" "conftest.nl"
5371 $as_echo 'EGREP' >> "conftest.nl"
5372 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5373 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5374 as_fn_arith $ac_count + 1 && ac_count=$as_val
5375 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5376 # Best one so far, save it but keep looking for a better one
5377 ac_cv_path_EGREP="$ac_path_EGREP"
5378 ac_path_EGREP_max=$ac_count
5379 fi
5380 # 10*(2^10) chars as input seems more than enough
5381 test $ac_count -gt 10 && break
5382 done
5383 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5384esac
5385
5386 $ac_path_EGREP_found && break 3
5387 done
5388 done
5389 done
5390IFS=$as_save_IFS
5391 if test -z "$ac_cv_path_EGREP"; then
5392 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5393 fi
5394else
5395 ac_cv_path_EGREP=$EGREP
5396fi
5397
5398 fi
5399fi
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5401$as_echo "$ac_cv_path_EGREP" >&6; }
5402 EGREP="$ac_cv_path_EGREP"
5403
5404
5405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5406$as_echo_n "checking for ANSI C header files... " >&6; }
5407if test "${ac_cv_header_stdc+set}" = set; then :
5408 $as_echo_n "(cached) " >&6
5409else
5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411/* end confdefs.h. */
5412#include <stdlib.h>
5413#include <stdarg.h>
5414#include <string.h>
5415#include <float.h>
5416
5417int
5418main ()
5419{
5420
5421 ;
5422 return 0;
5423}
5424_ACEOF
5425if ac_fn_c_try_compile "$LINENO"; then :
5426 ac_cv_header_stdc=yes
5427else
5428 ac_cv_header_stdc=no
5429fi
5430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5431
5432if test $ac_cv_header_stdc = yes; then
5433 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435/* end confdefs.h. */
5436#include <string.h>
5437
5438_ACEOF
5439if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5440 $EGREP "memchr" >/dev/null 2>&1; then :
5441
5442else
5443 ac_cv_header_stdc=no
5444fi
5445rm -f conftest*
5446
5447fi
5448
5449if test $ac_cv_header_stdc = yes; then
5450 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452/* end confdefs.h. */
5453#include <stdlib.h>
5454
5455_ACEOF
5456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5457 $EGREP "free" >/dev/null 2>&1; then :
5458
5459else
5460 ac_cv_header_stdc=no
5461fi
5462rm -f conftest*
5463
5464fi
5465
5466if test $ac_cv_header_stdc = yes; then
5467 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5468 if test "$cross_compiling" = yes; then :
5469 :
5470else
5471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472/* end confdefs.h. */
5473#include <ctype.h>
5474#include <stdlib.h>
5475#if ((' ' & 0x0FF) == 0x020)
5476# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5477# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5478#else
5479# define ISLOWER(c) \
5480 (('a' <= (c) && (c) <= 'i') \
5481 || ('j' <= (c) && (c) <= 'r') \
5482 || ('s' <= (c) && (c) <= 'z'))
5483# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5484#endif
5485
5486#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5487int
5488main ()
5489{
5490 int i;
5491 for (i = 0; i < 256; i++)
5492 if (XOR (islower (i), ISLOWER (i))
5493 || toupper (i) != TOUPPER (i))
5494 return 2;
5495 return 0;
5496}
5497_ACEOF
5498if ac_fn_c_try_run "$LINENO"; then :
5499
5500else
5501 ac_cv_header_stdc=no
5502fi
5503rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5504 conftest.$ac_objext conftest.beam conftest.$ac_ext
5505fi
5506
5507fi
5508fi
5509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5510$as_echo "$ac_cv_header_stdc" >&6; }
5511if test $ac_cv_header_stdc = yes; then
5512
5513$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5514
5515fi
5516
5517# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5518for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5519 inttypes.h stdint.h unistd.h
5520do :
5521 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5522ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5523"
5524eval as_val=\$$as_ac_Header
5525 if test "x$as_val" = x""yes; then :
5526 cat >>confdefs.h <<_ACEOF
5527#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5528_ACEOF
5529
5530fi
5531
5532done
5533
5534
5535
5536 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5537if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5538 MINIX=yes
5539else
5540 MINIX=
5541fi
5542
5543
5544 if test "$MINIX" = yes; then
5545
5546$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5547
5548
5549$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5550
5551
5552$as_echo "#define _MINIX 1" >>confdefs.h
5553
5554 fi
5555
5556
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5558$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5559if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5560 $as_echo_n "(cached) " >&6
5561else
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563/* end confdefs.h. */
5564
5565# define __EXTENSIONS__ 1
5566 $ac_includes_default
5567int
5568main ()
5569{
5570
5571 ;
5572 return 0;
5573}
5574_ACEOF
5575if ac_fn_c_try_compile "$LINENO"; then :
5576 ac_cv_safe_to_define___extensions__=yes
5577else
5578 ac_cv_safe_to_define___extensions__=no
5579fi
5580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581fi
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5583$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5584 test $ac_cv_safe_to_define___extensions__ = yes &&
5585 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5586
5587 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5588
5589 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5590
5591 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5592
5593 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5594
5595
5596
5597# Check for programs
5598ac_ext=c
5599ac_cpp='$CPP $CPPFLAGS'
5600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5602ac_compiler_gnu=$ac_cv_c_compiler_gnu
5603if test -n "$ac_tool_prefix"; then
5604 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5605set dummy ${ac_tool_prefix}gcc; ac_word=$2
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607$as_echo_n "checking for $ac_word... " >&6; }
5608if test "${ac_cv_prog_CC+set}" = set; then :
5609 $as_echo_n "(cached) " >&6
5610else
5611 if test -n "$CC"; then
5612 ac_cv_prog_CC="$CC" # Let the user override the test.
5613else
5614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615for as_dir in $PATH
5616do
5617 IFS=$as_save_IFS
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5621 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 break 2
5624 fi
5625done
5626 done
5627IFS=$as_save_IFS
5628
5629fi
5630fi
5631CC=$ac_cv_prog_CC
5632if test -n "$CC"; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5634$as_echo "$CC" >&6; }
5635else
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637$as_echo "no" >&6; }
5638fi
5639
5640
5641fi
5642if test -z "$ac_cv_prog_CC"; then
5643 ac_ct_CC=$CC
5644 # Extract the first word of "gcc", so it can be a program name with args.
5645set dummy gcc; ac_word=$2
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647$as_echo_n "checking for $ac_word... " >&6; }
5648if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5649 $as_echo_n "(cached) " >&6
5650else
5651 if test -n "$ac_ct_CC"; then
5652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5653else
5654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655for as_dir in $PATH
5656do
5657 IFS=$as_save_IFS
5658 test -z "$as_dir" && as_dir=.
5659 for ac_exec_ext in '' $ac_executable_extensions; do
5660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5661 ac_cv_prog_ac_ct_CC="gcc"
5662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663 break 2
5664 fi
5665done
5666 done
5667IFS=$as_save_IFS
5668
5669fi
5670fi
5671ac_ct_CC=$ac_cv_prog_ac_ct_CC
5672if test -n "$ac_ct_CC"; then
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5674$as_echo "$ac_ct_CC" >&6; }
5675else
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677$as_echo "no" >&6; }
5678fi
5679
5680 if test "x$ac_ct_CC" = x; then
5681 CC=""
5682 else
5683 case $cross_compiling:$ac_tool_warned in
5684yes:)
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5687ac_tool_warned=yes ;;
5688esac
5689 CC=$ac_ct_CC
5690 fi
5691else
5692 CC="$ac_cv_prog_CC"
5693fi
5694
5695if test -z "$CC"; then
5696 if test -n "$ac_tool_prefix"; then
5697 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5698set dummy ${ac_tool_prefix}cc; ac_word=$2
5699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700$as_echo_n "checking for $ac_word... " >&6; }
5701if test "${ac_cv_prog_CC+set}" = set; then :
5702 $as_echo_n "(cached) " >&6
5703else
5704 if test -n "$CC"; then
5705 ac_cv_prog_CC="$CC" # Let the user override the test.
5706else
5707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708for as_dir in $PATH
5709do
5710 IFS=$as_save_IFS
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5714 ac_cv_prog_CC="${ac_tool_prefix}cc"
5715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716 break 2
5717 fi
5718done
5719 done
5720IFS=$as_save_IFS
5721
5722fi
5723fi
5724CC=$ac_cv_prog_CC
5725if test -n "$CC"; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5727$as_echo "$CC" >&6; }
5728else
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730$as_echo "no" >&6; }
5731fi
5732
5733
5734 fi
5735fi
5736if test -z "$CC"; then
5737 # Extract the first word of "cc", so it can be a program name with args.
5738set dummy cc; ac_word=$2
5739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740$as_echo_n "checking for $ac_word... " >&6; }
5741if test "${ac_cv_prog_CC+set}" = set; then :
5742 $as_echo_n "(cached) " >&6
5743else
5744 if test -n "$CC"; then
5745 ac_cv_prog_CC="$CC" # Let the user override the test.
5746else
5747 ac_prog_rejected=no
5748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749for as_dir in $PATH
5750do
5751 IFS=$as_save_IFS
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5755 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5756 ac_prog_rejected=yes
5757 continue
5758 fi
5759 ac_cv_prog_CC="cc"
5760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5761 break 2
5762 fi
5763done
5764 done
5765IFS=$as_save_IFS
5766
5767if test $ac_prog_rejected = yes; then
5768 # We found a bogon in the path, so make sure we never use it.
5769 set dummy $ac_cv_prog_CC
5770 shift
5771 if test $# != 0; then
5772 # We chose a different compiler from the bogus one.
5773 # However, it has the same basename, so the bogon will be chosen
5774 # first if we set CC to just the basename; use the full file name.
5775 shift
5776 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5777 fi
5778fi
5779fi
5780fi
5781CC=$ac_cv_prog_CC
5782if test -n "$CC"; then
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5784$as_echo "$CC" >&6; }
5785else
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787$as_echo "no" >&6; }
5788fi
5789
5790
5791fi
5792if test -z "$CC"; then
5793 if test -n "$ac_tool_prefix"; then
5794 for ac_prog in cl.exe
5795 do
5796 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5797set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799$as_echo_n "checking for $ac_word... " >&6; }
5800if test "${ac_cv_prog_CC+set}" = set; then :
5801 $as_echo_n "(cached) " >&6
5802else
5803 if test -n "$CC"; then
5804 ac_cv_prog_CC="$CC" # Let the user override the test.
5805else
5806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807for as_dir in $PATH
5808do
5809 IFS=$as_save_IFS
5810 test -z "$as_dir" && as_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5813 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815 break 2
5816 fi
5817done
5818 done
5819IFS=$as_save_IFS
5820
5821fi
5822fi
5823CC=$ac_cv_prog_CC
5824if test -n "$CC"; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5826$as_echo "$CC" >&6; }
5827else
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829$as_echo "no" >&6; }
5830fi
5831
5832
5833 test -n "$CC" && break
5834 done
5835fi
5836if test -z "$CC"; then
5837 ac_ct_CC=$CC
5838 for ac_prog in cl.exe
5839do
5840 # Extract the first word of "$ac_prog", so it can be a program name with args.
5841set dummy $ac_prog; ac_word=$2
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843$as_echo_n "checking for $ac_word... " >&6; }
5844if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5845 $as_echo_n "(cached) " >&6
5846else
5847 if test -n "$ac_ct_CC"; then
5848 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5849else
5850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851for as_dir in $PATH
5852do
5853 IFS=$as_save_IFS
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5857 ac_cv_prog_ac_ct_CC="$ac_prog"
5858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5859 break 2
5860 fi
5861done
5862 done
5863IFS=$as_save_IFS
5864
5865fi
5866fi
5867ac_ct_CC=$ac_cv_prog_ac_ct_CC
5868if test -n "$ac_ct_CC"; then
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5870$as_echo "$ac_ct_CC" >&6; }
5871else
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873$as_echo "no" >&6; }
5874fi
5875
5876
5877 test -n "$ac_ct_CC" && break
5878done
5879
5880 if test "x$ac_ct_CC" = x; then
5881 CC=""
5882 else
5883 case $cross_compiling:$ac_tool_warned in
5884yes:)
5885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5887ac_tool_warned=yes ;;
5888esac
5889 CC=$ac_ct_CC
5890 fi
5891fi
5892
5893fi
5894
5895
5896test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5897$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5898as_fn_error "no acceptable C compiler found in \$PATH
5899See \`config.log' for more details." "$LINENO" 5; }
5900
5901# Provide some information about the compiler.
5902$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5903set X $ac_compile
5904ac_compiler=$2
5905for ac_option in --version -v -V -qversion; do
5906 { { ac_try="$ac_compiler $ac_option >&5"
5907case "(($ac_try" in
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5910esac
5911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5912$as_echo "$ac_try_echo"; } >&5
5913 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5914 ac_status=$?
5915 if test -s conftest.err; then
5916 sed '10a\
5917... rest of stderr output deleted ...
5918 10q' conftest.err >conftest.er1
5919 cat conftest.er1 >&5
5920 fi
5921 rm -f conftest.er1 conftest.err
5922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5923 test $ac_status = 0; }
5924done
5925
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5927$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5928if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5929 $as_echo_n "(cached) " >&6
5930else
5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932/* end confdefs.h. */
5933
5934int
5935main ()
5936{
5937#ifndef __GNUC__
5938 choke me
5939#endif
5940
5941 ;
5942 return 0;
5943}
5944_ACEOF
5945if ac_fn_c_try_compile "$LINENO"; then :
5946 ac_compiler_gnu=yes
5947else
5948 ac_compiler_gnu=no
5949fi
5950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951ac_cv_c_compiler_gnu=$ac_compiler_gnu
5952
5953fi
5954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5955$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5956if test $ac_compiler_gnu = yes; then
5957 GCC=yes
5958else
5959 GCC=
5960fi
5961ac_test_CFLAGS=${CFLAGS+set}
5962ac_save_CFLAGS=$CFLAGS
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5964$as_echo_n "checking whether $CC accepts -g... " >&6; }
5965if test "${ac_cv_prog_cc_g+set}" = set; then :
5966 $as_echo_n "(cached) " >&6
5967else
5968 ac_save_c_werror_flag=$ac_c_werror_flag
5969 ac_c_werror_flag=yes
5970 ac_cv_prog_cc_g=no
5971 CFLAGS="-g"
5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973/* end confdefs.h. */
5974
5975int
5976main ()
5977{
5978
5979 ;
5980 return 0;
5981}
5982_ACEOF
5983if ac_fn_c_try_compile "$LINENO"; then :
5984 ac_cv_prog_cc_g=yes
5985else
5986 CFLAGS=""
5987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988/* end confdefs.h. */
5989
5990int
5991main ()
5992{
5993
5994 ;
5995 return 0;
5996}
5997_ACEOF
5998if ac_fn_c_try_compile "$LINENO"; then :
5999
6000else
6001 ac_c_werror_flag=$ac_save_c_werror_flag
6002 CFLAGS="-g"
6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004/* end confdefs.h. */
6005
6006int
6007main ()
6008{
6009
6010 ;
6011 return 0;
6012}
6013_ACEOF
6014if ac_fn_c_try_compile "$LINENO"; then :
6015 ac_cv_prog_cc_g=yes
6016fi
6017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018fi
6019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020fi
6021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022 ac_c_werror_flag=$ac_save_c_werror_flag
6023fi
6024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6025$as_echo "$ac_cv_prog_cc_g" >&6; }
6026if test "$ac_test_CFLAGS" = set; then
6027 CFLAGS=$ac_save_CFLAGS
6028elif test $ac_cv_prog_cc_g = yes; then
6029 if test "$GCC" = yes; then
6030 CFLAGS="-g -O2"
6031 else
6032 CFLAGS="-g"
6033 fi
6034else
6035 if test "$GCC" = yes; then
6036 CFLAGS="-O2"
6037 else
6038 CFLAGS=
6039 fi
6040fi
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6042$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6043if test "${ac_cv_prog_cc_c89+set}" = set; then :
6044 $as_echo_n "(cached) " >&6
6045else
6046 ac_cv_prog_cc_c89=no
6047ac_save_CC=$CC
6048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049/* end confdefs.h. */
6050#include <stdarg.h>
6051#include <stdio.h>
6052#include <sys/types.h>
6053#include <sys/stat.h>
6054/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6055struct buf { int x; };
6056FILE * (*rcsopen) (struct buf *, struct stat *, int);
6057static char *e (p, i)
6058 char **p;
6059 int i;
6060{
6061 return p[i];
6062}
6063static char *f (char * (*g) (char **, int), char **p, ...)
6064{
6065 char *s;
6066 va_list v;
6067 va_start (v,p);
6068 s = g (p, va_arg (v,int));
6069 va_end (v);
6070 return s;
6071}
6072
6073/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6074 function prototypes and stuff, but not '\xHH' hex character constants.
6075 These don't provoke an error unfortunately, instead are silently treated
6076 as 'x'. The following induces an error, until -std is added to get
6077 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6078 array size at least. It's necessary to write '\x00'==0 to get something
6079 that's true only with -std. */
6080int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6081
6082/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6083 inside strings and character constants. */
6084#define FOO(x) 'x'
6085int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6086
6087int test (int i, double x);
6088struct s1 {int (*f) (int a);};
6089struct s2 {int (*f) (double a);};
6090int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6091int argc;
6092char **argv;
6093int
6094main ()
6095{
6096return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6097 ;
6098 return 0;
6099}
6100_ACEOF
6101for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6102 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6103do
6104 CC="$ac_save_CC $ac_arg"
6105 if ac_fn_c_try_compile "$LINENO"; then :
6106 ac_cv_prog_cc_c89=$ac_arg
6107fi
6108rm -f core conftest.err conftest.$ac_objext
6109 test "x$ac_cv_prog_cc_c89" != "xno" && break
6110done
6111rm -f conftest.$ac_ext
6112CC=$ac_save_CC
6113
6114fi
6115# AC_CACHE_VAL
6116case "x$ac_cv_prog_cc_c89" in
6117 x)
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6119$as_echo "none needed" >&6; } ;;
6120 xno)
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6122$as_echo "unsupported" >&6; } ;;
6123 *)
6124 CC="$CC $ac_cv_prog_cc_c89"
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6126$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6127esac
6128if test "x$ac_cv_prog_cc_c89" != xno; then :
6129
6130fi
6131
6132ac_ext=c
6133ac_cpp='$CPP $CPPFLAGS'
6134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6136ac_compiler_gnu=$ac_cv_c_compiler_gnu
6137
cristy3ed852e2009-09-05 21:47:34 +00006138depcc="$CC" am_compiler_list=
6139
cristy8b350f62009-11-15 23:12:43 +00006140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006141$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006142if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006143 $as_echo_n "(cached) " >&6
6144else
6145 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6146 # We make a subdir and do the tests there. Otherwise we can end up
6147 # making bogus files that we don't know about and never remove. For
6148 # instance it was reported that on HP-UX the gcc test will end up
6149 # making a dummy file named `D' -- because `-MD' means `put the output
6150 # in D'.
6151 mkdir conftest.dir
6152 # Copy depcomp to subdir because otherwise we won't find it if we're
6153 # using a relative directory.
6154 cp "$am_depcomp" conftest.dir
6155 cd conftest.dir
6156 # We will build objects and dependencies in a subdirectory because
6157 # it helps to detect inapplicable dependency modes. For instance
6158 # both Tru64's cc and ICC support -MD to output dependencies as a
6159 # side effect of compilation, but ICC will put the dependencies in
6160 # the current directory while Tru64 will put them in the object
6161 # directory.
6162 mkdir sub
6163
6164 am_cv_CC_dependencies_compiler_type=none
6165 if test "$am_compiler_list" = ""; then
6166 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6167 fi
6168 am__universal=false
6169 case " $depcc " in #(
6170 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6171 esac
6172
6173 for depmode in $am_compiler_list; do
6174 # Setup a source with many dependencies, because some compilers
6175 # like to wrap large dependency lists on column 80 (with \), and
6176 # we should not choose a depcomp mode which is confused by this.
6177 #
6178 # We need to recreate these files for each test, as the compiler may
6179 # overwrite some of them when testing with obscure command lines.
6180 # This happens at least with the AIX C compiler.
6181 : > sub/conftest.c
6182 for i in 1 2 3 4 5 6; do
6183 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6184 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6185 # Solaris 8's {/usr,}/bin/sh.
6186 touch sub/conftst$i.h
6187 done
6188 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6189
6190 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6191 # mode. It turns out that the SunPro C++ compiler does not properly
6192 # handle `-M -o', and we need to detect this. Also, some Intel
6193 # versions had trouble with output in subdirs
6194 am__obj=sub/conftest.${OBJEXT-o}
6195 am__minus_obj="-o $am__obj"
6196 case $depmode in
6197 gcc)
6198 # This depmode causes a compiler race in universal mode.
6199 test "$am__universal" = false || continue
6200 ;;
6201 nosideeffect)
6202 # after this tag, mechanisms are not by side-effect, so they'll
6203 # only be used when explicitly requested
6204 if test "x$enable_dependency_tracking" = xyes; then
6205 continue
6206 else
6207 break
6208 fi
6209 ;;
6210 msvisualcpp | msvcmsys)
6211 # This compiler won't grok `-c -o', but also, the minuso test has
6212 # not run yet. These depmodes are late enough in the game, and
6213 # so weak that their functioning should not be impacted.
6214 am__obj=conftest.${OBJEXT-o}
6215 am__minus_obj=
6216 ;;
6217 none) break ;;
6218 esac
6219 if depmode=$depmode \
6220 source=sub/conftest.c object=$am__obj \
6221 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6222 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6223 >/dev/null 2>conftest.err &&
6224 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6225 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6226 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6227 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6228 # icc doesn't choke on unknown options, it will just issue warnings
6229 # or remarks (even with -Werror). So we grep stderr for any message
6230 # that says an option was ignored or not supported.
6231 # When given -MP, icc 7.0 and 7.1 complain thusly:
6232 # icc: Command line warning: ignoring option '-M'; no argument required
6233 # The diagnosis changed in icc 8.0:
6234 # icc: Command line remark: option '-MP' not supported
6235 if (grep 'ignoring option' conftest.err ||
6236 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6237 am_cv_CC_dependencies_compiler_type=$depmode
6238 break
6239 fi
6240 fi
6241 done
6242
6243 cd ..
6244 rm -rf conftest.dir
6245else
6246 am_cv_CC_dependencies_compiler_type=none
6247fi
6248
6249fi
cristy8b350f62009-11-15 23:12:43 +00006250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00006251$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6252CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6253
6254 if
6255 test "x$enable_dependency_tracking" != xno \
6256 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6257 am__fastdepCC_TRUE=
6258 am__fastdepCC_FALSE='#'
6259else
6260 am__fastdepCC_TRUE='#'
6261 am__fastdepCC_FALSE=
6262fi
6263
6264
cristy95646052009-11-28 23:05:30 +00006265ac_ext=cpp
6266ac_cpp='$CXXCPP $CPPFLAGS'
6267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6270if test -z "$CXX"; then
6271 if test -n "$CCC"; then
6272 CXX=$CCC
6273 else
6274 if test -n "$ac_tool_prefix"; then
6275 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6276 do
6277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6278set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280$as_echo_n "checking for $ac_word... " >&6; }
6281if test "${ac_cv_prog_CXX+set}" = set; then :
6282 $as_echo_n "(cached) " >&6
6283else
6284 if test -n "$CXX"; then
6285 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6286else
6287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288for as_dir in $PATH
6289do
6290 IFS=$as_save_IFS
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6294 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 break 2
6297 fi
6298done
6299 done
6300IFS=$as_save_IFS
6301
6302fi
6303fi
6304CXX=$ac_cv_prog_CXX
6305if test -n "$CXX"; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6307$as_echo "$CXX" >&6; }
6308else
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310$as_echo "no" >&6; }
6311fi
6312
6313
6314 test -n "$CXX" && break
6315 done
6316fi
6317if test -z "$CXX"; then
6318 ac_ct_CXX=$CXX
6319 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6320do
6321 # Extract the first word of "$ac_prog", so it can be a program name with args.
6322set dummy $ac_prog; ac_word=$2
6323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6324$as_echo_n "checking for $ac_word... " >&6; }
6325if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6326 $as_echo_n "(cached) " >&6
6327else
6328 if test -n "$ac_ct_CXX"; then
6329 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6330else
6331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332for as_dir in $PATH
6333do
6334 IFS=$as_save_IFS
6335 test -z "$as_dir" && as_dir=.
6336 for ac_exec_ext in '' $ac_executable_extensions; do
6337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6338 ac_cv_prog_ac_ct_CXX="$ac_prog"
6339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6340 break 2
6341 fi
6342done
6343 done
6344IFS=$as_save_IFS
6345
6346fi
6347fi
6348ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6349if test -n "$ac_ct_CXX"; then
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6351$as_echo "$ac_ct_CXX" >&6; }
6352else
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6354$as_echo "no" >&6; }
6355fi
6356
6357
6358 test -n "$ac_ct_CXX" && break
6359done
6360
6361 if test "x$ac_ct_CXX" = x; then
6362 CXX="g++"
6363 else
6364 case $cross_compiling:$ac_tool_warned in
6365yes:)
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6368ac_tool_warned=yes ;;
6369esac
6370 CXX=$ac_ct_CXX
6371 fi
6372fi
6373
6374 fi
6375fi
6376# Provide some information about the compiler.
6377$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6378set X $ac_compile
6379ac_compiler=$2
6380for ac_option in --version -v -V -qversion; do
6381 { { ac_try="$ac_compiler $ac_option >&5"
6382case "(($ac_try" in
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6385esac
6386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6387$as_echo "$ac_try_echo"; } >&5
6388 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6389 ac_status=$?
6390 if test -s conftest.err; then
6391 sed '10a\
6392... rest of stderr output deleted ...
6393 10q' conftest.err >conftest.er1
6394 cat conftest.er1 >&5
6395 fi
6396 rm -f conftest.er1 conftest.err
6397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6398 test $ac_status = 0; }
6399done
6400
6401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6402$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6403if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6404 $as_echo_n "(cached) " >&6
6405else
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407/* end confdefs.h. */
6408
6409int
6410main ()
6411{
6412#ifndef __GNUC__
6413 choke me
6414#endif
6415
6416 ;
6417 return 0;
6418}
6419_ACEOF
6420if ac_fn_cxx_try_compile "$LINENO"; then :
6421 ac_compiler_gnu=yes
6422else
6423 ac_compiler_gnu=no
6424fi
6425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6426ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6427
6428fi
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6430$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6431if test $ac_compiler_gnu = yes; then
6432 GXX=yes
6433else
6434 GXX=
6435fi
6436ac_test_CXXFLAGS=${CXXFLAGS+set}
6437ac_save_CXXFLAGS=$CXXFLAGS
6438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6439$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6440if test "${ac_cv_prog_cxx_g+set}" = set; then :
6441 $as_echo_n "(cached) " >&6
6442else
6443 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6444 ac_cxx_werror_flag=yes
6445 ac_cv_prog_cxx_g=no
6446 CXXFLAGS="-g"
6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448/* end confdefs.h. */
6449
6450int
6451main ()
6452{
6453
6454 ;
6455 return 0;
6456}
6457_ACEOF
6458if ac_fn_cxx_try_compile "$LINENO"; then :
6459 ac_cv_prog_cxx_g=yes
6460else
6461 CXXFLAGS=""
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463/* end confdefs.h. */
6464
6465int
6466main ()
6467{
6468
6469 ;
6470 return 0;
6471}
6472_ACEOF
6473if ac_fn_cxx_try_compile "$LINENO"; then :
6474
6475else
6476 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6477 CXXFLAGS="-g"
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479/* end confdefs.h. */
6480
6481int
6482main ()
6483{
6484
6485 ;
6486 return 0;
6487}
6488_ACEOF
6489if ac_fn_cxx_try_compile "$LINENO"; then :
6490 ac_cv_prog_cxx_g=yes
6491fi
6492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6493fi
6494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6495fi
6496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6498fi
6499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6500$as_echo "$ac_cv_prog_cxx_g" >&6; }
6501if test "$ac_test_CXXFLAGS" = set; then
6502 CXXFLAGS=$ac_save_CXXFLAGS
6503elif test $ac_cv_prog_cxx_g = yes; then
6504 if test "$GXX" = yes; then
6505 CXXFLAGS="-g -O2"
6506 else
6507 CXXFLAGS="-g"
6508 fi
6509else
6510 if test "$GXX" = yes; then
6511 CXXFLAGS="-O2"
6512 else
6513 CXXFLAGS=
6514 fi
6515fi
6516ac_ext=c
6517ac_cpp='$CPP $CPPFLAGS'
6518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6520ac_compiler_gnu=$ac_cv_c_compiler_gnu
6521
6522depcc="$CXX" am_compiler_list=
6523
6524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6525$as_echo_n "checking dependency style of $depcc... " >&6; }
6526if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6527 $as_echo_n "(cached) " >&6
6528else
6529 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6530 # We make a subdir and do the tests there. Otherwise we can end up
6531 # making bogus files that we don't know about and never remove. For
6532 # instance it was reported that on HP-UX the gcc test will end up
6533 # making a dummy file named `D' -- because `-MD' means `put the output
6534 # in D'.
6535 mkdir conftest.dir
6536 # Copy depcomp to subdir because otherwise we won't find it if we're
6537 # using a relative directory.
6538 cp "$am_depcomp" conftest.dir
6539 cd conftest.dir
6540 # We will build objects and dependencies in a subdirectory because
6541 # it helps to detect inapplicable dependency modes. For instance
6542 # both Tru64's cc and ICC support -MD to output dependencies as a
6543 # side effect of compilation, but ICC will put the dependencies in
6544 # the current directory while Tru64 will put them in the object
6545 # directory.
6546 mkdir sub
6547
6548 am_cv_CXX_dependencies_compiler_type=none
6549 if test "$am_compiler_list" = ""; then
6550 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6551 fi
6552 am__universal=false
6553 case " $depcc " in #(
6554 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6555 esac
6556
6557 for depmode in $am_compiler_list; do
6558 # Setup a source with many dependencies, because some compilers
6559 # like to wrap large dependency lists on column 80 (with \), and
6560 # we should not choose a depcomp mode which is confused by this.
6561 #
6562 # We need to recreate these files for each test, as the compiler may
6563 # overwrite some of them when testing with obscure command lines.
6564 # This happens at least with the AIX C compiler.
6565 : > sub/conftest.c
6566 for i in 1 2 3 4 5 6; do
6567 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6568 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6569 # Solaris 8's {/usr,}/bin/sh.
6570 touch sub/conftst$i.h
6571 done
6572 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6573
6574 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6575 # mode. It turns out that the SunPro C++ compiler does not properly
6576 # handle `-M -o', and we need to detect this. Also, some Intel
6577 # versions had trouble with output in subdirs
6578 am__obj=sub/conftest.${OBJEXT-o}
6579 am__minus_obj="-o $am__obj"
6580 case $depmode in
6581 gcc)
6582 # This depmode causes a compiler race in universal mode.
6583 test "$am__universal" = false || continue
6584 ;;
6585 nosideeffect)
6586 # after this tag, mechanisms are not by side-effect, so they'll
6587 # only be used when explicitly requested
6588 if test "x$enable_dependency_tracking" = xyes; then
6589 continue
6590 else
6591 break
6592 fi
6593 ;;
6594 msvisualcpp | msvcmsys)
6595 # This compiler won't grok `-c -o', but also, the minuso test has
6596 # not run yet. These depmodes are late enough in the game, and
6597 # so weak that their functioning should not be impacted.
6598 am__obj=conftest.${OBJEXT-o}
6599 am__minus_obj=
6600 ;;
6601 none) break ;;
6602 esac
6603 if depmode=$depmode \
6604 source=sub/conftest.c object=$am__obj \
6605 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6606 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6607 >/dev/null 2>conftest.err &&
6608 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6609 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6610 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6611 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6612 # icc doesn't choke on unknown options, it will just issue warnings
6613 # or remarks (even with -Werror). So we grep stderr for any message
6614 # that says an option was ignored or not supported.
6615 # When given -MP, icc 7.0 and 7.1 complain thusly:
6616 # icc: Command line warning: ignoring option '-M'; no argument required
6617 # The diagnosis changed in icc 8.0:
6618 # icc: Command line remark: option '-MP' not supported
6619 if (grep 'ignoring option' conftest.err ||
6620 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6621 am_cv_CXX_dependencies_compiler_type=$depmode
6622 break
6623 fi
6624 fi
6625 done
6626
6627 cd ..
6628 rm -rf conftest.dir
6629else
6630 am_cv_CXX_dependencies_compiler_type=none
6631fi
6632
6633fi
6634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6635$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6636CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6637
6638 if
6639 test "x$enable_dependency_tracking" != xno \
6640 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6641 am__fastdepCXX_TRUE=
6642 am__fastdepCXX_FALSE='#'
6643else
6644 am__fastdepCXX_TRUE='#'
6645 am__fastdepCXX_FALSE=
6646fi
6647
6648
cristy8b350f62009-11-15 23:12:43 +00006649 case $ac_cv_prog_cc_stdc in #(
6650 no) :
6651 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6652 *) :
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006654$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006655if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006656 $as_echo_n "(cached) " >&6
6657else
6658 ac_cv_prog_cc_c99=no
6659ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006661/* end confdefs.h. */
6662#include <stdarg.h>
6663#include <stdbool.h>
6664#include <stdlib.h>
6665#include <wchar.h>
6666#include <stdio.h>
6667
6668// Check varargs macros. These examples are taken from C99 6.10.3.5.
6669#define debug(...) fprintf (stderr, __VA_ARGS__)
6670#define showlist(...) puts (#__VA_ARGS__)
6671#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6672static void
6673test_varargs_macros (void)
6674{
6675 int x = 1234;
6676 int y = 5678;
6677 debug ("Flag");
6678 debug ("X = %d\n", x);
6679 showlist (The first, second, and third items.);
6680 report (x>y, "x is %d but y is %d", x, y);
6681}
6682
6683// Check long long types.
6684#define BIG64 18446744073709551615ull
6685#define BIG32 4294967295ul
6686#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6687#if !BIG_OK
6688 your preprocessor is broken;
6689#endif
6690#if BIG_OK
6691#else
6692 your preprocessor is broken;
6693#endif
6694static long long int bignum = -9223372036854775807LL;
6695static unsigned long long int ubignum = BIG64;
6696
6697struct incomplete_array
6698{
6699 int datasize;
6700 double data[];
6701};
6702
6703struct named_init {
6704 int number;
6705 const wchar_t *name;
6706 double average;
6707};
6708
6709typedef const char *ccp;
6710
6711static inline int
6712test_restrict (ccp restrict text)
6713{
6714 // See if C++-style comments work.
6715 // Iterate through items via the restricted pointer.
6716 // Also check for declarations in for loops.
6717 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6718 continue;
6719 return 0;
6720}
6721
6722// Check varargs and va_copy.
6723static void
6724test_varargs (const char *format, ...)
6725{
6726 va_list args;
6727 va_start (args, format);
6728 va_list args_copy;
6729 va_copy (args_copy, args);
6730
6731 const char *str;
6732 int number;
6733 float fnumber;
6734
6735 while (*format)
6736 {
6737 switch (*format++)
6738 {
6739 case 's': // string
6740 str = va_arg (args_copy, const char *);
6741 break;
6742 case 'd': // int
6743 number = va_arg (args_copy, int);
6744 break;
6745 case 'f': // float
6746 fnumber = va_arg (args_copy, double);
6747 break;
6748 default:
6749 break;
6750 }
6751 }
6752 va_end (args_copy);
6753 va_end (args);
6754}
6755
6756int
6757main ()
6758{
6759
6760 // Check bool.
6761 _Bool success = false;
6762
6763 // Check restrict.
6764 if (test_restrict ("String literal") == 0)
6765 success = true;
6766 char *restrict newvar = "Another string";
6767
6768 // Check varargs.
6769 test_varargs ("s, d' f .", "string", 65, 34.234);
6770 test_varargs_macros ();
6771
6772 // Check flexible array members.
6773 struct incomplete_array *ia =
6774 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6775 ia->datasize = 10;
6776 for (int i = 0; i < ia->datasize; ++i)
6777 ia->data[i] = i * 1.234;
6778
6779 // Check named initializers.
6780 struct named_init ni = {
6781 .number = 34,
6782 .name = L"Test wide string",
6783 .average = 543.34343,
6784 };
6785
6786 ni.number = 58;
6787
6788 int dynamic_array[ni.number];
6789 dynamic_array[ni.number - 1] = 543;
6790
6791 // work around unused variable warnings
6792 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6793 || dynamic_array[ni.number - 1] != 543);
6794
6795 ;
6796 return 0;
6797}
6798_ACEOF
6799for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6800do
6801 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006802 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006803 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006804fi
cristy3ed852e2009-09-05 21:47:34 +00006805rm -f core conftest.err conftest.$ac_objext
6806 test "x$ac_cv_prog_cc_c99" != "xno" && break
6807done
6808rm -f conftest.$ac_ext
6809CC=$ac_save_CC
6810
6811fi
6812# AC_CACHE_VAL
6813case "x$ac_cv_prog_cc_c99" in
6814 x)
cristy8b350f62009-11-15 23:12:43 +00006815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006816$as_echo "none needed" >&6; } ;;
6817 xno)
cristy8b350f62009-11-15 23:12:43 +00006818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006819$as_echo "unsupported" >&6; } ;;
6820 *)
6821 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006823$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6824esac
cristy8b350f62009-11-15 23:12:43 +00006825if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006826 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6827else
cristy8b350f62009-11-15 23:12:43 +00006828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006829$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006830if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006831 $as_echo_n "(cached) " >&6
6832else
6833 ac_cv_prog_cc_c89=no
6834ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006836/* end confdefs.h. */
6837#include <stdarg.h>
6838#include <stdio.h>
6839#include <sys/types.h>
6840#include <sys/stat.h>
6841/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6842struct buf { int x; };
6843FILE * (*rcsopen) (struct buf *, struct stat *, int);
6844static char *e (p, i)
6845 char **p;
6846 int i;
6847{
6848 return p[i];
6849}
6850static char *f (char * (*g) (char **, int), char **p, ...)
6851{
6852 char *s;
6853 va_list v;
6854 va_start (v,p);
6855 s = g (p, va_arg (v,int));
6856 va_end (v);
6857 return s;
6858}
6859
6860/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6861 function prototypes and stuff, but not '\xHH' hex character constants.
6862 These don't provoke an error unfortunately, instead are silently treated
6863 as 'x'. The following induces an error, until -std is added to get
6864 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6865 array size at least. It's necessary to write '\x00'==0 to get something
6866 that's true only with -std. */
6867int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6868
6869/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6870 inside strings and character constants. */
6871#define FOO(x) 'x'
6872int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6873
6874int test (int i, double x);
6875struct s1 {int (*f) (int a);};
6876struct s2 {int (*f) (double a);};
6877int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6878int argc;
6879char **argv;
6880int
6881main ()
6882{
6883return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6884 ;
6885 return 0;
6886}
6887_ACEOF
6888for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6889 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6890do
6891 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006892 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006893 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006894fi
cristy3ed852e2009-09-05 21:47:34 +00006895rm -f core conftest.err conftest.$ac_objext
6896 test "x$ac_cv_prog_cc_c89" != "xno" && break
6897done
6898rm -f conftest.$ac_ext
6899CC=$ac_save_CC
6900
6901fi
6902# AC_CACHE_VAL
6903case "x$ac_cv_prog_cc_c89" in
6904 x)
cristy8b350f62009-11-15 23:12:43 +00006905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006906$as_echo "none needed" >&6; } ;;
6907 xno)
cristy8b350f62009-11-15 23:12:43 +00006908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006909$as_echo "unsupported" >&6; } ;;
6910 *)
6911 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006913$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6914esac
cristy8b350f62009-11-15 23:12:43 +00006915if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006916 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6917else
6918 ac_cv_prog_cc_stdc=no
6919fi
6920
cristy3ed852e2009-09-05 21:47:34 +00006921fi
cristy3ed852e2009-09-05 21:47:34 +00006922 ;;
6923esac
cristy8b350f62009-11-15 23:12:43 +00006924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006925$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006926 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006927 $as_echo_n "(cached) " >&6
6928fi
6929
cristy8b350f62009-11-15 23:12:43 +00006930 case $ac_cv_prog_cc_stdc in #(
6931 no) :
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6933$as_echo "unsupported" >&6; } ;; #(
6934 '') :
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6936$as_echo "none needed" >&6; } ;; #(
6937 *) :
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006939$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6940esac
6941
cristy3ed852e2009-09-05 21:47:34 +00006942ac_ext=c
6943ac_cpp='$CPP $CPPFLAGS'
6944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6946ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006948$as_echo_n "checking how to run the C preprocessor... " >&6; }
6949# On Suns, sometimes $CPP names a directory.
6950if test -n "$CPP" && test -d "$CPP"; then
6951 CPP=
6952fi
6953if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006954 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006955 $as_echo_n "(cached) " >&6
6956else
6957 # Double quotes because CPP needs to be expanded
6958 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6959 do
6960 ac_preproc_ok=false
6961for ac_c_preproc_warn_flag in '' yes
6962do
6963 # Use a header file that comes with gcc, so configuring glibc
6964 # with a fresh cross-compiler works.
6965 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6966 # <limits.h> exists even on freestanding compilers.
6967 # On the NeXT, cc -E runs the code through the compiler's parser,
6968 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006970/* end confdefs.h. */
6971#ifdef __STDC__
6972# include <limits.h>
6973#else
6974# include <assert.h>
6975#endif
6976 Syntax error
6977_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006978if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006979
cristy8b350f62009-11-15 23:12:43 +00006980else
cristy3ed852e2009-09-05 21:47:34 +00006981 # Broken: fails on valid input.
6982continue
6983fi
cristy3ed852e2009-09-05 21:47:34 +00006984rm -f conftest.err conftest.$ac_ext
6985
6986 # OK, works on sane cases. Now check whether nonexistent headers
6987 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006989/* end confdefs.h. */
6990#include <ac_nonexistent.h>
6991_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006992if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006993 # Broken: success on invalid input.
6994continue
6995else
cristy3ed852e2009-09-05 21:47:34 +00006996 # Passes both tests.
6997ac_preproc_ok=:
6998break
6999fi
cristy3ed852e2009-09-05 21:47:34 +00007000rm -f conftest.err conftest.$ac_ext
7001
7002done
7003# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7004rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007005if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007006 break
7007fi
7008
7009 done
7010 ac_cv_prog_CPP=$CPP
7011
7012fi
7013 CPP=$ac_cv_prog_CPP
7014else
7015 ac_cv_prog_CPP=$CPP
7016fi
cristy8b350f62009-11-15 23:12:43 +00007017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007018$as_echo "$CPP" >&6; }
7019ac_preproc_ok=false
7020for ac_c_preproc_warn_flag in '' yes
7021do
7022 # Use a header file that comes with gcc, so configuring glibc
7023 # with a fresh cross-compiler works.
7024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7025 # <limits.h> exists even on freestanding compilers.
7026 # On the NeXT, cc -E runs the code through the compiler's parser,
7027 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007029/* end confdefs.h. */
7030#ifdef __STDC__
7031# include <limits.h>
7032#else
7033# include <assert.h>
7034#endif
7035 Syntax error
7036_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007037if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007038
cristy8b350f62009-11-15 23:12:43 +00007039else
cristy3ed852e2009-09-05 21:47:34 +00007040 # Broken: fails on valid input.
7041continue
7042fi
cristy3ed852e2009-09-05 21:47:34 +00007043rm -f conftest.err conftest.$ac_ext
7044
7045 # OK, works on sane cases. Now check whether nonexistent headers
7046 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007048/* end confdefs.h. */
7049#include <ac_nonexistent.h>
7050_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007051if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007052 # Broken: success on invalid input.
7053continue
7054else
cristy3ed852e2009-09-05 21:47:34 +00007055 # Passes both tests.
7056ac_preproc_ok=:
7057break
7058fi
cristy3ed852e2009-09-05 21:47:34 +00007059rm -f conftest.err conftest.$ac_ext
7060
7061done
7062# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7063rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007064if $ac_preproc_ok; then :
7065
cristy3ed852e2009-09-05 21:47:34 +00007066else
cristy8b350f62009-11-15 23:12:43 +00007067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007068$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00007069as_fn_error "C preprocessor \"$CPP\" fails sanity check
7070See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007071fi
7072
7073ac_ext=c
7074ac_cpp='$CPP $CPPFLAGS'
7075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7077ac_compiler_gnu=$ac_cv_c_compiler_gnu
7078
cristy8b350f62009-11-15 23:12:43 +00007079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00007080$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007081if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007082 $as_echo_n "(cached) " >&6
7083else
7084 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7085 for ac_i in 1 2 3 4 5 6 7; do
7086 ac_script="$ac_script$as_nl$ac_script"
7087 done
7088 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00007089 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00007090 if test -z "$SED"; then
7091 ac_path_SED_found=false
7092 # Loop through the user's path and test for each of PROGNAME-LIST
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094for as_dir in $PATH
7095do
7096 IFS=$as_save_IFS
7097 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007098 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00007099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7101 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7102# Check for GNU ac_path_SED and select it if it is found.
7103 # Check for GNU $ac_path_SED
7104case `"$ac_path_SED" --version 2>&1` in
7105*GNU*)
7106 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7107*)
7108 ac_count=0
7109 $as_echo_n 0123456789 >"conftest.in"
7110 while :
7111 do
7112 cat "conftest.in" "conftest.in" >"conftest.tmp"
7113 mv "conftest.tmp" "conftest.in"
7114 cp "conftest.in" "conftest.nl"
7115 $as_echo '' >> "conftest.nl"
7116 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7117 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007118 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007119 if test $ac_count -gt ${ac_path_SED_max-0}; then
7120 # Best one so far, save it but keep looking for a better one
7121 ac_cv_path_SED="$ac_path_SED"
7122 ac_path_SED_max=$ac_count
7123 fi
7124 # 10*(2^10) chars as input seems more than enough
7125 test $ac_count -gt 10 && break
7126 done
7127 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7128esac
7129
7130 $ac_path_SED_found && break 3
7131 done
7132 done
cristy8b350f62009-11-15 23:12:43 +00007133 done
cristy3ed852e2009-09-05 21:47:34 +00007134IFS=$as_save_IFS
7135 if test -z "$ac_cv_path_SED"; then
cristy8b350f62009-11-15 23:12:43 +00007136 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007137 fi
7138else
7139 ac_cv_path_SED=$SED
7140fi
7141
7142fi
cristy8b350f62009-11-15 23:12:43 +00007143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00007144$as_echo "$ac_cv_path_SED" >&6; }
7145 SED="$ac_cv_path_SED"
7146 rm -f conftest.sed
7147
7148test -z "$SED" && SED=sed
7149Xsed="$SED -e 1s/^X//"
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
cristy8b350f62009-11-15 23:12:43 +00007161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00007162$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007163if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007164 $as_echo_n "(cached) " >&6
7165else
7166 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7167 then ac_cv_path_FGREP="$GREP -F"
7168 else
7169 if test -z "$FGREP"; then
7170 ac_path_FGREP_found=false
7171 # Loop through the user's path and test for each of PROGNAME-LIST
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7174do
7175 IFS=$as_save_IFS
7176 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007177 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00007178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7180 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7181# Check for GNU ac_path_FGREP and select it if it is found.
7182 # Check for GNU $ac_path_FGREP
7183case `"$ac_path_FGREP" --version 2>&1` in
7184*GNU*)
7185 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7186*)
7187 ac_count=0
7188 $as_echo_n 0123456789 >"conftest.in"
7189 while :
7190 do
7191 cat "conftest.in" "conftest.in" >"conftest.tmp"
7192 mv "conftest.tmp" "conftest.in"
7193 cp "conftest.in" "conftest.nl"
7194 $as_echo 'FGREP' >> "conftest.nl"
7195 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007197 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007198 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7199 # Best one so far, save it but keep looking for a better one
7200 ac_cv_path_FGREP="$ac_path_FGREP"
7201 ac_path_FGREP_max=$ac_count
7202 fi
7203 # 10*(2^10) chars as input seems more than enough
7204 test $ac_count -gt 10 && break
7205 done
7206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7207esac
7208
7209 $ac_path_FGREP_found && break 3
7210 done
7211 done
cristy8b350f62009-11-15 23:12:43 +00007212 done
cristy3ed852e2009-09-05 21:47:34 +00007213IFS=$as_save_IFS
7214 if test -z "$ac_cv_path_FGREP"; then
cristy8b350f62009-11-15 23:12:43 +00007215 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007216 fi
7217else
7218 ac_cv_path_FGREP=$FGREP
7219fi
7220
7221 fi
7222fi
cristy8b350f62009-11-15 23:12:43 +00007223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007224$as_echo "$ac_cv_path_FGREP" >&6; }
7225 FGREP="$ac_cv_path_FGREP"
7226
7227
7228test -z "$GREP" && GREP=grep
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00007249if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007250 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7251else
7252 with_gnu_ld=no
7253fi
7254
7255ac_prog=ld
7256if test "$GCC" = yes; then
7257 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00007258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007259$as_echo_n "checking for ld used by $CC... " >&6; }
7260 case $host in
7261 *-*-mingw*)
7262 # gcc leaves a trailing carriage return which upsets mingw
7263 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7264 *)
7265 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7266 esac
7267 case $ac_prog in
7268 # Accept absolute paths.
7269 [\\/]* | ?:[\\/]*)
7270 re_direlt='/[^/][^/]*/\.\./'
7271 # Canonicalize the pathname of ld
7272 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7273 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7274 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7275 done
7276 test -z "$LD" && LD="$ac_prog"
7277 ;;
7278 "")
7279 # If it fails, then pretend we aren't using GCC.
7280 ac_prog=ld
7281 ;;
7282 *)
7283 # If it is relative, then search for the first ld in PATH.
7284 with_gnu_ld=unknown
7285 ;;
7286 esac
7287elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007289$as_echo_n "checking for GNU ld... " >&6; }
7290else
cristy8b350f62009-11-15 23:12:43 +00007291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007292$as_echo_n "checking for non-GNU ld... " >&6; }
7293fi
cristy8b350f62009-11-15 23:12:43 +00007294if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007295 $as_echo_n "(cached) " >&6
7296else
7297 if test -z "$LD"; then
7298 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7299 for ac_dir in $PATH; do
7300 IFS="$lt_save_ifs"
7301 test -z "$ac_dir" && ac_dir=.
7302 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7303 lt_cv_path_LD="$ac_dir/$ac_prog"
7304 # Check to see if the program is GNU ld. I'd rather use --version,
7305 # but apparently some variants of GNU ld only accept -v.
7306 # Break only if it was the GNU/non-GNU ld that we prefer.
7307 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7308 *GNU* | *'with BFD'*)
7309 test "$with_gnu_ld" != no && break
7310 ;;
7311 *)
7312 test "$with_gnu_ld" != yes && break
7313 ;;
7314 esac
7315 fi
7316 done
7317 IFS="$lt_save_ifs"
7318else
7319 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7320fi
7321fi
7322
7323LD="$lt_cv_path_LD"
7324if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00007325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00007326$as_echo "$LD" >&6; }
7327else
cristy8b350f62009-11-15 23:12:43 +00007328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007329$as_echo "no" >&6; }
7330fi
cristy8b350f62009-11-15 23:12:43 +00007331test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007333$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007334if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007335 $as_echo_n "(cached) " >&6
7336else
7337 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7338case `$LD -v 2>&1 </dev/null` in
7339*GNU* | *'with BFD'*)
7340 lt_cv_prog_gnu_ld=yes
7341 ;;
7342*)
7343 lt_cv_prog_gnu_ld=no
7344 ;;
7345esac
7346fi
cristy8b350f62009-11-15 23:12:43 +00007347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007348$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7349with_gnu_ld=$lt_cv_prog_gnu_ld
7350
7351
7352
7353
7354
7355
7356
7357
7358
cristy3ed852e2009-09-05 21:47:34 +00007359
cristy837d6dc2010-02-27 01:16:57 +00007360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7361$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7362if test "${ac_cv_prog_cc_c99+set}" = set; then :
7363 $as_echo_n "(cached) " >&6
7364else
7365 ac_cv_prog_cc_c99=no
7366ac_save_CC=$CC
7367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7368/* end confdefs.h. */
7369#include <stdarg.h>
7370#include <stdbool.h>
7371#include <stdlib.h>
7372#include <wchar.h>
7373#include <stdio.h>
7374
7375// Check varargs macros. These examples are taken from C99 6.10.3.5.
7376#define debug(...) fprintf (stderr, __VA_ARGS__)
7377#define showlist(...) puts (#__VA_ARGS__)
7378#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7379static void
7380test_varargs_macros (void)
7381{
7382 int x = 1234;
7383 int y = 5678;
7384 debug ("Flag");
7385 debug ("X = %d\n", x);
7386 showlist (The first, second, and third items.);
7387 report (x>y, "x is %d but y is %d", x, y);
7388}
7389
7390// Check long long types.
7391#define BIG64 18446744073709551615ull
7392#define BIG32 4294967295ul
7393#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7394#if !BIG_OK
7395 your preprocessor is broken;
7396#endif
7397#if BIG_OK
7398#else
7399 your preprocessor is broken;
7400#endif
7401static long long int bignum = -9223372036854775807LL;
7402static unsigned long long int ubignum = BIG64;
7403
7404struct incomplete_array
7405{
7406 int datasize;
7407 double data[];
7408};
7409
7410struct named_init {
7411 int number;
7412 const wchar_t *name;
7413 double average;
7414};
7415
7416typedef const char *ccp;
7417
7418static inline int
7419test_restrict (ccp restrict text)
7420{
7421 // See if C++-style comments work.
7422 // Iterate through items via the restricted pointer.
7423 // Also check for declarations in for loops.
7424 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7425 continue;
7426 return 0;
7427}
7428
7429// Check varargs and va_copy.
7430static void
7431test_varargs (const char *format, ...)
7432{
7433 va_list args;
7434 va_start (args, format);
7435 va_list args_copy;
7436 va_copy (args_copy, args);
7437
7438 const char *str;
7439 int number;
7440 float fnumber;
7441
7442 while (*format)
7443 {
7444 switch (*format++)
7445 {
7446 case 's': // string
7447 str = va_arg (args_copy, const char *);
7448 break;
7449 case 'd': // int
7450 number = va_arg (args_copy, int);
7451 break;
7452 case 'f': // float
7453 fnumber = va_arg (args_copy, double);
7454 break;
7455 default:
7456 break;
7457 }
7458 }
7459 va_end (args_copy);
7460 va_end (args);
7461}
7462
7463int
7464main ()
7465{
7466
7467 // Check bool.
7468 _Bool success = false;
7469
7470 // Check restrict.
7471 if (test_restrict ("String literal") == 0)
7472 success = true;
7473 char *restrict newvar = "Another string";
7474
7475 // Check varargs.
7476 test_varargs ("s, d' f .", "string", 65, 34.234);
7477 test_varargs_macros ();
7478
7479 // Check flexible array members.
7480 struct incomplete_array *ia =
7481 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7482 ia->datasize = 10;
7483 for (int i = 0; i < ia->datasize; ++i)
7484 ia->data[i] = i * 1.234;
7485
7486 // Check named initializers.
7487 struct named_init ni = {
7488 .number = 34,
7489 .name = L"Test wide string",
7490 .average = 543.34343,
7491 };
7492
7493 ni.number = 58;
7494
7495 int dynamic_array[ni.number];
7496 dynamic_array[ni.number - 1] = 543;
7497
7498 // work around unused variable warnings
7499 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7500 || dynamic_array[ni.number - 1] != 543);
7501
7502 ;
7503 return 0;
7504}
7505_ACEOF
7506for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7507do
7508 CC="$ac_save_CC $ac_arg"
7509 if ac_fn_c_try_compile "$LINENO"; then :
7510 ac_cv_prog_cc_c99=$ac_arg
7511fi
7512rm -f core conftest.err conftest.$ac_objext
7513 test "x$ac_cv_prog_cc_c99" != "xno" && break
7514done
7515rm -f conftest.$ac_ext
7516CC=$ac_save_CC
7517
7518fi
7519# AC_CACHE_VAL
7520case "x$ac_cv_prog_cc_c99" in
7521 x)
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7523$as_echo "none needed" >&6; } ;;
7524 xno)
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7526$as_echo "unsupported" >&6; } ;;
7527 *)
7528 CC="$CC $ac_cv_prog_cc_c99"
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7530$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7531esac
7532if test "x$ac_cv_prog_cc_c99" != xno; then :
7533
7534fi
7535
7536
cristy3ed852e2009-09-05 21:47:34 +00007537if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00007538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007539$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7540else
cristy8b350f62009-11-15 23:12:43 +00007541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007542$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7543fi
7544set dummy $CC; ac_cc=`$as_echo "$2" |
7545 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy8b350f62009-11-15 23:12:43 +00007546if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00007547 $as_echo_n "(cached) " >&6
7548else
cristy8b350f62009-11-15 23:12:43 +00007549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007550/* end confdefs.h. */
7551
7552int
7553main ()
7554{
7555
7556 ;
7557 return 0;
7558}
7559_ACEOF
7560# Make sure it works both with $CC and with simple cc.
7561# We do the test twice because some compilers refuse to overwrite an
7562# existing .o file with -o, though they will create one.
7563ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7564rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007565if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7567 *) ac_try_echo=$ac_try;;
7568esac
cristy8b350f62009-11-15 23:12:43 +00007569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7570$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007571 (eval "$ac_try") 2>&5
7572 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7574 test $ac_status = 0; } &&
7575 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7577 *) ac_try_echo=$ac_try;;
7578esac
cristy8b350f62009-11-15 23:12:43 +00007579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7580$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007581 (eval "$ac_try") 2>&5
7582 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7584 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007585then
7586 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7587 if test "x$CC" != xcc; then
7588 # Test first that cc exists at all.
7589 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00007590 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7592 *) ac_try_echo=$ac_try;;
7593esac
cristy8b350f62009-11-15 23:12:43 +00007594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7595$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007596 (eval "$ac_try") 2>&5
7597 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7599 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00007600 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7601 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007602 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7604 *) ac_try_echo=$ac_try;;
7605esac
cristy8b350f62009-11-15 23:12:43 +00007606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7607$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007608 (eval "$ac_try") 2>&5
7609 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7611 test $ac_status = 0; } &&
7612 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614 *) ac_try_echo=$ac_try;;
7615esac
cristy8b350f62009-11-15 23:12:43 +00007616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7617$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007618 (eval "$ac_try") 2>&5
7619 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7621 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007622 then
7623 # cc works too.
7624 :
7625 else
7626 # cc exists but doesn't like -o.
7627 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7628 fi
7629 fi
7630 fi
7631else
7632 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7633fi
7634rm -f core conftest*
7635
7636fi
7637if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00007638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007639$as_echo "yes" >&6; }
7640else
cristy8b350f62009-11-15 23:12:43 +00007641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007642$as_echo "no" >&6; }
7643
cristy8b350f62009-11-15 23:12:43 +00007644$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007645
7646fi
7647
7648# FIXME: we rely on the cache variable name because
7649# there is no other way.
7650set dummy $CC
7651am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7652eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7653if test "$am_t" != yes; then
7654 # Losing compiler, so override with the script.
7655 # FIXME: It is wrong to rewrite CC.
7656 # But if we don't then we get into trouble of one sort or another.
7657 # A longer-term fix would be to have automake use am__CC in this case,
7658 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7659 CC="$am_aux_dir/compile $CC"
7660fi
7661
7662
cristy92703d82010-04-26 00:18:18 +00007663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7664$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7665if test "${ac_cv_cflags_warn_all+set}" = set; then :
7666 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00007667else
cristy92703d82010-04-26 00:18:18 +00007668 ac_cv_cflags_warn_all="no, unknown"
7669
7670 ac_ext=c
7671ac_cpp='$CPP $CPPFLAGS'
7672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7674ac_compiler_gnu=$ac_cv_c_compiler_gnu
7675
7676 ac_save_CFLAGS="$CFLAGS"
7677for 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" #
7678do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680/* end confdefs.h. */
7681
7682int
7683main ()
7684{
7685return 0;
7686 ;
7687 return 0;
7688}
7689_ACEOF
7690if ac_fn_c_try_compile "$LINENO"; then :
7691 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
cristy3ed852e2009-09-05 21:47:34 +00007692fi
cristy92703d82010-04-26 00:18:18 +00007693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7694done
7695 CFLAGS="$ac_save_CFLAGS"
7696 ac_ext=c
7697ac_cpp='$CPP $CPPFLAGS'
7698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7700ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00007701
7702
cristy92703d82010-04-26 00:18:18 +00007703fi
7704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7705$as_echo "$ac_cv_cflags_warn_all" >&6; }
7706case ".$ac_cv_cflags_warn_all" in
7707 .ok|.ok,*) ;;
7708 .|.no|.no,*)
7709 ;;
7710 *)
7711 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7712 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7713 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7714 ac_status=$?
7715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7716 test $ac_status = 0; }
7717 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7718 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7719 ac_status=$?
7720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7721 test $ac_status = 0; }
7722 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7723 fi
7724 ;;
7725esac
cristy3ed852e2009-09-05 21:47:34 +00007726
cristya0b81c32010-01-22 02:54:33 +00007727$ac_includes_default
7728
7729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7730$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7731set x ${MAKE-make}
7732ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7733if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7734 $as_echo_n "(cached) " >&6
7735else
7736 cat >conftest.make <<\_ACEOF
7737SHELL = /bin/sh
7738all:
7739 @echo '@@@%%%=$(MAKE)=@@@%%%'
7740_ACEOF
7741# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7742case `${MAKE-make} -f conftest.make 2>/dev/null` in
7743 *@@@%%%=?*=@@@%%%*)
7744 eval ac_cv_prog_make_${ac_make}_set=yes;;
7745 *)
7746 eval ac_cv_prog_make_${ac_make}_set=no;;
7747esac
7748rm -f conftest.make
7749fi
7750if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7752$as_echo "yes" >&6; }
7753 SET_MAKE=
7754else
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756$as_echo "no" >&6; }
7757 SET_MAKE="MAKE=${MAKE-make}"
7758fi
7759
cristy8b350f62009-11-15 23:12:43 +00007760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007761$as_echo_n "checking whether ln -s works... " >&6; }
7762LN_S=$as_ln_s
7763if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007765$as_echo "yes" >&6; }
7766else
cristy8b350f62009-11-15 23:12:43 +00007767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007768$as_echo "no, using $LN_S" >&6; }
7769fi
7770
cristy8b350f62009-11-15 23:12:43 +00007771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00007772$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7773
7774# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00007775if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007776 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007778$as_echo "yes" >&6; }
7779
cristy8b350f62009-11-15 23:12:43 +00007780$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007781
7782 LIBS="$LIBS -ldmalloc"
7783 LDFLAGS="$LDFLAGS -g"
7784else
cristy8b350f62009-11-15 23:12:43 +00007785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007786$as_echo "no" >&6; }
7787fi
7788else
cristy8b350f62009-11-15 23:12:43 +00007789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007790$as_echo "no" >&6; }
7791fi
7792
7793
7794
cristy0d3a6382010-04-26 00:45:55 +00007795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7796$as_echo_n "checking for __attribute__... " >&6; }
7797if test "${ax_cv___attribute__+set}" = set; then :
7798 $as_echo_n "(cached) " >&6
7799else
7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801/* end confdefs.h. */
7802#include <stdlib.h>
7803 static void foo(void) __attribute__ ((unused));
7804 static void
7805 foo(void) {
7806 exit(1);
7807 }
7808
7809int
7810main ()
7811{
7812
7813 ;
7814 return 0;
7815}
7816_ACEOF
7817if ac_fn_c_try_compile "$LINENO"; then :
7818 ax_cv___attribute__=yes
7819else
7820 ax_cv___attribute__=no
7821
7822fi
7823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7824
7825fi
7826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7827$as_echo "$ax_cv___attribute__" >&6; }
7828 if test "$ax_cv___attribute__" = "yes"; then
7829
7830$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7831
7832 fi
7833
7834
cristy3ed852e2009-09-05 21:47:34 +00007835
7836if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7837 if test -n "$ac_tool_prefix"; then
7838 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7839set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007841$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007842if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007843 $as_echo_n "(cached) " >&6
7844else
7845 case $PKG_CONFIG in
7846 [\\/]* | ?:[\\/]*)
7847 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7848 ;;
7849 *)
7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851for as_dir in $PATH
7852do
7853 IFS=$as_save_IFS
7854 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007855 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7857 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007859 break 2
7860 fi
7861done
cristy8b350f62009-11-15 23:12:43 +00007862 done
cristy3ed852e2009-09-05 21:47:34 +00007863IFS=$as_save_IFS
7864
7865 ;;
7866esac
7867fi
7868PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7869if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007871$as_echo "$PKG_CONFIG" >&6; }
7872else
cristy8b350f62009-11-15 23:12:43 +00007873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007874$as_echo "no" >&6; }
7875fi
7876
7877
7878fi
7879if test -z "$ac_cv_path_PKG_CONFIG"; then
7880 ac_pt_PKG_CONFIG=$PKG_CONFIG
7881 # Extract the first word of "pkg-config", so it can be a program name with args.
7882set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007884$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007885if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007886 $as_echo_n "(cached) " >&6
7887else
7888 case $ac_pt_PKG_CONFIG in
7889 [\\/]* | ?:[\\/]*)
7890 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7891 ;;
7892 *)
7893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894for as_dir in $PATH
7895do
7896 IFS=$as_save_IFS
7897 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007898 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7900 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007902 break 2
7903 fi
7904done
cristy8b350f62009-11-15 23:12:43 +00007905 done
cristy3ed852e2009-09-05 21:47:34 +00007906IFS=$as_save_IFS
7907
7908 ;;
7909esac
7910fi
7911ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7912if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007914$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7915else
cristy8b350f62009-11-15 23:12:43 +00007916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007917$as_echo "no" >&6; }
7918fi
7919
7920 if test "x$ac_pt_PKG_CONFIG" = x; then
7921 PKG_CONFIG=""
7922 else
7923 case $cross_compiling:$ac_tool_warned in
7924yes:)
cristy8b350f62009-11-15 23:12:43 +00007925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00007926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7927ac_tool_warned=yes ;;
7928esac
7929 PKG_CONFIG=$ac_pt_PKG_CONFIG
7930 fi
7931else
7932 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7933fi
7934
7935fi
7936if test -n "$PKG_CONFIG"; then
7937 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00007938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00007939$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7940 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00007941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007942$as_echo "yes" >&6; }
7943 else
cristy8b350f62009-11-15 23:12:43 +00007944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007945$as_echo "no" >&6; }
7946 PKG_CONFIG=""
7947 fi
7948
7949fi
7950
7951#
cristy3ed852e2009-09-05 21:47:34 +00007952# Enable run-time checking.
7953#
7954# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007955if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007956 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7957else
7958 enable_bounds_checking='no'
7959fi
7960
7961
7962if test "$enable_bounds_checking" = yes; then
7963
cristy8b350f62009-11-15 23:12:43 +00007964$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007965
7966fi
7967
7968#
7969# Tests for Windows
7970#
7971
7972
cristy0d3a6382010-04-26 00:45:55 +00007973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7974$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7975if test "${ax_cv_c_compiler_ms+set}" = set; then :
7976 $as_echo_n "(cached) " >&6
7977else
7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979/* end confdefs.h. */
7980
7981int
7982main ()
7983{
7984#ifndef _MSC_VER
7985 choke me
7986#endif
7987
7988 ;
7989 return 0;
7990}
7991_ACEOF
7992if ac_fn_c_try_compile "$LINENO"; then :
7993 ax_compiler_ms=yes
7994else
7995 ax_compiler_ms=no
7996fi
7997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7998ax_cv_c_compiler_ms=$ax_compiler_ms
7999
8000fi
8001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8002$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008003
8004GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008005native_win32_build='no'
8006cygwin_build='no'
8007case "${host_os}" in
8008 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008009 cygwin_build='yes'
8010 GDI32_LIBS='-lgdi32'
8011 ;;
8012 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008013 native_win32_build='yes'
8014 GDI32_LIBS='-lgdi32'
8015 ;;
8016esac
8017if test "${GDI32_LIBS}x" != 'x'; then
8018
cristy8b350f62009-11-15 23:12:43 +00008019$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008020
8021fi
8022
8023 if test "${GDI32_LIBS}x" != 'x' ; then
8024 WINGDI32_DELEGATE_TRUE=
8025 WINGDI32_DELEGATE_FALSE='#'
8026else
8027 WINGDI32_DELEGATE_TRUE='#'
8028 WINGDI32_DELEGATE_FALSE=
8029fi
8030
8031 if test "${native_win32_build}" = 'yes' ; then
8032 WIN32_NATIVE_BUILD_TRUE=
8033 WIN32_NATIVE_BUILD_FALSE='#'
8034else
8035 WIN32_NATIVE_BUILD_TRUE='#'
8036 WIN32_NATIVE_BUILD_FALSE=
8037fi
8038
8039 if test "${cygwin_build}" = 'yes' ; then
8040 CYGWIN_BUILD_TRUE=
8041 CYGWIN_BUILD_FALSE='#'
8042else
8043 CYGWIN_BUILD_TRUE='#'
8044 CYGWIN_BUILD_FALSE=
8045fi
8046
8047 if test "x${CC}" = 'xcl.exe' ; then
8048 USING_CL_TRUE=
8049 USING_CL_FALSE='#'
8050else
8051 USING_CL_TRUE='#'
8052 USING_CL_FALSE=
8053fi
8054
8055
8056WinPathScript="${srcdirfull}/winpath.sh"
8057
8058
8059#
8060# Compiler flags tweaks
8061#
8062if test "${GCC}" != "yes"; then
8063 case "${host}" in
8064 *-*-hpux* )
8065 # aCC: HP ANSI C++ B3910B A.03.34
8066 CFLAGS="${CFLAGS} -Wp,-H30000"
8067 if test -n "${CXXFLAGS}"; then
8068 CXXFLAGS='-AA'
8069 else
8070 CXXFLAGS="${CXXFLAGS} -AA"
8071 fi
8072 ;;
8073 *-dec-osf5.* )
8074 # Compaq alphaev68-dec-osf5.1 compiler
8075 if test -n "${CXXFLAGS}"; then
8076 CXXFLAGS='-std strict_ansi -noimplicit_include'
8077 else
8078 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8079 fi
8080 esac
8081fi
8082
8083# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008085$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008086if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008087 $as_echo_n "(cached) " >&6
8088else
8089
8090im_cv_ld_lazyload='none'
8091case "${host}" in
8092 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8093 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8094 im_cv_ld_lazyload='-Wl,-zlazyload'
8095 fi
8096 ;;
8097esac
8098
8099fi
cristy8b350f62009-11-15 23:12:43 +00008100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008101$as_echo "$im_cv_ld_lazyload" >&6; }
8102if test "${im_cv_ld_lazyload}" != 'none' ; then
8103 if test -z "${LDFLAGS}" ; then
8104 LDFLAGS="${im_cv_ld_lazyload}"
8105 else
8106 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8107 fi
8108fi
8109
8110case "$host" in
8111*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008112 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008113if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008114 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8115else
8116 build_osxuniversal=no
8117fi
8118
8119
8120 if test "${build_osxuniversal}" != no ; then
8121 if test "$enable_dependency_tracking" != no ; then
cristy8b350f62009-11-15 23:12:43 +00008122 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008123Please re-run configure with these options:
8124 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008125 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008126 fi
8127 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8128 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8129 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8130 fi
8131 ;;
8132esac
8133
8134# Enable support for threads
8135
8136# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008137if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008138 withval=$with_threads; with_threads=$withval
8139else
8140 with_threads='yes'
8141fi
8142
8143
8144have_threads=no
8145if test "$with_threads" != 'no'; then
8146
8147
8148
8149ac_ext=c
8150ac_cpp='$CPP $CPPFLAGS'
8151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8153ac_compiler_gnu=$ac_cv_c_compiler_gnu
8154
cristy964cb7f2010-04-25 23:18:00 +00008155ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008156
8157# We used to check for pthread.h first, but this fails if pthread.h
8158# requires special compiler flags (e.g. on True64 or Sequent).
8159# It gets checked for in the link test anyway.
8160
8161# First of all, check if the user has set any of the PTHREAD_LIBS,
8162# etcetera environment variables, and if threads linking works using
8163# them:
8164if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8165 save_CFLAGS="$CFLAGS"
8166 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8167 save_LIBS="$LIBS"
8168 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00008169 { $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 +00008170$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008172/* end confdefs.h. */
8173
8174/* Override any GCC internal prototype to avoid an error.
8175 Use char because int might match the return type of a GCC
8176 builtin and then its argument prototype would still apply. */
8177#ifdef __cplusplus
8178extern "C"
8179#endif
8180char pthread_join ();
8181int
8182main ()
8183{
8184return pthread_join ();
8185 ;
8186 return 0;
8187}
8188_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008189if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008190 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008191fi
cristy8b350f62009-11-15 23:12:43 +00008192rm -f core conftest.err conftest.$ac_objext \
8193 conftest$ac_exeext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +00008194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8195$as_echo "$ax_pthread_ok" >&6; }
8196 if test x"$ax_pthread_ok" = xno; then
cristy3ed852e2009-09-05 21:47:34 +00008197 PTHREAD_LIBS=""
8198 PTHREAD_CFLAGS=""
8199 fi
8200 LIBS="$save_LIBS"
8201 CFLAGS="$save_CFLAGS"
8202fi
8203
8204# We must check for the threads library under a number of different
8205# names; the ordering is very important because some systems
8206# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8207# libraries is broken (non-POSIX).
8208
8209# Create a list of thread flags to try. Items starting with a "-" are
8210# C compiler flags, and other items are library names, except for "none"
8211# which indicates that we try without any flags at all, and "pthread-config"
8212# which is a program returning the flags for the Pth emulation library.
8213
cristy964cb7f2010-04-25 23:18:00 +00008214ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy3ed852e2009-09-05 21:47:34 +00008215
8216# The ordering *is* (sometimes) important. Some notes on the
8217# individual items follow:
8218
8219# pthreads: AIX (must check this before -lpthread)
8220# none: in case threads are in libc; should be tried before -Kthread and
8221# other compiler flags to prevent continual compiler warnings
8222# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8223# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8224# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8225# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8226# -pthreads: Solaris/gcc
8227# -mthreads: Mingw32/gcc, Lynx/gcc
8228# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8229# doesn't hurt to check since this sometimes defines pthreads too;
8230# also defines -D_REENTRANT)
8231# ... -mt is also the pthreads flag for HP/aCC
8232# pthread: Linux, etcetera
8233# --thread-safe: KAI C++
8234# pthread-config: use pthread-config program (for GNU Pth library)
8235
8236case "${host_cpu}-${host_os}" in
8237 *solaris*)
8238
8239 # On Solaris (at least, for some versions), libc contains stubbed
8240 # (non-functional) versions of the pthreads routines, so link-based
8241 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8242 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8243 # a function called by this macro, so we could check for that, but
8244 # who knows whether they'll stub that too in a future libc.) So,
8245 # we'll just look for -pthreads and -lpthread first:
8246
cristy964cb7f2010-04-25 23:18:00 +00008247 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
cristy3ed852e2009-09-05 21:47:34 +00008248 ;;
cristy964cb7f2010-04-25 23:18:00 +00008249
8250 *-darwin*)
8251 acx_pthread_flags="-pthread $acx_pthread_flags"
8252 ;;
cristy3ed852e2009-09-05 21:47:34 +00008253esac
8254
cristy964cb7f2010-04-25 23:18:00 +00008255if test x"$ax_pthread_ok" = xno; then
8256for flag in $ax_pthread_flags; do
cristy3ed852e2009-09-05 21:47:34 +00008257
8258 case $flag in
8259 none)
cristy8b350f62009-11-15 23:12:43 +00008260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00008261$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8262 ;;
8263
8264 -*)
cristy8b350f62009-11-15 23:12:43 +00008265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008266$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8267 PTHREAD_CFLAGS="$flag"
8268 ;;
8269
8270 pthread-config)
8271 # Extract the first word of "pthread-config", so it can be a program name with args.
8272set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008274$as_echo_n "checking for $ac_word... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +00008275if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008276 $as_echo_n "(cached) " >&6
8277else
cristy964cb7f2010-04-25 23:18:00 +00008278 if test -n "$ax_pthread_config"; then
8279 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
cristy3ed852e2009-09-05 21:47:34 +00008280else
8281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282for as_dir in $PATH
8283do
8284 IFS=$as_save_IFS
8285 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008286 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008287 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 +00008288 ac_cv_prog_ax_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00008289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008290 break 2
8291 fi
8292done
cristy8b350f62009-11-15 23:12:43 +00008293 done
cristy3ed852e2009-09-05 21:47:34 +00008294IFS=$as_save_IFS
8295
cristy964cb7f2010-04-25 23:18:00 +00008296 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
cristy3ed852e2009-09-05 21:47:34 +00008297fi
8298fi
cristy964cb7f2010-04-25 23:18:00 +00008299ax_pthread_config=$ac_cv_prog_ax_pthread_config
8300if test -n "$ax_pthread_config"; then
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8302$as_echo "$ax_pthread_config" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008303else
cristy8b350f62009-11-15 23:12:43 +00008304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008305$as_echo "no" >&6; }
8306fi
8307
8308
cristy964cb7f2010-04-25 23:18:00 +00008309 if test x"$ax_pthread_config" = xno; then continue; fi
cristy3ed852e2009-09-05 21:47:34 +00008310 PTHREAD_CFLAGS="`pthread-config --cflags`"
8311 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8312 ;;
8313
8314 *)
cristy8b350f62009-11-15 23:12:43 +00008315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008316$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8317 PTHREAD_LIBS="-l$flag"
8318 ;;
8319 esac
8320
8321 save_LIBS="$LIBS"
8322 save_CFLAGS="$CFLAGS"
8323 LIBS="$PTHREAD_LIBS $LIBS"
8324 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8325
8326 # Check for various functions. We must include pthread.h,
8327 # since some functions may be macros. (On the Sequent, we
8328 # need a special flag -Kthread to make this header compile.)
8329 # We check for pthread_join because it is in -lpthread on IRIX
8330 # while pthread_create is in libc. We check for pthread_attr_init
8331 # due to DEC craziness with -lpthreads. We check for
8332 # pthread_cleanup_push because it is one of the few pthread
8333 # functions on Solaris that doesn't have a non-functional libc stub.
8334 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00008335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008336/* end confdefs.h. */
8337#include <pthread.h>
cristy964cb7f2010-04-25 23:18:00 +00008338 static void routine(void* a) {a=0;}
8339 static void* start_routine(void* a) {return a;}
cristy3ed852e2009-09-05 21:47:34 +00008340int
8341main ()
8342{
cristy964cb7f2010-04-25 23:18:00 +00008343pthread_t th; pthread_attr_t attr;
8344 pthread_join(th, 0);
8345 pthread_attr_init(&attr);
8346 pthread_cleanup_push(routine, 0);
8347 pthread_create(&th,0,start_routine,0);
8348 pthread_cleanup_pop(0);
cristy3ed852e2009-09-05 21:47:34 +00008349 ;
8350 return 0;
8351}
8352_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008353if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008354 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008355fi
cristy8b350f62009-11-15 23:12:43 +00008356rm -f core conftest.err conftest.$ac_objext \
8357 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008358
8359 LIBS="$save_LIBS"
8360 CFLAGS="$save_CFLAGS"
8361
cristy964cb7f2010-04-25 23:18:00 +00008362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8363$as_echo "$ax_pthread_ok" >&6; }
8364 if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008365 break;
8366 fi
8367
8368 PTHREAD_LIBS=""
8369 PTHREAD_CFLAGS=""
8370done
8371fi
8372
8373# Various other checks:
cristy964cb7f2010-04-25 23:18:00 +00008374if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008375 save_LIBS="$LIBS"
8376 LIBS="$PTHREAD_LIBS $LIBS"
8377 save_CFLAGS="$CFLAGS"
8378 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8379
8380 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00008381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00008382$as_echo_n "checking for joinable pthread attribute... " >&6; }
8383 attr_name=unknown
8384 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00008385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008386/* end confdefs.h. */
8387#include <pthread.h>
8388int
8389main ()
8390{
8391int attr=$attr; return attr;
8392 ;
8393 return 0;
8394}
8395_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008396if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008397 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00008398fi
cristy8b350f62009-11-15 23:12:43 +00008399rm -f core conftest.err conftest.$ac_objext \
8400 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008401 done
cristy8b350f62009-11-15 23:12:43 +00008402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00008403$as_echo "$attr_name" >&6; }
8404 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8405
8406cat >>confdefs.h <<_ACEOF
8407#define PTHREAD_CREATE_JOINABLE $attr_name
8408_ACEOF
8409
8410 fi
8411
cristy8b350f62009-11-15 23:12:43 +00008412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00008413$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8414 flag=no
8415 case "${host_cpu}-${host_os}" in
8416 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8417 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8418 esac
cristy8b350f62009-11-15 23:12:43 +00008419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00008420$as_echo "${flag}" >&6; }
8421 if test "x$flag" != xno; then
8422 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8423 fi
8424
8425 LIBS="$save_LIBS"
8426 CFLAGS="$save_CFLAGS"
8427
8428 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00008429 if test x"$GCC" != xyes; then
8430 for ac_prog in xlc_r cc_r
8431do
8432 # Extract the first word of "$ac_prog", so it can be a program name with args.
8433set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008435$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008436if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008437 $as_echo_n "(cached) " >&6
8438else
8439 if test -n "$PTHREAD_CC"; then
8440 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8441else
8442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8443for as_dir in $PATH
8444do
8445 IFS=$as_save_IFS
8446 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008447 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008448 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 +00008449 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008451 break 2
8452 fi
8453done
cristy8b350f62009-11-15 23:12:43 +00008454 done
cristy3ed852e2009-09-05 21:47:34 +00008455IFS=$as_save_IFS
8456
cristy3ed852e2009-09-05 21:47:34 +00008457fi
8458fi
8459PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8460if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008462$as_echo "$PTHREAD_CC" >&6; }
8463else
cristy8b350f62009-11-15 23:12:43 +00008464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008465$as_echo "no" >&6; }
8466fi
8467
cristy736173a2009-09-20 21:18:22 +00008468
8469 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00008470done
cristy736173a2009-09-20 21:18:22 +00008471test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00008472
cristy736173a2009-09-20 21:18:22 +00008473 else
8474 PTHREAD_CC=$CC
8475 fi
cristy3ed852e2009-09-05 21:47:34 +00008476else
cristy736173a2009-09-20 21:18:22 +00008477 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00008478fi
8479
cristy3ed852e2009-09-05 21:47:34 +00008480
8481
8482
8483
8484# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
cristy964cb7f2010-04-25 23:18:00 +00008485if test x"$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008486
cristy8b350f62009-11-15 23:12:43 +00008487$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008488
8489 :
8490else
cristy964cb7f2010-04-25 23:18:00 +00008491 ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008492
8493fi
8494ac_ext=c
8495ac_cpp='$CPP $CPPFLAGS'
8496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8498ac_compiler_gnu=$ac_cv_c_compiler_gnu
8499
8500
cristy964cb7f2010-04-25 23:18:00 +00008501 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008502 have_threads=yes
8503 DEF_THREAD="$PTHREAD_CFLAGS"
8504 CFLAGS="$CFLAGS $DEF_THREAD"
8505 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8506 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008507 { $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 +00008508$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8509 CC="$PTHREAD_CC"
8510 fi
8511 fi
8512fi
8513
8514# Enable support for OpenMP
8515if test "$have_threads" != 'yes'; then
8516 ac_cv_prog_c_openmp=unsupported
8517fi
8518
8519 OPENMP_CFLAGS=
8520 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008521if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008522 enableval=$enable_openmp;
8523fi
8524
8525 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008527$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008528if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008529 $as_echo_n "(cached) " >&6
8530else
cristy8b350f62009-11-15 23:12:43 +00008531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008533
8534#ifndef _OPENMP
8535 choke me
8536#endif
8537#include <omp.h>
8538int main () { return omp_get_num_threads (); }
8539
8540_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008541if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008542 ac_cv_prog_c_openmp='none needed'
8543else
cristy8b350f62009-11-15 23:12:43 +00008544 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008545 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8546 ac_save_CFLAGS=$CFLAGS
8547 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008550
8551#ifndef _OPENMP
8552 choke me
8553#endif
8554#include <omp.h>
8555int main () { return omp_get_num_threads (); }
8556
8557_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008558if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008559 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008560fi
cristy8b350f62009-11-15 23:12:43 +00008561rm -f core conftest.err conftest.$ac_objext \
8562 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008563 CFLAGS=$ac_save_CFLAGS
8564 if test "$ac_cv_prog_c_openmp" != unsupported; then
8565 break
8566 fi
8567 done
8568fi
cristy8b350f62009-11-15 23:12:43 +00008569rm -f core conftest.err conftest.$ac_objext \
8570 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008571fi
cristy8b350f62009-11-15 23:12:43 +00008572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008573$as_echo "$ac_cv_prog_c_openmp" >&6; }
8574 case $ac_cv_prog_c_openmp in #(
8575 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008576 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008577 *)
cristy8b350f62009-11-15 23:12:43 +00008578 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008579 esac
8580 fi
8581
8582
8583CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8584MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8585
8586
cristy736173a2009-09-20 21:18:22 +00008587# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00008588
cristy964cb7f2010-04-25 23:18:00 +00008589
8590
8591ac_ext=c
8592ac_cpp='$CPP $CPPFLAGS'
8593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8595ac_compiler_gnu=$ac_cv_c_compiler_gnu
8596
8597ax_pthread_ok=no
8598
8599# We used to check for pthread.h first, but this fails if pthread.h
8600# requires special compiler flags (e.g. on True64 or Sequent).
8601# It gets checked for in the link test anyway.
8602
8603# First of all, check if the user has set any of the PTHREAD_LIBS,
8604# etcetera environment variables, and if threads linking works using
8605# them:
8606if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8607 save_CFLAGS="$CFLAGS"
8608 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8609 save_LIBS="$LIBS"
8610 LIBS="$PTHREAD_LIBS $LIBS"
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8612$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614/* end confdefs.h. */
8615
8616/* Override any GCC internal prototype to avoid an error.
8617 Use char because int might match the return type of a GCC
8618 builtin and then its argument prototype would still apply. */
8619#ifdef __cplusplus
8620extern "C"
8621#endif
8622char pthread_join ();
8623int
8624main ()
8625{
8626return pthread_join ();
8627 ;
8628 return 0;
8629}
8630_ACEOF
8631if ac_fn_c_try_link "$LINENO"; then :
8632 ax_pthread_ok=yes
8633fi
8634rm -f core conftest.err conftest.$ac_objext \
8635 conftest$ac_exeext conftest.$ac_ext
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8637$as_echo "$ax_pthread_ok" >&6; }
8638 if test x"$ax_pthread_ok" = xno; then
8639 PTHREAD_LIBS=""
8640 PTHREAD_CFLAGS=""
8641 fi
8642 LIBS="$save_LIBS"
8643 CFLAGS="$save_CFLAGS"
8644fi
8645
8646# We must check for the threads library under a number of different
8647# names; the ordering is very important because some systems
8648# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8649# libraries is broken (non-POSIX).
8650
8651# Create a list of thread flags to try. Items starting with a "-" are
8652# C compiler flags, and other items are library names, except for "none"
8653# which indicates that we try without any flags at all, and "pthread-config"
8654# which is a program returning the flags for the Pth emulation library.
8655
8656ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8657
8658# The ordering *is* (sometimes) important. Some notes on the
8659# individual items follow:
8660
8661# pthreads: AIX (must check this before -lpthread)
8662# none: in case threads are in libc; should be tried before -Kthread and
8663# other compiler flags to prevent continual compiler warnings
8664# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8665# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8666# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8667# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8668# -pthreads: Solaris/gcc
8669# -mthreads: Mingw32/gcc, Lynx/gcc
8670# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8671# doesn't hurt to check since this sometimes defines pthreads too;
8672# also defines -D_REENTRANT)
8673# ... -mt is also the pthreads flag for HP/aCC
8674# pthread: Linux, etcetera
8675# --thread-safe: KAI C++
8676# pthread-config: use pthread-config program (for GNU Pth library)
8677
8678case "${host_cpu}-${host_os}" in
8679 *solaris*)
8680
8681 # On Solaris (at least, for some versions), libc contains stubbed
8682 # (non-functional) versions of the pthreads routines, so link-based
8683 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8684 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8685 # a function called by this macro, so we could check for that, but
8686 # who knows whether they'll stub that too in a future libc.) So,
8687 # we'll just look for -pthreads and -lpthread first:
8688
8689 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8690 ;;
8691
8692 *-darwin*)
8693 acx_pthread_flags="-pthread $acx_pthread_flags"
8694 ;;
8695esac
8696
8697if test x"$ax_pthread_ok" = xno; then
8698for flag in $ax_pthread_flags; do
8699
8700 case $flag in
8701 none)
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8703$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8704 ;;
8705
8706 -*)
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8708$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8709 PTHREAD_CFLAGS="$flag"
8710 ;;
8711
8712 pthread-config)
8713 # Extract the first word of "pthread-config", so it can be a program name with args.
8714set dummy pthread-config; ac_word=$2
8715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8716$as_echo_n "checking for $ac_word... " >&6; }
8717if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8718 $as_echo_n "(cached) " >&6
8719else
8720 if test -n "$ax_pthread_config"; then
8721 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8722else
8723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8724for as_dir in $PATH
8725do
8726 IFS=$as_save_IFS
8727 test -z "$as_dir" && as_dir=.
8728 for ac_exec_ext in '' $ac_executable_extensions; do
8729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8730 ac_cv_prog_ax_pthread_config="yes"
8731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8732 break 2
8733 fi
8734done
8735 done
8736IFS=$as_save_IFS
8737
8738 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8739fi
8740fi
8741ax_pthread_config=$ac_cv_prog_ax_pthread_config
8742if test -n "$ax_pthread_config"; then
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8744$as_echo "$ax_pthread_config" >&6; }
8745else
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8747$as_echo "no" >&6; }
8748fi
8749
8750
8751 if test x"$ax_pthread_config" = xno; then continue; fi
8752 PTHREAD_CFLAGS="`pthread-config --cflags`"
8753 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8754 ;;
8755
8756 *)
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8758$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8759 PTHREAD_LIBS="-l$flag"
8760 ;;
8761 esac
8762
8763 save_LIBS="$LIBS"
8764 save_CFLAGS="$CFLAGS"
8765 LIBS="$PTHREAD_LIBS $LIBS"
8766 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8767
8768 # Check for various functions. We must include pthread.h,
8769 # since some functions may be macros. (On the Sequent, we
8770 # need a special flag -Kthread to make this header compile.)
8771 # We check for pthread_join because it is in -lpthread on IRIX
8772 # while pthread_create is in libc. We check for pthread_attr_init
8773 # due to DEC craziness with -lpthreads. We check for
8774 # pthread_cleanup_push because it is one of the few pthread
8775 # functions on Solaris that doesn't have a non-functional libc stub.
8776 # We try pthread_create on general principles.
8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778/* end confdefs.h. */
8779#include <pthread.h>
8780 static void routine(void* a) {a=0;}
8781 static void* start_routine(void* a) {return a;}
8782int
8783main ()
8784{
8785pthread_t th; pthread_attr_t attr;
8786 pthread_join(th, 0);
8787 pthread_attr_init(&attr);
8788 pthread_cleanup_push(routine, 0);
8789 pthread_create(&th,0,start_routine,0);
8790 pthread_cleanup_pop(0);
8791 ;
8792 return 0;
8793}
8794_ACEOF
8795if ac_fn_c_try_link "$LINENO"; then :
8796 ax_pthread_ok=yes
8797fi
8798rm -f core conftest.err conftest.$ac_objext \
8799 conftest$ac_exeext conftest.$ac_ext
8800
8801 LIBS="$save_LIBS"
8802 CFLAGS="$save_CFLAGS"
8803
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8805$as_echo "$ax_pthread_ok" >&6; }
8806 if test "x$ax_pthread_ok" = xyes; then
8807 break;
8808 fi
8809
8810 PTHREAD_LIBS=""
8811 PTHREAD_CFLAGS=""
8812done
8813fi
8814
8815# Various other checks:
8816if test "x$ax_pthread_ok" = xyes; then
8817 save_LIBS="$LIBS"
8818 LIBS="$PTHREAD_LIBS $LIBS"
8819 save_CFLAGS="$CFLAGS"
8820 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8821
8822 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8824$as_echo_n "checking for joinable pthread attribute... " >&6; }
8825 attr_name=unknown
8826 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8828/* end confdefs.h. */
8829#include <pthread.h>
8830int
8831main ()
8832{
8833int attr=$attr; return attr;
8834 ;
8835 return 0;
8836}
8837_ACEOF
8838if ac_fn_c_try_link "$LINENO"; then :
8839 attr_name=$attr; break
8840fi
8841rm -f core conftest.err conftest.$ac_objext \
8842 conftest$ac_exeext conftest.$ac_ext
8843 done
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8845$as_echo "$attr_name" >&6; }
8846 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8847
8848cat >>confdefs.h <<_ACEOF
8849#define PTHREAD_CREATE_JOINABLE $attr_name
8850_ACEOF
8851
8852 fi
8853
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8855$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8856 flag=no
8857 case "${host_cpu}-${host_os}" in
8858 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8859 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8860 esac
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8862$as_echo "${flag}" >&6; }
8863 if test "x$flag" != xno; then
8864 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8865 fi
8866
8867 LIBS="$save_LIBS"
8868 CFLAGS="$save_CFLAGS"
8869
8870 # More AIX lossage: must compile with xlc_r or cc_r
8871 if test x"$GCC" != xyes; then
8872 for ac_prog in xlc_r cc_r
8873do
8874 # Extract the first word of "$ac_prog", so it can be a program name with args.
8875set dummy $ac_prog; ac_word=$2
8876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877$as_echo_n "checking for $ac_word... " >&6; }
8878if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8879 $as_echo_n "(cached) " >&6
8880else
8881 if test -n "$PTHREAD_CC"; then
8882 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8883else
8884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885for as_dir in $PATH
8886do
8887 IFS=$as_save_IFS
8888 test -z "$as_dir" && as_dir=.
8889 for ac_exec_ext in '' $ac_executable_extensions; do
8890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8891 ac_cv_prog_PTHREAD_CC="$ac_prog"
8892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8893 break 2
8894 fi
8895done
8896 done
8897IFS=$as_save_IFS
8898
8899fi
8900fi
8901PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8902if test -n "$PTHREAD_CC"; then
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8904$as_echo "$PTHREAD_CC" >&6; }
8905else
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907$as_echo "no" >&6; }
8908fi
8909
8910
8911 test -n "$PTHREAD_CC" && break
8912done
8913test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8914
8915 else
8916 PTHREAD_CC=$CC
8917 fi
8918else
8919 PTHREAD_CC="$CC"
8920fi
8921
8922
8923
8924
8925
8926# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8927if test x"$ax_pthread_ok" = xyes; then
8928
8929$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8930
8931 :
8932else
8933 ax_pthread_ok=no
8934
8935fi
8936ac_ext=c
8937ac_cpp='$CPP $CPPFLAGS'
8938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8940ac_compiler_gnu=$ac_cv_c_compiler_gnu
8941
8942
8943
cristy43596fe2010-01-21 16:46:08 +00008944# Check whether --enable-opencl was given.
8945if test "${enable_opencl+set}" = set; then :
8946 enableval=$enable_opencl; disable_opencl=$enableval
8947else
8948 disable_opencl='yes'
8949fi
8950
8951
8952if test "$disable_opencl" = 'yes'; then
8953 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008954ac_cpp='$CPP $CPPFLAGS'
8955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8957ac_compiler_gnu=$ac_cv_c_compiler_gnu
8958
cristy43596fe2010-01-21 16:46:08 +00008959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00008960$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008961if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008962 $as_echo_n "(cached) " >&6
8963else
cristy8b350f62009-11-15 23:12:43 +00008964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008965/* end confdefs.h. */
8966
8967int
8968main ()
8969{
8970#ifndef _MSC_VER
8971 choke me
8972#endif
8973
8974 ;
8975 return 0;
8976}
8977_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008978if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008979 ax_compiler_ms=yes
8980else
cristy8b350f62009-11-15 23:12:43 +00008981 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00008982fi
cristy736173a2009-09-20 21:18:22 +00008983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8984ax_cv_c_compiler_ms=$ax_compiler_ms
8985
8986fi
cristy8b350f62009-11-15 23:12:43 +00008987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00008988$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy43596fe2010-01-21 16:46:08 +00008989 if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008990 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8991fi
8992
cristy43596fe2010-01-21 16:46:08 +00008993 ax_save_CPPFLAGS=$CPPFLAGS
8994 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8995 for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00008996do :
8997 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8998ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8999eval as_val=\$$as_ac_Header
9000 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00009001 cat >>confdefs.h <<_ACEOF
9002#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9003_ACEOF
9004
9005fi
9006
9007done
9008
cristy43596fe2010-01-21 16:46:08 +00009009 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00009010
cristy43596fe2010-01-21 16:46:08 +00009011 for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00009012do :
9013 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9014if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00009015 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009016#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00009017_ACEOF
9018
9019fi
9020
9021done
9022
9023
9024
9025
cristy43596fe2010-01-21 16:46:08 +00009026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00009027$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009028if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00009029 $as_echo_n "(cached) " >&6
9030else
9031 ax_cv_check_cl_libcl=no
cristy43596fe2010-01-21 16:46:08 +00009032 case $host_cpu in
9033 x86_64) ax_check_cl_libdir=lib64 ;;
9034 *) ax_check_cl_libdir=lib ;;
9035 esac
9036 ax_save_CPPFLAGS=$CPPFLAGS
9037 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9038 ax_save_LIBS=$LIBS
9039 LIBS=""
9040 ax_check_libs="-lOpenCL -lCL -lclparser"
9041 for ax_lib in $ax_check_libs; do
9042 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00009043 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9044else
9045 ax_try_lib=$ax_lib
9046fi
cristy43596fe2010-01-21 16:46:08 +00009047 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009049/* end confdefs.h. */
9050
cristy43596fe2010-01-21 16:46:08 +00009051 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9052 # include <windows.h>
9053 # endif
9054 # ifdef HAVE_CL_CL_H
9055 # include <CL/cl.h>
9056 # elif defined(HAVE_OPENCL_CL_H)
9057 # include <OpenCL/cl.h>
9058 # else
9059 # error no CL.h
9060 # endif
cristy736173a2009-09-20 21:18:22 +00009061int
9062main ()
9063{
cristyc7083c12009-10-14 03:16:55 +00009064clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009065 ;
9066 return 0;
9067}
9068_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009069if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009070 ax_cv_check_cl_libcl=$ax_try_lib; break
9071else
cristy8b350f62009-11-15 23:12:43 +00009072 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 +00009073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009074/* end confdefs.h. */
9075
cristy43596fe2010-01-21 16:46:08 +00009076 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9077 # include <windows.h>
9078 # endif
9079 # ifdef HAVE_CL_CL_H
9080 # include <CL/cl.h>
9081 # elif defined(HAVE_OPENCL_CL_H)
9082 # include <OpenCL/cl.h>
9083 # else
9084 # error no CL.h
9085 # endif
cristy736173a2009-09-20 21:18:22 +00009086int
9087main ()
9088{
cristyc7083c12009-10-14 03:16:55 +00009089clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009090 ;
9091 return 0;
9092}
9093_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009094if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009095 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9096else
cristy4dc44432009-12-30 23:30:06 +00009097 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 +00009098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009099/* end confdefs.h. */
9100
cristy43596fe2010-01-21 16:46:08 +00009101 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9102 # include <windows.h>
9103 # endif
9104 # ifdef HAVE_CL_CL_H
9105 # include <CL/cl.h>
9106 # elif defined(HAVE_OPENCL_CL_H)
9107 # include <OpenCL/cl.h>
9108 # else
9109 # error no CL.h
9110 # endif
cristy736173a2009-09-20 21:18:22 +00009111int
9112main ()
9113{
cristyc7083c12009-10-14 03:16:55 +00009114clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009115 ;
9116 return 0;
9117}
9118_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009119if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009120 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00009121fi
cristy8b350f62009-11-15 23:12:43 +00009122rm -f core conftest.err conftest.$ac_objext \
9123 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009124fi
cristy8b350f62009-11-15 23:12:43 +00009125rm -f core conftest.err conftest.$ac_objext \
9126 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009127fi
cristy8b350f62009-11-15 23:12:43 +00009128rm -f core conftest.err conftest.$ac_objext \
9129 conftest$ac_exeext conftest.$ac_ext
cristy43596fe2010-01-21 16:46:08 +00009130 done
cristy736173a2009-09-20 21:18:22 +00009131
cristy43596fe2010-01-21 16:46:08 +00009132 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00009133 LIBS='-framework OpenCL'
cristy43596fe2010-01-21 16:46:08 +00009134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009135/* end confdefs.h. */
9136
cristy43596fe2010-01-21 16:46:08 +00009137 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9138 # include <windows.h>
9139 # endif
9140 # ifdef HAVE_CL_CL_H
9141 # include <CL/cl.h>
9142 # elif defined(HAVE_OPENCL_CL_H)
9143 # include <OpenCL/cl.h>
9144 # else
9145 # error no CL.h
9146 # endif
cristy736173a2009-09-20 21:18:22 +00009147int
9148main ()
9149{
cristyc7083c12009-10-14 03:16:55 +00009150clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009151 ;
9152 return 0;
9153}
9154_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009155if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009156 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00009157fi
cristy8b350f62009-11-15 23:12:43 +00009158rm -f core conftest.err conftest.$ac_objext \
9159 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009160fi
9161
cristy43596fe2010-01-21 16:46:08 +00009162 LIBS=$ax_save_LIBS
9163 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00009164fi
cristy8b350f62009-11-15 23:12:43 +00009165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00009166$as_echo "$ax_cv_check_cl_libcl" >&6; }
9167
cristy43596fe2010-01-21 16:46:08 +00009168 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00009169 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9170else
cristy99cc3002010-01-21 14:50:11 +00009171 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9172$as_echo "#define _OPENCL 1" >>confdefs.h
9173
cristy736173a2009-09-20 21:18:22 +00009174fi
cristy43596fe2010-01-21 16:46:08 +00009175 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00009176ac_cpp='$CPP $CPPFLAGS'
9177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9179ac_compiler_gnu=$ac_cv_c_compiler_gnu
9180
cristy43596fe2010-01-21 16:46:08 +00009181fi
cristy736173a2009-09-20 21:18:22 +00009182
9183
9184
9185
cristyc7083c12009-10-14 03:16:55 +00009186CFLAGS="$CL_CFLAGS $CFLAGS"
9187LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009188
cristy2e8b51d2009-10-17 18:26:15 +00009189
cristy3ed852e2009-09-05 21:47:34 +00009190########
9191#
9192# Check for large file support
9193#
9194########
9195# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009196if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009197 enableval=$enable_largefile;
9198fi
9199
9200if test "$enable_largefile" != no; then
9201
cristy8b350f62009-11-15 23:12:43 +00009202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009203$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009204if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009205 $as_echo_n "(cached) " >&6
9206else
9207 ac_cv_sys_largefile_CC=no
9208 if test "$GCC" != yes; then
9209 ac_save_CC=$CC
9210 while :; do
9211 # IRIX 6.2 and later do not support large files by default,
9212 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009214/* end confdefs.h. */
9215#include <sys/types.h>
9216 /* Check that off_t can represent 2**63 - 1 correctly.
9217 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9218 since some C++ compilers masquerading as C compilers
9219 incorrectly reject 9223372036854775807. */
9220#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9221 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9222 && LARGE_OFF_T % 2147483647 == 1)
9223 ? 1 : -1];
9224int
9225main ()
9226{
9227
9228 ;
9229 return 0;
9230}
9231_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009232 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009233 break
cristy3ed852e2009-09-05 21:47:34 +00009234fi
cristy3ed852e2009-09-05 21:47:34 +00009235rm -f core conftest.err conftest.$ac_objext
9236 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009237 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009238 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009239fi
cristy3ed852e2009-09-05 21:47:34 +00009240rm -f core conftest.err conftest.$ac_objext
9241 break
9242 done
9243 CC=$ac_save_CC
9244 rm -f conftest.$ac_ext
9245 fi
9246fi
cristy8b350f62009-11-15 23:12:43 +00009247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009248$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9249 if test "$ac_cv_sys_largefile_CC" != no; then
9250 CC=$CC$ac_cv_sys_largefile_CC
9251 fi
9252
cristy8b350f62009-11-15 23:12:43 +00009253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009254$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009255if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009256 $as_echo_n "(cached) " >&6
9257else
9258 while :; do
cristy8b350f62009-11-15 23:12:43 +00009259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009260/* end confdefs.h. */
9261#include <sys/types.h>
9262 /* Check that off_t can represent 2**63 - 1 correctly.
9263 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9264 since some C++ compilers masquerading as C compilers
9265 incorrectly reject 9223372036854775807. */
9266#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9267 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9268 && LARGE_OFF_T % 2147483647 == 1)
9269 ? 1 : -1];
9270int
9271main ()
9272{
9273
9274 ;
9275 return 0;
9276}
9277_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009278if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009279 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009280fi
cristy3ed852e2009-09-05 21:47:34 +00009281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009283/* end confdefs.h. */
9284#define _FILE_OFFSET_BITS 64
9285#include <sys/types.h>
9286 /* Check that off_t can represent 2**63 - 1 correctly.
9287 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9288 since some C++ compilers masquerading as C compilers
9289 incorrectly reject 9223372036854775807. */
9290#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9291 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9292 && LARGE_OFF_T % 2147483647 == 1)
9293 ? 1 : -1];
9294int
9295main ()
9296{
9297
9298 ;
9299 return 0;
9300}
9301_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009302if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009303 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009304fi
cristy3ed852e2009-09-05 21:47:34 +00009305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9306 ac_cv_sys_file_offset_bits=unknown
9307 break
9308done
9309fi
cristy8b350f62009-11-15 23:12:43 +00009310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009311$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9312case $ac_cv_sys_file_offset_bits in #(
9313 no | unknown) ;;
9314 *)
9315cat >>confdefs.h <<_ACEOF
9316#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9317_ACEOF
9318;;
9319esac
9320rm -rf conftest*
9321 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009323$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009324if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009325 $as_echo_n "(cached) " >&6
9326else
9327 while :; do
cristy8b350f62009-11-15 23:12:43 +00009328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009329/* end confdefs.h. */
9330#include <sys/types.h>
9331 /* Check that off_t can represent 2**63 - 1 correctly.
9332 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9333 since some C++ compilers masquerading as C compilers
9334 incorrectly reject 9223372036854775807. */
9335#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9336 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9337 && LARGE_OFF_T % 2147483647 == 1)
9338 ? 1 : -1];
9339int
9340main ()
9341{
9342
9343 ;
9344 return 0;
9345}
9346_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009347if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009348 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009349fi
cristy3ed852e2009-09-05 21:47:34 +00009350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009352/* end confdefs.h. */
9353#define _LARGE_FILES 1
9354#include <sys/types.h>
9355 /* Check that off_t can represent 2**63 - 1 correctly.
9356 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9357 since some C++ compilers masquerading as C compilers
9358 incorrectly reject 9223372036854775807. */
9359#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9360 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9361 && LARGE_OFF_T % 2147483647 == 1)
9362 ? 1 : -1];
9363int
9364main ()
9365{
9366
9367 ;
9368 return 0;
9369}
9370_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009371if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009372 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009373fi
cristy3ed852e2009-09-05 21:47:34 +00009374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9375 ac_cv_sys_large_files=unknown
9376 break
9377done
9378fi
cristy8b350f62009-11-15 23:12:43 +00009379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009380$as_echo "$ac_cv_sys_large_files" >&6; }
9381case $ac_cv_sys_large_files in #(
9382 no | unknown) ;;
9383 *)
9384cat >>confdefs.h <<_ACEOF
9385#define _LARGE_FILES $ac_cv_sys_large_files
9386_ACEOF
9387;;
9388esac
9389rm -rf conftest*
9390 fi
9391fi
9392
cristy8b350f62009-11-15 23:12:43 +00009393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009394$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009395if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009396 $as_echo_n "(cached) " >&6
9397else
9398 while :; do
cristy8b350f62009-11-15 23:12:43 +00009399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009400/* end confdefs.h. */
9401#include <sys/types.h> /* for off_t */
9402 #include <stdio.h>
9403int
9404main ()
9405{
9406int (*fp) (FILE *, off_t, int) = fseeko;
9407 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9408 ;
9409 return 0;
9410}
9411_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009412if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009413 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009414fi
cristy8b350f62009-11-15 23:12:43 +00009415rm -f core conftest.err conftest.$ac_objext \
9416 conftest$ac_exeext conftest.$ac_ext
9417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009418/* end confdefs.h. */
9419#define _LARGEFILE_SOURCE 1
9420#include <sys/types.h> /* for off_t */
9421 #include <stdio.h>
9422int
9423main ()
9424{
9425int (*fp) (FILE *, off_t, int) = fseeko;
9426 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9427 ;
9428 return 0;
9429}
9430_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009431if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009432 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009433fi
cristy8b350f62009-11-15 23:12:43 +00009434rm -f core conftest.err conftest.$ac_objext \
9435 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009436 ac_cv_sys_largefile_source=unknown
9437 break
9438done
9439fi
cristy8b350f62009-11-15 23:12:43 +00009440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009441$as_echo "$ac_cv_sys_largefile_source" >&6; }
9442case $ac_cv_sys_largefile_source in #(
9443 no | unknown) ;;
9444 *)
9445cat >>confdefs.h <<_ACEOF
9446#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9447_ACEOF
9448;;
9449esac
9450rm -rf conftest*
9451
9452# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9453# in glibc 2.1.3, but that breaks too many other things.
9454# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9455if test $ac_cv_sys_largefile_source != unknown; then
9456
cristy8b350f62009-11-15 23:12:43 +00009457$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009458
9459fi
9460
9461LFS_CPPFLAGS=''
9462if test "$enable_largefile" != no; then
9463 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9464 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9465 else
cristy8b350f62009-11-15 23:12:43 +00009466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009467$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009468 if test "$cross_compiling" = yes; then :
9469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00009471as_fn_error "cannot run test program while cross compiling
9472See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009473else
cristy8b350f62009-11-15 23:12:43 +00009474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009476#include <unistd.h>
9477 main () {
9478 exit(!(sizeof(off_t) == 8));
9479 }
9480_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009481if ac_fn_c_try_run "$LINENO"; then :
9482 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009483
cristy8b350f62009-11-15 23:12:43 +00009484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009485$as_echo "yes" >&6; }
9486else
cristy8b350f62009-11-15 23:12:43 +00009487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009488$as_echo "no" >&6; }
9489fi
cristy8b350f62009-11-15 23:12:43 +00009490rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9491 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009492fi
9493
cristy3ed852e2009-09-05 21:47:34 +00009494 fi
9495 if test "$ac_cv_sys_large_files" != 'no'; then
9496 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9497 fi
9498 if test "$ac_cv_sys_largefile_source" != 'no'; then
9499 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9500 fi
9501fi
9502
9503
9504#
9505# Configure libtool & libltdl
9506#
9507# Configure libtool
9508enable_dlopen=yes
9509
9510
9511
9512case `pwd` in
9513 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00009514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00009515$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9516esac
9517
9518
9519
cristy18304f92009-11-22 15:48:26 +00009520macro_version='2.2.6b'
9521macro_revision='1.3017'
cristy3ed852e2009-09-05 21:47:34 +00009522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535ltmain="$ac_aux_dir/ltmain.sh"
9536
cristy8b350f62009-11-15 23:12:43 +00009537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00009538$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009539if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009540 $as_echo_n "(cached) " >&6
9541else
9542 if test -n "$NM"; then
9543 # Let the user override the test.
9544 lt_cv_path_NM="$NM"
9545else
9546 lt_nm_to_check="${ac_tool_prefix}nm"
9547 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9548 lt_nm_to_check="$lt_nm_to_check nm"
9549 fi
9550 for lt_tmp_nm in $lt_nm_to_check; do
9551 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9552 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9553 IFS="$lt_save_ifs"
9554 test -z "$ac_dir" && ac_dir=.
9555 tmp_nm="$ac_dir/$lt_tmp_nm"
9556 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9557 # Check to see if the nm accepts a BSD-compat flag.
9558 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9559 # nm: unknown option "B" ignored
9560 # Tru64's nm complains that /dev/null is an invalid object file
9561 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9562 */dev/null* | *'Invalid file or object type'*)
9563 lt_cv_path_NM="$tmp_nm -B"
9564 break
9565 ;;
9566 *)
9567 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9568 */dev/null*)
9569 lt_cv_path_NM="$tmp_nm -p"
9570 break
9571 ;;
9572 *)
9573 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9574 continue # so that we can try to find one that supports BSD flags
9575 ;;
9576 esac
9577 ;;
9578 esac
9579 fi
9580 done
9581 IFS="$lt_save_ifs"
9582 done
9583 : ${lt_cv_path_NM=no}
9584fi
9585fi
cristy8b350f62009-11-15 23:12:43 +00009586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00009587$as_echo "$lt_cv_path_NM" >&6; }
9588if test "$lt_cv_path_NM" != "no"; then
9589 NM="$lt_cv_path_NM"
9590else
9591 # Didn't find any BSD compatible name lister, look for dumpbin.
cristyb7c7b8e2010-06-22 14:22:40 +00009592 if test -n "$ac_tool_prefix"; then
9593 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00009594 do
9595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9596set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009598$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009599if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009600 $as_echo_n "(cached) " >&6
9601else
9602 if test -n "$DUMPBIN"; then
9603 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9604else
9605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606for as_dir in $PATH
9607do
9608 IFS=$as_save_IFS
9609 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009610 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9612 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009614 break 2
9615 fi
9616done
cristy8b350f62009-11-15 23:12:43 +00009617 done
cristy3ed852e2009-09-05 21:47:34 +00009618IFS=$as_save_IFS
9619
9620fi
9621fi
9622DUMPBIN=$ac_cv_prog_DUMPBIN
9623if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009625$as_echo "$DUMPBIN" >&6; }
9626else
cristy8b350f62009-11-15 23:12:43 +00009627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009628$as_echo "no" >&6; }
9629fi
9630
9631
9632 test -n "$DUMPBIN" && break
9633 done
9634fi
9635if test -z "$DUMPBIN"; then
9636 ac_ct_DUMPBIN=$DUMPBIN
cristyb7c7b8e2010-06-22 14:22:40 +00009637 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00009638do
9639 # Extract the first word of "$ac_prog", so it can be a program name with args.
9640set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009642$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009643if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009644 $as_echo_n "(cached) " >&6
9645else
9646 if test -n "$ac_ct_DUMPBIN"; then
9647 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9648else
9649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9650for as_dir in $PATH
9651do
9652 IFS=$as_save_IFS
9653 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009654 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9656 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009658 break 2
9659 fi
9660done
cristy8b350f62009-11-15 23:12:43 +00009661 done
cristy3ed852e2009-09-05 21:47:34 +00009662IFS=$as_save_IFS
9663
9664fi
9665fi
9666ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9667if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009669$as_echo "$ac_ct_DUMPBIN" >&6; }
9670else
cristy8b350f62009-11-15 23:12:43 +00009671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009672$as_echo "no" >&6; }
9673fi
9674
9675
9676 test -n "$ac_ct_DUMPBIN" && break
9677done
9678
9679 if test "x$ac_ct_DUMPBIN" = x; then
9680 DUMPBIN=":"
9681 else
9682 case $cross_compiling:$ac_tool_warned in
9683yes:)
cristy8b350f62009-11-15 23:12:43 +00009684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9686ac_tool_warned=yes ;;
9687esac
9688 DUMPBIN=$ac_ct_DUMPBIN
9689 fi
9690fi
9691
9692
9693 if test "$DUMPBIN" != ":"; then
9694 NM="$DUMPBIN"
9695 fi
9696fi
9697test -z "$NM" && NM=nm
9698
9699
9700
9701
9702
9703
cristy8b350f62009-11-15 23:12:43 +00009704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009705$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009706if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009707 $as_echo_n "(cached) " >&6
9708else
9709 lt_cv_nm_interface="BSD nm"
9710 echo "int some_variable = 0;" > conftest.$ac_ext
cristyb7c7b8e2010-06-22 14:22:40 +00009711 (eval echo "\"\$as_me:9711: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009712 (eval "$ac_compile" 2>conftest.err)
9713 cat conftest.err >&5
cristyb7c7b8e2010-06-22 14:22:40 +00009714 (eval echo "\"\$as_me:9714: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009715 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9716 cat conftest.err >&5
cristyb7c7b8e2010-06-22 14:22:40 +00009717 (eval echo "\"\$as_me:9717: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009718 cat conftest.out >&5
9719 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9720 lt_cv_nm_interface="MS dumpbin"
9721 fi
9722 rm -f conftest*
9723fi
cristy8b350f62009-11-15 23:12:43 +00009724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009725$as_echo "$lt_cv_nm_interface" >&6; }
9726
9727# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00009728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00009729$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009730if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009731 $as_echo_n "(cached) " >&6
9732else
9733 i=0
9734 teststring="ABCD"
9735
9736 case $build_os in
9737 msdosdjgpp*)
9738 # On DJGPP, this test can blow up pretty badly due to problems in libc
9739 # (any single argument exceeding 2000 bytes causes a buffer overrun
9740 # during glob expansion). Even if it were fixed, the result of this
9741 # check would be larger than it should be.
9742 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9743 ;;
9744
9745 gnu*)
9746 # Under GNU Hurd, this test is not required because there is
9747 # no limit to the length of command line arguments.
9748 # Libtool will interpret -1 as no limit whatsoever
9749 lt_cv_sys_max_cmd_len=-1;
9750 ;;
9751
9752 cygwin* | mingw* | cegcc*)
9753 # On Win9x/ME, this test blows up -- it succeeds, but takes
9754 # about 5 minutes as the teststring grows exponentially.
9755 # Worse, since 9x/ME are not pre-emptively multitasking,
9756 # you end up with a "frozen" computer, even though with patience
9757 # the test eventually succeeds (with a max line length of 256k).
9758 # Instead, let's just punt: use the minimum linelength reported by
9759 # all of the supported platforms: 8192 (on NT/2K/XP).
9760 lt_cv_sys_max_cmd_len=8192;
9761 ;;
9762
9763 amigaos*)
9764 # On AmigaOS with pdksh, this test takes hours, literally.
9765 # So we just punt and use a minimum line length of 8192.
9766 lt_cv_sys_max_cmd_len=8192;
9767 ;;
9768
9769 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9770 # This has been around since 386BSD, at least. Likely further.
9771 if test -x /sbin/sysctl; then
9772 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9773 elif test -x /usr/sbin/sysctl; then
9774 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9775 else
9776 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9777 fi
9778 # And add a safety zone
9779 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9780 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9781 ;;
9782
9783 interix*)
9784 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9785 lt_cv_sys_max_cmd_len=196608
9786 ;;
9787
9788 osf*)
9789 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9790 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9791 # nice to cause kernel panics so lets avoid the loop below.
9792 # First set a reasonable default.
9793 lt_cv_sys_max_cmd_len=16384
9794 #
9795 if test -x /sbin/sysconfig; then
9796 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9797 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9798 esac
9799 fi
9800 ;;
9801 sco3.2v5*)
9802 lt_cv_sys_max_cmd_len=102400
9803 ;;
9804 sysv5* | sco5v6* | sysv4.2uw2*)
9805 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9806 if test -n "$kargmax"; then
9807 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9808 else
9809 lt_cv_sys_max_cmd_len=32768
9810 fi
9811 ;;
9812 *)
9813 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9814 if test -n "$lt_cv_sys_max_cmd_len"; then
9815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9817 else
9818 # Make teststring a little bigger before we do anything with it.
9819 # a 1K string should be a reasonable start.
9820 for i in 1 2 3 4 5 6 7 8 ; do
9821 teststring=$teststring$teststring
9822 done
9823 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9824 # If test is not a shell built-in, we'll probably end up computing a
9825 # maximum length that is only half of the actual maximum length, but
9826 # we can't tell.
cristyb7c7b8e2010-06-22 14:22:40 +00009827 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9828 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00009829 test $i != 17 # 1/2 MB should be enough
9830 do
9831 i=`expr $i + 1`
9832 teststring=$teststring$teststring
9833 done
9834 # Only check the string length outside the loop.
9835 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9836 teststring=
9837 # Add a significant safety factor because C++ compilers can tack on
9838 # massive amounts of additional arguments before passing them to the
9839 # linker. It appears as though 1/2 is a usable value.
9840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9841 fi
9842 ;;
9843 esac
9844
9845fi
9846
9847if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00009848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00009849$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9850else
cristy8b350f62009-11-15 23:12:43 +00009851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00009852$as_echo "none" >&6; }
9853fi
9854max_cmd_len=$lt_cv_sys_max_cmd_len
9855
9856
9857
9858
9859
9860
9861: ${CP="cp -f"}
9862: ${MV="mv -f"}
9863: ${RM="rm -f"}
9864
cristy8b350f62009-11-15 23:12:43 +00009865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00009866$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9867# Try some XSI features
9868xsi_shell=no
9869( _lt_dummy="a/b/c"
9870 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9871 = c,a/b,, \
9872 && eval 'test $(( 1 + 1 )) -eq 2 \
9873 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9874 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00009875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00009876$as_echo "$xsi_shell" >&6; }
9877
9878
cristy8b350f62009-11-15 23:12:43 +00009879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00009880$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9881lt_shell_append=no
9882( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9883 >/dev/null 2>&1 \
9884 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00009885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00009886$as_echo "$lt_shell_append" >&6; }
9887
9888
9889if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9890 lt_unset=unset
9891else
9892 lt_unset=false
9893fi
9894
9895
9896
9897
9898
9899# test EBCDIC or ASCII
9900case `echo X|tr X '\101'` in
9901 A) # ASCII based system
9902 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9903 lt_SP2NL='tr \040 \012'
9904 lt_NL2SP='tr \015\012 \040\040'
9905 ;;
9906 *) # EBCDIC based system
9907 lt_SP2NL='tr \100 \n'
9908 lt_NL2SP='tr \r\n \100\100'
9909 ;;
9910esac
9911
9912
9913
9914
9915
9916
9917
9918
9919
cristy8b350f62009-11-15 23:12:43 +00009920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009921$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009922if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009923 $as_echo_n "(cached) " >&6
9924else
9925 lt_cv_ld_reload_flag='-r'
9926fi
cristy8b350f62009-11-15 23:12:43 +00009927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00009928$as_echo "$lt_cv_ld_reload_flag" >&6; }
9929reload_flag=$lt_cv_ld_reload_flag
9930case $reload_flag in
9931"" | " "*) ;;
9932*) reload_flag=" $reload_flag" ;;
9933esac
9934reload_cmds='$LD$reload_flag -o $output$reload_objs'
9935case $host_os in
9936 darwin*)
9937 if test "$GCC" = yes; then
9938 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9939 else
9940 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9941 fi
9942 ;;
9943esac
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953if test -n "$ac_tool_prefix"; then
9954 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9955set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009957$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009958if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009959 $as_echo_n "(cached) " >&6
9960else
9961 if test -n "$OBJDUMP"; then
9962 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9963else
9964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9965for as_dir in $PATH
9966do
9967 IFS=$as_save_IFS
9968 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009969 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9971 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00009972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009973 break 2
9974 fi
9975done
cristy8b350f62009-11-15 23:12:43 +00009976 done
cristy3ed852e2009-09-05 21:47:34 +00009977IFS=$as_save_IFS
9978
9979fi
9980fi
9981OBJDUMP=$ac_cv_prog_OBJDUMP
9982if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009984$as_echo "$OBJDUMP" >&6; }
9985else
cristy8b350f62009-11-15 23:12:43 +00009986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009987$as_echo "no" >&6; }
9988fi
9989
9990
9991fi
9992if test -z "$ac_cv_prog_OBJDUMP"; then
9993 ac_ct_OBJDUMP=$OBJDUMP
9994 # Extract the first word of "objdump", so it can be a program name with args.
9995set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009997$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009998if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009999 $as_echo_n "(cached) " >&6
10000else
10001 if test -n "$ac_ct_OBJDUMP"; then
10002 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10003else
10004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10005for as_dir in $PATH
10006do
10007 IFS=$as_save_IFS
10008 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010009 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10011 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000010012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010013 break 2
10014 fi
10015done
cristy8b350f62009-11-15 23:12:43 +000010016 done
cristy3ed852e2009-09-05 21:47:34 +000010017IFS=$as_save_IFS
10018
10019fi
10020fi
10021ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10022if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000010023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010024$as_echo "$ac_ct_OBJDUMP" >&6; }
10025else
cristy8b350f62009-11-15 23:12:43 +000010026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010027$as_echo "no" >&6; }
10028fi
10029
10030 if test "x$ac_ct_OBJDUMP" = x; then
10031 OBJDUMP="false"
10032 else
10033 case $cross_compiling:$ac_tool_warned in
10034yes:)
cristy8b350f62009-11-15 23:12:43 +000010035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10037ac_tool_warned=yes ;;
10038esac
10039 OBJDUMP=$ac_ct_OBJDUMP
10040 fi
10041else
10042 OBJDUMP="$ac_cv_prog_OBJDUMP"
10043fi
10044
10045test -z "$OBJDUMP" && OBJDUMP=objdump
10046
10047
10048
10049
10050
10051
cristy8b350f62009-11-15 23:12:43 +000010052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000010053$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010054if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010055 $as_echo_n "(cached) " >&6
10056else
10057 lt_cv_file_magic_cmd='$MAGIC_CMD'
10058lt_cv_file_magic_test_file=
10059lt_cv_deplibs_check_method='unknown'
10060# Need to set the preceding variable on all platforms that support
10061# interlibrary dependencies.
10062# 'none' -- dependencies not supported.
10063# `unknown' -- same as none, but documents that we really don't know.
10064# 'pass_all' -- all dependencies passed with no checks.
10065# 'test_compile' -- check by making test program.
10066# 'file_magic [[regex]]' -- check by looking for files in library path
10067# which responds to the $file_magic_cmd with a given extended regex.
10068# If you have `file' or equivalent on your system and you're not sure
10069# whether `pass_all' will *always* work, you probably want this one.
10070
10071case $host_os in
10072aix[4-9]*)
10073 lt_cv_deplibs_check_method=pass_all
10074 ;;
10075
10076beos*)
10077 lt_cv_deplibs_check_method=pass_all
10078 ;;
10079
10080bsdi[45]*)
10081 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10082 lt_cv_file_magic_cmd='/usr/bin/file -L'
10083 lt_cv_file_magic_test_file=/shlib/libc.so
10084 ;;
10085
10086cygwin*)
10087 # func_win32_libid is a shell function defined in ltmain.sh
10088 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10089 lt_cv_file_magic_cmd='func_win32_libid'
10090 ;;
10091
10092mingw* | pw32*)
10093 # Base MSYS/MinGW do not provide the 'file' command needed by
10094 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10095 # unless we find 'file', for example because we are cross-compiling.
cristyb7c7b8e2010-06-22 14:22:40 +000010096 if ( file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +000010097 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10098 lt_cv_file_magic_cmd='func_win32_libid'
10099 else
cristyb7c7b8e2010-06-22 14:22:40 +000010100 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
cristy3ed852e2009-09-05 21:47:34 +000010101 lt_cv_file_magic_cmd='$OBJDUMP -f'
10102 fi
10103 ;;
10104
cristyb7c7b8e2010-06-22 14:22:40 +000010105cegcc)
cristy3ed852e2009-09-05 21:47:34 +000010106 # use the weaker test based on 'objdump'. See mingw*.
10107 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10108 lt_cv_file_magic_cmd='$OBJDUMP -f'
10109 ;;
10110
10111darwin* | rhapsody*)
10112 lt_cv_deplibs_check_method=pass_all
10113 ;;
10114
10115freebsd* | dragonfly*)
10116 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10117 case $host_cpu in
10118 i*86 )
10119 # Not sure whether the presence of OpenBSD here was a mistake.
10120 # Let's accept both of them until this is cleared up.
10121 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10122 lt_cv_file_magic_cmd=/usr/bin/file
10123 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10124 ;;
10125 esac
10126 else
10127 lt_cv_deplibs_check_method=pass_all
10128 fi
10129 ;;
10130
10131gnu*)
10132 lt_cv_deplibs_check_method=pass_all
10133 ;;
10134
10135hpux10.20* | hpux11*)
10136 lt_cv_file_magic_cmd=/usr/bin/file
10137 case $host_cpu in
10138 ia64*)
10139 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10140 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10141 ;;
10142 hppa*64*)
cristyb7c7b8e2010-06-22 14:22:40 +000010143 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 +000010144 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10145 ;;
10146 *)
cristyb7c7b8e2010-06-22 14:22:40 +000010147 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 +000010148 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10149 ;;
10150 esac
10151 ;;
10152
10153interix[3-9]*)
10154 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10155 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10156 ;;
10157
10158irix5* | irix6* | nonstopux*)
10159 case $LD in
10160 *-32|*"-32 ") libmagic=32-bit;;
10161 *-n32|*"-n32 ") libmagic=N32;;
10162 *-64|*"-64 ") libmagic=64-bit;;
10163 *) libmagic=never-match;;
10164 esac
10165 lt_cv_deplibs_check_method=pass_all
10166 ;;
10167
10168# This must be Linux ELF.
cristyb7c7b8e2010-06-22 14:22:40 +000010169linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000010170 lt_cv_deplibs_check_method=pass_all
10171 ;;
10172
10173netbsd*)
10174 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10175 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10176 else
10177 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10178 fi
10179 ;;
10180
10181newos6*)
10182 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10183 lt_cv_file_magic_cmd=/usr/bin/file
10184 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10185 ;;
10186
10187*nto* | *qnx*)
10188 lt_cv_deplibs_check_method=pass_all
10189 ;;
10190
10191openbsd*)
10192 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10194 else
10195 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10196 fi
10197 ;;
10198
10199osf3* | osf4* | osf5*)
10200 lt_cv_deplibs_check_method=pass_all
10201 ;;
10202
10203rdos*)
10204 lt_cv_deplibs_check_method=pass_all
10205 ;;
10206
10207solaris*)
10208 lt_cv_deplibs_check_method=pass_all
10209 ;;
10210
10211sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10212 lt_cv_deplibs_check_method=pass_all
10213 ;;
10214
10215sysv4 | sysv4.3*)
10216 case $host_vendor in
10217 motorola)
10218 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]'
10219 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10220 ;;
10221 ncr)
10222 lt_cv_deplibs_check_method=pass_all
10223 ;;
10224 sequent)
10225 lt_cv_file_magic_cmd='/bin/file'
10226 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10227 ;;
10228 sni)
10229 lt_cv_file_magic_cmd='/bin/file'
10230 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10231 lt_cv_file_magic_test_file=/lib/libc.so
10232 ;;
10233 siemens)
10234 lt_cv_deplibs_check_method=pass_all
10235 ;;
10236 pc)
10237 lt_cv_deplibs_check_method=pass_all
10238 ;;
10239 esac
10240 ;;
10241
10242tpf*)
10243 lt_cv_deplibs_check_method=pass_all
10244 ;;
10245esac
10246
10247fi
cristy8b350f62009-11-15 23:12:43 +000010248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +000010249$as_echo "$lt_cv_deplibs_check_method" >&6; }
10250file_magic_cmd=$lt_cv_file_magic_cmd
10251deplibs_check_method=$lt_cv_deplibs_check_method
10252test -z "$deplibs_check_method" && deplibs_check_method=unknown
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265if test -n "$ac_tool_prefix"; then
10266 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10267set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010269$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010270if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010271 $as_echo_n "(cached) " >&6
10272else
10273 if test -n "$AR"; then
10274 ac_cv_prog_AR="$AR" # Let the user override the test.
10275else
10276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10277for as_dir in $PATH
10278do
10279 IFS=$as_save_IFS
10280 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010281 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10283 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +000010284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010285 break 2
10286 fi
10287done
cristy8b350f62009-11-15 23:12:43 +000010288 done
cristy3ed852e2009-09-05 21:47:34 +000010289IFS=$as_save_IFS
10290
10291fi
10292fi
10293AR=$ac_cv_prog_AR
10294if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +000010295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010296$as_echo "$AR" >&6; }
10297else
cristy8b350f62009-11-15 23:12:43 +000010298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010299$as_echo "no" >&6; }
10300fi
10301
10302
10303fi
10304if test -z "$ac_cv_prog_AR"; then
10305 ac_ct_AR=$AR
10306 # Extract the first word of "ar", so it can be a program name with args.
10307set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010309$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010310if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010311 $as_echo_n "(cached) " >&6
10312else
10313 if test -n "$ac_ct_AR"; then
10314 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10315else
10316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10317for as_dir in $PATH
10318do
10319 IFS=$as_save_IFS
10320 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010321 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10323 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +000010324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010325 break 2
10326 fi
10327done
cristy8b350f62009-11-15 23:12:43 +000010328 done
cristy3ed852e2009-09-05 21:47:34 +000010329IFS=$as_save_IFS
10330
10331fi
10332fi
10333ac_ct_AR=$ac_cv_prog_ac_ct_AR
10334if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +000010335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010336$as_echo "$ac_ct_AR" >&6; }
10337else
cristy8b350f62009-11-15 23:12:43 +000010338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010339$as_echo "no" >&6; }
10340fi
10341
10342 if test "x$ac_ct_AR" = x; then
10343 AR="false"
10344 else
10345 case $cross_compiling:$ac_tool_warned in
10346yes:)
cristy8b350f62009-11-15 23:12:43 +000010347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10349ac_tool_warned=yes ;;
10350esac
10351 AR=$ac_ct_AR
10352 fi
10353else
10354 AR="$ac_cv_prog_AR"
10355fi
10356
10357test -z "$AR" && AR=ar
10358test -z "$AR_FLAGS" && AR_FLAGS=cru
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370if test -n "$ac_tool_prefix"; then
10371 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10372set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010374$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010375if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010376 $as_echo_n "(cached) " >&6
10377else
10378 if test -n "$STRIP"; then
10379 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10380else
10381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10382for as_dir in $PATH
10383do
10384 IFS=$as_save_IFS
10385 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010386 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10388 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +000010389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010390 break 2
10391 fi
10392done
cristy8b350f62009-11-15 23:12:43 +000010393 done
cristy3ed852e2009-09-05 21:47:34 +000010394IFS=$as_save_IFS
10395
10396fi
10397fi
10398STRIP=$ac_cv_prog_STRIP
10399if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010401$as_echo "$STRIP" >&6; }
10402else
cristy8b350f62009-11-15 23:12:43 +000010403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010404$as_echo "no" >&6; }
10405fi
10406
10407
10408fi
10409if test -z "$ac_cv_prog_STRIP"; then
10410 ac_ct_STRIP=$STRIP
10411 # Extract the first word of "strip", so it can be a program name with args.
10412set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010414$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010415if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010416 $as_echo_n "(cached) " >&6
10417else
10418 if test -n "$ac_ct_STRIP"; then
10419 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10420else
10421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10422for as_dir in $PATH
10423do
10424 IFS=$as_save_IFS
10425 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010426 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10428 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +000010429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010430 break 2
10431 fi
10432done
cristy8b350f62009-11-15 23:12:43 +000010433 done
cristy3ed852e2009-09-05 21:47:34 +000010434IFS=$as_save_IFS
10435
10436fi
10437fi
10438ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10439if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010441$as_echo "$ac_ct_STRIP" >&6; }
10442else
cristy8b350f62009-11-15 23:12:43 +000010443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010444$as_echo "no" >&6; }
10445fi
10446
10447 if test "x$ac_ct_STRIP" = x; then
10448 STRIP=":"
10449 else
10450 case $cross_compiling:$ac_tool_warned in
10451yes:)
cristy8b350f62009-11-15 23:12:43 +000010452{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010453$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10454ac_tool_warned=yes ;;
10455esac
10456 STRIP=$ac_ct_STRIP
10457 fi
10458else
10459 STRIP="$ac_cv_prog_STRIP"
10460fi
10461
10462test -z "$STRIP" && STRIP=:
10463
10464
10465
10466
10467
10468
10469if test -n "$ac_tool_prefix"; then
10470 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10471set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010473$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010474if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010475 $as_echo_n "(cached) " >&6
10476else
10477 if test -n "$RANLIB"; then
10478 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10479else
10480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481for as_dir in $PATH
10482do
10483 IFS=$as_save_IFS
10484 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010485 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10487 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +000010488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010489 break 2
10490 fi
10491done
cristy8b350f62009-11-15 23:12:43 +000010492 done
cristy3ed852e2009-09-05 21:47:34 +000010493IFS=$as_save_IFS
10494
10495fi
10496fi
10497RANLIB=$ac_cv_prog_RANLIB
10498if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010500$as_echo "$RANLIB" >&6; }
10501else
cristy8b350f62009-11-15 23:12:43 +000010502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010503$as_echo "no" >&6; }
10504fi
10505
10506
10507fi
10508if test -z "$ac_cv_prog_RANLIB"; then
10509 ac_ct_RANLIB=$RANLIB
10510 # Extract the first word of "ranlib", so it can be a program name with args.
10511set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010513$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010514if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010515 $as_echo_n "(cached) " >&6
10516else
10517 if test -n "$ac_ct_RANLIB"; then
10518 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10519else
10520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10521for as_dir in $PATH
10522do
10523 IFS=$as_save_IFS
10524 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010525 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10527 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +000010528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010529 break 2
10530 fi
10531done
cristy8b350f62009-11-15 23:12:43 +000010532 done
cristy3ed852e2009-09-05 21:47:34 +000010533IFS=$as_save_IFS
10534
10535fi
10536fi
10537ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10538if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010540$as_echo "$ac_ct_RANLIB" >&6; }
10541else
cristy8b350f62009-11-15 23:12:43 +000010542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010543$as_echo "no" >&6; }
10544fi
10545
10546 if test "x$ac_ct_RANLIB" = x; then
10547 RANLIB=":"
10548 else
10549 case $cross_compiling:$ac_tool_warned in
10550yes:)
cristy8b350f62009-11-15 23:12:43 +000010551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10553ac_tool_warned=yes ;;
10554esac
10555 RANLIB=$ac_ct_RANLIB
10556 fi
10557else
10558 RANLIB="$ac_cv_prog_RANLIB"
10559fi
10560
10561test -z "$RANLIB" && RANLIB=:
10562
10563
10564
10565
10566
10567
10568# Determine commands to create old-style static archives.
10569old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10570old_postinstall_cmds='chmod 644 $oldlib'
10571old_postuninstall_cmds=
10572
10573if test -n "$RANLIB"; then
10574 case $host_os in
10575 openbsd*)
10576 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10577 ;;
10578 *)
10579 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10580 ;;
10581 esac
10582 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10583fi
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618# If no C compiler was specified, use CC.
10619LTCC=${LTCC-"$CC"}
10620
10621# If no C compiler flags were specified, use CFLAGS.
10622LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10623
10624# Allow CC to be a program name with arguments.
10625compiler=$CC
10626
10627
10628# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +000010629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +000010630$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010631if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010632 $as_echo_n "(cached) " >&6
10633else
10634
10635# These are sane defaults that work on at least a few old systems.
10636# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10637
10638# Character class describing NM global symbol codes.
10639symcode='[BCDEGRST]'
10640
10641# Regexp to match symbols that can be accessed directly from C.
10642sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10643
10644# Define system-specific variables.
10645case $host_os in
10646aix*)
10647 symcode='[BCDT]'
10648 ;;
10649cygwin* | mingw* | pw32* | cegcc*)
10650 symcode='[ABCDGISTW]'
10651 ;;
10652hpux*)
10653 if test "$host_cpu" = ia64; then
10654 symcode='[ABCDEGRST]'
10655 fi
10656 ;;
10657irix* | nonstopux*)
10658 symcode='[BCDEGRST]'
10659 ;;
10660osf*)
10661 symcode='[BCDEGQRST]'
10662 ;;
10663solaris*)
10664 symcode='[BDRT]'
10665 ;;
10666sco3.2v5*)
10667 symcode='[DT]'
10668 ;;
10669sysv4.2uw2*)
10670 symcode='[DT]'
10671 ;;
10672sysv5* | sco5v6* | unixware* | OpenUNIX*)
10673 symcode='[ABDT]'
10674 ;;
10675sysv4)
10676 symcode='[DFNSTU]'
10677 ;;
10678esac
10679
10680# If we're using GNU nm, then use its standard symbol codes.
10681case `$NM -V 2>&1` in
10682*GNU* | *'with BFD'*)
10683 symcode='[ABCDGIRSTW]' ;;
10684esac
10685
10686# Transform an extracted symbol line into a proper C declaration.
10687# Some systems (esp. on ia64) link data and code symbols differently,
10688# so use this general approach.
10689lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10690
10691# Transform an extracted symbol line into symbol name and symbol address
10692lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10693lt_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'"
10694
10695# Handle CRLF in mingw tool chain
10696opt_cr=
10697case $build_os in
10698mingw*)
10699 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10700 ;;
10701esac
10702
10703# Try without a prefix underscore, then with it.
10704for ac_symprfx in "" "_"; do
10705
10706 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10707 symxfrm="\\1 $ac_symprfx\\2 \\2"
10708
10709 # Write the raw and C identifiers.
10710 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10711 # Fake it for dumpbin and say T for any non-static function
10712 # and D for any global variable.
10713 # Also find C++ and __fastcall symbols from MSVC++,
10714 # which start with @ or ?.
10715 lt_cv_sys_global_symbol_pipe="$AWK '"\
10716" {last_section=section; section=\$ 3};"\
10717" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10718" \$ 0!~/External *\|/{next};"\
10719" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10720" {if(hide[section]) next};"\
10721" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10722" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10723" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10724" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10725" ' prfx=^$ac_symprfx"
10726 else
10727 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10728 fi
10729
10730 # Check to see that the pipe works correctly.
10731 pipe_works=no
10732
10733 rm -f conftest*
10734 cat > conftest.$ac_ext <<_LT_EOF
10735#ifdef __cplusplus
10736extern "C" {
10737#endif
10738char nm_test_var;
10739void nm_test_func(void);
10740void nm_test_func(void){}
10741#ifdef __cplusplus
10742}
10743#endif
10744int main(){nm_test_var='a';nm_test_func();return(0);}
10745_LT_EOF
10746
cristy8b350f62009-11-15 23:12:43 +000010747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010748 (eval $ac_compile) 2>&5
10749 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10751 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010752 # Now try to grab the symbols.
10753 nlist=conftest.nm
cristyb7c7b8e2010-06-22 14:22:40 +000010754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10755 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +000010756 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10758 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000010759 # Try sorting and uniquifying the output.
10760 if sort "$nlist" | uniq > "$nlist"T; then
10761 mv -f "$nlist"T "$nlist"
10762 else
10763 rm -f "$nlist"T
10764 fi
10765
10766 # Make sure that we snagged all the symbols we need.
10767 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10768 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10769 cat <<_LT_EOF > conftest.$ac_ext
10770#ifdef __cplusplus
10771extern "C" {
10772#endif
10773
10774_LT_EOF
10775 # Now generate the symbol file.
10776 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10777
10778 cat <<_LT_EOF >> conftest.$ac_ext
10779
10780/* The mapping between symbol names and symbols. */
10781const struct {
10782 const char *name;
10783 void *address;
10784}
10785lt__PROGRAM__LTX_preloaded_symbols[] =
10786{
10787 { "@PROGRAM@", (void *) 0 },
10788_LT_EOF
10789 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10790 cat <<\_LT_EOF >> conftest.$ac_ext
10791 {0, (void *) 0}
10792};
10793
10794/* This works around a problem in FreeBSD linker */
10795#ifdef FREEBSD_WORKAROUND
10796static const void *lt_preloaded_setup() {
10797 return lt__PROGRAM__LTX_preloaded_symbols;
10798}
10799#endif
10800
10801#ifdef __cplusplus
10802}
10803#endif
10804_LT_EOF
10805 # Now try linking the two files.
10806 mv conftest.$ac_objext conftstm.$ac_objext
10807 lt_save_LIBS="$LIBS"
10808 lt_save_CFLAGS="$CFLAGS"
10809 LIBS="conftstm.$ac_objext"
10810 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +000010811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010812 (eval $ac_link) 2>&5
10813 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10815 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +000010816 pipe_works=yes
10817 fi
10818 LIBS="$lt_save_LIBS"
10819 CFLAGS="$lt_save_CFLAGS"
10820 else
10821 echo "cannot find nm_test_func in $nlist" >&5
10822 fi
10823 else
10824 echo "cannot find nm_test_var in $nlist" >&5
10825 fi
10826 else
10827 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10828 fi
10829 else
10830 echo "$progname: failed program was:" >&5
10831 cat conftest.$ac_ext >&5
10832 fi
10833 rm -rf conftest* conftst*
10834
10835 # Do not use the global_symbol_pipe unless it works.
10836 if test "$pipe_works" = yes; then
10837 break
10838 else
10839 lt_cv_sys_global_symbol_pipe=
10840 fi
10841done
10842
10843fi
10844
10845if test -z "$lt_cv_sys_global_symbol_pipe"; then
10846 lt_cv_sys_global_symbol_to_cdecl=
10847fi
10848if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +000010849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +000010850$as_echo "failed" >&6; }
10851else
cristy8b350f62009-11-15 23:12:43 +000010852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000010853$as_echo "ok" >&6; }
10854fi
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +000010878if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010879 enableval=$enable_libtool_lock;
10880fi
10881
10882test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10883
10884# Some flags need to be propagated to the compiler or linker for good
10885# libtool support.
10886case $host in
10887ia64-*-hpux*)
10888 # Find out which ABI we are using.
10889 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010891 (eval $ac_compile) 2>&5
10892 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10894 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010895 case `/usr/bin/file conftest.$ac_objext` in
10896 *ELF-32*)
10897 HPUX_IA64_MODE="32"
10898 ;;
10899 *ELF-64*)
10900 HPUX_IA64_MODE="64"
10901 ;;
10902 esac
10903 fi
10904 rm -rf conftest*
10905 ;;
10906*-*-irix6*)
10907 # Find out which ABI we are using.
cristyb7c7b8e2010-06-22 14:22:40 +000010908 echo '#line 10908 "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010910 (eval $ac_compile) 2>&5
10911 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10913 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010914 if test "$lt_cv_prog_gnu_ld" = yes; then
10915 case `/usr/bin/file conftest.$ac_objext` in
10916 *32-bit*)
10917 LD="${LD-ld} -melf32bsmip"
10918 ;;
10919 *N32*)
10920 LD="${LD-ld} -melf32bmipn32"
10921 ;;
10922 *64-bit*)
10923 LD="${LD-ld} -melf64bmip"
10924 ;;
10925 esac
10926 else
10927 case `/usr/bin/file conftest.$ac_objext` in
10928 *32-bit*)
10929 LD="${LD-ld} -32"
10930 ;;
10931 *N32*)
10932 LD="${LD-ld} -n32"
10933 ;;
10934 *64-bit*)
10935 LD="${LD-ld} -64"
10936 ;;
10937 esac
10938 fi
10939 fi
10940 rm -rf conftest*
10941 ;;
10942
10943x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10944s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10945 # Find out which ABI we are using.
10946 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010948 (eval $ac_compile) 2>&5
10949 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10951 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010952 case `/usr/bin/file conftest.o` in
10953 *32-bit*)
10954 case $host in
10955 x86_64-*kfreebsd*-gnu)
10956 LD="${LD-ld} -m elf_i386_fbsd"
10957 ;;
10958 x86_64-*linux*)
10959 LD="${LD-ld} -m elf_i386"
10960 ;;
10961 ppc64-*linux*|powerpc64-*linux*)
10962 LD="${LD-ld} -m elf32ppclinux"
10963 ;;
10964 s390x-*linux*)
10965 LD="${LD-ld} -m elf_s390"
10966 ;;
10967 sparc64-*linux*)
10968 LD="${LD-ld} -m elf32_sparc"
10969 ;;
10970 esac
10971 ;;
10972 *64-bit*)
10973 case $host in
10974 x86_64-*kfreebsd*-gnu)
10975 LD="${LD-ld} -m elf_x86_64_fbsd"
10976 ;;
10977 x86_64-*linux*)
10978 LD="${LD-ld} -m elf_x86_64"
10979 ;;
10980 ppc*-*linux*|powerpc*-*linux*)
10981 LD="${LD-ld} -m elf64ppc"
10982 ;;
10983 s390*-*linux*|s390*-*tpf*)
10984 LD="${LD-ld} -m elf64_s390"
10985 ;;
10986 sparc*-*linux*)
10987 LD="${LD-ld} -m elf64_sparc"
10988 ;;
10989 esac
10990 ;;
10991 esac
10992 fi
10993 rm -rf conftest*
10994 ;;
10995
10996*-*-sco3.2v5*)
10997 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10998 SAVE_CFLAGS="$CFLAGS"
10999 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +000011000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000011001$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011002if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011003 $as_echo_n "(cached) " >&6
11004else
11005 ac_ext=c
11006ac_cpp='$CPP $CPPFLAGS'
11007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11009ac_compiler_gnu=$ac_cv_c_compiler_gnu
11010
cristy8b350f62009-11-15 23:12:43 +000011011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011012/* end confdefs.h. */
11013
11014int
11015main ()
11016{
11017
11018 ;
11019 return 0;
11020}
11021_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011022if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011023 lt_cv_cc_needs_belf=yes
11024else
cristy8b350f62009-11-15 23:12:43 +000011025 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +000011026fi
cristy8b350f62009-11-15 23:12:43 +000011027rm -f core conftest.err conftest.$ac_objext \
11028 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011029 ac_ext=c
11030ac_cpp='$CPP $CPPFLAGS'
11031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11033ac_compiler_gnu=$ac_cv_c_compiler_gnu
11034
11035fi
cristy8b350f62009-11-15 23:12:43 +000011036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000011037$as_echo "$lt_cv_cc_needs_belf" >&6; }
11038 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11039 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11040 CFLAGS="$SAVE_CFLAGS"
11041 fi
11042 ;;
11043sparc*-*solaris*)
11044 # Find out which ABI we are using.
11045 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000011047 (eval $ac_compile) 2>&5
11048 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000011049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11050 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000011051 case `/usr/bin/file conftest.o` in
11052 *64-bit*)
11053 case $lt_cv_prog_gnu_ld in
11054 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11055 *)
11056 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11057 LD="${LD-ld} -64"
11058 fi
11059 ;;
11060 esac
11061 ;;
11062 esac
11063 fi
11064 rm -rf conftest*
11065 ;;
11066esac
11067
11068need_locks="$enable_libtool_lock"
11069
11070
11071 case $host_os in
11072 rhapsody* | darwin*)
11073 if test -n "$ac_tool_prefix"; then
11074 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11075set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011077$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011078if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011079 $as_echo_n "(cached) " >&6
11080else
11081 if test -n "$DSYMUTIL"; then
11082 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11083else
11084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11085for as_dir in $PATH
11086do
11087 IFS=$as_save_IFS
11088 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011089 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11091 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011093 break 2
11094 fi
11095done
cristy8b350f62009-11-15 23:12:43 +000011096 done
cristy3ed852e2009-09-05 21:47:34 +000011097IFS=$as_save_IFS
11098
11099fi
11100fi
11101DSYMUTIL=$ac_cv_prog_DSYMUTIL
11102if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011104$as_echo "$DSYMUTIL" >&6; }
11105else
cristy8b350f62009-11-15 23:12:43 +000011106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011107$as_echo "no" >&6; }
11108fi
11109
11110
11111fi
11112if test -z "$ac_cv_prog_DSYMUTIL"; then
11113 ac_ct_DSYMUTIL=$DSYMUTIL
11114 # Extract the first word of "dsymutil", so it can be a program name with args.
11115set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011117$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011118if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011119 $as_echo_n "(cached) " >&6
11120else
11121 if test -n "$ac_ct_DSYMUTIL"; then
11122 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11123else
11124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11125for as_dir in $PATH
11126do
11127 IFS=$as_save_IFS
11128 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011129 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11131 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011133 break 2
11134 fi
11135done
cristy8b350f62009-11-15 23:12:43 +000011136 done
cristy3ed852e2009-09-05 21:47:34 +000011137IFS=$as_save_IFS
11138
11139fi
11140fi
11141ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11142if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011144$as_echo "$ac_ct_DSYMUTIL" >&6; }
11145else
cristy8b350f62009-11-15 23:12:43 +000011146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011147$as_echo "no" >&6; }
11148fi
11149
11150 if test "x$ac_ct_DSYMUTIL" = x; then
11151 DSYMUTIL=":"
11152 else
11153 case $cross_compiling:$ac_tool_warned in
11154yes:)
cristy8b350f62009-11-15 23:12:43 +000011155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11157ac_tool_warned=yes ;;
11158esac
11159 DSYMUTIL=$ac_ct_DSYMUTIL
11160 fi
11161else
11162 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11163fi
11164
11165 if test -n "$ac_tool_prefix"; then
11166 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11167set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011169$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011170if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011171 $as_echo_n "(cached) " >&6
11172else
11173 if test -n "$NMEDIT"; then
11174 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11175else
11176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11177for as_dir in $PATH
11178do
11179 IFS=$as_save_IFS
11180 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011181 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11183 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +000011184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011185 break 2
11186 fi
11187done
cristy8b350f62009-11-15 23:12:43 +000011188 done
cristy3ed852e2009-09-05 21:47:34 +000011189IFS=$as_save_IFS
11190
11191fi
11192fi
11193NMEDIT=$ac_cv_prog_NMEDIT
11194if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011196$as_echo "$NMEDIT" >&6; }
11197else
cristy8b350f62009-11-15 23:12:43 +000011198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011199$as_echo "no" >&6; }
11200fi
11201
11202
11203fi
11204if test -z "$ac_cv_prog_NMEDIT"; then
11205 ac_ct_NMEDIT=$NMEDIT
11206 # Extract the first word of "nmedit", so it can be a program name with args.
11207set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011209$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011210if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011211 $as_echo_n "(cached) " >&6
11212else
11213 if test -n "$ac_ct_NMEDIT"; then
11214 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11215else
11216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217for as_dir in $PATH
11218do
11219 IFS=$as_save_IFS
11220 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011221 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11223 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +000011224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011225 break 2
11226 fi
11227done
cristy8b350f62009-11-15 23:12:43 +000011228 done
cristy3ed852e2009-09-05 21:47:34 +000011229IFS=$as_save_IFS
11230
11231fi
11232fi
11233ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11234if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011236$as_echo "$ac_ct_NMEDIT" >&6; }
11237else
cristy8b350f62009-11-15 23:12:43 +000011238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011239$as_echo "no" >&6; }
11240fi
11241
11242 if test "x$ac_ct_NMEDIT" = x; then
11243 NMEDIT=":"
11244 else
11245 case $cross_compiling:$ac_tool_warned in
11246yes:)
cristy8b350f62009-11-15 23:12:43 +000011247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11249ac_tool_warned=yes ;;
11250esac
11251 NMEDIT=$ac_ct_NMEDIT
11252 fi
11253else
11254 NMEDIT="$ac_cv_prog_NMEDIT"
11255fi
11256
11257 if test -n "$ac_tool_prefix"; then
11258 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11259set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011261$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011262if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011263 $as_echo_n "(cached) " >&6
11264else
11265 if test -n "$LIPO"; then
11266 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11267else
11268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11269for as_dir in $PATH
11270do
11271 IFS=$as_save_IFS
11272 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011273 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11275 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +000011276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011277 break 2
11278 fi
11279done
cristy8b350f62009-11-15 23:12:43 +000011280 done
cristy3ed852e2009-09-05 21:47:34 +000011281IFS=$as_save_IFS
11282
11283fi
11284fi
11285LIPO=$ac_cv_prog_LIPO
11286if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011288$as_echo "$LIPO" >&6; }
11289else
cristy8b350f62009-11-15 23:12:43 +000011290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011291$as_echo "no" >&6; }
11292fi
11293
11294
11295fi
11296if test -z "$ac_cv_prog_LIPO"; then
11297 ac_ct_LIPO=$LIPO
11298 # Extract the first word of "lipo", so it can be a program name with args.
11299set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011301$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011302if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011303 $as_echo_n "(cached) " >&6
11304else
11305 if test -n "$ac_ct_LIPO"; then
11306 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11307else
11308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11309for as_dir in $PATH
11310do
11311 IFS=$as_save_IFS
11312 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011313 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11315 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +000011316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011317 break 2
11318 fi
11319done
cristy8b350f62009-11-15 23:12:43 +000011320 done
cristy3ed852e2009-09-05 21:47:34 +000011321IFS=$as_save_IFS
11322
11323fi
11324fi
11325ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11326if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011328$as_echo "$ac_ct_LIPO" >&6; }
11329else
cristy8b350f62009-11-15 23:12:43 +000011330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011331$as_echo "no" >&6; }
11332fi
11333
11334 if test "x$ac_ct_LIPO" = x; then
11335 LIPO=":"
11336 else
11337 case $cross_compiling:$ac_tool_warned in
11338yes:)
cristy8b350f62009-11-15 23:12:43 +000011339{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011340$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11341ac_tool_warned=yes ;;
11342esac
11343 LIPO=$ac_ct_LIPO
11344 fi
11345else
11346 LIPO="$ac_cv_prog_LIPO"
11347fi
11348
11349 if test -n "$ac_tool_prefix"; then
11350 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11351set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011353$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011354if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011355 $as_echo_n "(cached) " >&6
11356else
11357 if test -n "$OTOOL"; then
11358 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11359else
11360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11361for as_dir in $PATH
11362do
11363 IFS=$as_save_IFS
11364 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011365 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11367 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +000011368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011369 break 2
11370 fi
11371done
cristy8b350f62009-11-15 23:12:43 +000011372 done
cristy3ed852e2009-09-05 21:47:34 +000011373IFS=$as_save_IFS
11374
11375fi
11376fi
11377OTOOL=$ac_cv_prog_OTOOL
11378if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011380$as_echo "$OTOOL" >&6; }
11381else
cristy8b350f62009-11-15 23:12:43 +000011382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011383$as_echo "no" >&6; }
11384fi
11385
11386
11387fi
11388if test -z "$ac_cv_prog_OTOOL"; then
11389 ac_ct_OTOOL=$OTOOL
11390 # Extract the first word of "otool", so it can be a program name with args.
11391set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011393$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011394if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011395 $as_echo_n "(cached) " >&6
11396else
11397 if test -n "$ac_ct_OTOOL"; then
11398 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11399else
11400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11401for as_dir in $PATH
11402do
11403 IFS=$as_save_IFS
11404 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011405 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11407 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +000011408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011409 break 2
11410 fi
11411done
cristy8b350f62009-11-15 23:12:43 +000011412 done
cristy3ed852e2009-09-05 21:47:34 +000011413IFS=$as_save_IFS
11414
11415fi
11416fi
11417ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11418if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011420$as_echo "$ac_ct_OTOOL" >&6; }
11421else
cristy8b350f62009-11-15 23:12:43 +000011422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011423$as_echo "no" >&6; }
11424fi
11425
11426 if test "x$ac_ct_OTOOL" = x; then
11427 OTOOL=":"
11428 else
11429 case $cross_compiling:$ac_tool_warned in
11430yes:)
cristy8b350f62009-11-15 23:12:43 +000011431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11433ac_tool_warned=yes ;;
11434esac
11435 OTOOL=$ac_ct_OTOOL
11436 fi
11437else
11438 OTOOL="$ac_cv_prog_OTOOL"
11439fi
11440
11441 if test -n "$ac_tool_prefix"; then
11442 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11443set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011445$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011446if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011447 $as_echo_n "(cached) " >&6
11448else
11449 if test -n "$OTOOL64"; then
11450 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11451else
11452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11453for as_dir in $PATH
11454do
11455 IFS=$as_save_IFS
11456 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011457 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11459 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000011460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011461 break 2
11462 fi
11463done
cristy8b350f62009-11-15 23:12:43 +000011464 done
cristy3ed852e2009-09-05 21:47:34 +000011465IFS=$as_save_IFS
11466
11467fi
11468fi
11469OTOOL64=$ac_cv_prog_OTOOL64
11470if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011472$as_echo "$OTOOL64" >&6; }
11473else
cristy8b350f62009-11-15 23:12:43 +000011474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011475$as_echo "no" >&6; }
11476fi
11477
11478
11479fi
11480if test -z "$ac_cv_prog_OTOOL64"; then
11481 ac_ct_OTOOL64=$OTOOL64
11482 # Extract the first word of "otool64", so it can be a program name with args.
11483set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011485$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011486if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011487 $as_echo_n "(cached) " >&6
11488else
11489 if test -n "$ac_ct_OTOOL64"; then
11490 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11491else
11492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11493for as_dir in $PATH
11494do
11495 IFS=$as_save_IFS
11496 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011497 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11499 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000011500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011501 break 2
11502 fi
11503done
cristy8b350f62009-11-15 23:12:43 +000011504 done
cristy3ed852e2009-09-05 21:47:34 +000011505IFS=$as_save_IFS
11506
11507fi
11508fi
11509ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11510if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011512$as_echo "$ac_ct_OTOOL64" >&6; }
11513else
cristy8b350f62009-11-15 23:12:43 +000011514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011515$as_echo "no" >&6; }
11516fi
11517
11518 if test "x$ac_ct_OTOOL64" = x; then
11519 OTOOL64=":"
11520 else
11521 case $cross_compiling:$ac_tool_warned in
11522yes:)
cristy8b350f62009-11-15 23:12:43 +000011523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11525ac_tool_warned=yes ;;
11526esac
11527 OTOOL64=$ac_ct_OTOOL64
11528 fi
11529else
11530 OTOOL64="$ac_cv_prog_OTOOL64"
11531fi
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
cristy8b350f62009-11-15 23:12:43 +000011559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011560$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011561if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011562 $as_echo_n "(cached) " >&6
11563else
11564 lt_cv_apple_cc_single_mod=no
11565 if test -z "${LT_MULTI_MODULE}"; then
11566 # By default we will add the -single_module flag. You can override
11567 # by either setting the environment variable LT_MULTI_MODULE
11568 # non-empty at configure time, or by adding -multi_module to the
11569 # link flags.
11570 rm -rf libconftest.dylib*
11571 echo "int foo(void){return 1;}" > conftest.c
11572 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11573-dynamiclib -Wl,-single_module conftest.c" >&5
11574 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11575 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11576 _lt_result=$?
11577 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11578 lt_cv_apple_cc_single_mod=yes
11579 else
11580 cat conftest.err >&5
11581 fi
11582 rm -rf libconftest.dylib*
11583 rm -f conftest.*
11584 fi
11585fi
cristy8b350f62009-11-15 23:12:43 +000011586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000011587$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011589$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011590if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011591 $as_echo_n "(cached) " >&6
11592else
11593 lt_cv_ld_exported_symbols_list=no
11594 save_LDFLAGS=$LDFLAGS
11595 echo "_main" > conftest.sym
11596 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000011597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011598/* end confdefs.h. */
11599
11600int
11601main ()
11602{
11603
11604 ;
11605 return 0;
11606}
11607_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011608if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011609 lt_cv_ld_exported_symbols_list=yes
11610else
cristy8b350f62009-11-15 23:12:43 +000011611 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000011612fi
cristy8b350f62009-11-15 23:12:43 +000011613rm -f core conftest.err conftest.$ac_objext \
11614 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011615 LDFLAGS="$save_LDFLAGS"
11616
11617fi
cristy8b350f62009-11-15 23:12:43 +000011618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000011619$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11620 case $host_os in
11621 rhapsody* | darwin1.[012])
11622 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11623 darwin1.*)
11624 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11625 darwin*) # darwin 5.x on
11626 # if running on 10.5 or later, the deployment target defaults
11627 # to the OS version, if on x86, and 10.4, the deployment
11628 # target defaults to 10.4. Don't you love it?
11629 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11630 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11631 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11632 10.[012]*)
11633 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11634 10.*)
11635 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11636 esac
11637 ;;
11638 esac
11639 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11640 _lt_dar_single_mod='$single_module'
11641 fi
11642 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11643 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11644 else
11645 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11646 fi
cristyb7c7b8e2010-06-22 14:22:40 +000011647 if test "$DSYMUTIL" != ":"; then
cristy3ed852e2009-09-05 21:47:34 +000011648 _lt_dsymutil='~$DSYMUTIL $lib || :'
11649 else
11650 _lt_dsymutil=
11651 fi
11652 ;;
11653 esac
11654
cristy3ed852e2009-09-05 21:47:34 +000011655for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000011656do :
11657 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11658"
11659if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011660 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011661#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000011662_ACEOF
11663
11664fi
11665
11666done
11667
11668
11669
cristyb7c7b8e2010-06-22 14:22:40 +000011670ac_ext=cpp
11671ac_cpp='$CXXCPP $CPPFLAGS'
11672ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11673ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11674ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11675if test -z "$CXX"; then
11676 if test -n "$CCC"; then
11677 CXX=$CCC
11678 else
11679 if test -n "$ac_tool_prefix"; then
11680 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11681 do
11682 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11683set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11685$as_echo_n "checking for $ac_word... " >&6; }
11686if test "${ac_cv_prog_CXX+set}" = set; then :
11687 $as_echo_n "(cached) " >&6
11688else
11689 if test -n "$CXX"; then
11690 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11691else
11692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693for as_dir in $PATH
11694do
11695 IFS=$as_save_IFS
11696 test -z "$as_dir" && as_dir=.
11697 for ac_exec_ext in '' $ac_executable_extensions; do
11698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11699 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11701 break 2
11702 fi
11703done
11704 done
11705IFS=$as_save_IFS
11706
11707fi
11708fi
11709CXX=$ac_cv_prog_CXX
11710if test -n "$CXX"; then
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11712$as_echo "$CXX" >&6; }
11713else
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715$as_echo "no" >&6; }
11716fi
11717
11718
11719 test -n "$CXX" && break
11720 done
11721fi
11722if test -z "$CXX"; then
11723 ac_ct_CXX=$CXX
11724 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11725do
11726 # Extract the first word of "$ac_prog", so it can be a program name with args.
11727set dummy $ac_prog; ac_word=$2
11728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11729$as_echo_n "checking for $ac_word... " >&6; }
11730if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11731 $as_echo_n "(cached) " >&6
11732else
11733 if test -n "$ac_ct_CXX"; then
11734 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11735else
11736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11737for as_dir in $PATH
11738do
11739 IFS=$as_save_IFS
11740 test -z "$as_dir" && as_dir=.
11741 for ac_exec_ext in '' $ac_executable_extensions; do
11742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11743 ac_cv_prog_ac_ct_CXX="$ac_prog"
11744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11745 break 2
11746 fi
11747done
11748 done
11749IFS=$as_save_IFS
11750
11751fi
11752fi
11753ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11754if test -n "$ac_ct_CXX"; then
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11756$as_echo "$ac_ct_CXX" >&6; }
11757else
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759$as_echo "no" >&6; }
11760fi
11761
11762
11763 test -n "$ac_ct_CXX" && break
11764done
11765
11766 if test "x$ac_ct_CXX" = x; then
11767 CXX="g++"
11768 else
11769 case $cross_compiling:$ac_tool_warned in
11770yes:)
11771{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11772$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11773ac_tool_warned=yes ;;
11774esac
11775 CXX=$ac_ct_CXX
11776 fi
11777fi
11778
11779 fi
11780fi
11781# Provide some information about the compiler.
11782$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11783set X $ac_compile
11784ac_compiler=$2
11785for ac_option in --version -v -V -qversion; do
11786 { { ac_try="$ac_compiler $ac_option >&5"
11787case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11790esac
11791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11792$as_echo "$ac_try_echo"; } >&5
11793 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11794 ac_status=$?
11795 if test -s conftest.err; then
11796 sed '10a\
11797... rest of stderr output deleted ...
11798 10q' conftest.err >conftest.er1
11799 cat conftest.er1 >&5
11800 fi
11801 rm -f conftest.er1 conftest.err
11802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11803 test $ac_status = 0; }
11804done
11805
11806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11807$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11808if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11809 $as_echo_n "(cached) " >&6
11810else
11811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11812/* end confdefs.h. */
11813
11814int
11815main ()
11816{
11817#ifndef __GNUC__
11818 choke me
11819#endif
11820
11821 ;
11822 return 0;
11823}
11824_ACEOF
11825if ac_fn_cxx_try_compile "$LINENO"; then :
11826 ac_compiler_gnu=yes
11827else
11828 ac_compiler_gnu=no
11829fi
11830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11831ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11832
11833fi
11834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11835$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11836if test $ac_compiler_gnu = yes; then
11837 GXX=yes
11838else
11839 GXX=
11840fi
11841ac_test_CXXFLAGS=${CXXFLAGS+set}
11842ac_save_CXXFLAGS=$CXXFLAGS
11843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11844$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11845if test "${ac_cv_prog_cxx_g+set}" = set; then :
11846 $as_echo_n "(cached) " >&6
11847else
11848 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11849 ac_cxx_werror_flag=yes
11850 ac_cv_prog_cxx_g=no
11851 CXXFLAGS="-g"
11852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853/* end confdefs.h. */
11854
11855int
11856main ()
11857{
11858
11859 ;
11860 return 0;
11861}
11862_ACEOF
11863if ac_fn_cxx_try_compile "$LINENO"; then :
11864 ac_cv_prog_cxx_g=yes
11865else
11866 CXXFLAGS=""
11867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868/* end confdefs.h. */
11869
11870int
11871main ()
11872{
11873
11874 ;
11875 return 0;
11876}
11877_ACEOF
11878if ac_fn_cxx_try_compile "$LINENO"; then :
11879
11880else
11881 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11882 CXXFLAGS="-g"
11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884/* end confdefs.h. */
11885
11886int
11887main ()
11888{
11889
11890 ;
11891 return 0;
11892}
11893_ACEOF
11894if ac_fn_cxx_try_compile "$LINENO"; then :
11895 ac_cv_prog_cxx_g=yes
11896fi
11897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898fi
11899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11900fi
11901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11902 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11903fi
11904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11905$as_echo "$ac_cv_prog_cxx_g" >&6; }
11906if test "$ac_test_CXXFLAGS" = set; then
11907 CXXFLAGS=$ac_save_CXXFLAGS
11908elif test $ac_cv_prog_cxx_g = yes; then
11909 if test "$GXX" = yes; then
11910 CXXFLAGS="-g -O2"
11911 else
11912 CXXFLAGS="-g"
11913 fi
11914else
11915 if test "$GXX" = yes; then
11916 CXXFLAGS="-O2"
11917 else
11918 CXXFLAGS=
11919 fi
11920fi
11921ac_ext=c
11922ac_cpp='$CPP $CPPFLAGS'
11923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11925ac_compiler_gnu=$ac_cv_c_compiler_gnu
11926
11927depcc="$CXX" am_compiler_list=
11928
11929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11930$as_echo_n "checking dependency style of $depcc... " >&6; }
11931if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11932 $as_echo_n "(cached) " >&6
11933else
11934 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11935 # We make a subdir and do the tests there. Otherwise we can end up
11936 # making bogus files that we don't know about and never remove. For
11937 # instance it was reported that on HP-UX the gcc test will end up
11938 # making a dummy file named `D' -- because `-MD' means `put the output
11939 # in D'.
11940 mkdir conftest.dir
11941 # Copy depcomp to subdir because otherwise we won't find it if we're
11942 # using a relative directory.
11943 cp "$am_depcomp" conftest.dir
11944 cd conftest.dir
11945 # We will build objects and dependencies in a subdirectory because
11946 # it helps to detect inapplicable dependency modes. For instance
11947 # both Tru64's cc and ICC support -MD to output dependencies as a
11948 # side effect of compilation, but ICC will put the dependencies in
11949 # the current directory while Tru64 will put them in the object
11950 # directory.
11951 mkdir sub
11952
11953 am_cv_CXX_dependencies_compiler_type=none
11954 if test "$am_compiler_list" = ""; then
11955 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11956 fi
11957 am__universal=false
11958 case " $depcc " in #(
11959 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11960 esac
11961
11962 for depmode in $am_compiler_list; do
11963 # Setup a source with many dependencies, because some compilers
11964 # like to wrap large dependency lists on column 80 (with \), and
11965 # we should not choose a depcomp mode which is confused by this.
11966 #
11967 # We need to recreate these files for each test, as the compiler may
11968 # overwrite some of them when testing with obscure command lines.
11969 # This happens at least with the AIX C compiler.
11970 : > sub/conftest.c
11971 for i in 1 2 3 4 5 6; do
11972 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11973 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11974 # Solaris 8's {/usr,}/bin/sh.
11975 touch sub/conftst$i.h
11976 done
11977 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11978
11979 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11980 # mode. It turns out that the SunPro C++ compiler does not properly
11981 # handle `-M -o', and we need to detect this. Also, some Intel
11982 # versions had trouble with output in subdirs
11983 am__obj=sub/conftest.${OBJEXT-o}
11984 am__minus_obj="-o $am__obj"
11985 case $depmode in
11986 gcc)
11987 # This depmode causes a compiler race in universal mode.
11988 test "$am__universal" = false || continue
11989 ;;
11990 nosideeffect)
11991 # after this tag, mechanisms are not by side-effect, so they'll
11992 # only be used when explicitly requested
11993 if test "x$enable_dependency_tracking" = xyes; then
11994 continue
11995 else
11996 break
11997 fi
11998 ;;
11999 msvisualcpp | msvcmsys)
12000 # This compiler won't grok `-c -o', but also, the minuso test has
12001 # not run yet. These depmodes are late enough in the game, and
12002 # so weak that their functioning should not be impacted.
12003 am__obj=conftest.${OBJEXT-o}
12004 am__minus_obj=
12005 ;;
12006 none) break ;;
12007 esac
12008 if depmode=$depmode \
12009 source=sub/conftest.c object=$am__obj \
12010 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12011 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12012 >/dev/null 2>conftest.err &&
12013 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12014 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12015 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12016 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12017 # icc doesn't choke on unknown options, it will just issue warnings
12018 # or remarks (even with -Werror). So we grep stderr for any message
12019 # that says an option was ignored or not supported.
12020 # When given -MP, icc 7.0 and 7.1 complain thusly:
12021 # icc: Command line warning: ignoring option '-M'; no argument required
12022 # The diagnosis changed in icc 8.0:
12023 # icc: Command line remark: option '-MP' not supported
12024 if (grep 'ignoring option' conftest.err ||
12025 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12026 am_cv_CXX_dependencies_compiler_type=$depmode
12027 break
12028 fi
12029 fi
12030 done
12031
12032 cd ..
12033 rm -rf conftest.dir
12034else
12035 am_cv_CXX_dependencies_compiler_type=none
12036fi
12037
12038fi
12039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12040$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12041CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12042
12043 if
12044 test "x$enable_dependency_tracking" != xno \
12045 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12046 am__fastdepCXX_TRUE=
12047 am__fastdepCXX_FALSE='#'
12048else
12049 am__fastdepCXX_TRUE='#'
12050 am__fastdepCXX_FALSE=
12051fi
12052
12053
12054if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12055 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12056 (test "X$CXX" != "Xg++"))) ; then
12057 ac_ext=cpp
12058ac_cpp='$CXXCPP $CPPFLAGS'
12059ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12060ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12061ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12063$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12064if test -z "$CXXCPP"; then
12065 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12066 $as_echo_n "(cached) " >&6
12067else
12068 # Double quotes because CXXCPP needs to be expanded
12069 for CXXCPP in "$CXX -E" "/lib/cpp"
12070 do
12071 ac_preproc_ok=false
12072for ac_cxx_preproc_warn_flag in '' yes
12073do
12074 # Use a header file that comes with gcc, so configuring glibc
12075 # with a fresh cross-compiler works.
12076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12077 # <limits.h> exists even on freestanding compilers.
12078 # On the NeXT, cc -E runs the code through the compiler's parser,
12079 # not just through cpp. "Syntax error" is here to catch this case.
12080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081/* end confdefs.h. */
12082#ifdef __STDC__
12083# include <limits.h>
12084#else
12085# include <assert.h>
12086#endif
12087 Syntax error
12088_ACEOF
12089if ac_fn_cxx_try_cpp "$LINENO"; then :
12090
12091else
12092 # Broken: fails on valid input.
12093continue
12094fi
12095rm -f conftest.err conftest.$ac_ext
12096
12097 # OK, works on sane cases. Now check whether nonexistent headers
12098 # can be detected and how.
12099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12100/* end confdefs.h. */
12101#include <ac_nonexistent.h>
12102_ACEOF
12103if ac_fn_cxx_try_cpp "$LINENO"; then :
12104 # Broken: success on invalid input.
12105continue
12106else
12107 # Passes both tests.
12108ac_preproc_ok=:
12109break
12110fi
12111rm -f conftest.err conftest.$ac_ext
12112
12113done
12114# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12115rm -f conftest.err conftest.$ac_ext
12116if $ac_preproc_ok; then :
12117 break
12118fi
12119
12120 done
12121 ac_cv_prog_CXXCPP=$CXXCPP
12122
12123fi
12124 CXXCPP=$ac_cv_prog_CXXCPP
12125else
12126 ac_cv_prog_CXXCPP=$CXXCPP
12127fi
12128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12129$as_echo "$CXXCPP" >&6; }
12130ac_preproc_ok=false
12131for ac_cxx_preproc_warn_flag in '' yes
12132do
12133 # Use a header file that comes with gcc, so configuring glibc
12134 # with a fresh cross-compiler works.
12135 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12136 # <limits.h> exists even on freestanding compilers.
12137 # On the NeXT, cc -E runs the code through the compiler's parser,
12138 # not just through cpp. "Syntax error" is here to catch this case.
12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140/* end confdefs.h. */
12141#ifdef __STDC__
12142# include <limits.h>
12143#else
12144# include <assert.h>
12145#endif
12146 Syntax error
12147_ACEOF
12148if ac_fn_cxx_try_cpp "$LINENO"; then :
12149
12150else
12151 # Broken: fails on valid input.
12152continue
12153fi
12154rm -f conftest.err conftest.$ac_ext
12155
12156 # OK, works on sane cases. Now check whether nonexistent headers
12157 # can be detected and how.
12158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12159/* end confdefs.h. */
12160#include <ac_nonexistent.h>
12161_ACEOF
12162if ac_fn_cxx_try_cpp "$LINENO"; then :
12163 # Broken: success on invalid input.
12164continue
12165else
12166 # Passes both tests.
12167ac_preproc_ok=:
12168break
12169fi
12170rm -f conftest.err conftest.$ac_ext
12171
12172done
12173# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12174rm -f conftest.err conftest.$ac_ext
12175if $ac_preproc_ok; then :
12176
12177else
12178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12179$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12180_lt_caught_CXX_error=yes; }
12181fi
12182
12183ac_ext=c
12184ac_cpp='$CPP $CPPFLAGS'
12185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12187ac_compiler_gnu=$ac_cv_c_compiler_gnu
12188
12189else
12190 _lt_caught_CXX_error=yes
12191fi
12192
12193
cristy3ed852e2009-09-05 21:47:34 +000012194
12195
12196
12197# Set options
12198enable_win32_dll=yes
12199
12200case $host in
cristy18304f92009-11-22 15:48:26 +000012201*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000012202 if test -n "$ac_tool_prefix"; then
12203 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12204set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012206$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012207if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012208 $as_echo_n "(cached) " >&6
12209else
12210 if test -n "$AS"; then
12211 ac_cv_prog_AS="$AS" # Let the user override the test.
12212else
12213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12214for as_dir in $PATH
12215do
12216 IFS=$as_save_IFS
12217 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012218 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12220 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000012221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012222 break 2
12223 fi
12224done
cristy8b350f62009-11-15 23:12:43 +000012225 done
cristy3ed852e2009-09-05 21:47:34 +000012226IFS=$as_save_IFS
12227
12228fi
12229fi
12230AS=$ac_cv_prog_AS
12231if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000012232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000012233$as_echo "$AS" >&6; }
12234else
cristy8b350f62009-11-15 23:12:43 +000012235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012236$as_echo "no" >&6; }
12237fi
12238
12239
12240fi
12241if test -z "$ac_cv_prog_AS"; then
12242 ac_ct_AS=$AS
12243 # Extract the first word of "as", so it can be a program name with args.
12244set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012246$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012247if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012248 $as_echo_n "(cached) " >&6
12249else
12250 if test -n "$ac_ct_AS"; then
12251 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12252else
12253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12254for as_dir in $PATH
12255do
12256 IFS=$as_save_IFS
12257 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012258 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12260 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000012261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012262 break 2
12263 fi
12264done
cristy8b350f62009-11-15 23:12:43 +000012265 done
cristy3ed852e2009-09-05 21:47:34 +000012266IFS=$as_save_IFS
12267
12268fi
12269fi
12270ac_ct_AS=$ac_cv_prog_ac_ct_AS
12271if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000012272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000012273$as_echo "$ac_ct_AS" >&6; }
12274else
cristy8b350f62009-11-15 23:12:43 +000012275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012276$as_echo "no" >&6; }
12277fi
12278
12279 if test "x$ac_ct_AS" = x; then
12280 AS="false"
12281 else
12282 case $cross_compiling:$ac_tool_warned in
12283yes:)
cristy8b350f62009-11-15 23:12:43 +000012284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12286ac_tool_warned=yes ;;
12287esac
12288 AS=$ac_ct_AS
12289 fi
12290else
12291 AS="$ac_cv_prog_AS"
12292fi
12293
12294 if test -n "$ac_tool_prefix"; then
12295 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12296set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012298$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012299if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012300 $as_echo_n "(cached) " >&6
12301else
12302 if test -n "$DLLTOOL"; then
12303 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12304else
12305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306for as_dir in $PATH
12307do
12308 IFS=$as_save_IFS
12309 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012310 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12312 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000012313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012314 break 2
12315 fi
12316done
cristy8b350f62009-11-15 23:12:43 +000012317 done
cristy3ed852e2009-09-05 21:47:34 +000012318IFS=$as_save_IFS
12319
12320fi
12321fi
12322DLLTOOL=$ac_cv_prog_DLLTOOL
12323if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000012324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000012325$as_echo "$DLLTOOL" >&6; }
12326else
cristy8b350f62009-11-15 23:12:43 +000012327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012328$as_echo "no" >&6; }
12329fi
12330
12331
12332fi
12333if test -z "$ac_cv_prog_DLLTOOL"; then
12334 ac_ct_DLLTOOL=$DLLTOOL
12335 # Extract the first word of "dlltool", so it can be a program name with args.
12336set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012338$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012339if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012340 $as_echo_n "(cached) " >&6
12341else
12342 if test -n "$ac_ct_DLLTOOL"; then
12343 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12344else
12345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12346for as_dir in $PATH
12347do
12348 IFS=$as_save_IFS
12349 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012350 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12352 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000012353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012354 break 2
12355 fi
12356done
cristy8b350f62009-11-15 23:12:43 +000012357 done
cristy3ed852e2009-09-05 21:47:34 +000012358IFS=$as_save_IFS
12359
12360fi
12361fi
12362ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12363if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000012364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000012365$as_echo "$ac_ct_DLLTOOL" >&6; }
12366else
cristy8b350f62009-11-15 23:12:43 +000012367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012368$as_echo "no" >&6; }
12369fi
12370
12371 if test "x$ac_ct_DLLTOOL" = x; then
12372 DLLTOOL="false"
12373 else
12374 case $cross_compiling:$ac_tool_warned in
12375yes:)
cristy8b350f62009-11-15 23:12:43 +000012376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12378ac_tool_warned=yes ;;
12379esac
12380 DLLTOOL=$ac_ct_DLLTOOL
12381 fi
12382else
12383 DLLTOOL="$ac_cv_prog_DLLTOOL"
12384fi
12385
12386 if test -n "$ac_tool_prefix"; then
12387 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12388set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012390$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012391if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012392 $as_echo_n "(cached) " >&6
12393else
12394 if test -n "$OBJDUMP"; then
12395 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12396else
12397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12398for as_dir in $PATH
12399do
12400 IFS=$as_save_IFS
12401 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012402 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12404 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000012405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012406 break 2
12407 fi
12408done
cristy8b350f62009-11-15 23:12:43 +000012409 done
cristy3ed852e2009-09-05 21:47:34 +000012410IFS=$as_save_IFS
12411
12412fi
12413fi
12414OBJDUMP=$ac_cv_prog_OBJDUMP
12415if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000012416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000012417$as_echo "$OBJDUMP" >&6; }
12418else
cristy8b350f62009-11-15 23:12:43 +000012419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012420$as_echo "no" >&6; }
12421fi
12422
12423
12424fi
12425if test -z "$ac_cv_prog_OBJDUMP"; then
12426 ac_ct_OBJDUMP=$OBJDUMP
12427 # Extract the first word of "objdump", so it can be a program name with args.
12428set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012430$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012431if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012432 $as_echo_n "(cached) " >&6
12433else
12434 if test -n "$ac_ct_OBJDUMP"; then
12435 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12436else
12437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12438for as_dir in $PATH
12439do
12440 IFS=$as_save_IFS
12441 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012442 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12444 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000012445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012446 break 2
12447 fi
12448done
cristy8b350f62009-11-15 23:12:43 +000012449 done
cristy3ed852e2009-09-05 21:47:34 +000012450IFS=$as_save_IFS
12451
12452fi
12453fi
12454ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12455if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000012456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000012457$as_echo "$ac_ct_OBJDUMP" >&6; }
12458else
cristy8b350f62009-11-15 23:12:43 +000012459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012460$as_echo "no" >&6; }
12461fi
12462
12463 if test "x$ac_ct_OBJDUMP" = x; then
12464 OBJDUMP="false"
12465 else
12466 case $cross_compiling:$ac_tool_warned in
12467yes:)
cristy8b350f62009-11-15 23:12:43 +000012468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12470ac_tool_warned=yes ;;
12471esac
12472 OBJDUMP=$ac_ct_OBJDUMP
12473 fi
12474else
12475 OBJDUMP="$ac_cv_prog_OBJDUMP"
12476fi
12477
12478 ;;
12479esac
12480
12481test -z "$AS" && AS=as
12482
12483
12484
12485
12486
12487test -z "$DLLTOOL" && DLLTOOL=dlltool
12488
12489
12490
12491
12492
12493test -z "$OBJDUMP" && OBJDUMP=objdump
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000012504if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012505 enableval=$enable_shared; p=${PACKAGE-default}
12506 case $enableval in
12507 yes) enable_shared=yes ;;
12508 no) enable_shared=no ;;
12509 *)
12510 enable_shared=no
12511 # Look at the argument we got. We use all the common list separators.
12512 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12513 for pkg in $enableval; do
12514 IFS="$lt_save_ifs"
12515 if test "X$pkg" = "X$p"; then
12516 enable_shared=yes
12517 fi
12518 done
12519 IFS="$lt_save_ifs"
12520 ;;
12521 esac
12522else
12523 enable_shared=yes
12524fi
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000012535if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012536 enableval=$enable_static; p=${PACKAGE-default}
12537 case $enableval in
12538 yes) enable_static=yes ;;
12539 no) enable_static=no ;;
12540 *)
12541 enable_static=no
12542 # Look at the argument we got. We use all the common list separators.
12543 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12544 for pkg in $enableval; do
12545 IFS="$lt_save_ifs"
12546 if test "X$pkg" = "X$p"; then
12547 enable_static=yes
12548 fi
12549 done
12550 IFS="$lt_save_ifs"
12551 ;;
12552 esac
12553else
12554 enable_static=yes
12555fi
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000012567if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012568 withval=$with_pic; pic_mode="$withval"
12569else
12570 pic_mode=default
12571fi
12572
12573
12574test -z "$pic_mode" && pic_mode=default
12575
12576
12577
12578
12579
12580
12581
12582 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000012583if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012584 enableval=$enable_fast_install; p=${PACKAGE-default}
12585 case $enableval in
12586 yes) enable_fast_install=yes ;;
12587 no) enable_fast_install=no ;;
12588 *)
12589 enable_fast_install=no
12590 # Look at the argument we got. We use all the common list separators.
12591 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12592 for pkg in $enableval; do
12593 IFS="$lt_save_ifs"
12594 if test "X$pkg" = "X$p"; then
12595 enable_fast_install=yes
12596 fi
12597 done
12598 IFS="$lt_save_ifs"
12599 ;;
12600 esac
12601else
12602 enable_fast_install=yes
12603fi
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615# This can be used to rebuild libtool when needed
12616LIBTOOL_DEPS="$ltmain"
12617
12618# Always use our own libtool.
12619LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645test -z "$LN_S" && LN_S="ln -s"
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660if test -n "${ZSH_VERSION+set}" ; then
12661 setopt NO_GLOB_SUBST
12662fi
12663
cristy8b350f62009-11-15 23:12:43 +000012664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012665$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012666if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012667 $as_echo_n "(cached) " >&6
12668else
12669 rm -f .libs 2>/dev/null
12670mkdir .libs 2>/dev/null
12671if test -d .libs; then
12672 lt_cv_objdir=.libs
12673else
12674 # MS-DOS does not allow filenames that begin with a dot.
12675 lt_cv_objdir=_libs
12676fi
12677rmdir .libs 2>/dev/null
12678fi
cristy8b350f62009-11-15 23:12:43 +000012679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012680$as_echo "$lt_cv_objdir" >&6; }
12681objdir=$lt_cv_objdir
12682
12683
12684
12685
12686
12687cat >>confdefs.h <<_ACEOF
12688#define LT_OBJDIR "$lt_cv_objdir/"
12689_ACEOF
12690
12691
12692
12693
cristyb7c7b8e2010-06-22 14:22:40 +000012694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
cristy3ed852e2009-09-05 21:47:34 +000012707case $host_os in
12708aix3*)
12709 # AIX sometimes has problems with the GCC collect2 program. For some
12710 # reason, if we set the COLLECT_NAMES environment variable, the problems
12711 # vanish in a puff of smoke.
12712 if test "X${COLLECT_NAMES+set}" != Xset; then
12713 COLLECT_NAMES=
12714 export COLLECT_NAMES
12715 fi
12716 ;;
12717esac
12718
cristyb7c7b8e2010-06-22 14:22:40 +000012719# Sed substitution that helps us do robust quoting. It backslashifies
12720# metacharacters that are still active within double-quoted strings.
12721sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12722
12723# Same as above, but do not quote variable references.
12724double_quote_subst='s/\(["`\\]\)/\\\1/g'
12725
12726# Sed substitution to delay expansion of an escaped shell variable in a
12727# double_quote_subst'ed string.
12728delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12729
12730# Sed substitution to delay expansion of an escaped single quote.
12731delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12732
12733# Sed substitution to avoid accidental globbing in evaled expressions
12734no_glob_subst='s/\*/\\\*/g'
12735
cristy3ed852e2009-09-05 21:47:34 +000012736# Global variables:
12737ofile=libtool
12738can_build_shared=yes
12739
12740# All known linkers require a `.a' archive for static linking (except MSVC,
12741# which needs '.lib').
12742libext=a
12743
12744with_gnu_ld="$lt_cv_prog_gnu_ld"
12745
12746old_CC="$CC"
12747old_CFLAGS="$CFLAGS"
12748
12749# Set sane defaults for various variables
12750test -z "$CC" && CC=cc
12751test -z "$LTCC" && LTCC=$CC
12752test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12753test -z "$LD" && LD=ld
12754test -z "$ac_objext" && ac_objext=o
12755
12756for cc_temp in $compiler""; do
12757 case $cc_temp in
12758 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12759 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12760 \-*) ;;
12761 *) break;;
12762 esac
12763done
cristyb7c7b8e2010-06-22 14:22:40 +000012764cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000012765
12766
12767# Only perform the check for file, if the check method requires it
12768test -z "$MAGIC_CMD" && MAGIC_CMD=file
12769case $deplibs_check_method in
12770file_magic*)
12771 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000012772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012773$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012774if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012775 $as_echo_n "(cached) " >&6
12776else
12777 case $MAGIC_CMD in
12778[\\/*] | ?:[\\/]*)
12779 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12780 ;;
12781*)
12782 lt_save_MAGIC_CMD="$MAGIC_CMD"
12783 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12784 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12785 for ac_dir in $ac_dummy; do
12786 IFS="$lt_save_ifs"
12787 test -z "$ac_dir" && ac_dir=.
12788 if test -f $ac_dir/${ac_tool_prefix}file; then
12789 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12790 if test -n "$file_magic_test_file"; then
12791 case $deplibs_check_method in
12792 "file_magic "*)
12793 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12794 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12795 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12796 $EGREP "$file_magic_regex" > /dev/null; then
12797 :
12798 else
12799 cat <<_LT_EOF 1>&2
12800
12801*** Warning: the command libtool uses to detect shared libraries,
12802*** $file_magic_cmd, produces output that libtool cannot recognize.
12803*** The result is that libtool may fail to recognize shared libraries
12804*** as such. This will affect the creation of libtool libraries that
12805*** depend on shared libraries, but programs linked with such libtool
12806*** libraries will work regardless of this problem. Nevertheless, you
12807*** may want to report the problem to your system manager and/or to
12808*** bug-libtool@gnu.org
12809
12810_LT_EOF
12811 fi ;;
12812 esac
12813 fi
12814 break
12815 fi
12816 done
12817 IFS="$lt_save_ifs"
12818 MAGIC_CMD="$lt_save_MAGIC_CMD"
12819 ;;
12820esac
12821fi
12822
12823MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12824if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012826$as_echo "$MAGIC_CMD" >&6; }
12827else
cristy8b350f62009-11-15 23:12:43 +000012828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012829$as_echo "no" >&6; }
12830fi
12831
12832
12833
12834
12835
12836if test -z "$lt_cv_path_MAGIC_CMD"; then
12837 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000012838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012839$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012840if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012841 $as_echo_n "(cached) " >&6
12842else
12843 case $MAGIC_CMD in
12844[\\/*] | ?:[\\/]*)
12845 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12846 ;;
12847*)
12848 lt_save_MAGIC_CMD="$MAGIC_CMD"
12849 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12850 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12851 for ac_dir in $ac_dummy; do
12852 IFS="$lt_save_ifs"
12853 test -z "$ac_dir" && ac_dir=.
12854 if test -f $ac_dir/file; then
12855 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12856 if test -n "$file_magic_test_file"; then
12857 case $deplibs_check_method in
12858 "file_magic "*)
12859 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12860 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12861 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12862 $EGREP "$file_magic_regex" > /dev/null; then
12863 :
12864 else
12865 cat <<_LT_EOF 1>&2
12866
12867*** Warning: the command libtool uses to detect shared libraries,
12868*** $file_magic_cmd, produces output that libtool cannot recognize.
12869*** The result is that libtool may fail to recognize shared libraries
12870*** as such. This will affect the creation of libtool libraries that
12871*** depend on shared libraries, but programs linked with such libtool
12872*** libraries will work regardless of this problem. Nevertheless, you
12873*** may want to report the problem to your system manager and/or to
12874*** bug-libtool@gnu.org
12875
12876_LT_EOF
12877 fi ;;
12878 esac
12879 fi
12880 break
12881 fi
12882 done
12883 IFS="$lt_save_ifs"
12884 MAGIC_CMD="$lt_save_MAGIC_CMD"
12885 ;;
12886esac
12887fi
12888
12889MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12890if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012892$as_echo "$MAGIC_CMD" >&6; }
12893else
cristy8b350f62009-11-15 23:12:43 +000012894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012895$as_echo "no" >&6; }
12896fi
12897
12898
12899 else
12900 MAGIC_CMD=:
12901 fi
12902fi
12903
12904 fi
12905 ;;
12906esac
12907
12908# Use C for the default configuration in the libtool script
12909
12910lt_save_CC="$CC"
12911ac_ext=c
12912ac_cpp='$CPP $CPPFLAGS'
12913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12915ac_compiler_gnu=$ac_cv_c_compiler_gnu
12916
12917
12918# Source file extension for C test sources.
12919ac_ext=c
12920
12921# Object file extension for compiled C test sources.
12922objext=o
12923objext=$objext
12924
12925# Code to be used in simple compile tests
12926lt_simple_compile_test_code="int some_variable = 0;"
12927
12928# Code to be used in simple link tests
12929lt_simple_link_test_code='int main(){return(0);}'
12930
12931
12932
12933
12934
12935
12936
12937# If no C compiler was specified, use CC.
12938LTCC=${LTCC-"$CC"}
12939
12940# If no C compiler flags were specified, use CFLAGS.
12941LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12942
12943# Allow CC to be a program name with arguments.
12944compiler=$CC
12945
12946# Save the default compiler, since it gets overwritten when the other
12947# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12948compiler_DEFAULT=$CC
12949
12950# save warnings/boilerplate of simple test code
12951ac_outfile=conftest.$ac_objext
12952echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12953eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12954_lt_compiler_boilerplate=`cat conftest.err`
12955$RM conftest*
12956
12957ac_outfile=conftest.$ac_objext
12958echo "$lt_simple_link_test_code" >conftest.$ac_ext
12959eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12960_lt_linker_boilerplate=`cat conftest.err`
12961$RM -r conftest*
12962
12963
12964## CAVEAT EMPTOR:
12965## There is no encapsulation within the following macros, do not change
12966## the running order or otherwise move them around unless you know exactly
12967## what you are doing...
12968if test -n "$compiler"; then
12969
12970lt_prog_compiler_no_builtin_flag=
12971
12972if test "$GCC" = yes; then
cristyb7c7b8e2010-06-22 14:22:40 +000012973 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
cristy3ed852e2009-09-05 21:47:34 +000012974
cristy8b350f62009-11-15 23:12:43 +000012975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012976$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012977if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012978 $as_echo_n "(cached) " >&6
12979else
12980 lt_cv_prog_compiler_rtti_exceptions=no
12981 ac_outfile=conftest.$ac_objext
12982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12983 lt_compiler_flag="-fno-rtti -fno-exceptions"
12984 # Insert the option either (1) after the last *FLAGS variable, or
12985 # (2) before a word containing "conftest.", or (3) at the end.
12986 # Note that $ac_compile itself does not contain backslashes and begins
12987 # with a dollar sign (not a hyphen), so the echo should work correctly.
12988 # The option is referenced via a variable to avoid confusing sed.
12989 lt_compile=`echo "$ac_compile" | $SED \
12990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12992 -e 's:$: $lt_compiler_flag:'`
cristyb7c7b8e2010-06-22 14:22:40 +000012993 (eval echo "\"\$as_me:12993: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012994 (eval "$lt_compile" 2>conftest.err)
12995 ac_status=$?
12996 cat conftest.err >&5
cristyb7c7b8e2010-06-22 14:22:40 +000012997 echo "$as_me:12997: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012998 if (exit $ac_status) && test -s "$ac_outfile"; then
12999 # The compiler can only warn and ignore the option if not recognized
13000 # So say no if there are warnings other than the usual output.
cristyb7c7b8e2010-06-22 14:22:40 +000013001 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013002 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13003 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13004 lt_cv_prog_compiler_rtti_exceptions=yes
13005 fi
13006 fi
13007 $RM conftest*
13008
13009fi
cristy8b350f62009-11-15 23:12:43 +000013010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000013011$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13012
13013if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13014 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13015else
13016 :
13017fi
13018
13019fi
13020
13021
13022
13023
13024
13025
13026 lt_prog_compiler_wl=
13027lt_prog_compiler_pic=
13028lt_prog_compiler_static=
13029
cristy8b350f62009-11-15 23:12:43 +000013030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000013031$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13032
13033 if test "$GCC" = yes; then
13034 lt_prog_compiler_wl='-Wl,'
13035 lt_prog_compiler_static='-static'
13036
13037 case $host_os in
13038 aix*)
13039 # All AIX code is PIC.
13040 if test "$host_cpu" = ia64; then
13041 # AIX 5 now supports IA64 processor
13042 lt_prog_compiler_static='-Bstatic'
13043 fi
13044 ;;
13045
13046 amigaos*)
13047 case $host_cpu in
13048 powerpc)
13049 # see comment about AmigaOS4 .so support
13050 lt_prog_compiler_pic='-fPIC'
13051 ;;
13052 m68k)
13053 # FIXME: we need at least 68020 code to build shared libraries, but
13054 # adding the `-m68020' flag to GCC prevents building anything better,
13055 # like `-m68040'.
13056 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13057 ;;
13058 esac
13059 ;;
13060
13061 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13062 # PIC is the default for these OSes.
13063 ;;
13064
13065 mingw* | cygwin* | pw32* | os2* | cegcc*)
13066 # This hack is so that the source file can tell whether it is being
13067 # built for inclusion in a dll (and should export symbols for example).
13068 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13069 # (--disable-auto-import) libraries
13070 lt_prog_compiler_pic='-DDLL_EXPORT'
13071 ;;
13072
13073 darwin* | rhapsody*)
13074 # PIC is the default on this platform
13075 # Common symbols not allowed in MH_DYLIB files
13076 lt_prog_compiler_pic='-fno-common'
13077 ;;
13078
13079 hpux*)
13080 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13081 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13082 # sets the default TLS model and affects inlining.
13083 case $host_cpu in
13084 hppa*64*)
13085 # +Z the default
13086 ;;
13087 *)
13088 lt_prog_compiler_pic='-fPIC'
13089 ;;
13090 esac
13091 ;;
13092
13093 interix[3-9]*)
13094 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13095 # Instead, we relocate shared libraries at runtime.
13096 ;;
13097
13098 msdosdjgpp*)
13099 # Just because we use GCC doesn't mean we suddenly get shared libraries
13100 # on systems that don't support them.
13101 lt_prog_compiler_can_build_shared=no
13102 enable_shared=no
13103 ;;
13104
13105 *nto* | *qnx*)
13106 # QNX uses GNU C++, but need to define -shared option too, otherwise
13107 # it will coredump.
13108 lt_prog_compiler_pic='-fPIC -shared'
13109 ;;
13110
13111 sysv4*MP*)
13112 if test -d /usr/nec; then
13113 lt_prog_compiler_pic=-Kconform_pic
13114 fi
13115 ;;
13116
13117 *)
13118 lt_prog_compiler_pic='-fPIC'
13119 ;;
13120 esac
13121 else
13122 # PORTME Check for flag to pass linker flags through the system compiler.
13123 case $host_os in
13124 aix*)
13125 lt_prog_compiler_wl='-Wl,'
13126 if test "$host_cpu" = ia64; then
13127 # AIX 5 now supports IA64 processor
13128 lt_prog_compiler_static='-Bstatic'
13129 else
13130 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13131 fi
13132 ;;
13133
13134 mingw* | cygwin* | pw32* | os2* | cegcc*)
13135 # This hack is so that the source file can tell whether it is being
13136 # built for inclusion in a dll (and should export symbols for example).
13137 lt_prog_compiler_pic='-DDLL_EXPORT'
13138 ;;
13139
13140 hpux9* | hpux10* | hpux11*)
13141 lt_prog_compiler_wl='-Wl,'
13142 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13143 # not for PA HP-UX.
13144 case $host_cpu in
13145 hppa*64*|ia64*)
13146 # +Z the default
13147 ;;
13148 *)
13149 lt_prog_compiler_pic='+Z'
13150 ;;
13151 esac
13152 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13153 lt_prog_compiler_static='${wl}-a ${wl}archive'
13154 ;;
13155
13156 irix5* | irix6* | nonstopux*)
13157 lt_prog_compiler_wl='-Wl,'
13158 # PIC (with -KPIC) is the default.
13159 lt_prog_compiler_static='-non_shared'
13160 ;;
13161
cristyb7c7b8e2010-06-22 14:22:40 +000013162 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013163 case $cc_basename in
13164 # old Intel for x86_64 which still supported -KPIC.
13165 ecc*)
13166 lt_prog_compiler_wl='-Wl,'
13167 lt_prog_compiler_pic='-KPIC'
13168 lt_prog_compiler_static='-static'
13169 ;;
13170 # icc used to be incompatible with GCC.
13171 # ICC 10 doesn't accept -KPIC any more.
13172 icc* | ifort*)
13173 lt_prog_compiler_wl='-Wl,'
13174 lt_prog_compiler_pic='-fPIC'
13175 lt_prog_compiler_static='-static'
13176 ;;
13177 # Lahey Fortran 8.1.
13178 lf95*)
13179 lt_prog_compiler_wl='-Wl,'
13180 lt_prog_compiler_pic='--shared'
13181 lt_prog_compiler_static='--static'
13182 ;;
cristyb7c7b8e2010-06-22 14:22:40 +000013183 pgcc* | pgf77* | pgf90* | pgf95*)
cristy3ed852e2009-09-05 21:47:34 +000013184 # Portland Group compilers (*not* the Pentium gcc compiler,
13185 # which looks to be a dead project)
13186 lt_prog_compiler_wl='-Wl,'
13187 lt_prog_compiler_pic='-fpic'
13188 lt_prog_compiler_static='-Bstatic'
13189 ;;
13190 ccc*)
13191 lt_prog_compiler_wl='-Wl,'
13192 # All Alpha code is PIC.
13193 lt_prog_compiler_static='-non_shared'
13194 ;;
cristyb7c7b8e2010-06-22 14:22:40 +000013195 xl*)
13196 # IBM XL C 8.0/Fortran 10.1 on PPC
cristy3ed852e2009-09-05 21:47:34 +000013197 lt_prog_compiler_wl='-Wl,'
13198 lt_prog_compiler_pic='-qpic'
13199 lt_prog_compiler_static='-qstaticlink'
13200 ;;
13201 *)
13202 case `$CC -V 2>&1 | sed 5q` in
13203 *Sun\ C*)
13204 # Sun C 5.9
13205 lt_prog_compiler_pic='-KPIC'
13206 lt_prog_compiler_static='-Bstatic'
13207 lt_prog_compiler_wl='-Wl,'
13208 ;;
cristyb7c7b8e2010-06-22 14:22:40 +000013209 *Sun\ F*)
13210 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13211 lt_prog_compiler_pic='-KPIC'
13212 lt_prog_compiler_static='-Bstatic'
13213 lt_prog_compiler_wl=''
13214 ;;
cristy3ed852e2009-09-05 21:47:34 +000013215 esac
13216 ;;
13217 esac
13218 ;;
13219
13220 newsos6)
13221 lt_prog_compiler_pic='-KPIC'
13222 lt_prog_compiler_static='-Bstatic'
13223 ;;
13224
13225 *nto* | *qnx*)
13226 # QNX uses GNU C++, but need to define -shared option too, otherwise
13227 # it will coredump.
13228 lt_prog_compiler_pic='-fPIC -shared'
13229 ;;
13230
13231 osf3* | osf4* | osf5*)
13232 lt_prog_compiler_wl='-Wl,'
13233 # All OSF/1 code is PIC.
13234 lt_prog_compiler_static='-non_shared'
13235 ;;
13236
13237 rdos*)
13238 lt_prog_compiler_static='-non_shared'
13239 ;;
13240
13241 solaris*)
13242 lt_prog_compiler_pic='-KPIC'
13243 lt_prog_compiler_static='-Bstatic'
13244 case $cc_basename in
cristyb7c7b8e2010-06-22 14:22:40 +000013245 f77* | f90* | f95*)
cristy3ed852e2009-09-05 21:47:34 +000013246 lt_prog_compiler_wl='-Qoption ld ';;
13247 *)
13248 lt_prog_compiler_wl='-Wl,';;
13249 esac
13250 ;;
13251
13252 sunos4*)
13253 lt_prog_compiler_wl='-Qoption ld '
13254 lt_prog_compiler_pic='-PIC'
13255 lt_prog_compiler_static='-Bstatic'
13256 ;;
13257
13258 sysv4 | sysv4.2uw2* | sysv4.3*)
13259 lt_prog_compiler_wl='-Wl,'
13260 lt_prog_compiler_pic='-KPIC'
13261 lt_prog_compiler_static='-Bstatic'
13262 ;;
13263
13264 sysv4*MP*)
13265 if test -d /usr/nec ;then
13266 lt_prog_compiler_pic='-Kconform_pic'
13267 lt_prog_compiler_static='-Bstatic'
13268 fi
13269 ;;
13270
13271 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13272 lt_prog_compiler_wl='-Wl,'
13273 lt_prog_compiler_pic='-KPIC'
13274 lt_prog_compiler_static='-Bstatic'
13275 ;;
13276
13277 unicos*)
13278 lt_prog_compiler_wl='-Wl,'
13279 lt_prog_compiler_can_build_shared=no
13280 ;;
13281
13282 uts4*)
13283 lt_prog_compiler_pic='-pic'
13284 lt_prog_compiler_static='-Bstatic'
13285 ;;
13286
13287 *)
13288 lt_prog_compiler_can_build_shared=no
13289 ;;
13290 esac
13291 fi
13292
13293case $host_os in
13294 # For platforms which do not support PIC, -DPIC is meaningless:
13295 *djgpp*)
13296 lt_prog_compiler_pic=
13297 ;;
13298 *)
13299 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13300 ;;
13301esac
cristy8b350f62009-11-15 23:12:43 +000013302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000013303$as_echo "$lt_prog_compiler_pic" >&6; }
13304
13305
13306
13307
13308
13309
13310#
13311# Check to make sure the PIC flag actually works.
13312#
13313if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000013314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013315$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013316if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013317 $as_echo_n "(cached) " >&6
13318else
13319 lt_cv_prog_compiler_pic_works=no
13320 ac_outfile=conftest.$ac_objext
13321 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13322 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13323 # Insert the option either (1) after the last *FLAGS variable, or
13324 # (2) before a word containing "conftest.", or (3) at the end.
13325 # Note that $ac_compile itself does not contain backslashes and begins
13326 # with a dollar sign (not a hyphen), so the echo should work correctly.
13327 # The option is referenced via a variable to avoid confusing sed.
13328 lt_compile=`echo "$ac_compile" | $SED \
13329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13331 -e 's:$: $lt_compiler_flag:'`
cristyb7c7b8e2010-06-22 14:22:40 +000013332 (eval echo "\"\$as_me:13332: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013333 (eval "$lt_compile" 2>conftest.err)
13334 ac_status=$?
13335 cat conftest.err >&5
cristyb7c7b8e2010-06-22 14:22:40 +000013336 echo "$as_me:13336: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013337 if (exit $ac_status) && test -s "$ac_outfile"; then
13338 # The compiler can only warn and ignore the option if not recognized
13339 # So say no if there are warnings other than the usual output.
cristyb7c7b8e2010-06-22 14:22:40 +000013340 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013341 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13342 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13343 lt_cv_prog_compiler_pic_works=yes
13344 fi
13345 fi
13346 $RM conftest*
13347
13348fi
cristy8b350f62009-11-15 23:12:43 +000013349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013350$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13351
13352if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13353 case $lt_prog_compiler_pic in
13354 "" | " "*) ;;
13355 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13356 esac
13357else
13358 lt_prog_compiler_pic=
13359 lt_prog_compiler_can_build_shared=no
13360fi
13361
13362fi
13363
13364
13365
13366
13367
13368
13369#
13370# Check to make sure the static flag actually works.
13371#
13372wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000013373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013374$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013375if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013376 $as_echo_n "(cached) " >&6
13377else
13378 lt_cv_prog_compiler_static_works=no
13379 save_LDFLAGS="$LDFLAGS"
13380 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13381 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13382 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13383 # The linker can only warn and ignore the option if not recognized
13384 # So say no if there are warnings
13385 if test -s conftest.err; then
13386 # Append any errors to the config.log.
13387 cat conftest.err 1>&5
cristyb7c7b8e2010-06-22 14:22:40 +000013388 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013389 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13390 if diff conftest.exp conftest.er2 >/dev/null; then
13391 lt_cv_prog_compiler_static_works=yes
13392 fi
13393 else
13394 lt_cv_prog_compiler_static_works=yes
13395 fi
13396 fi
13397 $RM -r conftest*
13398 LDFLAGS="$save_LDFLAGS"
13399
13400fi
cristy8b350f62009-11-15 23:12:43 +000013401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013402$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13403
13404if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13405 :
13406else
13407 lt_prog_compiler_static=
13408fi
13409
13410
13411
13412
13413
13414
13415
cristy8b350f62009-11-15 23:12:43 +000013416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000013417$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013418if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013419 $as_echo_n "(cached) " >&6
13420else
13421 lt_cv_prog_compiler_c_o=no
13422 $RM -r conftest 2>/dev/null
13423 mkdir conftest
13424 cd conftest
13425 mkdir out
13426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13427
13428 lt_compiler_flag="-o out/conftest2.$ac_objext"
13429 # Insert the option either (1) after the last *FLAGS variable, or
13430 # (2) before a word containing "conftest.", or (3) at the end.
13431 # Note that $ac_compile itself does not contain backslashes and begins
13432 # with a dollar sign (not a hyphen), so the echo should work correctly.
13433 lt_compile=`echo "$ac_compile" | $SED \
13434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13436 -e 's:$: $lt_compiler_flag:'`
cristyb7c7b8e2010-06-22 14:22:40 +000013437 (eval echo "\"\$as_me:13437: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013438 (eval "$lt_compile" 2>out/conftest.err)
13439 ac_status=$?
13440 cat out/conftest.err >&5
cristyb7c7b8e2010-06-22 14:22:40 +000013441 echo "$as_me:13441: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013442 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13443 then
13444 # The compiler can only warn and ignore the option if not recognized
13445 # So say no if there are warnings
cristyb7c7b8e2010-06-22 14:22:40 +000013446 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013447 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13448 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13449 lt_cv_prog_compiler_c_o=yes
13450 fi
13451 fi
13452 chmod u+w . 2>&5
13453 $RM conftest*
13454 # SGI C++ compiler will create directory out/ii_files/ for
13455 # template instantiation
13456 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13457 $RM out/* && rmdir out
13458 cd ..
13459 $RM -r conftest
13460 $RM conftest*
13461
13462fi
cristy8b350f62009-11-15 23:12:43 +000013463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000013464$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13465
13466
13467
13468
13469
13470
cristy8b350f62009-11-15 23:12:43 +000013471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000013472$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013473if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013474 $as_echo_n "(cached) " >&6
13475else
13476 lt_cv_prog_compiler_c_o=no
13477 $RM -r conftest 2>/dev/null
13478 mkdir conftest
13479 cd conftest
13480 mkdir out
13481 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13482
13483 lt_compiler_flag="-o out/conftest2.$ac_objext"
13484 # Insert the option either (1) after the last *FLAGS variable, or
13485 # (2) before a word containing "conftest.", or (3) at the end.
13486 # Note that $ac_compile itself does not contain backslashes and begins
13487 # with a dollar sign (not a hyphen), so the echo should work correctly.
13488 lt_compile=`echo "$ac_compile" | $SED \
13489 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13490 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13491 -e 's:$: $lt_compiler_flag:'`
cristyb7c7b8e2010-06-22 14:22:40 +000013492 (eval echo "\"\$as_me:13492: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013493 (eval "$lt_compile" 2>out/conftest.err)
13494 ac_status=$?
13495 cat out/conftest.err >&5
cristyb7c7b8e2010-06-22 14:22:40 +000013496 echo "$as_me:13496: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013497 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13498 then
13499 # The compiler can only warn and ignore the option if not recognized
13500 # So say no if there are warnings
cristyb7c7b8e2010-06-22 14:22:40 +000013501 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013502 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13503 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13504 lt_cv_prog_compiler_c_o=yes
13505 fi
13506 fi
13507 chmod u+w . 2>&5
13508 $RM conftest*
13509 # SGI C++ compiler will create directory out/ii_files/ for
13510 # template instantiation
13511 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13512 $RM out/* && rmdir out
13513 cd ..
13514 $RM -r conftest
13515 $RM conftest*
13516
13517fi
cristy8b350f62009-11-15 23:12:43 +000013518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000013519$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13520
13521
13522
13523
13524hard_links="nottested"
13525if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13526 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000013527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013528$as_echo_n "checking if we can lock with hard links... " >&6; }
13529 hard_links=yes
13530 $RM conftest*
13531 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13532 touch conftest.a
13533 ln conftest.a conftest.b 2>&5 || hard_links=no
13534 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000013535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013536$as_echo "$hard_links" >&6; }
13537 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000013538 { $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 +000013539$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13540 need_locks=warn
13541 fi
13542else
13543 need_locks=no
13544fi
13545
13546
13547
13548
13549
13550
cristy8b350f62009-11-15 23:12:43 +000013551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000013552$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13553
13554 runpath_var=
13555 allow_undefined_flag=
13556 always_export_symbols=no
13557 archive_cmds=
13558 archive_expsym_cmds=
13559 compiler_needs_object=no
13560 enable_shared_with_static_runtimes=no
13561 export_dynamic_flag_spec=
13562 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13563 hardcode_automatic=no
13564 hardcode_direct=no
13565 hardcode_direct_absolute=no
13566 hardcode_libdir_flag_spec=
13567 hardcode_libdir_flag_spec_ld=
13568 hardcode_libdir_separator=
13569 hardcode_minus_L=no
13570 hardcode_shlibpath_var=unsupported
13571 inherit_rpath=no
13572 link_all_deplibs=unknown
13573 module_cmds=
13574 module_expsym_cmds=
13575 old_archive_from_new_cmds=
13576 old_archive_from_expsyms_cmds=
13577 thread_safe_flag_spec=
13578 whole_archive_flag_spec=
13579 # include_expsyms should be a list of space-separated symbols to be *always*
13580 # included in the symbol list
13581 include_expsyms=
13582 # exclude_expsyms can be an extended regexp of symbols to exclude
13583 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13584 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13585 # as well as any symbol that contains `d'.
13586 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13587 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13588 # platforms (ab)use it in PIC code, but their linkers get confused if
13589 # the symbol is explicitly referenced. Since portable code cannot
13590 # rely on this symbol name, it's probably fine to never include it in
13591 # preloaded symbol tables.
13592 # Exclude shared library initialization/finalization symbols.
13593 extract_expsyms_cmds=
13594
13595 case $host_os in
13596 cygwin* | mingw* | pw32* | cegcc*)
13597 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13598 # When not using gcc, we currently assume that we are using
13599 # Microsoft Visual C++.
13600 if test "$GCC" != yes; then
13601 with_gnu_ld=no
13602 fi
13603 ;;
13604 interix*)
13605 # we just hope/assume this is gcc and not c89 (= MSVC++)
13606 with_gnu_ld=yes
13607 ;;
13608 openbsd*)
13609 with_gnu_ld=no
13610 ;;
13611 esac
13612
13613 ld_shlibs=yes
13614 if test "$with_gnu_ld" = yes; then
13615 # If archive_cmds runs LD, not CC, wlarc should be empty
13616 wlarc='${wl}'
13617
13618 # Set some defaults for GNU ld with shared library support. These
13619 # are reset later if shared libraries are not supported. Putting them
13620 # here allows them to be overridden if necessary.
13621 runpath_var=LD_RUN_PATH
13622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13623 export_dynamic_flag_spec='${wl}--export-dynamic'
13624 # ancient GNU ld didn't support --whole-archive et. al.
13625 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13626 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13627 else
13628 whole_archive_flag_spec=
13629 fi
13630 supports_anon_versioning=no
13631 case `$LD -v 2>&1` in
13632 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13633 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13634 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13635 *\ 2.11.*) ;; # other 2.11 versions
13636 *) supports_anon_versioning=yes ;;
13637 esac
13638
13639 # See if GNU ld supports shared libraries.
13640 case $host_os in
13641 aix[3-9]*)
13642 # On AIX/PPC, the GNU linker is very broken
13643 if test "$host_cpu" != ia64; then
13644 ld_shlibs=no
13645 cat <<_LT_EOF 1>&2
13646
cristyb7c7b8e2010-06-22 14:22:40 +000013647*** Warning: the GNU linker, at least up to release 2.9.1, is reported
cristy3ed852e2009-09-05 21:47:34 +000013648*** to be unable to reliably create shared libraries on AIX.
13649*** Therefore, libtool is disabling shared libraries support. If you
cristyb7c7b8e2010-06-22 14:22:40 +000013650*** really care for shared libraries, you may want to modify your PATH
13651*** so that a non-GNU linker is found, and then restart.
cristy3ed852e2009-09-05 21:47:34 +000013652
13653_LT_EOF
13654 fi
13655 ;;
13656
13657 amigaos*)
13658 case $host_cpu in
13659 powerpc)
13660 # see comment about AmigaOS4 .so support
13661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13662 archive_expsym_cmds=''
13663 ;;
13664 m68k)
13665 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)'
13666 hardcode_libdir_flag_spec='-L$libdir'
13667 hardcode_minus_L=yes
13668 ;;
13669 esac
13670 ;;
13671
13672 beos*)
13673 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13674 allow_undefined_flag=unsupported
13675 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13676 # support --undefined. This deserves some investigation. FIXME
13677 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13678 else
13679 ld_shlibs=no
13680 fi
13681 ;;
13682
13683 cygwin* | mingw* | pw32* | cegcc*)
13684 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13685 # as there is no search path for DLLs.
13686 hardcode_libdir_flag_spec='-L$libdir'
13687 allow_undefined_flag=unsupported
13688 always_export_symbols=no
13689 enable_shared_with_static_runtimes=yes
13690 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13691
13692 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13694 # If the export-symbols file already is a .def file (1st line
13695 # is EXPORTS), use it as is; otherwise, prepend...
13696 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13697 cp $export_symbols $output_objdir/$soname.def;
13698 else
13699 echo EXPORTS > $output_objdir/$soname.def;
13700 cat $export_symbols >> $output_objdir/$soname.def;
13701 fi~
13702 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13703 else
13704 ld_shlibs=no
13705 fi
13706 ;;
13707
13708 interix[3-9]*)
13709 hardcode_direct=no
13710 hardcode_shlibpath_var=no
13711 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13712 export_dynamic_flag_spec='${wl}-E'
13713 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13714 # Instead, shared libraries are loaded at an image base (0x10000000 by
13715 # default) and relocated if they conflict, which is a slow very memory
13716 # consuming and fragmenting process. To avoid this, we pick a random,
13717 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13718 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13719 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13720 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'
13721 ;;
13722
cristyb7c7b8e2010-06-22 14:22:40 +000013723 gnu* | linux* | tpf* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013724 tmp_diet=no
13725 if test "$host_os" = linux-dietlibc; then
13726 case $cc_basename in
13727 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13728 esac
13729 fi
13730 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13731 && test "$tmp_diet" = no
13732 then
13733 tmp_addflag=
13734 tmp_sharedflag='-shared'
13735 case $cc_basename,$host_cpu in
13736 pgcc*) # Portland Group C compiler
cristyb7c7b8e2010-06-22 14:22:40 +000013737 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 +000013738 tmp_addflag=' $pic_flag'
13739 ;;
cristyb7c7b8e2010-06-22 14:22:40 +000013740 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13741 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 +000013742 tmp_addflag=' $pic_flag -Mnomain' ;;
13743 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13744 tmp_addflag=' -i_dynamic' ;;
13745 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13746 tmp_addflag=' -i_dynamic -nofor_main' ;;
13747 ifc* | ifort*) # Intel Fortran compiler
13748 tmp_addflag=' -nofor_main' ;;
13749 lf95*) # Lahey Fortran 8.1
13750 whole_archive_flag_spec=
13751 tmp_sharedflag='--shared' ;;
cristyb7c7b8e2010-06-22 14:22:40 +000013752 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000013753 tmp_sharedflag='-qmkshrobj'
13754 tmp_addflag= ;;
13755 esac
13756 case `$CC -V 2>&1 | sed 5q` in
13757 *Sun\ C*) # Sun C 5.9
cristyb7c7b8e2010-06-22 14:22:40 +000013758 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 +000013759 compiler_needs_object=yes
13760 tmp_sharedflag='-G' ;;
13761 *Sun\ F*) # Sun Fortran 8.3
13762 tmp_sharedflag='-G' ;;
13763 esac
13764 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13765
13766 if test "x$supports_anon_versioning" = xyes; then
13767 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13768 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13769 echo "local: *; };" >> $output_objdir/$libname.ver~
13770 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13771 fi
13772
13773 case $cc_basename in
cristyb7c7b8e2010-06-22 14:22:40 +000013774 xlf*)
cristy3ed852e2009-09-05 21:47:34 +000013775 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13776 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13777 hardcode_libdir_flag_spec=
13778 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristyb7c7b8e2010-06-22 14:22:40 +000013779 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013780 if test "x$supports_anon_versioning" = xyes; then
13781 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13782 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13783 echo "local: *; };" >> $output_objdir/$libname.ver~
cristyb7c7b8e2010-06-22 14:22:40 +000013784 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013785 fi
13786 ;;
13787 esac
13788 else
13789 ld_shlibs=no
13790 fi
13791 ;;
13792
13793 netbsd*)
13794 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13795 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13796 wlarc=
13797 else
13798 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13799 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13800 fi
13801 ;;
13802
13803 solaris*)
13804 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13805 ld_shlibs=no
13806 cat <<_LT_EOF 1>&2
13807
13808*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13809*** create shared libraries on Solaris systems. Therefore, libtool
13810*** is disabling shared libraries support. We urge you to upgrade GNU
13811*** binutils to release 2.9.1 or newer. Another option is to modify
13812*** your PATH or compiler configuration so that the native linker is
13813*** used, and then restart.
13814
13815_LT_EOF
13816 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13818 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13819 else
13820 ld_shlibs=no
13821 fi
13822 ;;
13823
13824 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13825 case `$LD -v 2>&1` in
13826 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13827 ld_shlibs=no
13828 cat <<_LT_EOF 1>&2
13829
13830*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13831*** reliably create shared libraries on SCO systems. Therefore, libtool
13832*** is disabling shared libraries support. We urge you to upgrade GNU
13833*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13834*** your PATH or compiler configuration so that the native linker is
13835*** used, and then restart.
13836
13837_LT_EOF
13838 ;;
13839 *)
13840 # For security reasons, it is highly recommended that you always
13841 # use absolute paths for naming shared libraries, and exclude the
13842 # DT_RUNPATH tag from executables and libraries. But doing so
13843 # requires that you compile everything twice, which is a pain.
13844 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13845 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13846 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13847 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13848 else
13849 ld_shlibs=no
13850 fi
13851 ;;
13852 esac
13853 ;;
13854
13855 sunos4*)
13856 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13857 wlarc=
13858 hardcode_direct=yes
13859 hardcode_shlibpath_var=no
13860 ;;
13861
13862 *)
13863 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13864 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13865 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13866 else
13867 ld_shlibs=no
13868 fi
13869 ;;
13870 esac
13871
13872 if test "$ld_shlibs" = no; then
13873 runpath_var=
13874 hardcode_libdir_flag_spec=
13875 export_dynamic_flag_spec=
13876 whole_archive_flag_spec=
13877 fi
13878 else
13879 # PORTME fill in a description of your system's linker (not GNU ld)
13880 case $host_os in
13881 aix3*)
13882 allow_undefined_flag=unsupported
13883 always_export_symbols=yes
13884 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'
13885 # Note: this linker hardcodes the directories in LIBPATH if there
13886 # are no directories specified by -L.
13887 hardcode_minus_L=yes
13888 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13889 # Neither direct hardcoding nor static linking is supported with a
13890 # broken collect2.
13891 hardcode_direct=unsupported
13892 fi
13893 ;;
13894
13895 aix[4-9]*)
13896 if test "$host_cpu" = ia64; then
13897 # On IA64, the linker does run time linking by default, so we don't
13898 # have to do anything special.
13899 aix_use_runtimelinking=no
13900 exp_sym_flag='-Bexport'
13901 no_entry_flag=""
13902 else
13903 # If we're using GNU nm, then we don't want the "-C" option.
13904 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13905 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristyb7c7b8e2010-06-22 14:22:40 +000013906 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 +000013907 else
13908 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'
13909 fi
13910 aix_use_runtimelinking=no
13911
13912 # Test if we are trying to use run time linking or normal
13913 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13914 # need to do runtime linking.
13915 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13916 for ld_flag in $LDFLAGS; do
13917 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13918 aix_use_runtimelinking=yes
13919 break
13920 fi
13921 done
13922 ;;
13923 esac
13924
13925 exp_sym_flag='-bexport'
13926 no_entry_flag='-bnoentry'
13927 fi
13928
13929 # When large executables or shared objects are built, AIX ld can
13930 # have problems creating the table of contents. If linking a library
13931 # or program results in "error TOC overflow" add -mminimal-toc to
13932 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13933 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13934
13935 archive_cmds=''
13936 hardcode_direct=yes
13937 hardcode_direct_absolute=yes
13938 hardcode_libdir_separator=':'
13939 link_all_deplibs=yes
13940 file_list_spec='${wl}-f,'
13941
13942 if test "$GCC" = yes; then
13943 case $host_os in aix4.[012]|aix4.[012].*)
13944 # We only want to do this on AIX 4.2 and lower, the check
13945 # below for broken collect2 doesn't work under 4.3+
13946 collect2name=`${CC} -print-prog-name=collect2`
13947 if test -f "$collect2name" &&
13948 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13949 then
13950 # We have reworked collect2
13951 :
13952 else
13953 # We have old collect2
13954 hardcode_direct=unsupported
13955 # It fails to find uninstalled libraries when the uninstalled
13956 # path is not listed in the libpath. Setting hardcode_minus_L
13957 # to unsupported forces relinking
13958 hardcode_minus_L=yes
13959 hardcode_libdir_flag_spec='-L$libdir'
13960 hardcode_libdir_separator=
13961 fi
13962 ;;
13963 esac
13964 shared_flag='-shared'
13965 if test "$aix_use_runtimelinking" = yes; then
13966 shared_flag="$shared_flag "'${wl}-G'
13967 fi
13968 else
13969 # not using gcc
13970 if test "$host_cpu" = ia64; then
13971 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13972 # chokes on -Wl,-G. The following line is correct:
13973 shared_flag='-G'
13974 else
13975 if test "$aix_use_runtimelinking" = yes; then
13976 shared_flag='${wl}-G'
13977 else
13978 shared_flag='${wl}-bM:SRE'
13979 fi
13980 fi
13981 fi
13982
13983 export_dynamic_flag_spec='${wl}-bexpall'
13984 # It seems that -bexpall does not export symbols beginning with
13985 # underscore (_), so it is better to generate a list of symbols to export.
13986 always_export_symbols=yes
13987 if test "$aix_use_runtimelinking" = yes; then
13988 # Warning - without using the other runtime loading flags (-brtl),
13989 # -berok will link without error, but may produce a broken library.
13990 allow_undefined_flag='-berok'
13991 # Determine the default libpath from the value encoded in an
13992 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013994/* end confdefs.h. */
13995
13996int
13997main ()
13998{
13999
14000 ;
14001 return 0;
14002}
14003_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014004if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014005
14006lt_aix_libpath_sed='
14007 /Import File Strings/,/^$/ {
14008 /^0/ {
14009 s/^0 *\(.*\)$/\1/
14010 p
14011 }
14012 }'
14013aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14014# Check for a 64-bit object if we didn't find anything.
14015if test -z "$aix_libpath"; then
14016 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14017fi
cristy3ed852e2009-09-05 21:47:34 +000014018fi
cristy8b350f62009-11-15 23:12:43 +000014019rm -f core conftest.err conftest.$ac_objext \
14020 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014021if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14022
14023 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristyb7c7b8e2010-06-22 14:22:40 +000014024 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 +000014025 else
14026 if test "$host_cpu" = ia64; then
14027 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14028 allow_undefined_flag="-z nodefs"
14029 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"
14030 else
14031 # Determine the default libpath from the value encoded in an
14032 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000014033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014034/* end confdefs.h. */
14035
14036int
14037main ()
14038{
14039
14040 ;
14041 return 0;
14042}
14043_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014044if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014045
14046lt_aix_libpath_sed='
14047 /Import File Strings/,/^$/ {
14048 /^0/ {
14049 s/^0 *\(.*\)$/\1/
14050 p
14051 }
14052 }'
14053aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14054# Check for a 64-bit object if we didn't find anything.
14055if test -z "$aix_libpath"; then
14056 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14057fi
cristy3ed852e2009-09-05 21:47:34 +000014058fi
cristy8b350f62009-11-15 23:12:43 +000014059rm -f core conftest.err conftest.$ac_objext \
14060 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014061if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14062
14063 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14064 # Warning - without using the other run time loading flags,
14065 # -berok will link without error, but may produce a broken library.
14066 no_undefined_flag=' ${wl}-bernotok'
14067 allow_undefined_flag=' ${wl}-berok'
cristyb7c7b8e2010-06-22 14:22:40 +000014068 # Exported symbols can be pulled into shared objects from archives
14069 whole_archive_flag_spec='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000014070 archive_cmds_need_lc=yes
14071 # This is similar to how AIX traditionally builds its shared libraries.
14072 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'
14073 fi
14074 fi
14075 ;;
14076
14077 amigaos*)
14078 case $host_cpu in
14079 powerpc)
14080 # see comment about AmigaOS4 .so support
14081 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14082 archive_expsym_cmds=''
14083 ;;
14084 m68k)
14085 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)'
14086 hardcode_libdir_flag_spec='-L$libdir'
14087 hardcode_minus_L=yes
14088 ;;
14089 esac
14090 ;;
14091
14092 bsdi[45]*)
14093 export_dynamic_flag_spec=-rdynamic
14094 ;;
14095
14096 cygwin* | mingw* | pw32* | cegcc*)
14097 # When not using gcc, we currently assume that we are using
14098 # Microsoft Visual C++.
14099 # hardcode_libdir_flag_spec is actually meaningless, as there is
14100 # no search path for DLLs.
14101 hardcode_libdir_flag_spec=' '
14102 allow_undefined_flag=unsupported
14103 # Tell ltmain to make .lib files, not .a files.
14104 libext=lib
14105 # Tell ltmain to make .dll files, not .so files.
14106 shrext_cmds=".dll"
14107 # FIXME: Setting linknames here is a bad hack.
cristyb7c7b8e2010-06-22 14:22:40 +000014108 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000014109 # The linker will automatically build a .lib file if we build a DLL.
14110 old_archive_from_new_cmds='true'
14111 # FIXME: Should let the user specify the lib program.
14112 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14113 fix_srcfile_path='`cygpath -w "$srcfile"`'
14114 enable_shared_with_static_runtimes=yes
14115 ;;
14116
14117 darwin* | rhapsody*)
14118
14119
14120 archive_cmds_need_lc=no
14121 hardcode_direct=no
14122 hardcode_automatic=yes
14123 hardcode_shlibpath_var=unsupported
cristyb7c7b8e2010-06-22 14:22:40 +000014124 whole_archive_flag_spec=''
cristy3ed852e2009-09-05 21:47:34 +000014125 link_all_deplibs=yes
14126 allow_undefined_flag="$_lt_dar_allow_undefined"
14127 case $cc_basename in
14128 ifort*) _lt_dar_can_shared=yes ;;
14129 *) _lt_dar_can_shared=$GCC ;;
14130 esac
14131 if test "$_lt_dar_can_shared" = "yes"; then
cristyb7c7b8e2010-06-22 14:22:40 +000014132 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000014133 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14134 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14135 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}"
14136 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}"
14137
14138 else
14139 ld_shlibs=no
14140 fi
14141
14142 ;;
14143
14144 dgux*)
14145 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14146 hardcode_libdir_flag_spec='-L$libdir'
14147 hardcode_shlibpath_var=no
14148 ;;
14149
14150 freebsd1*)
14151 ld_shlibs=no
14152 ;;
14153
14154 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14155 # support. Future versions do this automatically, but an explicit c++rt0.o
14156 # does not break anything, and helps significantly (at the cost of a little
14157 # extra space).
14158 freebsd2.2*)
14159 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14160 hardcode_libdir_flag_spec='-R$libdir'
14161 hardcode_direct=yes
14162 hardcode_shlibpath_var=no
14163 ;;
14164
14165 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14166 freebsd2*)
14167 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14168 hardcode_direct=yes
14169 hardcode_minus_L=yes
14170 hardcode_shlibpath_var=no
14171 ;;
14172
14173 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14174 freebsd* | dragonfly*)
14175 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14176 hardcode_libdir_flag_spec='-R$libdir'
14177 hardcode_direct=yes
14178 hardcode_shlibpath_var=no
14179 ;;
14180
14181 hpux9*)
14182 if test "$GCC" = yes; then
14183 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'
14184 else
14185 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'
14186 fi
14187 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14188 hardcode_libdir_separator=:
14189 hardcode_direct=yes
14190
14191 # hardcode_minus_L: Not really in the search PATH,
14192 # but as the default location of the library.
14193 hardcode_minus_L=yes
14194 export_dynamic_flag_spec='${wl}-E'
14195 ;;
14196
14197 hpux10*)
cristyb7c7b8e2010-06-22 14:22:40 +000014198 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000014199 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14200 else
14201 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14202 fi
14203 if test "$with_gnu_ld" = no; then
14204 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14205 hardcode_libdir_flag_spec_ld='+b $libdir'
14206 hardcode_libdir_separator=:
14207 hardcode_direct=yes
14208 hardcode_direct_absolute=yes
14209 export_dynamic_flag_spec='${wl}-E'
14210 # hardcode_minus_L: Not really in the search PATH,
14211 # but as the default location of the library.
14212 hardcode_minus_L=yes
14213 fi
14214 ;;
14215
14216 hpux11*)
cristyb7c7b8e2010-06-22 14:22:40 +000014217 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000014218 case $host_cpu in
14219 hppa*64*)
14220 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14221 ;;
14222 ia64*)
14223 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14224 ;;
14225 *)
14226 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14227 ;;
14228 esac
14229 else
14230 case $host_cpu in
14231 hppa*64*)
14232 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14233 ;;
14234 ia64*)
14235 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14236 ;;
14237 *)
cristyb7c7b8e2010-06-22 14:22:40 +000014238 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 +000014239 ;;
14240 esac
14241 fi
14242 if test "$with_gnu_ld" = no; then
14243 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14244 hardcode_libdir_separator=:
14245
14246 case $host_cpu in
14247 hppa*64*|ia64*)
14248 hardcode_direct=no
14249 hardcode_shlibpath_var=no
14250 ;;
14251 *)
14252 hardcode_direct=yes
14253 hardcode_direct_absolute=yes
14254 export_dynamic_flag_spec='${wl}-E'
14255
14256 # hardcode_minus_L: Not really in the search PATH,
14257 # but as the default location of the library.
14258 hardcode_minus_L=yes
14259 ;;
14260 esac
14261 fi
14262 ;;
14263
14264 irix5* | irix6* | nonstopux*)
14265 if test "$GCC" = yes; then
cristyb7c7b8e2010-06-22 14:22:40 +000014266 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 +000014267 # Try to use the -exported_symbol ld option, if it does not
14268 # work, assume that -exports_file does not work either and
14269 # implicitly export all symbols.
14270 save_LDFLAGS="$LDFLAGS"
14271 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000014272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000014274int foo(void) {}
14275_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014276if ac_fn_c_try_link "$LINENO"; then :
cristyb7c7b8e2010-06-22 14:22:40 +000014277 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 +000014278
cristy3ed852e2009-09-05 21:47:34 +000014279fi
cristy8b350f62009-11-15 23:12:43 +000014280rm -f core conftest.err conftest.$ac_objext \
14281 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014282 LDFLAGS="$save_LDFLAGS"
14283 else
cristyb7c7b8e2010-06-22 14:22:40 +000014284 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'
14285 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 +000014286 fi
14287 archive_cmds_need_lc='no'
14288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14289 hardcode_libdir_separator=:
14290 inherit_rpath=yes
14291 link_all_deplibs=yes
14292 ;;
14293
14294 netbsd*)
14295 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14296 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14297 else
14298 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14299 fi
14300 hardcode_libdir_flag_spec='-R$libdir'
14301 hardcode_direct=yes
14302 hardcode_shlibpath_var=no
14303 ;;
14304
14305 newsos6)
14306 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14307 hardcode_direct=yes
14308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14309 hardcode_libdir_separator=:
14310 hardcode_shlibpath_var=no
14311 ;;
14312
14313 *nto* | *qnx*)
14314 ;;
14315
14316 openbsd*)
14317 if test -f /usr/libexec/ld.so; then
14318 hardcode_direct=yes
14319 hardcode_shlibpath_var=no
14320 hardcode_direct_absolute=yes
14321 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14322 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14323 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14324 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14325 export_dynamic_flag_spec='${wl}-E'
14326 else
14327 case $host_os in
14328 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14329 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14330 hardcode_libdir_flag_spec='-R$libdir'
14331 ;;
14332 *)
14333 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14334 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14335 ;;
14336 esac
14337 fi
14338 else
14339 ld_shlibs=no
14340 fi
14341 ;;
14342
14343 os2*)
14344 hardcode_libdir_flag_spec='-L$libdir'
14345 hardcode_minus_L=yes
14346 allow_undefined_flag=unsupported
cristyb7c7b8e2010-06-22 14:22:40 +000014347 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 +000014348 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14349 ;;
14350
14351 osf3*)
14352 if test "$GCC" = yes; then
14353 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyb7c7b8e2010-06-22 14:22:40 +000014354 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 +000014355 else
14356 allow_undefined_flag=' -expect_unresolved \*'
cristyb7c7b8e2010-06-22 14:22:40 +000014357 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 +000014358 fi
14359 archive_cmds_need_lc='no'
14360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14361 hardcode_libdir_separator=:
14362 ;;
14363
14364 osf4* | osf5*) # as osf3* with the addition of -msym flag
14365 if test "$GCC" = yes; then
14366 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyb7c7b8e2010-06-22 14:22:40 +000014367 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 +000014368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14369 else
14370 allow_undefined_flag=' -expect_unresolved \*'
cristyb7c7b8e2010-06-22 14:22:40 +000014371 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 +000014372 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~
cristyb7c7b8e2010-06-22 14:22:40 +000014373 $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 +000014374
14375 # Both c and cxx compiler support -rpath directly
14376 hardcode_libdir_flag_spec='-rpath $libdir'
14377 fi
14378 archive_cmds_need_lc='no'
14379 hardcode_libdir_separator=:
14380 ;;
14381
14382 solaris*)
14383 no_undefined_flag=' -z defs'
14384 if test "$GCC" = yes; then
14385 wlarc='${wl}'
14386 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14387 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14388 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14389 else
14390 case `$CC -V 2>&1` in
14391 *"Compilers 5.0"*)
14392 wlarc=''
14393 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14394 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14395 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14396 ;;
14397 *)
14398 wlarc='${wl}'
14399 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14400 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14401 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14402 ;;
14403 esac
14404 fi
14405 hardcode_libdir_flag_spec='-R$libdir'
14406 hardcode_shlibpath_var=no
14407 case $host_os in
14408 solaris2.[0-5] | solaris2.[0-5].*) ;;
14409 *)
14410 # The compiler driver will combine and reorder linker options,
14411 # but understands `-z linker_flag'. GCC discards it without `$wl',
14412 # but is careful enough not to reorder.
14413 # Supported since Solaris 2.6 (maybe 2.5.1?)
14414 if test "$GCC" = yes; then
14415 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14416 else
14417 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14418 fi
14419 ;;
14420 esac
14421 link_all_deplibs=yes
14422 ;;
14423
14424 sunos4*)
14425 if test "x$host_vendor" = xsequent; then
14426 # Use $CC to link under sequent, because it throws in some extra .o
14427 # files that make .init and .fini sections work.
14428 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14429 else
14430 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14431 fi
14432 hardcode_libdir_flag_spec='-L$libdir'
14433 hardcode_direct=yes
14434 hardcode_minus_L=yes
14435 hardcode_shlibpath_var=no
14436 ;;
14437
14438 sysv4)
14439 case $host_vendor in
14440 sni)
14441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14442 hardcode_direct=yes # is this really true???
14443 ;;
14444 siemens)
14445 ## LD is ld it makes a PLAMLIB
14446 ## CC just makes a GrossModule.
14447 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14448 reload_cmds='$CC -r -o $output$reload_objs'
14449 hardcode_direct=no
14450 ;;
14451 motorola)
14452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14453 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14454 ;;
14455 esac
14456 runpath_var='LD_RUN_PATH'
14457 hardcode_shlibpath_var=no
14458 ;;
14459
14460 sysv4.3*)
14461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14462 hardcode_shlibpath_var=no
14463 export_dynamic_flag_spec='-Bexport'
14464 ;;
14465
14466 sysv4*MP*)
14467 if test -d /usr/nec; then
14468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14469 hardcode_shlibpath_var=no
14470 runpath_var=LD_RUN_PATH
14471 hardcode_runpath_var=yes
14472 ld_shlibs=yes
14473 fi
14474 ;;
14475
14476 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14477 no_undefined_flag='${wl}-z,text'
14478 archive_cmds_need_lc=no
14479 hardcode_shlibpath_var=no
14480 runpath_var='LD_RUN_PATH'
14481
14482 if test "$GCC" = yes; then
14483 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14484 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14485 else
14486 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14487 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14488 fi
14489 ;;
14490
14491 sysv5* | sco3.2v5* | sco5v6*)
14492 # Note: We can NOT use -z defs as we might desire, because we do not
14493 # link with -lc, and that would cause any symbols used from libc to
14494 # always be unresolved, which means just about no library would
14495 # ever link correctly. If we're not using GNU ld we use -z text
14496 # though, which does catch some bad symbols but isn't as heavy-handed
14497 # as -z defs.
14498 no_undefined_flag='${wl}-z,text'
14499 allow_undefined_flag='${wl}-z,nodefs'
14500 archive_cmds_need_lc=no
14501 hardcode_shlibpath_var=no
14502 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14503 hardcode_libdir_separator=':'
14504 link_all_deplibs=yes
14505 export_dynamic_flag_spec='${wl}-Bexport'
14506 runpath_var='LD_RUN_PATH'
14507
14508 if test "$GCC" = yes; then
14509 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14510 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14511 else
14512 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14513 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14514 fi
14515 ;;
14516
14517 uts4*)
14518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14519 hardcode_libdir_flag_spec='-L$libdir'
14520 hardcode_shlibpath_var=no
14521 ;;
14522
14523 *)
14524 ld_shlibs=no
14525 ;;
14526 esac
14527
14528 if test x$host_vendor = xsni; then
14529 case $host in
14530 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14531 export_dynamic_flag_spec='${wl}-Blargedynsym'
14532 ;;
14533 esac
14534 fi
14535 fi
14536
cristy8b350f62009-11-15 23:12:43 +000014537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014538$as_echo "$ld_shlibs" >&6; }
14539test "$ld_shlibs" = no && can_build_shared=no
14540
14541with_gnu_ld=$with_gnu_ld
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557#
14558# Do we need to explicitly link libc?
14559#
14560case "x$archive_cmds_need_lc" in
14561x|xyes)
14562 # Assume -lc should be added
14563 archive_cmds_need_lc=yes
14564
14565 if test "$enable_shared" = yes && test "$GCC" = yes; then
14566 case $archive_cmds in
14567 *'~'*)
14568 # FIXME: we may have to deal with multi-command sequences.
14569 ;;
14570 '$CC '*)
14571 # Test whether the compiler implicitly links with -lc since on some
14572 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14573 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000014574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000014575$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyb7c7b8e2010-06-22 14:22:40 +000014576 $RM conftest*
14577 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014578
cristyb7c7b8e2010-06-22 14:22:40 +000014579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014580 (eval $ac_compile) 2>&5
14581 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14583 test $ac_status = 0; } 2>conftest.err; then
cristyb7c7b8e2010-06-22 14:22:40 +000014584 soname=conftest
14585 lib=conftest
14586 libobjs=conftest.$ac_objext
14587 deplibs=
14588 wl=$lt_prog_compiler_wl
14589 pic_flag=$lt_prog_compiler_pic
14590 compiler_flags=-v
14591 linker_flags=-v
14592 verstring=
14593 output_objdir=.
14594 libname=conftest
14595 lt_save_allow_undefined_flag=$allow_undefined_flag
14596 allow_undefined_flag=
14597 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 +000014598 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14599 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14601 test $ac_status = 0; }
cristyb7c7b8e2010-06-22 14:22:40 +000014602 then
14603 archive_cmds_need_lc=no
14604 else
14605 archive_cmds_need_lc=yes
14606 fi
14607 allow_undefined_flag=$lt_save_allow_undefined_flag
14608 else
14609 cat conftest.err 1>&5
14610 fi
14611 $RM conftest*
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
14613$as_echo "$archive_cmds_need_lc" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000014614 ;;
14615 esac
14616 fi
14617 ;;
14618esac
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
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
cristy8b350f62009-11-15 23:12:43 +000014776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000014777$as_echo_n "checking dynamic linker characteristics... " >&6; }
14778
14779if test "$GCC" = yes; then
14780 case $host_os in
14781 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14782 *) lt_awk_arg="/^libraries:/" ;;
14783 esac
cristyb7c7b8e2010-06-22 14:22:40 +000014784 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14785 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
cristy3ed852e2009-09-05 21:47:34 +000014786 # if the path contains ";" then we assume it to be the separator
14787 # otherwise default to the standard path separator (i.e. ":") - it is
14788 # assumed that no part of a normal pathname contains ";" but that should
14789 # okay in the real world where ";" in dirpaths is itself problematic.
cristyb7c7b8e2010-06-22 14:22:40 +000014790 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14791 else
14792 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14793 fi
cristy3ed852e2009-09-05 21:47:34 +000014794 # Ok, now we have the path, separated by spaces, we can step through it
14795 # and add multilib dir if necessary.
14796 lt_tmp_lt_search_path_spec=
14797 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14798 for lt_sys_path in $lt_search_path_spec; do
14799 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14800 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14801 else
14802 test -d "$lt_sys_path" && \
14803 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14804 fi
14805 done
cristyb7c7b8e2010-06-22 14:22:40 +000014806 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
cristy3ed852e2009-09-05 21:47:34 +000014807BEGIN {RS=" "; FS="/|\n";} {
14808 lt_foo="";
14809 lt_count=0;
14810 for (lt_i = NF; lt_i > 0; lt_i--) {
14811 if ($lt_i != "" && $lt_i != ".") {
14812 if ($lt_i == "..") {
14813 lt_count++;
14814 } else {
14815 if (lt_count == 0) {
14816 lt_foo="/" $lt_i lt_foo;
14817 } else {
14818 lt_count--;
14819 }
14820 }
14821 }
14822 }
14823 if (lt_foo != "") { lt_freq[lt_foo]++; }
14824 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14825}'`
cristyb7c7b8e2010-06-22 14:22:40 +000014826 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
cristy3ed852e2009-09-05 21:47:34 +000014827else
14828 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14829fi
14830library_names_spec=
14831libname_spec='lib$name'
14832soname_spec=
14833shrext_cmds=".so"
14834postinstall_cmds=
14835postuninstall_cmds=
14836finish_cmds=
14837finish_eval=
14838shlibpath_var=
14839shlibpath_overrides_runpath=unknown
14840version_type=none
14841dynamic_linker="$host_os ld.so"
14842sys_lib_dlsearch_path_spec="/lib /usr/lib"
14843need_lib_prefix=unknown
14844hardcode_into_libs=no
14845
14846# when you set need_version to no, make sure it does not cause -set_version
14847# flags to be left without arguments
14848need_version=unknown
14849
14850case $host_os in
14851aix3*)
14852 version_type=linux
14853 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14854 shlibpath_var=LIBPATH
14855
14856 # AIX 3 has no versioning support, so we append a major version to the name.
14857 soname_spec='${libname}${release}${shared_ext}$major'
14858 ;;
14859
14860aix[4-9]*)
14861 version_type=linux
14862 need_lib_prefix=no
14863 need_version=no
14864 hardcode_into_libs=yes
14865 if test "$host_cpu" = ia64; then
14866 # AIX 5 supports IA64
14867 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14868 shlibpath_var=LD_LIBRARY_PATH
14869 else
14870 # With GCC up to 2.95.x, collect2 would create an import file
14871 # for dependence libraries. The import file would start with
14872 # the line `#! .'. This would cause the generated library to
14873 # depend on `.', always an invalid library. This was fixed in
14874 # development snapshots of GCC prior to 3.0.
14875 case $host_os in
14876 aix4 | aix4.[01] | aix4.[01].*)
14877 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14878 echo ' yes '
14879 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14880 :
14881 else
14882 can_build_shared=no
14883 fi
14884 ;;
14885 esac
14886 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14887 # soname into executable. Probably we can add versioning support to
14888 # collect2, so additional links can be useful in future.
14889 if test "$aix_use_runtimelinking" = yes; then
14890 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14891 # instead of lib<name>.a to let people know that these are not
14892 # typical AIX shared libraries.
14893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14894 else
14895 # We preserve .a as extension for shared libraries through AIX4.2
14896 # and later when we are not doing run time linking.
14897 library_names_spec='${libname}${release}.a $libname.a'
14898 soname_spec='${libname}${release}${shared_ext}$major'
14899 fi
14900 shlibpath_var=LIBPATH
14901 fi
14902 ;;
14903
14904amigaos*)
14905 case $host_cpu in
14906 powerpc)
14907 # Since July 2007 AmigaOS4 officially supports .so libraries.
14908 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14910 ;;
14911 m68k)
14912 library_names_spec='$libname.ixlibrary $libname.a'
14913 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristyb7c7b8e2010-06-22 14:22:40 +000014914 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 +000014915 ;;
14916 esac
14917 ;;
14918
14919beos*)
14920 library_names_spec='${libname}${shared_ext}'
14921 dynamic_linker="$host_os ld.so"
14922 shlibpath_var=LIBRARY_PATH
14923 ;;
14924
14925bsdi[45]*)
14926 version_type=linux
14927 need_version=no
14928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14929 soname_spec='${libname}${release}${shared_ext}$major'
14930 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14931 shlibpath_var=LD_LIBRARY_PATH
14932 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14933 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14934 # the default ld.so.conf also contains /usr/contrib/lib and
14935 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14936 # libtool to hard-code these into programs
14937 ;;
14938
14939cygwin* | mingw* | pw32* | cegcc*)
14940 version_type=windows
14941 shrext_cmds=".dll"
14942 need_version=no
14943 need_lib_prefix=no
14944
14945 case $GCC,$host_os in
14946 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14947 library_names_spec='$libname.dll.a'
14948 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14949 postinstall_cmds='base_file=`basename \${file}`~
14950 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14951 dldir=$destdir/`dirname \$dlpath`~
14952 test -d \$dldir || mkdir -p \$dldir~
14953 $install_prog $dir/$dlname \$dldir/$dlname~
14954 chmod a+x \$dldir/$dlname~
14955 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14956 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14957 fi'
14958 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14959 dlpath=$dir/\$dldll~
14960 $RM \$dlpath'
14961 shlibpath_overrides_runpath=yes
14962
14963 case $host_os in
14964 cygwin*)
14965 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14966 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristyb7c7b8e2010-06-22 14:22:40 +000014967 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000014968 ;;
14969 mingw* | cegcc*)
14970 # MinGW DLLs use traditional 'lib' prefix
14971 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristyb7c7b8e2010-06-22 14:22:40 +000014972 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14973 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14974 # It is most probably a Windows format PATH printed by
14975 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14976 # path with ; separators, and with drive letters. We can handle the
14977 # drive letters (cygwin fileutils understands them), so leave them,
14978 # especially as we might pass files found there to a mingw objdump,
14979 # which wouldn't understand a cygwinified path. Ahh.
14980 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14981 else
14982 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14983 fi
cristy3ed852e2009-09-05 21:47:34 +000014984 ;;
14985 pw32*)
14986 # pw32 DLLs use 'pw' prefix rather than 'lib'
14987 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14988 ;;
14989 esac
14990 ;;
14991
14992 *)
14993 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14994 ;;
14995 esac
14996 dynamic_linker='Win32 ld.exe'
14997 # FIXME: first we should search . and the directory the executable is in
14998 shlibpath_var=PATH
14999 ;;
15000
15001darwin* | rhapsody*)
15002 dynamic_linker="$host_os dyld"
15003 version_type=darwin
15004 need_lib_prefix=no
15005 need_version=no
15006 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15007 soname_spec='${libname}${release}${major}$shared_ext'
15008 shlibpath_overrides_runpath=yes
15009 shlibpath_var=DYLD_LIBRARY_PATH
15010 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15011
15012 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15013 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15014 ;;
15015
15016dgux*)
15017 version_type=linux
15018 need_lib_prefix=no
15019 need_version=no
15020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15021 soname_spec='${libname}${release}${shared_ext}$major'
15022 shlibpath_var=LD_LIBRARY_PATH
15023 ;;
15024
15025freebsd1*)
15026 dynamic_linker=no
15027 ;;
15028
15029freebsd* | dragonfly*)
15030 # DragonFly does not have aout. When/if they implement a new
15031 # versioning mechanism, adjust this.
15032 if test -x /usr/bin/objformat; then
15033 objformat=`/usr/bin/objformat`
15034 else
15035 case $host_os in
15036 freebsd[123]*) objformat=aout ;;
15037 *) objformat=elf ;;
15038 esac
15039 fi
15040 version_type=freebsd-$objformat
15041 case $version_type in
15042 freebsd-elf*)
15043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15044 need_version=no
15045 need_lib_prefix=no
15046 ;;
15047 freebsd-*)
15048 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15049 need_version=yes
15050 ;;
15051 esac
15052 shlibpath_var=LD_LIBRARY_PATH
15053 case $host_os in
15054 freebsd2*)
15055 shlibpath_overrides_runpath=yes
15056 ;;
15057 freebsd3.[01]* | freebsdelf3.[01]*)
15058 shlibpath_overrides_runpath=yes
15059 hardcode_into_libs=yes
15060 ;;
15061 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15062 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15063 shlibpath_overrides_runpath=no
15064 hardcode_into_libs=yes
15065 ;;
15066 *) # from 4.6 on, and DragonFly
15067 shlibpath_overrides_runpath=yes
15068 hardcode_into_libs=yes
15069 ;;
15070 esac
15071 ;;
15072
15073gnu*)
15074 version_type=linux
15075 need_lib_prefix=no
15076 need_version=no
15077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15078 soname_spec='${libname}${release}${shared_ext}$major'
15079 shlibpath_var=LD_LIBRARY_PATH
15080 hardcode_into_libs=yes
15081 ;;
15082
15083hpux9* | hpux10* | hpux11*)
15084 # Give a soname corresponding to the major version so that dld.sl refuses to
15085 # link against other versions.
15086 version_type=sunos
15087 need_lib_prefix=no
15088 need_version=no
15089 case $host_cpu in
15090 ia64*)
15091 shrext_cmds='.so'
15092 hardcode_into_libs=yes
15093 dynamic_linker="$host_os dld.so"
15094 shlibpath_var=LD_LIBRARY_PATH
15095 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15097 soname_spec='${libname}${release}${shared_ext}$major'
15098 if test "X$HPUX_IA64_MODE" = X32; then
15099 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15100 else
15101 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15102 fi
15103 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15104 ;;
15105 hppa*64*)
15106 shrext_cmds='.sl'
15107 hardcode_into_libs=yes
15108 dynamic_linker="$host_os dld.sl"
15109 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15110 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15112 soname_spec='${libname}${release}${shared_ext}$major'
15113 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15114 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15115 ;;
15116 *)
15117 shrext_cmds='.sl'
15118 dynamic_linker="$host_os dld.sl"
15119 shlibpath_var=SHLIB_PATH
15120 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15122 soname_spec='${libname}${release}${shared_ext}$major'
15123 ;;
15124 esac
cristyb7c7b8e2010-06-22 14:22:40 +000015125 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000015126 postinstall_cmds='chmod 555 $lib'
15127 ;;
15128
15129interix[3-9]*)
15130 version_type=linux
15131 need_lib_prefix=no
15132 need_version=no
15133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15134 soname_spec='${libname}${release}${shared_ext}$major'
15135 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15136 shlibpath_var=LD_LIBRARY_PATH
15137 shlibpath_overrides_runpath=no
15138 hardcode_into_libs=yes
15139 ;;
15140
15141irix5* | irix6* | nonstopux*)
15142 case $host_os in
15143 nonstopux*) version_type=nonstopux ;;
15144 *)
15145 if test "$lt_cv_prog_gnu_ld" = yes; then
15146 version_type=linux
15147 else
15148 version_type=irix
15149 fi ;;
15150 esac
15151 need_lib_prefix=no
15152 need_version=no
15153 soname_spec='${libname}${release}${shared_ext}$major'
15154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15155 case $host_os in
15156 irix5* | nonstopux*)
15157 libsuff= shlibsuff=
15158 ;;
15159 *)
15160 case $LD in # libtool.m4 will add one of these switches to LD
15161 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15162 libsuff= shlibsuff= libmagic=32-bit;;
15163 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15164 libsuff=32 shlibsuff=N32 libmagic=N32;;
15165 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15166 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15167 *) libsuff= shlibsuff= libmagic=never-match;;
15168 esac
15169 ;;
15170 esac
15171 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15172 shlibpath_overrides_runpath=no
15173 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15174 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15175 hardcode_into_libs=yes
15176 ;;
15177
15178# No shared lib support for Linux oldld, aout, or coff.
15179linux*oldld* | linux*aout* | linux*coff*)
15180 dynamic_linker=no
15181 ;;
15182
15183# This must be Linux ELF.
cristyb7c7b8e2010-06-22 14:22:40 +000015184linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000015185 version_type=linux
15186 need_lib_prefix=no
15187 need_version=no
15188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15189 soname_spec='${libname}${release}${shared_ext}$major'
15190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15191 shlibpath_var=LD_LIBRARY_PATH
15192 shlibpath_overrides_runpath=no
15193 # Some binutils ld are patched to set DT_RUNPATH
cristyb7c7b8e2010-06-22 14:22:40 +000015194 save_LDFLAGS=$LDFLAGS
15195 save_libdir=$libdir
15196 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15197 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015199/* end confdefs.h. */
15200
15201int
15202main ()
15203{
15204
15205 ;
15206 return 0;
15207}
15208_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015209if ac_fn_c_try_link "$LINENO"; then :
15210 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristyb7c7b8e2010-06-22 14:22:40 +000015211 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000015212fi
cristy3ed852e2009-09-05 21:47:34 +000015213fi
cristy8b350f62009-11-15 23:12:43 +000015214rm -f core conftest.err conftest.$ac_objext \
15215 conftest$ac_exeext conftest.$ac_ext
cristyb7c7b8e2010-06-22 14:22:40 +000015216 LDFLAGS=$save_LDFLAGS
15217 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000015218
15219 # This implies no fast_install, which is unacceptable.
15220 # Some rework will be needed to allow for fast_install
15221 # before this can be enabled.
15222 hardcode_into_libs=yes
15223
cristy679ed8e2009-12-05 02:37:41 +000015224 # Add ABI-specific directories to the system library path.
15225 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15226
cristy3ed852e2009-09-05 21:47:34 +000015227 # Append ld.so.conf contents to the search path
15228 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000015229 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 +000015230 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000015231 fi
15232
15233 # We used to test for /lib/ld.so.1 and disable shared libraries on
15234 # powerpc, because MkLinux only supported shared libraries with the
15235 # GNU dynamic linker. Since this was broken with cross compilers,
15236 # most powerpc-linux boxes support dynamic linking these days and
15237 # people can always --disable-shared, the test was removed, and we
15238 # assume the GNU/Linux dynamic linker is in use.
15239 dynamic_linker='GNU/Linux ld.so'
15240 ;;
15241
15242netbsd*)
15243 version_type=sunos
15244 need_lib_prefix=no
15245 need_version=no
15246 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15249 dynamic_linker='NetBSD (a.out) ld.so'
15250 else
15251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15252 soname_spec='${libname}${release}${shared_ext}$major'
15253 dynamic_linker='NetBSD ld.elf_so'
15254 fi
15255 shlibpath_var=LD_LIBRARY_PATH
15256 shlibpath_overrides_runpath=yes
15257 hardcode_into_libs=yes
15258 ;;
15259
15260newsos6)
15261 version_type=linux
15262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15263 shlibpath_var=LD_LIBRARY_PATH
15264 shlibpath_overrides_runpath=yes
15265 ;;
15266
15267*nto* | *qnx*)
15268 version_type=qnx
15269 need_lib_prefix=no
15270 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
15274 shlibpath_overrides_runpath=no
15275 hardcode_into_libs=yes
15276 dynamic_linker='ldqnx.so'
15277 ;;
15278
15279openbsd*)
15280 version_type=sunos
15281 sys_lib_dlsearch_path_spec="/usr/lib"
15282 need_lib_prefix=no
15283 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15284 case $host_os in
15285 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15286 *) need_version=no ;;
15287 esac
15288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15289 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15290 shlibpath_var=LD_LIBRARY_PATH
15291 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15292 case $host_os in
15293 openbsd2.[89] | openbsd2.[89].*)
15294 shlibpath_overrides_runpath=no
15295 ;;
15296 *)
15297 shlibpath_overrides_runpath=yes
15298 ;;
15299 esac
15300 else
15301 shlibpath_overrides_runpath=yes
15302 fi
15303 ;;
15304
15305os2*)
15306 libname_spec='$name'
15307 shrext_cmds=".dll"
15308 need_lib_prefix=no
15309 library_names_spec='$libname${shared_ext} $libname.a'
15310 dynamic_linker='OS/2 ld.exe'
15311 shlibpath_var=LIBPATH
15312 ;;
15313
15314osf3* | osf4* | osf5*)
15315 version_type=osf
15316 need_lib_prefix=no
15317 need_version=no
15318 soname_spec='${libname}${release}${shared_ext}$major'
15319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15320 shlibpath_var=LD_LIBRARY_PATH
15321 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15322 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15323 ;;
15324
15325rdos*)
15326 dynamic_linker=no
15327 ;;
15328
15329solaris*)
15330 version_type=linux
15331 need_lib_prefix=no
15332 need_version=no
15333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15334 soname_spec='${libname}${release}${shared_ext}$major'
15335 shlibpath_var=LD_LIBRARY_PATH
15336 shlibpath_overrides_runpath=yes
15337 hardcode_into_libs=yes
15338 # ldd complains unless libraries are executable
15339 postinstall_cmds='chmod +x $lib'
15340 ;;
15341
15342sunos4*)
15343 version_type=sunos
15344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15345 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15346 shlibpath_var=LD_LIBRARY_PATH
15347 shlibpath_overrides_runpath=yes
15348 if test "$with_gnu_ld" = yes; then
15349 need_lib_prefix=no
15350 fi
15351 need_version=yes
15352 ;;
15353
15354sysv4 | sysv4.3*)
15355 version_type=linux
15356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15357 soname_spec='${libname}${release}${shared_ext}$major'
15358 shlibpath_var=LD_LIBRARY_PATH
15359 case $host_vendor in
15360 sni)
15361 shlibpath_overrides_runpath=no
15362 need_lib_prefix=no
15363 runpath_var=LD_RUN_PATH
15364 ;;
15365 siemens)
15366 need_lib_prefix=no
15367 ;;
15368 motorola)
15369 need_lib_prefix=no
15370 need_version=no
15371 shlibpath_overrides_runpath=no
15372 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15373 ;;
15374 esac
15375 ;;
15376
15377sysv4*MP*)
15378 if test -d /usr/nec ;then
15379 version_type=linux
15380 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15381 soname_spec='$libname${shared_ext}.$major'
15382 shlibpath_var=LD_LIBRARY_PATH
15383 fi
15384 ;;
15385
15386sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15387 version_type=freebsd-elf
15388 need_lib_prefix=no
15389 need_version=no
15390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15391 soname_spec='${libname}${release}${shared_ext}$major'
15392 shlibpath_var=LD_LIBRARY_PATH
15393 shlibpath_overrides_runpath=yes
15394 hardcode_into_libs=yes
15395 if test "$with_gnu_ld" = yes; then
15396 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15397 else
15398 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15399 case $host_os in
15400 sco3.2v5*)
15401 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15402 ;;
15403 esac
15404 fi
15405 sys_lib_dlsearch_path_spec='/usr/lib'
15406 ;;
15407
15408tpf*)
15409 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15410 version_type=linux
15411 need_lib_prefix=no
15412 need_version=no
15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15414 shlibpath_var=LD_LIBRARY_PATH
15415 shlibpath_overrides_runpath=no
15416 hardcode_into_libs=yes
15417 ;;
15418
15419uts4*)
15420 version_type=linux
15421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15422 soname_spec='${libname}${release}${shared_ext}$major'
15423 shlibpath_var=LD_LIBRARY_PATH
15424 ;;
15425
15426*)
15427 dynamic_linker=no
15428 ;;
15429esac
cristy8b350f62009-11-15 23:12:43 +000015430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000015431$as_echo "$dynamic_linker" >&6; }
15432test "$dynamic_linker" = no && can_build_shared=no
15433
15434variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15435if test "$GCC" = yes; then
15436 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15437fi
15438
15439if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15440 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15441fi
15442if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15443 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15444fi
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
cristy8b350f62009-11-15 23:12:43 +000015532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000015533$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15534hardcode_action=
15535if test -n "$hardcode_libdir_flag_spec" ||
15536 test -n "$runpath_var" ||
15537 test "X$hardcode_automatic" = "Xyes" ; then
15538
15539 # We can hardcode non-existent directories.
15540 if test "$hardcode_direct" != no &&
15541 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15542 # have to relink, otherwise we might link with an installed library
15543 # when we should be linking with a yet-to-be-installed one
15544 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15545 test "$hardcode_minus_L" != no; then
15546 # Linking always hardcodes the temporary library directory.
15547 hardcode_action=relink
15548 else
15549 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15550 hardcode_action=immediate
15551 fi
15552else
15553 # We cannot hardcode anything, or else we can only hardcode existing
15554 # directories.
15555 hardcode_action=unsupported
15556fi
cristy8b350f62009-11-15 23:12:43 +000015557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000015558$as_echo "$hardcode_action" >&6; }
15559
15560if test "$hardcode_action" = relink ||
15561 test "$inherit_rpath" = yes; then
15562 # Fast installation is not supported
15563 enable_fast_install=no
15564elif test "$shlibpath_overrides_runpath" = yes ||
15565 test "$enable_shared" = no; then
15566 # Fast installation is not necessary
15567 enable_fast_install=needless
15568fi
15569
15570
15571
15572
15573
15574
15575 if test "x$enable_dlopen" != xyes; then
15576 enable_dlopen=unknown
15577 enable_dlopen_self=unknown
15578 enable_dlopen_self_static=unknown
15579else
15580 lt_cv_dlopen=no
15581 lt_cv_dlopen_libs=
15582
15583 case $host_os in
15584 beos*)
15585 lt_cv_dlopen="load_add_on"
15586 lt_cv_dlopen_libs=
15587 lt_cv_dlopen_self=yes
15588 ;;
15589
15590 mingw* | pw32* | cegcc*)
15591 lt_cv_dlopen="LoadLibrary"
15592 lt_cv_dlopen_libs=
15593 ;;
15594
15595 cygwin*)
15596 lt_cv_dlopen="dlopen"
15597 lt_cv_dlopen_libs=
15598 ;;
15599
15600 darwin*)
15601 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000015602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015603$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015604if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015605 $as_echo_n "(cached) " >&6
15606else
15607 ac_check_lib_save_LIBS=$LIBS
15608LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015610/* end confdefs.h. */
15611
15612/* Override any GCC internal prototype to avoid an error.
15613 Use char because int might match the return type of a GCC
15614 builtin and then its argument prototype would still apply. */
15615#ifdef __cplusplus
15616extern "C"
15617#endif
15618char dlopen ();
15619int
15620main ()
15621{
15622return dlopen ();
15623 ;
15624 return 0;
15625}
15626_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015627if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015628 ac_cv_lib_dl_dlopen=yes
15629else
cristy8b350f62009-11-15 23:12:43 +000015630 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015631fi
cristy8b350f62009-11-15 23:12:43 +000015632rm -f core conftest.err conftest.$ac_objext \
15633 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015634LIBS=$ac_check_lib_save_LIBS
15635fi
cristy8b350f62009-11-15 23:12:43 +000015636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015637$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015638if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015639 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15640else
15641
15642 lt_cv_dlopen="dyld"
15643 lt_cv_dlopen_libs=
15644 lt_cv_dlopen_self=yes
15645
15646fi
15647
15648 ;;
15649
15650 *)
cristy8b350f62009-11-15 23:12:43 +000015651 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15652if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015653 lt_cv_dlopen="shl_load"
15654else
cristy8b350f62009-11-15 23:12:43 +000015655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015656$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015657if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015658 $as_echo_n "(cached) " >&6
15659else
15660 ac_check_lib_save_LIBS=$LIBS
15661LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015663/* end confdefs.h. */
15664
15665/* Override any GCC internal prototype to avoid an error.
15666 Use char because int might match the return type of a GCC
15667 builtin and then its argument prototype would still apply. */
15668#ifdef __cplusplus
15669extern "C"
15670#endif
15671char shl_load ();
15672int
15673main ()
15674{
15675return shl_load ();
15676 ;
15677 return 0;
15678}
15679_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015680if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015681 ac_cv_lib_dld_shl_load=yes
15682else
cristy8b350f62009-11-15 23:12:43 +000015683 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000015684fi
cristy8b350f62009-11-15 23:12:43 +000015685rm -f core conftest.err conftest.$ac_objext \
15686 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015687LIBS=$ac_check_lib_save_LIBS
15688fi
cristy8b350f62009-11-15 23:12:43 +000015689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000015690$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015691if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015692 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15693else
cristy8b350f62009-11-15 23:12:43 +000015694 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15695if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015696 lt_cv_dlopen="dlopen"
15697else
cristy8b350f62009-11-15 23:12:43 +000015698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015699$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015700if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015701 $as_echo_n "(cached) " >&6
15702else
15703 ac_check_lib_save_LIBS=$LIBS
15704LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015706/* end confdefs.h. */
15707
15708/* Override any GCC internal prototype to avoid an error.
15709 Use char because int might match the return type of a GCC
15710 builtin and then its argument prototype would still apply. */
15711#ifdef __cplusplus
15712extern "C"
15713#endif
15714char dlopen ();
15715int
15716main ()
15717{
15718return dlopen ();
15719 ;
15720 return 0;
15721}
15722_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015723if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015724 ac_cv_lib_dl_dlopen=yes
15725else
cristy8b350f62009-11-15 23:12:43 +000015726 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015727fi
cristy8b350f62009-11-15 23:12:43 +000015728rm -f core conftest.err conftest.$ac_objext \
15729 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015730LIBS=$ac_check_lib_save_LIBS
15731fi
cristy8b350f62009-11-15 23:12:43 +000015732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015733$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015734if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015735 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15736else
cristy8b350f62009-11-15 23:12:43 +000015737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015738$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015739if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015740 $as_echo_n "(cached) " >&6
15741else
15742 ac_check_lib_save_LIBS=$LIBS
15743LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015745/* end confdefs.h. */
15746
15747/* Override any GCC internal prototype to avoid an error.
15748 Use char because int might match the return type of a GCC
15749 builtin and then its argument prototype would still apply. */
15750#ifdef __cplusplus
15751extern "C"
15752#endif
15753char dlopen ();
15754int
15755main ()
15756{
15757return dlopen ();
15758 ;
15759 return 0;
15760}
15761_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015762if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015763 ac_cv_lib_svld_dlopen=yes
15764else
cristy8b350f62009-11-15 23:12:43 +000015765 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015766fi
cristy8b350f62009-11-15 23:12:43 +000015767rm -f core conftest.err conftest.$ac_objext \
15768 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015769LIBS=$ac_check_lib_save_LIBS
15770fi
cristy8b350f62009-11-15 23:12:43 +000015771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015772$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015773if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015774 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15775else
cristy8b350f62009-11-15 23:12:43 +000015776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015777$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015778if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015779 $as_echo_n "(cached) " >&6
15780else
15781 ac_check_lib_save_LIBS=$LIBS
15782LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015784/* end confdefs.h. */
15785
15786/* Override any GCC internal prototype to avoid an error.
15787 Use char because int might match the return type of a GCC
15788 builtin and then its argument prototype would still apply. */
15789#ifdef __cplusplus
15790extern "C"
15791#endif
15792char dld_link ();
15793int
15794main ()
15795{
15796return dld_link ();
15797 ;
15798 return 0;
15799}
15800_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015801if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015802 ac_cv_lib_dld_dld_link=yes
15803else
cristy8b350f62009-11-15 23:12:43 +000015804 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000015805fi
cristy8b350f62009-11-15 23:12:43 +000015806rm -f core conftest.err conftest.$ac_objext \
15807 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015808LIBS=$ac_check_lib_save_LIBS
15809fi
cristy8b350f62009-11-15 23:12:43 +000015810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000015811$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015812if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015813 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15814fi
15815
15816
15817fi
15818
15819
15820fi
15821
15822
15823fi
15824
15825
15826fi
15827
15828
15829fi
15830
15831 ;;
15832 esac
15833
15834 if test "x$lt_cv_dlopen" != xno; then
15835 enable_dlopen=yes
15836 else
15837 enable_dlopen=no
15838 fi
15839
15840 case $lt_cv_dlopen in
15841 dlopen)
15842 save_CPPFLAGS="$CPPFLAGS"
15843 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15844
15845 save_LDFLAGS="$LDFLAGS"
15846 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15847
15848 save_LIBS="$LIBS"
15849 LIBS="$lt_cv_dlopen_libs $LIBS"
15850
cristy8b350f62009-11-15 23:12:43 +000015851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015852$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015853if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015854 $as_echo_n "(cached) " >&6
15855else
15856 if test "$cross_compiling" = yes; then :
15857 lt_cv_dlopen_self=cross
15858else
15859 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15860 lt_status=$lt_dlunknown
15861 cat > conftest.$ac_ext <<_LT_EOF
cristyb7c7b8e2010-06-22 14:22:40 +000015862#line 15862 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015863#include "confdefs.h"
15864
15865#if HAVE_DLFCN_H
15866#include <dlfcn.h>
15867#endif
15868
15869#include <stdio.h>
15870
15871#ifdef RTLD_GLOBAL
15872# define LT_DLGLOBAL RTLD_GLOBAL
15873#else
15874# ifdef DL_GLOBAL
15875# define LT_DLGLOBAL DL_GLOBAL
15876# else
15877# define LT_DLGLOBAL 0
15878# endif
15879#endif
15880
15881/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15882 find out it does not work in some platform. */
15883#ifndef LT_DLLAZY_OR_NOW
15884# ifdef RTLD_LAZY
15885# define LT_DLLAZY_OR_NOW RTLD_LAZY
15886# else
15887# ifdef DL_LAZY
15888# define LT_DLLAZY_OR_NOW DL_LAZY
15889# else
15890# ifdef RTLD_NOW
15891# define LT_DLLAZY_OR_NOW RTLD_NOW
15892# else
15893# ifdef DL_NOW
15894# define LT_DLLAZY_OR_NOW DL_NOW
15895# else
15896# define LT_DLLAZY_OR_NOW 0
15897# endif
15898# endif
15899# endif
15900# endif
15901#endif
15902
cristyb7c7b8e2010-06-22 14:22:40 +000015903void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000015904int main ()
15905{
15906 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15907 int status = $lt_dlunknown;
15908
15909 if (self)
15910 {
15911 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyb7c7b8e2010-06-22 14:22:40 +000015912 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000015913 /* dlclose (self); */
15914 }
15915 else
15916 puts (dlerror ());
15917
15918 return status;
15919}
15920_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015922 (eval $ac_link) 2>&5
15923 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15925 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015926 (./conftest; exit; ) >&5 2>/dev/null
15927 lt_status=$?
15928 case x$lt_status in
15929 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15930 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15931 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15932 esac
15933 else :
15934 # compilation failed
15935 lt_cv_dlopen_self=no
15936 fi
15937fi
15938rm -fr conftest*
15939
15940
15941fi
cristy8b350f62009-11-15 23:12:43 +000015942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000015943$as_echo "$lt_cv_dlopen_self" >&6; }
15944
15945 if test "x$lt_cv_dlopen_self" = xyes; then
15946 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000015947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015948$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015949if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015950 $as_echo_n "(cached) " >&6
15951else
15952 if test "$cross_compiling" = yes; then :
15953 lt_cv_dlopen_self_static=cross
15954else
15955 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15956 lt_status=$lt_dlunknown
15957 cat > conftest.$ac_ext <<_LT_EOF
cristyb7c7b8e2010-06-22 14:22:40 +000015958#line 15958 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015959#include "confdefs.h"
15960
15961#if HAVE_DLFCN_H
15962#include <dlfcn.h>
15963#endif
15964
15965#include <stdio.h>
15966
15967#ifdef RTLD_GLOBAL
15968# define LT_DLGLOBAL RTLD_GLOBAL
15969#else
15970# ifdef DL_GLOBAL
15971# define LT_DLGLOBAL DL_GLOBAL
15972# else
15973# define LT_DLGLOBAL 0
15974# endif
15975#endif
15976
15977/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15978 find out it does not work in some platform. */
15979#ifndef LT_DLLAZY_OR_NOW
15980# ifdef RTLD_LAZY
15981# define LT_DLLAZY_OR_NOW RTLD_LAZY
15982# else
15983# ifdef DL_LAZY
15984# define LT_DLLAZY_OR_NOW DL_LAZY
15985# else
15986# ifdef RTLD_NOW
15987# define LT_DLLAZY_OR_NOW RTLD_NOW
15988# else
15989# ifdef DL_NOW
15990# define LT_DLLAZY_OR_NOW DL_NOW
15991# else
15992# define LT_DLLAZY_OR_NOW 0
15993# endif
15994# endif
15995# endif
15996# endif
15997#endif
15998
cristyb7c7b8e2010-06-22 14:22:40 +000015999void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000016000int main ()
16001{
16002 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16003 int status = $lt_dlunknown;
16004
16005 if (self)
16006 {
16007 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyb7c7b8e2010-06-22 14:22:40 +000016008 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000016009 /* dlclose (self); */
16010 }
16011 else
16012 puts (dlerror ());
16013
16014 return status;
16015}
16016_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000016017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016018 (eval $ac_link) 2>&5
16019 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16021 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000016022 (./conftest; exit; ) >&5 2>/dev/null
16023 lt_status=$?
16024 case x$lt_status in
16025 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16026 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16027 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16028 esac
16029 else :
16030 # compilation failed
16031 lt_cv_dlopen_self_static=no
16032 fi
16033fi
16034rm -fr conftest*
16035
16036
16037fi
cristy8b350f62009-11-15 23:12:43 +000016038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000016039$as_echo "$lt_cv_dlopen_self_static" >&6; }
16040 fi
16041
16042 CPPFLAGS="$save_CPPFLAGS"
16043 LDFLAGS="$save_LDFLAGS"
16044 LIBS="$save_LIBS"
16045 ;;
16046 esac
16047
16048 case $lt_cv_dlopen_self in
16049 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16050 *) enable_dlopen_self=unknown ;;
16051 esac
16052
16053 case $lt_cv_dlopen_self_static in
16054 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16055 *) enable_dlopen_self_static=unknown ;;
16056 esac
16057fi
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075striplib=
16076old_striplib=
cristy8b350f62009-11-15 23:12:43 +000016077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000016078$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16079if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16080 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16081 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000016082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000016083$as_echo "yes" >&6; }
16084else
16085# FIXME - insert some real tests, host_os isn't really good enough
16086 case $host_os in
16087 darwin*)
16088 if test -n "$STRIP" ; then
16089 striplib="$STRIP -x"
16090 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000016091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000016092$as_echo "yes" >&6; }
16093 else
cristy8b350f62009-11-15 23:12:43 +000016094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016095$as_echo "no" >&6; }
16096 fi
16097 ;;
16098 *)
cristy8b350f62009-11-15 23:12:43 +000016099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016100$as_echo "no" >&6; }
16101 ;;
16102 esac
16103fi
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000016117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016118$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000016120$as_echo "$can_build_shared" >&6; }
16121
cristy8b350f62009-11-15 23:12:43 +000016122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016123$as_echo_n "checking whether to build shared libraries... " >&6; }
16124 test "$can_build_shared" = "no" && enable_shared=no
16125
16126 # On AIX, shared libraries and static libraries use the same namespace, and
16127 # are all built from PIC.
16128 case $host_os in
16129 aix3*)
16130 test "$enable_shared" = yes && enable_static=no
16131 if test -n "$RANLIB"; then
16132 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16133 postinstall_cmds='$RANLIB $lib'
16134 fi
16135 ;;
16136
16137 aix[4-9]*)
16138 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16139 test "$enable_shared" = yes && enable_static=no
16140 fi
16141 ;;
16142 esac
cristy8b350f62009-11-15 23:12:43 +000016143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000016144$as_echo "$enable_shared" >&6; }
16145
cristy8b350f62009-11-15 23:12:43 +000016146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016147$as_echo_n "checking whether to build static libraries... " >&6; }
16148 # Make sure either enable_shared or enable_static is yes.
16149 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000016150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000016151$as_echo "$enable_static" >&6; }
16152
16153
16154
16155
16156fi
16157ac_ext=c
16158ac_cpp='$CPP $CPPFLAGS'
16159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16161ac_compiler_gnu=$ac_cv_c_compiler_gnu
16162
16163CC="$lt_save_CC"
16164
16165
16166ac_ext=cpp
16167ac_cpp='$CXXCPP $CPPFLAGS'
16168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16171
16172archive_cmds_need_lc_CXX=no
16173allow_undefined_flag_CXX=
16174always_export_symbols_CXX=no
16175archive_expsym_cmds_CXX=
16176compiler_needs_object_CXX=no
16177export_dynamic_flag_spec_CXX=
16178hardcode_direct_CXX=no
16179hardcode_direct_absolute_CXX=no
16180hardcode_libdir_flag_spec_CXX=
16181hardcode_libdir_flag_spec_ld_CXX=
16182hardcode_libdir_separator_CXX=
16183hardcode_minus_L_CXX=no
16184hardcode_shlibpath_var_CXX=unsupported
16185hardcode_automatic_CXX=no
16186inherit_rpath_CXX=no
16187module_cmds_CXX=
16188module_expsym_cmds_CXX=
16189link_all_deplibs_CXX=unknown
16190old_archive_cmds_CXX=$old_archive_cmds
16191no_undefined_flag_CXX=
16192whole_archive_flag_spec_CXX=
16193enable_shared_with_static_runtimes_CXX=no
16194
16195# Source file extension for C++ test sources.
16196ac_ext=cpp
16197
16198# Object file extension for compiled C++ test sources.
16199objext=o
16200objext_CXX=$objext
16201
16202# No sense in running all these tests if we already determined that
16203# the CXX compiler isn't working. Some variables (like enable_shared)
16204# are currently assumed to apply to all compilers on this platform,
16205# and will be corrupted by setting them based on a non-working compiler.
16206if test "$_lt_caught_CXX_error" != yes; then
16207 # Code to be used in simple compile tests
16208 lt_simple_compile_test_code="int some_variable = 0;"
16209
16210 # Code to be used in simple link tests
16211 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16212
16213 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16214
16215
16216
16217
16218
16219
16220# If no C compiler was specified, use CC.
16221LTCC=${LTCC-"$CC"}
16222
16223# If no C compiler flags were specified, use CFLAGS.
16224LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16225
16226# Allow CC to be a program name with arguments.
16227compiler=$CC
16228
16229
16230 # save warnings/boilerplate of simple test code
16231 ac_outfile=conftest.$ac_objext
16232echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16233eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16234_lt_compiler_boilerplate=`cat conftest.err`
16235$RM conftest*
16236
16237 ac_outfile=conftest.$ac_objext
16238echo "$lt_simple_link_test_code" >conftest.$ac_ext
16239eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16240_lt_linker_boilerplate=`cat conftest.err`
16241$RM -r conftest*
16242
16243
16244 # Allow CC to be a program name with arguments.
16245 lt_save_CC=$CC
16246 lt_save_LD=$LD
16247 lt_save_GCC=$GCC
16248 GCC=$GXX
16249 lt_save_with_gnu_ld=$with_gnu_ld
16250 lt_save_path_LD=$lt_cv_path_LD
16251 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16252 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16253 else
16254 $as_unset lt_cv_prog_gnu_ld
16255 fi
16256 if test -n "${lt_cv_path_LDCXX+set}"; then
16257 lt_cv_path_LD=$lt_cv_path_LDCXX
16258 else
16259 $as_unset lt_cv_path_LD
16260 fi
16261 test -z "${LDCXX+set}" || LD=$LDCXX
16262 CC=${CXX-"c++"}
16263 compiler=$CC
16264 compiler_CXX=$CC
16265 for cc_temp in $compiler""; do
16266 case $cc_temp in
16267 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16268 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16269 \-*) ;;
16270 *) break;;
16271 esac
16272done
cristyb7c7b8e2010-06-22 14:22:40 +000016273cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000016274
16275
16276 if test -n "$compiler"; then
16277 # We don't want -fno-exception when compiling C++ code, so set the
16278 # no_builtin_flag separately
16279 if test "$GXX" = yes; then
16280 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16281 else
16282 lt_prog_compiler_no_builtin_flag_CXX=
16283 fi
16284
16285 if test "$GXX" = yes; then
16286 # Set up default GNU C++ configuration
16287
16288
16289
16290# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000016291if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016292 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16293else
16294 with_gnu_ld=no
16295fi
16296
16297ac_prog=ld
16298if test "$GCC" = yes; then
16299 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000016300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016301$as_echo_n "checking for ld used by $CC... " >&6; }
16302 case $host in
16303 *-*-mingw*)
16304 # gcc leaves a trailing carriage return which upsets mingw
16305 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16306 *)
16307 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16308 esac
16309 case $ac_prog in
16310 # Accept absolute paths.
16311 [\\/]* | ?:[\\/]*)
16312 re_direlt='/[^/][^/]*/\.\./'
16313 # Canonicalize the pathname of ld
16314 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16315 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16316 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16317 done
16318 test -z "$LD" && LD="$ac_prog"
16319 ;;
16320 "")
16321 # If it fails, then pretend we aren't using GCC.
16322 ac_prog=ld
16323 ;;
16324 *)
16325 # If it is relative, then search for the first ld in PATH.
16326 with_gnu_ld=unknown
16327 ;;
16328 esac
16329elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000016330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016331$as_echo_n "checking for GNU ld... " >&6; }
16332else
cristy8b350f62009-11-15 23:12:43 +000016333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016334$as_echo_n "checking for non-GNU ld... " >&6; }
16335fi
cristy8b350f62009-11-15 23:12:43 +000016336if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016337 $as_echo_n "(cached) " >&6
16338else
16339 if test -z "$LD"; then
16340 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16341 for ac_dir in $PATH; do
16342 IFS="$lt_save_ifs"
16343 test -z "$ac_dir" && ac_dir=.
16344 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16345 lt_cv_path_LD="$ac_dir/$ac_prog"
16346 # Check to see if the program is GNU ld. I'd rather use --version,
16347 # but apparently some variants of GNU ld only accept -v.
16348 # Break only if it was the GNU/non-GNU ld that we prefer.
16349 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16350 *GNU* | *'with BFD'*)
16351 test "$with_gnu_ld" != no && break
16352 ;;
16353 *)
16354 test "$with_gnu_ld" != yes && break
16355 ;;
16356 esac
16357 fi
16358 done
16359 IFS="$lt_save_ifs"
16360else
16361 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16362fi
16363fi
16364
16365LD="$lt_cv_path_LD"
16366if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000016367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000016368$as_echo "$LD" >&6; }
16369else
cristy8b350f62009-11-15 23:12:43 +000016370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016371$as_echo "no" >&6; }
16372fi
cristy8b350f62009-11-15 23:12:43 +000016373test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016375$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016376if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016377 $as_echo_n "(cached) " >&6
16378else
16379 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16380case `$LD -v 2>&1 </dev/null` in
16381*GNU* | *'with BFD'*)
16382 lt_cv_prog_gnu_ld=yes
16383 ;;
16384*)
16385 lt_cv_prog_gnu_ld=no
16386 ;;
16387esac
16388fi
cristy8b350f62009-11-15 23:12:43 +000016389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016390$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16391with_gnu_ld=$lt_cv_prog_gnu_ld
16392
16393
16394
16395
16396
16397
16398
16399 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16400 # archiving commands below assume that GNU ld is being used.
16401 if test "$with_gnu_ld" = yes; then
16402 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16403 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'
16404
16405 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16406 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16407
16408 # If archive_cmds runs LD, not CC, wlarc should be empty
16409 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16410 # investigate it a little bit more. (MM)
16411 wlarc='${wl}'
16412
16413 # ancient GNU ld didn't support --whole-archive et. al.
16414 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16415 $GREP 'no-whole-archive' > /dev/null; then
16416 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16417 else
16418 whole_archive_flag_spec_CXX=
16419 fi
16420 else
16421 with_gnu_ld=no
16422 wlarc=
16423
16424 # A generic and very simple default shared library creation
16425 # command for GNU C++ for the case where it uses the native
16426 # linker, instead of GNU ld. If possible, this setting should
16427 # overridden to take advantage of the native linker features on
16428 # the platform it is being used on.
16429 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16430 fi
16431
16432 # Commands to make compiler produce verbose output that lists
16433 # what "hidden" libraries, object files and flags are used when
16434 # linking a shared library.
cristyb7c7b8e2010-06-22 14:22:40 +000016435 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016436
16437 else
16438 GXX=no
16439 with_gnu_ld=no
16440 wlarc=
16441 fi
16442
16443 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000016444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016445$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16446 ld_shlibs_CXX=yes
16447 case $host_os in
16448 aix3*)
16449 # FIXME: insert proper C++ library support
16450 ld_shlibs_CXX=no
16451 ;;
16452 aix[4-9]*)
16453 if test "$host_cpu" = ia64; then
16454 # On IA64, the linker does run time linking by default, so we don't
16455 # have to do anything special.
16456 aix_use_runtimelinking=no
16457 exp_sym_flag='-Bexport'
16458 no_entry_flag=""
16459 else
16460 aix_use_runtimelinking=no
16461
16462 # Test if we are trying to use run time linking or normal
16463 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16464 # need to do runtime linking.
16465 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16466 for ld_flag in $LDFLAGS; do
16467 case $ld_flag in
16468 *-brtl*)
16469 aix_use_runtimelinking=yes
16470 break
16471 ;;
16472 esac
16473 done
16474 ;;
16475 esac
16476
16477 exp_sym_flag='-bexport'
16478 no_entry_flag='-bnoentry'
16479 fi
16480
16481 # When large executables or shared objects are built, AIX ld can
16482 # have problems creating the table of contents. If linking a library
16483 # or program results in "error TOC overflow" add -mminimal-toc to
16484 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16485 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16486
16487 archive_cmds_CXX=''
16488 hardcode_direct_CXX=yes
16489 hardcode_direct_absolute_CXX=yes
16490 hardcode_libdir_separator_CXX=':'
16491 link_all_deplibs_CXX=yes
16492 file_list_spec_CXX='${wl}-f,'
16493
16494 if test "$GXX" = yes; then
16495 case $host_os in aix4.[012]|aix4.[012].*)
16496 # We only want to do this on AIX 4.2 and lower, the check
16497 # below for broken collect2 doesn't work under 4.3+
16498 collect2name=`${CC} -print-prog-name=collect2`
16499 if test -f "$collect2name" &&
16500 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16501 then
16502 # We have reworked collect2
16503 :
16504 else
16505 # We have old collect2
16506 hardcode_direct_CXX=unsupported
16507 # It fails to find uninstalled libraries when the uninstalled
16508 # path is not listed in the libpath. Setting hardcode_minus_L
16509 # to unsupported forces relinking
16510 hardcode_minus_L_CXX=yes
16511 hardcode_libdir_flag_spec_CXX='-L$libdir'
16512 hardcode_libdir_separator_CXX=
16513 fi
16514 esac
16515 shared_flag='-shared'
16516 if test "$aix_use_runtimelinking" = yes; then
16517 shared_flag="$shared_flag "'${wl}-G'
16518 fi
16519 else
16520 # not using gcc
16521 if test "$host_cpu" = ia64; then
16522 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16523 # chokes on -Wl,-G. The following line is correct:
16524 shared_flag='-G'
16525 else
16526 if test "$aix_use_runtimelinking" = yes; then
16527 shared_flag='${wl}-G'
16528 else
16529 shared_flag='${wl}-bM:SRE'
16530 fi
16531 fi
16532 fi
16533
16534 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16535 # It seems that -bexpall does not export symbols beginning with
16536 # underscore (_), so it is better to generate a list of symbols to
16537 # export.
16538 always_export_symbols_CXX=yes
16539 if test "$aix_use_runtimelinking" = yes; then
16540 # Warning - without using the other runtime loading flags (-brtl),
16541 # -berok will link without error, but may produce a broken library.
16542 allow_undefined_flag_CXX='-berok'
16543 # Determine the default libpath from the value encoded in an empty
16544 # executable.
cristy8b350f62009-11-15 23:12:43 +000016545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016546/* end confdefs.h. */
16547
16548int
16549main ()
16550{
16551
16552 ;
16553 return 0;
16554}
16555_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016556if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016557
16558lt_aix_libpath_sed='
16559 /Import File Strings/,/^$/ {
16560 /^0/ {
16561 s/^0 *\(.*\)$/\1/
16562 p
16563 }
16564 }'
16565aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16566# Check for a 64-bit object if we didn't find anything.
16567if test -z "$aix_libpath"; then
16568 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16569fi
cristy3ed852e2009-09-05 21:47:34 +000016570fi
cristy8b350f62009-11-15 23:12:43 +000016571rm -f core conftest.err conftest.$ac_objext \
16572 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016573if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16574
16575 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16576
cristyb7c7b8e2010-06-22 14:22:40 +000016577 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 +000016578 else
16579 if test "$host_cpu" = ia64; then
16580 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16581 allow_undefined_flag_CXX="-z nodefs"
16582 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"
16583 else
16584 # Determine the default libpath from the value encoded in an
16585 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000016586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016587/* end confdefs.h. */
16588
16589int
16590main ()
16591{
16592
16593 ;
16594 return 0;
16595}
16596_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016597if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016598
16599lt_aix_libpath_sed='
16600 /Import File Strings/,/^$/ {
16601 /^0/ {
16602 s/^0 *\(.*\)$/\1/
16603 p
16604 }
16605 }'
16606aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16607# Check for a 64-bit object if we didn't find anything.
16608if test -z "$aix_libpath"; then
16609 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16610fi
cristy3ed852e2009-09-05 21:47:34 +000016611fi
cristy8b350f62009-11-15 23:12:43 +000016612rm -f core conftest.err conftest.$ac_objext \
16613 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016614if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16615
16616 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16617 # Warning - without using the other run time loading flags,
16618 # -berok will link without error, but may produce a broken library.
16619 no_undefined_flag_CXX=' ${wl}-bernotok'
16620 allow_undefined_flag_CXX=' ${wl}-berok'
cristyb7c7b8e2010-06-22 14:22:40 +000016621 # Exported symbols can be pulled into shared objects from archives
16622 whole_archive_flag_spec_CXX='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000016623 archive_cmds_need_lc_CXX=yes
16624 # This is similar to how AIX traditionally builds its shared
16625 # libraries.
16626 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'
16627 fi
16628 fi
16629 ;;
16630
16631 beos*)
16632 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16633 allow_undefined_flag_CXX=unsupported
16634 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16635 # support --undefined. This deserves some investigation. FIXME
16636 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16637 else
16638 ld_shlibs_CXX=no
16639 fi
16640 ;;
16641
16642 chorus*)
16643 case $cc_basename in
16644 *)
16645 # FIXME: insert proper C++ library support
16646 ld_shlibs_CXX=no
16647 ;;
16648 esac
16649 ;;
16650
16651 cygwin* | mingw* | pw32* | cegcc*)
16652 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16653 # as there is no search path for DLLs.
16654 hardcode_libdir_flag_spec_CXX='-L$libdir'
16655 allow_undefined_flag_CXX=unsupported
16656 always_export_symbols_CXX=no
16657 enable_shared_with_static_runtimes_CXX=yes
16658
16659 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16660 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'
16661 # If the export-symbols file already is a .def file (1st line
16662 # is EXPORTS), use it as is; otherwise, prepend...
16663 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16664 cp $export_symbols $output_objdir/$soname.def;
16665 else
16666 echo EXPORTS > $output_objdir/$soname.def;
16667 cat $export_symbols >> $output_objdir/$soname.def;
16668 fi~
16669 $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'
16670 else
16671 ld_shlibs_CXX=no
16672 fi
16673 ;;
16674 darwin* | rhapsody*)
16675
16676
16677 archive_cmds_need_lc_CXX=no
16678 hardcode_direct_CXX=no
16679 hardcode_automatic_CXX=yes
16680 hardcode_shlibpath_var_CXX=unsupported
cristyb7c7b8e2010-06-22 14:22:40 +000016681 whole_archive_flag_spec_CXX=''
cristy3ed852e2009-09-05 21:47:34 +000016682 link_all_deplibs_CXX=yes
16683 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16684 case $cc_basename in
16685 ifort*) _lt_dar_can_shared=yes ;;
16686 *) _lt_dar_can_shared=$GCC ;;
16687 esac
16688 if test "$_lt_dar_can_shared" = "yes"; then
cristyb7c7b8e2010-06-22 14:22:40 +000016689 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000016690 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}"
16691 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16692 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}"
16693 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}"
16694 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16695 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}"
16696 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}"
16697 fi
16698
16699 else
16700 ld_shlibs_CXX=no
16701 fi
16702
16703 ;;
16704
16705 dgux*)
16706 case $cc_basename in
16707 ec++*)
16708 # FIXME: insert proper C++ library support
16709 ld_shlibs_CXX=no
16710 ;;
16711 ghcx*)
16712 # Green Hills C++ Compiler
16713 # FIXME: insert proper C++ library support
16714 ld_shlibs_CXX=no
16715 ;;
16716 *)
16717 # FIXME: insert proper C++ library support
16718 ld_shlibs_CXX=no
16719 ;;
16720 esac
16721 ;;
16722
16723 freebsd[12]*)
16724 # C++ shared libraries reported to be fairly broken before
16725 # switch to ELF
16726 ld_shlibs_CXX=no
16727 ;;
16728
16729 freebsd-elf*)
16730 archive_cmds_need_lc_CXX=no
16731 ;;
16732
16733 freebsd* | dragonfly*)
16734 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16735 # conventions
16736 ld_shlibs_CXX=yes
16737 ;;
16738
16739 gnu*)
16740 ;;
16741
16742 hpux9*)
16743 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16744 hardcode_libdir_separator_CXX=:
16745 export_dynamic_flag_spec_CXX='${wl}-E'
16746 hardcode_direct_CXX=yes
16747 hardcode_minus_L_CXX=yes # Not in the search PATH,
16748 # but as the default
16749 # location of the library.
16750
16751 case $cc_basename in
16752 CC*)
16753 # FIXME: insert proper C++ library support
16754 ld_shlibs_CXX=no
16755 ;;
16756 aCC*)
16757 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'
16758 # Commands to make compiler produce verbose output that lists
16759 # what "hidden" libraries, object files and flags are used when
16760 # linking a shared library.
16761 #
16762 # There doesn't appear to be a way to prevent this compiler from
16763 # explicitly linking system object files so we need to strip them
16764 # from the output so that they don't get included in the library
16765 # dependencies.
cristyb7c7b8e2010-06-22 14:22:40 +000016766 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 +000016767 ;;
16768 *)
16769 if test "$GXX" = yes; then
16770 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'
16771 else
16772 # FIXME: insert proper C++ library support
16773 ld_shlibs_CXX=no
16774 fi
16775 ;;
16776 esac
16777 ;;
16778
16779 hpux10*|hpux11*)
16780 if test $with_gnu_ld = no; then
16781 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16782 hardcode_libdir_separator_CXX=:
16783
16784 case $host_cpu in
16785 hppa*64*|ia64*)
16786 ;;
16787 *)
16788 export_dynamic_flag_spec_CXX='${wl}-E'
16789 ;;
16790 esac
16791 fi
16792 case $host_cpu in
16793 hppa*64*|ia64*)
16794 hardcode_direct_CXX=no
16795 hardcode_shlibpath_var_CXX=no
16796 ;;
16797 *)
16798 hardcode_direct_CXX=yes
16799 hardcode_direct_absolute_CXX=yes
16800 hardcode_minus_L_CXX=yes # Not in the search PATH,
16801 # but as the default
16802 # location of the library.
16803 ;;
16804 esac
16805
16806 case $cc_basename in
16807 CC*)
16808 # FIXME: insert proper C++ library support
16809 ld_shlibs_CXX=no
16810 ;;
16811 aCC*)
16812 case $host_cpu in
16813 hppa*64*)
16814 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16815 ;;
16816 ia64*)
16817 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16818 ;;
16819 *)
16820 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16821 ;;
16822 esac
16823 # Commands to make compiler produce verbose output that lists
16824 # what "hidden" libraries, object files and flags are used when
16825 # linking a shared library.
16826 #
16827 # There doesn't appear to be a way to prevent this compiler from
16828 # explicitly linking system object files so we need to strip them
16829 # from the output so that they don't get included in the library
16830 # dependencies.
cristyb7c7b8e2010-06-22 14:22:40 +000016831 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 +000016832 ;;
16833 *)
16834 if test "$GXX" = yes; then
16835 if test $with_gnu_ld = no; then
16836 case $host_cpu in
16837 hppa*64*)
16838 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16839 ;;
16840 ia64*)
16841 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16842 ;;
16843 *)
16844 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'
16845 ;;
16846 esac
16847 fi
16848 else
16849 # FIXME: insert proper C++ library support
16850 ld_shlibs_CXX=no
16851 fi
16852 ;;
16853 esac
16854 ;;
16855
16856 interix[3-9]*)
16857 hardcode_direct_CXX=no
16858 hardcode_shlibpath_var_CXX=no
16859 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16860 export_dynamic_flag_spec_CXX='${wl}-E'
16861 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16862 # Instead, shared libraries are loaded at an image base (0x10000000 by
16863 # default) and relocated if they conflict, which is a slow very memory
16864 # consuming and fragmenting process. To avoid this, we pick a random,
16865 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16866 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16867 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'
16868 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'
16869 ;;
16870 irix5* | irix6*)
16871 case $cc_basename in
16872 CC*)
16873 # SGI C++
cristyb7c7b8e2010-06-22 14:22:40 +000016874 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 +000016875
16876 # Archives containing C++ object files must be created using
16877 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16878 # necessary to make sure instantiated templates are included
16879 # in the archive.
16880 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16881 ;;
16882 *)
16883 if test "$GXX" = yes; then
16884 if test "$with_gnu_ld" = no; then
cristyb7c7b8e2010-06-22 14:22:40 +000016885 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 +000016886 else
cristyb7c7b8e2010-06-22 14:22:40 +000016887 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 +000016888 fi
16889 fi
16890 link_all_deplibs_CXX=yes
16891 ;;
16892 esac
16893 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16894 hardcode_libdir_separator_CXX=:
16895 inherit_rpath_CXX=yes
16896 ;;
16897
cristyb7c7b8e2010-06-22 14:22:40 +000016898 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016899 case $cc_basename in
16900 KCC*)
16901 # Kuck and Associates, Inc. (KAI) C++ Compiler
16902
16903 # KCC will only create a shared library if the output file
16904 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16905 # to its proper name (with version) after linking.
16906 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'
16907 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'
16908 # Commands to make compiler produce verbose output that lists
16909 # what "hidden" libraries, object files and flags are used when
16910 # linking a shared library.
16911 #
16912 # There doesn't appear to be a way to prevent this compiler from
16913 # explicitly linking system object files so we need to strip them
16914 # from the output so that they don't get included in the library
16915 # dependencies.
cristyb7c7b8e2010-06-22 14:22:40 +000016916 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 +000016917
16918 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16919 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16920
16921 # Archives containing C++ object files must be created using
16922 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16923 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16924 ;;
16925 icpc* | ecpc* )
16926 # Intel C++
16927 with_gnu_ld=yes
16928 # version 8.0 and above of icpc choke on multiply defined symbols
16929 # if we add $predep_objects and $postdep_objects, however 7.1 and
16930 # earlier do not add the objects themselves.
16931 case `$CC -V 2>&1` in
16932 *"Version 7."*)
16933 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16934 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'
16935 ;;
16936 *) # Version 8.0 or newer
16937 tmp_idyn=
16938 case $host_cpu in
16939 ia64*) tmp_idyn=' -i_dynamic';;
16940 esac
16941 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16942 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'
16943 ;;
16944 esac
16945 archive_cmds_need_lc_CXX=no
16946 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16947 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16948 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16949 ;;
16950 pgCC* | pgcpp*)
16951 # Portland Group C++ compiler
16952 case `$CC -V` in
cristyb7c7b8e2010-06-22 14:22:40 +000016953 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
cristy3ed852e2009-09-05 21:47:34 +000016954 prelink_cmds_CXX='tpldir=Template.dir~
16955 rm -rf $tpldir~
16956 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristyb7c7b8e2010-06-22 14:22:40 +000016957 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
cristy3ed852e2009-09-05 21:47:34 +000016958 old_archive_cmds_CXX='tpldir=Template.dir~
16959 rm -rf $tpldir~
16960 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristyb7c7b8e2010-06-22 14:22:40 +000016961 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
cristy3ed852e2009-09-05 21:47:34 +000016962 $RANLIB $oldlib'
16963 archive_cmds_CXX='tpldir=Template.dir~
16964 rm -rf $tpldir~
16965 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristyb7c7b8e2010-06-22 14:22:40 +000016966 $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 +000016967 archive_expsym_cmds_CXX='tpldir=Template.dir~
16968 rm -rf $tpldir~
16969 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristyb7c7b8e2010-06-22 14:22:40 +000016970 $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 +000016971 ;;
cristyb7c7b8e2010-06-22 14:22:40 +000016972 *) # Version 6 will use weak symbols
cristy3ed852e2009-09-05 21:47:34 +000016973 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16974 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'
16975 ;;
16976 esac
16977
16978 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16979 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristyb7c7b8e2010-06-22 14:22:40 +000016980 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 +000016981 ;;
16982 cxx*)
16983 # Compaq C++
16984 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16985 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'
16986
16987 runpath_var=LD_RUN_PATH
16988 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16989 hardcode_libdir_separator_CXX=:
16990
16991 # Commands to make compiler produce verbose output that lists
16992 # what "hidden" libraries, object files and flags are used when
16993 # linking a shared library.
16994 #
16995 # There doesn't appear to be a way to prevent this compiler from
16996 # explicitly linking system object files so we need to strip them
16997 # from the output so that they don't get included in the library
16998 # dependencies.
cristyb7c7b8e2010-06-22 14:22:40 +000016999 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 +000017000 ;;
cristyb7c7b8e2010-06-22 14:22:40 +000017001 xl*)
cristy3ed852e2009-09-05 21:47:34 +000017002 # IBM XL 8.0 on PPC, with GNU ld
17003 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17004 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17005 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17006 if test "x$supports_anon_versioning" = xyes; then
17007 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17008 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17009 echo "local: *; };" >> $output_objdir/$libname.ver~
17010 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17011 fi
17012 ;;
17013 *)
17014 case `$CC -V 2>&1 | sed 5q` in
17015 *Sun\ C*)
17016 # Sun C++ 5.9
17017 no_undefined_flag_CXX=' -zdefs'
17018 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17019 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'
17020 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristyb7c7b8e2010-06-22 14:22:40 +000017021 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 +000017022 compiler_needs_object_CXX=yes
17023
17024 # Not sure whether something based on
17025 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17026 # would be better.
cristyb7c7b8e2010-06-22 14:22:40 +000017027 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000017028
17029 # Archives containing C++ object files must be created using
17030 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17031 # necessary to make sure instantiated templates are included
17032 # in the archive.
17033 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17034 ;;
17035 esac
17036 ;;
17037 esac
17038 ;;
17039
17040 lynxos*)
17041 # FIXME: insert proper C++ library support
17042 ld_shlibs_CXX=no
17043 ;;
17044
17045 m88k*)
17046 # FIXME: insert proper C++ library support
17047 ld_shlibs_CXX=no
17048 ;;
17049
17050 mvs*)
17051 case $cc_basename in
17052 cxx*)
17053 # FIXME: insert proper C++ library support
17054 ld_shlibs_CXX=no
17055 ;;
17056 *)
17057 # FIXME: insert proper C++ library support
17058 ld_shlibs_CXX=no
17059 ;;
17060 esac
17061 ;;
17062
17063 netbsd*)
17064 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17065 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17066 wlarc=
17067 hardcode_libdir_flag_spec_CXX='-R$libdir'
17068 hardcode_direct_CXX=yes
17069 hardcode_shlibpath_var_CXX=no
17070 fi
17071 # Workaround some broken pre-1.5 toolchains
17072 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17073 ;;
17074
17075 *nto* | *qnx*)
17076 ld_shlibs_CXX=yes
17077 ;;
17078
17079 openbsd2*)
17080 # C++ shared libraries are fairly broken
17081 ld_shlibs_CXX=no
17082 ;;
17083
17084 openbsd*)
17085 if test -f /usr/libexec/ld.so; then
17086 hardcode_direct_CXX=yes
17087 hardcode_shlibpath_var_CXX=no
17088 hardcode_direct_absolute_CXX=yes
17089 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17090 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17091 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17092 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17093 export_dynamic_flag_spec_CXX='${wl}-E'
17094 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17095 fi
cristyb7c7b8e2010-06-22 14:22:40 +000017096 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000017097 else
17098 ld_shlibs_CXX=no
17099 fi
17100 ;;
17101
17102 osf3* | osf4* | osf5*)
17103 case $cc_basename in
17104 KCC*)
17105 # Kuck and Associates, Inc. (KAI) C++ Compiler
17106
17107 # KCC will only create a shared library if the output file
17108 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17109 # to its proper name (with version) after linking.
17110 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'
17111
17112 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17113 hardcode_libdir_separator_CXX=:
17114
17115 # Archives containing C++ object files must be created using
17116 # the KAI C++ compiler.
17117 case $host in
17118 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17119 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17120 esac
17121 ;;
17122 RCC*)
17123 # Rational C++ 2.4.1
17124 # FIXME: insert proper C++ library support
17125 ld_shlibs_CXX=no
17126 ;;
17127 cxx*)
17128 case $host in
17129 osf3*)
17130 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristyb7c7b8e2010-06-22 14:22:40 +000017131 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 +000017132 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17133 ;;
17134 *)
17135 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristyb7c7b8e2010-06-22 14:22:40 +000017136 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 +000017137 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17138 echo "-hidden">> $lib.exp~
cristyb7c7b8e2010-06-22 14:22:40 +000017139 $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 +000017140 $RM $lib.exp'
17141 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17142 ;;
17143 esac
17144
17145 hardcode_libdir_separator_CXX=:
17146
17147 # Commands to make compiler produce verbose output that lists
17148 # what "hidden" libraries, object files and flags are used when
17149 # linking a shared library.
17150 #
17151 # There doesn't appear to be a way to prevent this compiler from
17152 # explicitly linking system object files so we need to strip them
17153 # from the output so that they don't get included in the library
17154 # dependencies.
cristyb7c7b8e2010-06-22 14:22:40 +000017155 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 +000017156 ;;
17157 *)
17158 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17159 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17160 case $host in
17161 osf3*)
cristyb7c7b8e2010-06-22 14:22:40 +000017162 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 +000017163 ;;
17164 *)
cristyb7c7b8e2010-06-22 14:22:40 +000017165 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 +000017166 ;;
17167 esac
17168
17169 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17170 hardcode_libdir_separator_CXX=:
17171
17172 # Commands to make compiler produce verbose output that lists
17173 # what "hidden" libraries, object files and flags are used when
17174 # linking a shared library.
cristyb7c7b8e2010-06-22 14:22:40 +000017175 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017176
17177 else
17178 # FIXME: insert proper C++ library support
17179 ld_shlibs_CXX=no
17180 fi
17181 ;;
17182 esac
17183 ;;
17184
17185 psos*)
17186 # FIXME: insert proper C++ library support
17187 ld_shlibs_CXX=no
17188 ;;
17189
17190 sunos4*)
17191 case $cc_basename in
17192 CC*)
17193 # Sun C++ 4.x
17194 # FIXME: insert proper C++ library support
17195 ld_shlibs_CXX=no
17196 ;;
17197 lcc*)
17198 # Lucid
17199 # FIXME: insert proper C++ library support
17200 ld_shlibs_CXX=no
17201 ;;
17202 *)
17203 # FIXME: insert proper C++ library support
17204 ld_shlibs_CXX=no
17205 ;;
17206 esac
17207 ;;
17208
17209 solaris*)
17210 case $cc_basename in
cristyb7c7b8e2010-06-22 14:22:40 +000017211 CC*)
cristy3ed852e2009-09-05 21:47:34 +000017212 # Sun C++ 4.2, 5.x and Centerline C++
17213 archive_cmds_need_lc_CXX=yes
17214 no_undefined_flag_CXX=' -zdefs'
17215 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17216 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17217 $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'
17218
17219 hardcode_libdir_flag_spec_CXX='-R$libdir'
17220 hardcode_shlibpath_var_CXX=no
17221 case $host_os in
17222 solaris2.[0-5] | solaris2.[0-5].*) ;;
17223 *)
17224 # The compiler driver will combine and reorder linker options,
17225 # but understands `-z linker_flag'.
17226 # Supported since Solaris 2.6 (maybe 2.5.1?)
17227 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17228 ;;
17229 esac
17230 link_all_deplibs_CXX=yes
17231
cristyb7c7b8e2010-06-22 14:22:40 +000017232 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000017233
17234 # Archives containing C++ object files must be created using
17235 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17236 # necessary to make sure instantiated templates are included
17237 # in the archive.
17238 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17239 ;;
17240 gcx*)
17241 # Green Hills C++ Compiler
17242 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17243
17244 # The C++ compiler must be used to create the archive.
17245 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17246 ;;
17247 *)
17248 # GNU C++ compiler with Solaris linker
17249 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17250 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17251 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17252 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17253 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17254 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17255
17256 # Commands to make compiler produce verbose output that lists
17257 # what "hidden" libraries, object files and flags are used when
17258 # linking a shared library.
cristyb7c7b8e2010-06-22 14:22:40 +000017259 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017260 else
17261 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17262 # platform.
17263 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17264 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17265 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17266
17267 # Commands to make compiler produce verbose output that lists
17268 # what "hidden" libraries, object files and flags are used when
17269 # linking a shared library.
cristyb7c7b8e2010-06-22 14:22:40 +000017270 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017271 fi
17272
17273 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17274 case $host_os in
17275 solaris2.[0-5] | solaris2.[0-5].*) ;;
17276 *)
17277 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17278 ;;
17279 esac
17280 fi
17281 ;;
17282 esac
17283 ;;
17284
17285 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17286 no_undefined_flag_CXX='${wl}-z,text'
17287 archive_cmds_need_lc_CXX=no
17288 hardcode_shlibpath_var_CXX=no
17289 runpath_var='LD_RUN_PATH'
17290
17291 case $cc_basename in
17292 CC*)
17293 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17294 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17295 ;;
17296 *)
17297 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17298 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17299 ;;
17300 esac
17301 ;;
17302
17303 sysv5* | sco3.2v5* | sco5v6*)
17304 # Note: We can NOT use -z defs as we might desire, because we do not
17305 # link with -lc, and that would cause any symbols used from libc to
17306 # always be unresolved, which means just about no library would
17307 # ever link correctly. If we're not using GNU ld we use -z text
17308 # though, which does catch some bad symbols but isn't as heavy-handed
17309 # as -z defs.
17310 no_undefined_flag_CXX='${wl}-z,text'
17311 allow_undefined_flag_CXX='${wl}-z,nodefs'
17312 archive_cmds_need_lc_CXX=no
17313 hardcode_shlibpath_var_CXX=no
17314 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17315 hardcode_libdir_separator_CXX=':'
17316 link_all_deplibs_CXX=yes
17317 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17318 runpath_var='LD_RUN_PATH'
17319
17320 case $cc_basename in
17321 CC*)
17322 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17323 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17324 ;;
17325 *)
17326 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17327 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17328 ;;
17329 esac
17330 ;;
17331
17332 tandem*)
17333 case $cc_basename in
17334 NCC*)
17335 # NonStop-UX NCC 3.20
17336 # FIXME: insert proper C++ library support
17337 ld_shlibs_CXX=no
17338 ;;
17339 *)
17340 # FIXME: insert proper C++ library support
17341 ld_shlibs_CXX=no
17342 ;;
17343 esac
17344 ;;
17345
17346 vxworks*)
17347 # FIXME: insert proper C++ library support
17348 ld_shlibs_CXX=no
17349 ;;
17350
17351 *)
17352 # FIXME: insert proper C++ library support
17353 ld_shlibs_CXX=no
17354 ;;
17355 esac
17356
cristy8b350f62009-11-15 23:12:43 +000017357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017358$as_echo "$ld_shlibs_CXX" >&6; }
17359 test "$ld_shlibs_CXX" = no && can_build_shared=no
17360
17361 GCC_CXX="$GXX"
17362 LD_CXX="$LD"
17363
17364 ## CAVEAT EMPTOR:
17365 ## There is no encapsulation within the following macros, do not change
17366 ## the running order or otherwise move them around unless you know exactly
17367 ## what you are doing...
17368 # Dependencies to place before and after the object being linked:
17369predep_objects_CXX=
17370postdep_objects_CXX=
17371predeps_CXX=
17372postdeps_CXX=
17373compiler_lib_search_path_CXX=
17374
17375cat > conftest.$ac_ext <<_LT_EOF
17376class Foo
17377{
17378public:
17379 Foo (void) { a = 0; }
17380private:
17381 int a;
17382};
17383_LT_EOF
17384
cristy8b350f62009-11-15 23:12:43 +000017385if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017386 (eval $ac_compile) 2>&5
17387 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17389 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000017390 # Parse the compiler output and extract the necessary
17391 # objects, libraries and library flags.
17392
17393 # Sentinel used to keep track of whether or not we are before
17394 # the conftest object file.
17395 pre_test_object_deps_done=no
17396
17397 for p in `eval "$output_verbose_link_cmd"`; do
17398 case $p in
17399
17400 -L* | -R* | -l*)
17401 # Some compilers place space between "-{L,R}" and the path.
17402 # Remove the space.
17403 if test $p = "-L" ||
17404 test $p = "-R"; then
17405 prev=$p
17406 continue
17407 else
17408 prev=
17409 fi
17410
17411 if test "$pre_test_object_deps_done" = no; then
17412 case $p in
17413 -L* | -R*)
17414 # Internal compiler library paths should come after those
17415 # provided the user. The postdeps already come after the
17416 # user supplied libs so there is no need to process them.
17417 if test -z "$compiler_lib_search_path_CXX"; then
17418 compiler_lib_search_path_CXX="${prev}${p}"
17419 else
17420 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17421 fi
17422 ;;
17423 # The "-l" case would never come before the object being
17424 # linked, so don't bother handling this case.
17425 esac
17426 else
17427 if test -z "$postdeps_CXX"; then
17428 postdeps_CXX="${prev}${p}"
17429 else
17430 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17431 fi
17432 fi
17433 ;;
17434
17435 *.$objext)
17436 # This assumes that the test object file only shows up
17437 # once in the compiler output.
17438 if test "$p" = "conftest.$objext"; then
17439 pre_test_object_deps_done=yes
17440 continue
17441 fi
17442
17443 if test "$pre_test_object_deps_done" = no; then
17444 if test -z "$predep_objects_CXX"; then
17445 predep_objects_CXX="$p"
17446 else
17447 predep_objects_CXX="$predep_objects_CXX $p"
17448 fi
17449 else
17450 if test -z "$postdep_objects_CXX"; then
17451 postdep_objects_CXX="$p"
17452 else
17453 postdep_objects_CXX="$postdep_objects_CXX $p"
17454 fi
17455 fi
17456 ;;
17457
17458 *) ;; # Ignore the rest.
17459
17460 esac
17461 done
17462
17463 # Clean up.
17464 rm -f a.out a.exe
17465else
17466 echo "libtool.m4: error: problem compiling CXX test program"
17467fi
17468
17469$RM -f confest.$objext
17470
17471# PORTME: override above test on systems where it is broken
17472case $host_os in
17473interix[3-9]*)
17474 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17475 # hack all around it, let's just trust "g++" to DTRT.
17476 predep_objects_CXX=
17477 postdep_objects_CXX=
17478 postdeps_CXX=
17479 ;;
17480
17481linux*)
17482 case `$CC -V 2>&1 | sed 5q` in
17483 *Sun\ C*)
17484 # Sun C++ 5.9
17485
17486 # The more standards-conforming stlport4 library is
17487 # incompatible with the Cstd library. Avoid specifying
17488 # it if it's in CXXFLAGS. Ignore libCrun as
17489 # -library=stlport4 depends on it.
17490 case " $CXX $CXXFLAGS " in
17491 *" -library=stlport4 "*)
17492 solaris_use_stlport4=yes
17493 ;;
17494 esac
17495
17496 if test "$solaris_use_stlport4" != yes; then
17497 postdeps_CXX='-library=Cstd -library=Crun'
17498 fi
17499 ;;
17500 esac
17501 ;;
17502
17503solaris*)
17504 case $cc_basename in
cristyb7c7b8e2010-06-22 14:22:40 +000017505 CC*)
cristy3ed852e2009-09-05 21:47:34 +000017506 # 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 # Adding this requires a known-good setup of shared libraries for
17517 # Sun compiler versions before 5.6, else PIC objects from an old
17518 # archive will be linked into the output, leading to subtle bugs.
17519 if test "$solaris_use_stlport4" != yes; then
17520 postdeps_CXX='-library=Cstd -library=Crun'
17521 fi
17522 ;;
17523 esac
17524 ;;
17525esac
17526
17527
17528case " $postdeps_CXX " in
17529*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17530esac
17531 compiler_lib_search_dirs_CXX=
17532if test -n "${compiler_lib_search_path_CXX}"; then
17533 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17534fi
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566 lt_prog_compiler_wl_CXX=
17567lt_prog_compiler_pic_CXX=
17568lt_prog_compiler_static_CXX=
17569
cristy8b350f62009-11-15 23:12:43 +000017570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000017571$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17572
17573 # C++ specific cases for pic, static, wl, etc.
17574 if test "$GXX" = yes; then
17575 lt_prog_compiler_wl_CXX='-Wl,'
17576 lt_prog_compiler_static_CXX='-static'
17577
17578 case $host_os in
17579 aix*)
17580 # All AIX code is PIC.
17581 if test "$host_cpu" = ia64; then
17582 # AIX 5 now supports IA64 processor
17583 lt_prog_compiler_static_CXX='-Bstatic'
17584 fi
17585 ;;
17586
17587 amigaos*)
17588 case $host_cpu in
17589 powerpc)
17590 # see comment about AmigaOS4 .so support
17591 lt_prog_compiler_pic_CXX='-fPIC'
17592 ;;
17593 m68k)
17594 # FIXME: we need at least 68020 code to build shared libraries, but
17595 # adding the `-m68020' flag to GCC prevents building anything better,
17596 # like `-m68040'.
17597 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17598 ;;
17599 esac
17600 ;;
17601
17602 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17603 # PIC is the default for these OSes.
17604 ;;
17605 mingw* | cygwin* | os2* | pw32* | cegcc*)
17606 # This hack is so that the source file can tell whether it is being
17607 # built for inclusion in a dll (and should export symbols for example).
17608 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17609 # (--disable-auto-import) libraries
17610 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17611 ;;
17612 darwin* | rhapsody*)
17613 # PIC is the default on this platform
17614 # Common symbols not allowed in MH_DYLIB files
17615 lt_prog_compiler_pic_CXX='-fno-common'
17616 ;;
17617 *djgpp*)
17618 # DJGPP does not support shared libraries at all
17619 lt_prog_compiler_pic_CXX=
17620 ;;
17621 interix[3-9]*)
17622 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17623 # Instead, we relocate shared libraries at runtime.
17624 ;;
17625 sysv4*MP*)
17626 if test -d /usr/nec; then
17627 lt_prog_compiler_pic_CXX=-Kconform_pic
17628 fi
17629 ;;
17630 hpux*)
17631 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17632 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17633 # sets the default TLS model and affects inlining.
17634 case $host_cpu in
17635 hppa*64*)
17636 ;;
17637 *)
17638 lt_prog_compiler_pic_CXX='-fPIC'
17639 ;;
17640 esac
17641 ;;
17642 *qnx* | *nto*)
17643 # QNX uses GNU C++, but need to define -shared option too, otherwise
17644 # it will coredump.
17645 lt_prog_compiler_pic_CXX='-fPIC -shared'
17646 ;;
17647 *)
17648 lt_prog_compiler_pic_CXX='-fPIC'
17649 ;;
17650 esac
17651 else
17652 case $host_os in
17653 aix[4-9]*)
17654 # All AIX code is PIC.
17655 if test "$host_cpu" = ia64; then
17656 # AIX 5 now supports IA64 processor
17657 lt_prog_compiler_static_CXX='-Bstatic'
17658 else
17659 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17660 fi
17661 ;;
17662 chorus*)
17663 case $cc_basename in
17664 cxch68*)
17665 # Green Hills C++ Compiler
17666 # _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"
17667 ;;
17668 esac
17669 ;;
17670 dgux*)
17671 case $cc_basename in
17672 ec++*)
17673 lt_prog_compiler_pic_CXX='-KPIC'
17674 ;;
17675 ghcx*)
17676 # Green Hills C++ Compiler
17677 lt_prog_compiler_pic_CXX='-pic'
17678 ;;
17679 *)
17680 ;;
17681 esac
17682 ;;
17683 freebsd* | dragonfly*)
17684 # FreeBSD uses GNU C++
17685 ;;
17686 hpux9* | hpux10* | hpux11*)
17687 case $cc_basename in
17688 CC*)
17689 lt_prog_compiler_wl_CXX='-Wl,'
17690 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17691 if test "$host_cpu" != ia64; then
17692 lt_prog_compiler_pic_CXX='+Z'
17693 fi
17694 ;;
17695 aCC*)
17696 lt_prog_compiler_wl_CXX='-Wl,'
17697 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17698 case $host_cpu in
17699 hppa*64*|ia64*)
17700 # +Z the default
17701 ;;
17702 *)
17703 lt_prog_compiler_pic_CXX='+Z'
17704 ;;
17705 esac
17706 ;;
17707 *)
17708 ;;
17709 esac
17710 ;;
17711 interix*)
17712 # This is c89, which is MS Visual C++ (no shared libs)
17713 # Anyone wants to do a port?
17714 ;;
17715 irix5* | irix6* | nonstopux*)
17716 case $cc_basename in
17717 CC*)
17718 lt_prog_compiler_wl_CXX='-Wl,'
17719 lt_prog_compiler_static_CXX='-non_shared'
17720 # CC pic flag -KPIC is the default.
17721 ;;
17722 *)
17723 ;;
17724 esac
17725 ;;
cristyb7c7b8e2010-06-22 14:22:40 +000017726 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017727 case $cc_basename in
17728 KCC*)
17729 # KAI C++ Compiler
17730 lt_prog_compiler_wl_CXX='--backend -Wl,'
17731 lt_prog_compiler_pic_CXX='-fPIC'
17732 ;;
17733 ecpc* )
17734 # old Intel C++ for x86_64 which still supported -KPIC.
17735 lt_prog_compiler_wl_CXX='-Wl,'
17736 lt_prog_compiler_pic_CXX='-KPIC'
17737 lt_prog_compiler_static_CXX='-static'
17738 ;;
17739 icpc* )
17740 # Intel C++, used to be incompatible with GCC.
17741 # ICC 10 doesn't accept -KPIC any more.
17742 lt_prog_compiler_wl_CXX='-Wl,'
17743 lt_prog_compiler_pic_CXX='-fPIC'
17744 lt_prog_compiler_static_CXX='-static'
17745 ;;
17746 pgCC* | pgcpp*)
17747 # Portland Group C++ compiler
17748 lt_prog_compiler_wl_CXX='-Wl,'
17749 lt_prog_compiler_pic_CXX='-fpic'
17750 lt_prog_compiler_static_CXX='-Bstatic'
17751 ;;
17752 cxx*)
17753 # Compaq C++
17754 # Make sure the PIC flag is empty. It appears that all Alpha
17755 # Linux and Compaq Tru64 Unix objects are PIC.
17756 lt_prog_compiler_pic_CXX=
17757 lt_prog_compiler_static_CXX='-non_shared'
17758 ;;
cristyb7c7b8e2010-06-22 14:22:40 +000017759 xlc* | xlC*)
17760 # IBM XL 8.0 on PPC
cristy3ed852e2009-09-05 21:47:34 +000017761 lt_prog_compiler_wl_CXX='-Wl,'
17762 lt_prog_compiler_pic_CXX='-qpic'
17763 lt_prog_compiler_static_CXX='-qstaticlink'
17764 ;;
17765 *)
17766 case `$CC -V 2>&1 | sed 5q` in
17767 *Sun\ C*)
17768 # Sun C++ 5.9
17769 lt_prog_compiler_pic_CXX='-KPIC'
17770 lt_prog_compiler_static_CXX='-Bstatic'
17771 lt_prog_compiler_wl_CXX='-Qoption ld '
17772 ;;
17773 esac
17774 ;;
17775 esac
17776 ;;
17777 lynxos*)
17778 ;;
17779 m88k*)
17780 ;;
17781 mvs*)
17782 case $cc_basename in
17783 cxx*)
17784 lt_prog_compiler_pic_CXX='-W c,exportall'
17785 ;;
17786 *)
17787 ;;
17788 esac
17789 ;;
17790 netbsd*)
17791 ;;
17792 *qnx* | *nto*)
17793 # QNX uses GNU C++, but need to define -shared option too, otherwise
17794 # it will coredump.
17795 lt_prog_compiler_pic_CXX='-fPIC -shared'
17796 ;;
17797 osf3* | osf4* | osf5*)
17798 case $cc_basename in
17799 KCC*)
17800 lt_prog_compiler_wl_CXX='--backend -Wl,'
17801 ;;
17802 RCC*)
17803 # Rational C++ 2.4.1
17804 lt_prog_compiler_pic_CXX='-pic'
17805 ;;
17806 cxx*)
17807 # Digital/Compaq C++
17808 lt_prog_compiler_wl_CXX='-Wl,'
17809 # Make sure the PIC flag is empty. It appears that all Alpha
17810 # Linux and Compaq Tru64 Unix objects are PIC.
17811 lt_prog_compiler_pic_CXX=
17812 lt_prog_compiler_static_CXX='-non_shared'
17813 ;;
17814 *)
17815 ;;
17816 esac
17817 ;;
17818 psos*)
17819 ;;
17820 solaris*)
17821 case $cc_basename in
cristyb7c7b8e2010-06-22 14:22:40 +000017822 CC*)
cristy3ed852e2009-09-05 21:47:34 +000017823 # Sun C++ 4.2, 5.x and Centerline C++
17824 lt_prog_compiler_pic_CXX='-KPIC'
17825 lt_prog_compiler_static_CXX='-Bstatic'
17826 lt_prog_compiler_wl_CXX='-Qoption ld '
17827 ;;
17828 gcx*)
17829 # Green Hills C++ Compiler
17830 lt_prog_compiler_pic_CXX='-PIC'
17831 ;;
17832 *)
17833 ;;
17834 esac
17835 ;;
17836 sunos4*)
17837 case $cc_basename in
17838 CC*)
17839 # Sun C++ 4.x
17840 lt_prog_compiler_pic_CXX='-pic'
17841 lt_prog_compiler_static_CXX='-Bstatic'
17842 ;;
17843 lcc*)
17844 # Lucid
17845 lt_prog_compiler_pic_CXX='-pic'
17846 ;;
17847 *)
17848 ;;
17849 esac
17850 ;;
17851 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17852 case $cc_basename in
17853 CC*)
17854 lt_prog_compiler_wl_CXX='-Wl,'
17855 lt_prog_compiler_pic_CXX='-KPIC'
17856 lt_prog_compiler_static_CXX='-Bstatic'
17857 ;;
17858 esac
17859 ;;
17860 tandem*)
17861 case $cc_basename in
17862 NCC*)
17863 # NonStop-UX NCC 3.20
17864 lt_prog_compiler_pic_CXX='-KPIC'
17865 ;;
17866 *)
17867 ;;
17868 esac
17869 ;;
17870 vxworks*)
17871 ;;
17872 *)
17873 lt_prog_compiler_can_build_shared_CXX=no
17874 ;;
17875 esac
17876 fi
17877
17878case $host_os in
17879 # For platforms which do not support PIC, -DPIC is meaningless:
17880 *djgpp*)
17881 lt_prog_compiler_pic_CXX=
17882 ;;
17883 *)
17884 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17885 ;;
17886esac
cristy8b350f62009-11-15 23:12:43 +000017887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017888$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17889
17890
17891
17892#
17893# Check to make sure the PIC flag actually works.
17894#
17895if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000017896 { $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 +000017897$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017898if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017899 $as_echo_n "(cached) " >&6
17900else
17901 lt_cv_prog_compiler_pic_works_CXX=no
17902 ac_outfile=conftest.$ac_objext
17903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17904 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17905 # Insert the option either (1) after the last *FLAGS variable, or
17906 # (2) before a word containing "conftest.", or (3) at the end.
17907 # Note that $ac_compile itself does not contain backslashes and begins
17908 # with a dollar sign (not a hyphen), so the echo should work correctly.
17909 # The option is referenced via a variable to avoid confusing sed.
17910 lt_compile=`echo "$ac_compile" | $SED \
17911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17913 -e 's:$: $lt_compiler_flag:'`
cristyb7c7b8e2010-06-22 14:22:40 +000017914 (eval echo "\"\$as_me:17914: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017915 (eval "$lt_compile" 2>conftest.err)
17916 ac_status=$?
17917 cat conftest.err >&5
cristyb7c7b8e2010-06-22 14:22:40 +000017918 echo "$as_me:17918: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017919 if (exit $ac_status) && test -s "$ac_outfile"; then
17920 # The compiler can only warn and ignore the option if not recognized
17921 # So say no if there are warnings other than the usual output.
cristyb7c7b8e2010-06-22 14:22:40 +000017922 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17924 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17925 lt_cv_prog_compiler_pic_works_CXX=yes
17926 fi
17927 fi
17928 $RM conftest*
17929
17930fi
cristy8b350f62009-11-15 23:12:43 +000017931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017932$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17933
17934if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17935 case $lt_prog_compiler_pic_CXX in
17936 "" | " "*) ;;
17937 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17938 esac
17939else
17940 lt_prog_compiler_pic_CXX=
17941 lt_prog_compiler_can_build_shared_CXX=no
17942fi
17943
17944fi
17945
17946
17947
17948#
17949# Check to make sure the static flag actually works.
17950#
17951wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000017952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017953$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017954if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017955 $as_echo_n "(cached) " >&6
17956else
17957 lt_cv_prog_compiler_static_works_CXX=no
17958 save_LDFLAGS="$LDFLAGS"
17959 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17960 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17961 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17962 # The linker can only warn and ignore the option if not recognized
17963 # So say no if there are warnings
17964 if test -s conftest.err; then
17965 # Append any errors to the config.log.
17966 cat conftest.err 1>&5
cristyb7c7b8e2010-06-22 14:22:40 +000017967 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017968 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17969 if diff conftest.exp conftest.er2 >/dev/null; then
17970 lt_cv_prog_compiler_static_works_CXX=yes
17971 fi
17972 else
17973 lt_cv_prog_compiler_static_works_CXX=yes
17974 fi
17975 fi
17976 $RM -r conftest*
17977 LDFLAGS="$save_LDFLAGS"
17978
17979fi
cristy8b350f62009-11-15 23:12:43 +000017980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017981$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17982
17983if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17984 :
17985else
17986 lt_prog_compiler_static_CXX=
17987fi
17988
17989
17990
17991
cristy8b350f62009-11-15 23:12:43 +000017992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017993$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017994if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017995 $as_echo_n "(cached) " >&6
17996else
17997 lt_cv_prog_compiler_c_o_CXX=no
17998 $RM -r conftest 2>/dev/null
17999 mkdir conftest
18000 cd conftest
18001 mkdir out
18002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18003
18004 lt_compiler_flag="-o out/conftest2.$ac_objext"
18005 # Insert the option either (1) after the last *FLAGS variable, or
18006 # (2) before a word containing "conftest.", or (3) at the end.
18007 # Note that $ac_compile itself does not contain backslashes and begins
18008 # with a dollar sign (not a hyphen), so the echo should work correctly.
18009 lt_compile=`echo "$ac_compile" | $SED \
18010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18012 -e 's:$: $lt_compiler_flag:'`
cristyb7c7b8e2010-06-22 14:22:40 +000018013 (eval echo "\"\$as_me:18013: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018014 (eval "$lt_compile" 2>out/conftest.err)
18015 ac_status=$?
18016 cat out/conftest.err >&5
cristyb7c7b8e2010-06-22 14:22:40 +000018017 echo "$as_me:18017: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018018 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18019 then
18020 # The compiler can only warn and ignore the option if not recognized
18021 # So say no if there are warnings
cristyb7c7b8e2010-06-22 14:22:40 +000018022 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000018023 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18024 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18025 lt_cv_prog_compiler_c_o_CXX=yes
18026 fi
18027 fi
18028 chmod u+w . 2>&5
18029 $RM conftest*
18030 # SGI C++ compiler will create directory out/ii_files/ for
18031 # template instantiation
18032 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18033 $RM out/* && rmdir out
18034 cd ..
18035 $RM -r conftest
18036 $RM conftest*
18037
18038fi
cristy8b350f62009-11-15 23:12:43 +000018039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018040$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18041
18042
18043
cristy8b350f62009-11-15 23:12:43 +000018044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000018045$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018046if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018047 $as_echo_n "(cached) " >&6
18048else
18049 lt_cv_prog_compiler_c_o_CXX=no
18050 $RM -r conftest 2>/dev/null
18051 mkdir conftest
18052 cd conftest
18053 mkdir out
18054 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18055
18056 lt_compiler_flag="-o out/conftest2.$ac_objext"
18057 # Insert the option either (1) after the last *FLAGS variable, or
18058 # (2) before a word containing "conftest.", or (3) at the end.
18059 # Note that $ac_compile itself does not contain backslashes and begins
18060 # with a dollar sign (not a hyphen), so the echo should work correctly.
18061 lt_compile=`echo "$ac_compile" | $SED \
18062 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18063 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18064 -e 's:$: $lt_compiler_flag:'`
cristyb7c7b8e2010-06-22 14:22:40 +000018065 (eval echo "\"\$as_me:18065: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018066 (eval "$lt_compile" 2>out/conftest.err)
18067 ac_status=$?
18068 cat out/conftest.err >&5
cristyb7c7b8e2010-06-22 14:22:40 +000018069 echo "$as_me:18069: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018070 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18071 then
18072 # The compiler can only warn and ignore the option if not recognized
18073 # So say no if there are warnings
cristyb7c7b8e2010-06-22 14:22:40 +000018074 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000018075 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18076 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18077 lt_cv_prog_compiler_c_o_CXX=yes
18078 fi
18079 fi
18080 chmod u+w . 2>&5
18081 $RM conftest*
18082 # SGI C++ compiler will create directory out/ii_files/ for
18083 # template instantiation
18084 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18085 $RM out/* && rmdir out
18086 cd ..
18087 $RM -r conftest
18088 $RM conftest*
18089
18090fi
cristy8b350f62009-11-15 23:12:43 +000018091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018092$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18093
18094
18095
18096
18097hard_links="nottested"
18098if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18099 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000018100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000018101$as_echo_n "checking if we can lock with hard links... " >&6; }
18102 hard_links=yes
18103 $RM conftest*
18104 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18105 touch conftest.a
18106 ln conftest.a conftest.b 2>&5 || hard_links=no
18107 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000018108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000018109$as_echo "$hard_links" >&6; }
18110 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000018111 { $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 +000018112$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18113 need_locks=warn
18114 fi
18115else
18116 need_locks=no
18117fi
18118
18119
18120
cristy8b350f62009-11-15 23:12:43 +000018121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000018122$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18123
18124 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18125 case $host_os in
18126 aix[4-9]*)
18127 # If we're using GNU nm, then we don't want the "-C" option.
18128 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18129 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristyb7c7b8e2010-06-22 14:22:40 +000018130 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 +000018131 else
18132 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'
18133 fi
18134 ;;
18135 pw32*)
18136 export_symbols_cmds_CXX="$ltdll_cmds"
18137 ;;
18138 cygwin* | mingw* | cegcc*)
18139 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'
18140 ;;
18141 *)
18142 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18143 ;;
18144 esac
18145 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18146
cristy8b350f62009-11-15 23:12:43 +000018147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018148$as_echo "$ld_shlibs_CXX" >&6; }
18149test "$ld_shlibs_CXX" = no && can_build_shared=no
18150
18151with_gnu_ld_CXX=$with_gnu_ld
18152
18153
18154
18155
18156
18157
18158#
18159# Do we need to explicitly link libc?
18160#
18161case "x$archive_cmds_need_lc_CXX" in
18162x|xyes)
18163 # Assume -lc should be added
18164 archive_cmds_need_lc_CXX=yes
18165
18166 if test "$enable_shared" = yes && test "$GCC" = yes; then
18167 case $archive_cmds_CXX in
18168 *'~'*)
18169 # FIXME: we may have to deal with multi-command sequences.
18170 ;;
18171 '$CC '*)
18172 # Test whether the compiler implicitly links with -lc since on some
18173 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18174 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000018175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000018176$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyb7c7b8e2010-06-22 14:22:40 +000018177 $RM conftest*
18178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018179
cristyb7c7b8e2010-06-22 14:22:40 +000018180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018181 (eval $ac_compile) 2>&5
18182 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18184 test $ac_status = 0; } 2>conftest.err; then
cristyb7c7b8e2010-06-22 14:22:40 +000018185 soname=conftest
18186 lib=conftest
18187 libobjs=conftest.$ac_objext
18188 deplibs=
18189 wl=$lt_prog_compiler_wl_CXX
18190 pic_flag=$lt_prog_compiler_pic_CXX
18191 compiler_flags=-v
18192 linker_flags=-v
18193 verstring=
18194 output_objdir=.
18195 libname=conftest
18196 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18197 allow_undefined_flag_CXX=
18198 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 +000018199 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18200 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18202 test $ac_status = 0; }
cristyb7c7b8e2010-06-22 14:22:40 +000018203 then
18204 archive_cmds_need_lc_CXX=no
18205 else
18206 archive_cmds_need_lc_CXX=yes
18207 fi
18208 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18209 else
18210 cat conftest.err 1>&5
18211 fi
18212 $RM conftest*
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
18214$as_echo "$archive_cmds_need_lc_CXX" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000018215 ;;
18216 esac
18217 fi
18218 ;;
18219esac
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
cristy8b350f62009-11-15 23:12:43 +000018284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000018285$as_echo_n "checking dynamic linker characteristics... " >&6; }
18286
18287library_names_spec=
18288libname_spec='lib$name'
18289soname_spec=
18290shrext_cmds=".so"
18291postinstall_cmds=
18292postuninstall_cmds=
18293finish_cmds=
18294finish_eval=
18295shlibpath_var=
18296shlibpath_overrides_runpath=unknown
18297version_type=none
18298dynamic_linker="$host_os ld.so"
18299sys_lib_dlsearch_path_spec="/lib /usr/lib"
18300need_lib_prefix=unknown
18301hardcode_into_libs=no
18302
18303# when you set need_version to no, make sure it does not cause -set_version
18304# flags to be left without arguments
18305need_version=unknown
18306
18307case $host_os in
18308aix3*)
18309 version_type=linux
18310 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18311 shlibpath_var=LIBPATH
18312
18313 # AIX 3 has no versioning support, so we append a major version to the name.
18314 soname_spec='${libname}${release}${shared_ext}$major'
18315 ;;
18316
18317aix[4-9]*)
18318 version_type=linux
18319 need_lib_prefix=no
18320 need_version=no
18321 hardcode_into_libs=yes
18322 if test "$host_cpu" = ia64; then
18323 # AIX 5 supports IA64
18324 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18325 shlibpath_var=LD_LIBRARY_PATH
18326 else
18327 # With GCC up to 2.95.x, collect2 would create an import file
18328 # for dependence libraries. The import file would start with
18329 # the line `#! .'. This would cause the generated library to
18330 # depend on `.', always an invalid library. This was fixed in
18331 # development snapshots of GCC prior to 3.0.
18332 case $host_os in
18333 aix4 | aix4.[01] | aix4.[01].*)
18334 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18335 echo ' yes '
18336 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18337 :
18338 else
18339 can_build_shared=no
18340 fi
18341 ;;
18342 esac
18343 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18344 # soname into executable. Probably we can add versioning support to
18345 # collect2, so additional links can be useful in future.
18346 if test "$aix_use_runtimelinking" = yes; then
18347 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18348 # instead of lib<name>.a to let people know that these are not
18349 # typical AIX shared libraries.
18350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18351 else
18352 # We preserve .a as extension for shared libraries through AIX4.2
18353 # and later when we are not doing run time linking.
18354 library_names_spec='${libname}${release}.a $libname.a'
18355 soname_spec='${libname}${release}${shared_ext}$major'
18356 fi
18357 shlibpath_var=LIBPATH
18358 fi
18359 ;;
18360
18361amigaos*)
18362 case $host_cpu in
18363 powerpc)
18364 # Since July 2007 AmigaOS4 officially supports .so libraries.
18365 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18367 ;;
18368 m68k)
18369 library_names_spec='$libname.ixlibrary $libname.a'
18370 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristyb7c7b8e2010-06-22 14:22:40 +000018371 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 +000018372 ;;
18373 esac
18374 ;;
18375
18376beos*)
18377 library_names_spec='${libname}${shared_ext}'
18378 dynamic_linker="$host_os ld.so"
18379 shlibpath_var=LIBRARY_PATH
18380 ;;
18381
18382bsdi[45]*)
18383 version_type=linux
18384 need_version=no
18385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18386 soname_spec='${libname}${release}${shared_ext}$major'
18387 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18388 shlibpath_var=LD_LIBRARY_PATH
18389 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18390 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18391 # the default ld.so.conf also contains /usr/contrib/lib and
18392 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18393 # libtool to hard-code these into programs
18394 ;;
18395
18396cygwin* | mingw* | pw32* | cegcc*)
18397 version_type=windows
18398 shrext_cmds=".dll"
18399 need_version=no
18400 need_lib_prefix=no
18401
18402 case $GCC,$host_os in
18403 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18404 library_names_spec='$libname.dll.a'
18405 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18406 postinstall_cmds='base_file=`basename \${file}`~
18407 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18408 dldir=$destdir/`dirname \$dlpath`~
18409 test -d \$dldir || mkdir -p \$dldir~
18410 $install_prog $dir/$dlname \$dldir/$dlname~
18411 chmod a+x \$dldir/$dlname~
18412 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18413 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18414 fi'
18415 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18416 dlpath=$dir/\$dldll~
18417 $RM \$dlpath'
18418 shlibpath_overrides_runpath=yes
18419
18420 case $host_os in
18421 cygwin*)
18422 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18423 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristyb7c7b8e2010-06-22 14:22:40 +000018424 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000018425 ;;
18426 mingw* | cegcc*)
18427 # MinGW DLLs use traditional 'lib' prefix
18428 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristyb7c7b8e2010-06-22 14:22:40 +000018429 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18430 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18431 # It is most probably a Windows format PATH printed by
18432 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18433 # path with ; separators, and with drive letters. We can handle the
18434 # drive letters (cygwin fileutils understands them), so leave them,
18435 # especially as we might pass files found there to a mingw objdump,
18436 # which wouldn't understand a cygwinified path. Ahh.
18437 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18438 else
18439 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18440 fi
cristy3ed852e2009-09-05 21:47:34 +000018441 ;;
18442 pw32*)
18443 # pw32 DLLs use 'pw' prefix rather than 'lib'
18444 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18445 ;;
18446 esac
18447 ;;
18448
18449 *)
18450 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18451 ;;
18452 esac
18453 dynamic_linker='Win32 ld.exe'
18454 # FIXME: first we should search . and the directory the executable is in
18455 shlibpath_var=PATH
18456 ;;
18457
18458darwin* | rhapsody*)
18459 dynamic_linker="$host_os dyld"
18460 version_type=darwin
18461 need_lib_prefix=no
18462 need_version=no
18463 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18464 soname_spec='${libname}${release}${major}$shared_ext'
18465 shlibpath_overrides_runpath=yes
18466 shlibpath_var=DYLD_LIBRARY_PATH
18467 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18468
18469 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18470 ;;
18471
18472dgux*)
18473 version_type=linux
18474 need_lib_prefix=no
18475 need_version=no
18476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18477 soname_spec='${libname}${release}${shared_ext}$major'
18478 shlibpath_var=LD_LIBRARY_PATH
18479 ;;
18480
18481freebsd1*)
18482 dynamic_linker=no
18483 ;;
18484
18485freebsd* | dragonfly*)
18486 # DragonFly does not have aout. When/if they implement a new
18487 # versioning mechanism, adjust this.
18488 if test -x /usr/bin/objformat; then
18489 objformat=`/usr/bin/objformat`
18490 else
18491 case $host_os in
18492 freebsd[123]*) objformat=aout ;;
18493 *) objformat=elf ;;
18494 esac
18495 fi
18496 version_type=freebsd-$objformat
18497 case $version_type in
18498 freebsd-elf*)
18499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18500 need_version=no
18501 need_lib_prefix=no
18502 ;;
18503 freebsd-*)
18504 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18505 need_version=yes
18506 ;;
18507 esac
18508 shlibpath_var=LD_LIBRARY_PATH
18509 case $host_os in
18510 freebsd2*)
18511 shlibpath_overrides_runpath=yes
18512 ;;
18513 freebsd3.[01]* | freebsdelf3.[01]*)
18514 shlibpath_overrides_runpath=yes
18515 hardcode_into_libs=yes
18516 ;;
18517 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18518 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18519 shlibpath_overrides_runpath=no
18520 hardcode_into_libs=yes
18521 ;;
18522 *) # from 4.6 on, and DragonFly
18523 shlibpath_overrides_runpath=yes
18524 hardcode_into_libs=yes
18525 ;;
18526 esac
18527 ;;
18528
18529gnu*)
18530 version_type=linux
18531 need_lib_prefix=no
18532 need_version=no
18533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18534 soname_spec='${libname}${release}${shared_ext}$major'
18535 shlibpath_var=LD_LIBRARY_PATH
18536 hardcode_into_libs=yes
18537 ;;
18538
18539hpux9* | hpux10* | hpux11*)
18540 # Give a soname corresponding to the major version so that dld.sl refuses to
18541 # link against other versions.
18542 version_type=sunos
18543 need_lib_prefix=no
18544 need_version=no
18545 case $host_cpu in
18546 ia64*)
18547 shrext_cmds='.so'
18548 hardcode_into_libs=yes
18549 dynamic_linker="$host_os dld.so"
18550 shlibpath_var=LD_LIBRARY_PATH
18551 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18553 soname_spec='${libname}${release}${shared_ext}$major'
18554 if test "X$HPUX_IA64_MODE" = X32; then
18555 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18556 else
18557 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18558 fi
18559 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18560 ;;
18561 hppa*64*)
18562 shrext_cmds='.sl'
18563 hardcode_into_libs=yes
18564 dynamic_linker="$host_os dld.sl"
18565 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18566 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18568 soname_spec='${libname}${release}${shared_ext}$major'
18569 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18570 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18571 ;;
18572 *)
18573 shrext_cmds='.sl'
18574 dynamic_linker="$host_os dld.sl"
18575 shlibpath_var=SHLIB_PATH
18576 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18578 soname_spec='${libname}${release}${shared_ext}$major'
18579 ;;
18580 esac
cristyb7c7b8e2010-06-22 14:22:40 +000018581 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000018582 postinstall_cmds='chmod 555 $lib'
18583 ;;
18584
18585interix[3-9]*)
18586 version_type=linux
18587 need_lib_prefix=no
18588 need_version=no
18589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18590 soname_spec='${libname}${release}${shared_ext}$major'
18591 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18592 shlibpath_var=LD_LIBRARY_PATH
18593 shlibpath_overrides_runpath=no
18594 hardcode_into_libs=yes
18595 ;;
18596
18597irix5* | irix6* | nonstopux*)
18598 case $host_os in
18599 nonstopux*) version_type=nonstopux ;;
18600 *)
18601 if test "$lt_cv_prog_gnu_ld" = yes; then
18602 version_type=linux
18603 else
18604 version_type=irix
18605 fi ;;
18606 esac
18607 need_lib_prefix=no
18608 need_version=no
18609 soname_spec='${libname}${release}${shared_ext}$major'
18610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18611 case $host_os in
18612 irix5* | nonstopux*)
18613 libsuff= shlibsuff=
18614 ;;
18615 *)
18616 case $LD in # libtool.m4 will add one of these switches to LD
18617 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18618 libsuff= shlibsuff= libmagic=32-bit;;
18619 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18620 libsuff=32 shlibsuff=N32 libmagic=N32;;
18621 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18622 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18623 *) libsuff= shlibsuff= libmagic=never-match;;
18624 esac
18625 ;;
18626 esac
18627 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18628 shlibpath_overrides_runpath=no
18629 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18630 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18631 hardcode_into_libs=yes
18632 ;;
18633
18634# No shared lib support for Linux oldld, aout, or coff.
18635linux*oldld* | linux*aout* | linux*coff*)
18636 dynamic_linker=no
18637 ;;
18638
18639# This must be Linux ELF.
cristyb7c7b8e2010-06-22 14:22:40 +000018640linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018641 version_type=linux
18642 need_lib_prefix=no
18643 need_version=no
18644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18645 soname_spec='${libname}${release}${shared_ext}$major'
18646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18647 shlibpath_var=LD_LIBRARY_PATH
18648 shlibpath_overrides_runpath=no
18649 # Some binutils ld are patched to set DT_RUNPATH
cristyb7c7b8e2010-06-22 14:22:40 +000018650 save_LDFLAGS=$LDFLAGS
18651 save_libdir=$libdir
18652 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18653 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018655/* end confdefs.h. */
18656
18657int
18658main ()
18659{
18660
18661 ;
18662 return 0;
18663}
18664_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018665if ac_fn_cxx_try_link "$LINENO"; then :
18666 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristyb7c7b8e2010-06-22 14:22:40 +000018667 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000018668fi
cristy3ed852e2009-09-05 21:47:34 +000018669fi
cristy8b350f62009-11-15 23:12:43 +000018670rm -f core conftest.err conftest.$ac_objext \
18671 conftest$ac_exeext conftest.$ac_ext
cristyb7c7b8e2010-06-22 14:22:40 +000018672 LDFLAGS=$save_LDFLAGS
18673 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000018674
18675 # This implies no fast_install, which is unacceptable.
18676 # Some rework will be needed to allow for fast_install
18677 # before this can be enabled.
18678 hardcode_into_libs=yes
18679
cristy679ed8e2009-12-05 02:37:41 +000018680 # Add ABI-specific directories to the system library path.
18681 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18682
cristy3ed852e2009-09-05 21:47:34 +000018683 # Append ld.so.conf contents to the search path
18684 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000018685 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 +000018686 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000018687 fi
18688
18689 # We used to test for /lib/ld.so.1 and disable shared libraries on
18690 # powerpc, because MkLinux only supported shared libraries with the
18691 # GNU dynamic linker. Since this was broken with cross compilers,
18692 # most powerpc-linux boxes support dynamic linking these days and
18693 # people can always --disable-shared, the test was removed, and we
18694 # assume the GNU/Linux dynamic linker is in use.
18695 dynamic_linker='GNU/Linux ld.so'
18696 ;;
18697
18698netbsd*)
18699 version_type=sunos
18700 need_lib_prefix=no
18701 need_version=no
18702 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18705 dynamic_linker='NetBSD (a.out) ld.so'
18706 else
18707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18708 soname_spec='${libname}${release}${shared_ext}$major'
18709 dynamic_linker='NetBSD ld.elf_so'
18710 fi
18711 shlibpath_var=LD_LIBRARY_PATH
18712 shlibpath_overrides_runpath=yes
18713 hardcode_into_libs=yes
18714 ;;
18715
18716newsos6)
18717 version_type=linux
18718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18719 shlibpath_var=LD_LIBRARY_PATH
18720 shlibpath_overrides_runpath=yes
18721 ;;
18722
18723*nto* | *qnx*)
18724 version_type=qnx
18725 need_lib_prefix=no
18726 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
18730 shlibpath_overrides_runpath=no
18731 hardcode_into_libs=yes
18732 dynamic_linker='ldqnx.so'
18733 ;;
18734
18735openbsd*)
18736 version_type=sunos
18737 sys_lib_dlsearch_path_spec="/usr/lib"
18738 need_lib_prefix=no
18739 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18740 case $host_os in
18741 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18742 *) need_version=no ;;
18743 esac
18744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18746 shlibpath_var=LD_LIBRARY_PATH
18747 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18748 case $host_os in
18749 openbsd2.[89] | openbsd2.[89].*)
18750 shlibpath_overrides_runpath=no
18751 ;;
18752 *)
18753 shlibpath_overrides_runpath=yes
18754 ;;
18755 esac
18756 else
18757 shlibpath_overrides_runpath=yes
18758 fi
18759 ;;
18760
18761os2*)
18762 libname_spec='$name'
18763 shrext_cmds=".dll"
18764 need_lib_prefix=no
18765 library_names_spec='$libname${shared_ext} $libname.a'
18766 dynamic_linker='OS/2 ld.exe'
18767 shlibpath_var=LIBPATH
18768 ;;
18769
18770osf3* | osf4* | osf5*)
18771 version_type=osf
18772 need_lib_prefix=no
18773 need_version=no
18774 soname_spec='${libname}${release}${shared_ext}$major'
18775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18776 shlibpath_var=LD_LIBRARY_PATH
18777 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18778 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18779 ;;
18780
18781rdos*)
18782 dynamic_linker=no
18783 ;;
18784
18785solaris*)
18786 version_type=linux
18787 need_lib_prefix=no
18788 need_version=no
18789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18790 soname_spec='${libname}${release}${shared_ext}$major'
18791 shlibpath_var=LD_LIBRARY_PATH
18792 shlibpath_overrides_runpath=yes
18793 hardcode_into_libs=yes
18794 # ldd complains unless libraries are executable
18795 postinstall_cmds='chmod +x $lib'
18796 ;;
18797
18798sunos4*)
18799 version_type=sunos
18800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18801 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18802 shlibpath_var=LD_LIBRARY_PATH
18803 shlibpath_overrides_runpath=yes
18804 if test "$with_gnu_ld" = yes; then
18805 need_lib_prefix=no
18806 fi
18807 need_version=yes
18808 ;;
18809
18810sysv4 | sysv4.3*)
18811 version_type=linux
18812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18813 soname_spec='${libname}${release}${shared_ext}$major'
18814 shlibpath_var=LD_LIBRARY_PATH
18815 case $host_vendor in
18816 sni)
18817 shlibpath_overrides_runpath=no
18818 need_lib_prefix=no
18819 runpath_var=LD_RUN_PATH
18820 ;;
18821 siemens)
18822 need_lib_prefix=no
18823 ;;
18824 motorola)
18825 need_lib_prefix=no
18826 need_version=no
18827 shlibpath_overrides_runpath=no
18828 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18829 ;;
18830 esac
18831 ;;
18832
18833sysv4*MP*)
18834 if test -d /usr/nec ;then
18835 version_type=linux
18836 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18837 soname_spec='$libname${shared_ext}.$major'
18838 shlibpath_var=LD_LIBRARY_PATH
18839 fi
18840 ;;
18841
18842sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18843 version_type=freebsd-elf
18844 need_lib_prefix=no
18845 need_version=no
18846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18847 soname_spec='${libname}${release}${shared_ext}$major'
18848 shlibpath_var=LD_LIBRARY_PATH
18849 shlibpath_overrides_runpath=yes
18850 hardcode_into_libs=yes
18851 if test "$with_gnu_ld" = yes; then
18852 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18853 else
18854 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18855 case $host_os in
18856 sco3.2v5*)
18857 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18858 ;;
18859 esac
18860 fi
18861 sys_lib_dlsearch_path_spec='/usr/lib'
18862 ;;
18863
18864tpf*)
18865 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18866 version_type=linux
18867 need_lib_prefix=no
18868 need_version=no
18869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18870 shlibpath_var=LD_LIBRARY_PATH
18871 shlibpath_overrides_runpath=no
18872 hardcode_into_libs=yes
18873 ;;
18874
18875uts4*)
18876 version_type=linux
18877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18878 soname_spec='${libname}${release}${shared_ext}$major'
18879 shlibpath_var=LD_LIBRARY_PATH
18880 ;;
18881
18882*)
18883 dynamic_linker=no
18884 ;;
18885esac
cristy8b350f62009-11-15 23:12:43 +000018886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000018887$as_echo "$dynamic_linker" >&6; }
18888test "$dynamic_linker" = no && can_build_shared=no
18889
18890variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18891if test "$GCC" = yes; then
18892 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18893fi
18894
18895if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18896 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18897fi
18898if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18899 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18900fi
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
cristy8b350f62009-11-15 23:12:43 +000018937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018938$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18939hardcode_action_CXX=
18940if test -n "$hardcode_libdir_flag_spec_CXX" ||
18941 test -n "$runpath_var_CXX" ||
18942 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18943
18944 # We can hardcode non-existent directories.
18945 if test "$hardcode_direct_CXX" != no &&
18946 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18947 # have to relink, otherwise we might link with an installed library
18948 # when we should be linking with a yet-to-be-installed one
18949 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18950 test "$hardcode_minus_L_CXX" != no; then
18951 # Linking always hardcodes the temporary library directory.
18952 hardcode_action_CXX=relink
18953 else
18954 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18955 hardcode_action_CXX=immediate
18956 fi
18957else
18958 # We cannot hardcode anything, or else we can only hardcode existing
18959 # directories.
18960 hardcode_action_CXX=unsupported
18961fi
cristy8b350f62009-11-15 23:12:43 +000018962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018963$as_echo "$hardcode_action_CXX" >&6; }
18964
18965if test "$hardcode_action_CXX" = relink ||
18966 test "$inherit_rpath_CXX" = yes; then
18967 # Fast installation is not supported
18968 enable_fast_install=no
18969elif test "$shlibpath_overrides_runpath" = yes ||
18970 test "$enable_shared" = no; then
18971 # Fast installation is not necessary
18972 enable_fast_install=needless
18973fi
18974
18975
18976
18977
18978
18979
18980
18981 fi # test -n "$compiler"
18982
18983 CC=$lt_save_CC
18984 LDCXX=$LD
18985 LD=$lt_save_LD
18986 GCC=$lt_save_GCC
18987 with_gnu_ld=$lt_save_with_gnu_ld
18988 lt_cv_path_LDCXX=$lt_cv_path_LD
18989 lt_cv_path_LD=$lt_save_path_LD
18990 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18991 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18992fi # test "$_lt_caught_CXX_error" != yes
18993
18994ac_ext=c
18995ac_cpp='$CPP $CPPFLAGS'
18996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18998ac_compiler_gnu=$ac_cv_c_compiler_gnu
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012 ac_config_commands="$ac_config_commands libtool"
19013
19014
19015
19016
19017# Only expand once:
19018
19019
19020
19021
19022
19023# Configure libltdl
19024
19025
19026
19027
19028
19029
19030
cristyb7c7b8e2010-06-22 14:22:40 +000019031
cristy8b350f62009-11-15 23:12:43 +000019032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000019033$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019034if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019035 $as_echo_n "(cached) " >&6
19036else
19037
19038module=yes
19039eval libltdl_cv_shlibext=$shrext_cmds
19040
19041fi
cristy8b350f62009-11-15 23:12:43 +000019042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000019043$as_echo "$libltdl_cv_shlibext" >&6; }
19044if test -n "$libltdl_cv_shlibext"; then
19045
19046cat >>confdefs.h <<_ACEOF
19047#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19048_ACEOF
19049
19050fi
19051
cristy8b350f62009-11-15 23:12:43 +000019052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000019053$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019054if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019055 $as_echo_n "(cached) " >&6
19056else
19057 lt_cv_module_path_var="$shlibpath_var"
19058fi
cristy8b350f62009-11-15 23:12:43 +000019059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000019060$as_echo "$lt_cv_module_path_var" >&6; }
19061if test -n "$lt_cv_module_path_var"; then
19062
19063cat >>confdefs.h <<_ACEOF
19064#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19065_ACEOF
19066
19067fi
19068
cristy8b350f62009-11-15 23:12:43 +000019069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000019070$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019071if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019072 $as_echo_n "(cached) " >&6
19073else
19074 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19075fi
cristy8b350f62009-11-15 23:12:43 +000019076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000019077$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19078if test -n "$lt_cv_sys_dlsearch_path"; then
19079 sys_dlsearch_path=
19080 for dir in $lt_cv_sys_dlsearch_path; do
19081 if test -z "$sys_dlsearch_path"; then
19082 sys_dlsearch_path="$dir"
19083 else
19084 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19085 fi
19086 done
19087
19088cat >>confdefs.h <<_ACEOF
19089#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19090_ACEOF
19091
19092fi
19093
19094
19095LT_DLLOADERS=
19096
19097
19098ac_ext=c
19099ac_cpp='$CPP $CPPFLAGS'
19100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19102ac_compiler_gnu=$ac_cv_c_compiler_gnu
19103
19104
19105LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000019106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019107$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019108if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019109 $as_echo_n "(cached) " >&6
19110else
19111 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019113/* end confdefs.h. */
19114
19115/* Override any GCC internal prototype to avoid an error.
19116 Use char because int might match the return type of a GCC
19117 builtin and then its argument prototype would still apply. */
19118#ifdef __cplusplus
19119extern "C"
19120#endif
19121char dlopen ();
19122int
19123main ()
19124{
19125return dlopen ();
19126 ;
19127 return 0;
19128}
19129_ACEOF
19130for ac_lib in '' dl; do
19131 if test -z "$ac_lib"; then
19132 ac_res="none required"
19133 else
19134 ac_res=-l$ac_lib
19135 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19136 fi
cristy8b350f62009-11-15 23:12:43 +000019137 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019138 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019139fi
cristy8b350f62009-11-15 23:12:43 +000019140rm -f core conftest.err conftest.$ac_objext \
19141 conftest$ac_exeext
19142 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019143 break
19144fi
19145done
cristy8b350f62009-11-15 23:12:43 +000019146if test "${ac_cv_search_dlopen+set}" = set; then :
19147
cristy3ed852e2009-09-05 21:47:34 +000019148else
19149 ac_cv_search_dlopen=no
19150fi
19151rm conftest.$ac_ext
19152LIBS=$ac_func_search_save_LIBS
19153fi
cristy8b350f62009-11-15 23:12:43 +000019154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019155$as_echo "$ac_cv_search_dlopen" >&6; }
19156ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000019157if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019158 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19159
cristy8b350f62009-11-15 23:12:43 +000019160$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019161
19162 if test "$ac_cv_search_dlopen" != "none required" ; then
19163 LIBADD_DLOPEN="-ldl"
19164 fi
19165 libltdl_cv_lib_dl_dlopen="yes"
19166 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19167else
cristy8b350f62009-11-15 23:12:43 +000019168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019169/* end confdefs.h. */
19170#if HAVE_DLFCN_H
19171# include <dlfcn.h>
19172#endif
19173
19174int
19175main ()
19176{
19177dlopen(0, 0);
19178 ;
19179 return 0;
19180}
19181_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019182if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019183
cristy8b350f62009-11-15 23:12:43 +000019184$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019185
19186 libltdl_cv_func_dlopen="yes"
19187 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19188else
cristy8b350f62009-11-15 23:12:43 +000019189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019190$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019191if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019192 $as_echo_n "(cached) " >&6
19193else
19194 ac_check_lib_save_LIBS=$LIBS
19195LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019197/* end confdefs.h. */
19198
19199/* Override any GCC internal prototype to avoid an error.
19200 Use char because int might match the return type of a GCC
19201 builtin and then its argument prototype would still apply. */
19202#ifdef __cplusplus
19203extern "C"
19204#endif
19205char dlopen ();
19206int
19207main ()
19208{
19209return dlopen ();
19210 ;
19211 return 0;
19212}
19213_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019214if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019215 ac_cv_lib_svld_dlopen=yes
19216else
cristy8b350f62009-11-15 23:12:43 +000019217 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000019218fi
cristy8b350f62009-11-15 23:12:43 +000019219rm -f core conftest.err conftest.$ac_objext \
19220 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019221LIBS=$ac_check_lib_save_LIBS
19222fi
cristy8b350f62009-11-15 23:12:43 +000019223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019224$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019225if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019226
cristy8b350f62009-11-15 23:12:43 +000019227$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019228
19229 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19230 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19231fi
19232
19233fi
cristy8b350f62009-11-15 23:12:43 +000019234rm -f core conftest.err conftest.$ac_objext \
19235 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019236fi
19237
19238if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19239then
19240 lt_save_LIBS="$LIBS"
19241 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000019242 for ac_func in dlerror
19243do :
19244 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19245if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019246 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019247#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000019248_ACEOF
19249
19250fi
19251done
19252
19253 LIBS="$lt_save_LIBS"
19254fi
19255
19256
19257LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000019258ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19259if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019260
cristy8b350f62009-11-15 23:12:43 +000019261$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019262
19263 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19264else
cristy8b350f62009-11-15 23:12:43 +000019265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019266$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019267if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019268 $as_echo_n "(cached) " >&6
19269else
19270 ac_check_lib_save_LIBS=$LIBS
19271LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019273/* end confdefs.h. */
19274
19275/* Override any GCC internal prototype to avoid an error.
19276 Use char because int might match the return type of a GCC
19277 builtin and then its argument prototype would still apply. */
19278#ifdef __cplusplus
19279extern "C"
19280#endif
19281char shl_load ();
19282int
19283main ()
19284{
19285return shl_load ();
19286 ;
19287 return 0;
19288}
19289_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019290if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019291 ac_cv_lib_dld_shl_load=yes
19292else
cristy8b350f62009-11-15 23:12:43 +000019293 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000019294fi
cristy8b350f62009-11-15 23:12:43 +000019295rm -f core conftest.err conftest.$ac_objext \
19296 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019297LIBS=$ac_check_lib_save_LIBS
19298fi
cristy8b350f62009-11-15 23:12:43 +000019299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000019300$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019301if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019302
cristy8b350f62009-11-15 23:12:43 +000019303$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019304
19305 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19306 LIBADD_SHL_LOAD="-ldld"
19307fi
19308
19309fi
19310
19311
19312
19313case $host_os in
19314darwin[1567].*)
19315# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000019316 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19317if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019318
cristy8b350f62009-11-15 23:12:43 +000019319$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019320
19321 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19322fi
19323
19324 ;;
19325beos*)
19326 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19327 ;;
19328cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000019329 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19330"
19331if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19332 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000019333else
cristy8b350f62009-11-15 23:12:43 +000019334 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000019335fi
19336
cristy3ed852e2009-09-05 21:47:34 +000019337cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019338#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000019339_ACEOF
19340
cristy3ed852e2009-09-05 21:47:34 +000019341 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19342 ;;
19343esac
19344
cristy8b350f62009-11-15 23:12:43 +000019345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019346$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019347if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019348 $as_echo_n "(cached) " >&6
19349else
19350 ac_check_lib_save_LIBS=$LIBS
19351LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019353/* end confdefs.h. */
19354
19355/* Override any GCC internal prototype to avoid an error.
19356 Use char because int might match the return type of a GCC
19357 builtin and then its argument prototype would still apply. */
19358#ifdef __cplusplus
19359extern "C"
19360#endif
19361char dld_link ();
19362int
19363main ()
19364{
19365return dld_link ();
19366 ;
19367 return 0;
19368}
19369_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019370if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019371 ac_cv_lib_dld_dld_link=yes
19372else
cristy8b350f62009-11-15 23:12:43 +000019373 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000019374fi
cristy8b350f62009-11-15 23:12:43 +000019375rm -f core conftest.err conftest.$ac_objext \
19376 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019377LIBS=$ac_check_lib_save_LIBS
19378fi
cristy8b350f62009-11-15 23:12:43 +000019379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000019380$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019381if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019382
cristy8b350f62009-11-15 23:12:43 +000019383$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019384
19385 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19386fi
19387
19388
19389
19390
19391LT_DLPREOPEN=
19392if test -n "$LT_DLLOADERS"
19393then
19394 for lt_loader in $LT_DLLOADERS; do
19395 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19396 done
19397
cristy8b350f62009-11-15 23:12:43 +000019398$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019399
19400fi
19401
19402
19403LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19404
19405
19406ac_ext=c
19407ac_cpp='$CPP $CPPFLAGS'
19408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19410ac_compiler_gnu=$ac_cv_c_compiler_gnu
19411
19412
cristy8b350f62009-11-15 23:12:43 +000019413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019414$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019415if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019416 $as_echo_n "(cached) " >&6
19417else
19418 lt_cv_sys_symbol_underscore=no
19419 cat > conftest.$ac_ext <<_LT_EOF
19420void nm_test_func(){}
19421int main(){nm_test_func;return 0;}
19422_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019424 (eval $ac_compile) 2>&5
19425 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19427 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000019428 # Now try to grab the symbols.
19429 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000019430 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 +000019431 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19432 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19434 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000019435 # See whether the symbols have a leading underscore.
19436 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19437 lt_cv_sys_symbol_underscore=yes
19438 else
19439 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19440 :
19441 else
19442 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19443 fi
19444 fi
19445 else
19446 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19447 fi
19448 else
19449 echo "configure: failed program was:" >&5
19450 cat conftest.c >&5
19451 fi
19452 rm -rf conftest*
19453
19454fi
cristy8b350f62009-11-15 23:12:43 +000019455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019456$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19457 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19458
19459
19460if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19461 if test x"$libltdl_cv_func_dlopen" = xyes ||
19462 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000019463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000019464$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019465if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019466 $as_echo_n "(cached) " >&6
19467else
19468 libltdl_cv_need_uscore=unknown
19469 save_LIBS="$LIBS"
19470 LIBS="$LIBS $LIBADD_DLOPEN"
19471 if test "$cross_compiling" = yes; then :
19472 libltdl_cv_need_uscore=cross
19473else
19474 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19475 lt_status=$lt_dlunknown
19476 cat > conftest.$ac_ext <<_LT_EOF
cristyb7c7b8e2010-06-22 14:22:40 +000019477#line 19477 "configure"
cristy3ed852e2009-09-05 21:47:34 +000019478#include "confdefs.h"
19479
19480#if HAVE_DLFCN_H
19481#include <dlfcn.h>
19482#endif
19483
19484#include <stdio.h>
19485
19486#ifdef RTLD_GLOBAL
19487# define LT_DLGLOBAL RTLD_GLOBAL
19488#else
19489# ifdef DL_GLOBAL
19490# define LT_DLGLOBAL DL_GLOBAL
19491# else
19492# define LT_DLGLOBAL 0
19493# endif
19494#endif
19495
19496/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19497 find out it does not work in some platform. */
19498#ifndef LT_DLLAZY_OR_NOW
19499# ifdef RTLD_LAZY
19500# define LT_DLLAZY_OR_NOW RTLD_LAZY
19501# else
19502# ifdef DL_LAZY
19503# define LT_DLLAZY_OR_NOW DL_LAZY
19504# else
19505# ifdef RTLD_NOW
19506# define LT_DLLAZY_OR_NOW RTLD_NOW
19507# else
19508# ifdef DL_NOW
19509# define LT_DLLAZY_OR_NOW DL_NOW
19510# else
19511# define LT_DLLAZY_OR_NOW 0
19512# endif
19513# endif
19514# endif
19515# endif
19516#endif
19517
cristyb7c7b8e2010-06-22 14:22:40 +000019518void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000019519int main ()
19520{
19521 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19522 int status = $lt_dlunknown;
19523
19524 if (self)
19525 {
19526 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyb7c7b8e2010-06-22 14:22:40 +000019527 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000019528 /* dlclose (self); */
19529 }
19530 else
19531 puts (dlerror ());
19532
19533 return status;
19534}
19535_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019537 (eval $ac_link) 2>&5
19538 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19540 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000019541 (./conftest; exit; ) >&5 2>/dev/null
19542 lt_status=$?
19543 case x$lt_status in
19544 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19545 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19546 x$lt_dlunknown|x*) ;;
19547 esac
19548 else :
19549 # compilation failed
19550
19551 fi
19552fi
19553rm -fr conftest*
19554
19555 LIBS="$save_LIBS"
19556
19557fi
cristy8b350f62009-11-15 23:12:43 +000019558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019559$as_echo "$libltdl_cv_need_uscore" >&6; }
19560 fi
19561fi
19562
19563if test x"$libltdl_cv_need_uscore" = xyes; then
19564
cristy8b350f62009-11-15 23:12:43 +000019565$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019566
19567fi
19568
cristy8b350f62009-11-15 23:12:43 +000019569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019570$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019571if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019572 $as_echo_n "(cached) " >&6
19573else
19574 # PORTME does your system automatically load deplibs for dlopen?
19575 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19576 # For now, we just catch OSes we know something about -- in the
19577 # future, we'll try test this programmatically.
19578 lt_cv_sys_dlopen_deplibs=unknown
19579 case $host_os in
19580 aix3*|aix4.1.*|aix4.2.*)
19581 # Unknown whether this is true for these versions of AIX, but
19582 # we want this `case' here to explicitly catch those versions.
19583 lt_cv_sys_dlopen_deplibs=unknown
19584 ;;
19585 aix[4-9]*)
19586 lt_cv_sys_dlopen_deplibs=yes
19587 ;;
19588 amigaos*)
19589 case $host_cpu in
19590 powerpc)
19591 lt_cv_sys_dlopen_deplibs=no
19592 ;;
19593 esac
19594 ;;
19595 darwin*)
19596 # Assuming the user has installed a libdl from somewhere, this is true
19597 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19598 lt_cv_sys_dlopen_deplibs=yes
19599 ;;
19600 freebsd* | dragonfly*)
19601 lt_cv_sys_dlopen_deplibs=yes
19602 ;;
cristy18304f92009-11-22 15:48:26 +000019603 gnu* | linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000019604 # GNU and its variants, using gnu ld.so (Glibc)
19605 lt_cv_sys_dlopen_deplibs=yes
19606 ;;
19607 hpux10*|hpux11*)
19608 lt_cv_sys_dlopen_deplibs=yes
19609 ;;
19610 interix*)
19611 lt_cv_sys_dlopen_deplibs=yes
19612 ;;
19613 irix[12345]*|irix6.[01]*)
19614 # Catch all versions of IRIX before 6.2, and indicate that we don't
19615 # know how it worked for any of those versions.
19616 lt_cv_sys_dlopen_deplibs=unknown
19617 ;;
19618 irix*)
19619 # The case above catches anything before 6.2, and it's known that
19620 # at 6.2 and later dlopen does load deplibs.
19621 lt_cv_sys_dlopen_deplibs=yes
19622 ;;
19623 netbsd*)
19624 lt_cv_sys_dlopen_deplibs=yes
19625 ;;
19626 openbsd*)
19627 lt_cv_sys_dlopen_deplibs=yes
19628 ;;
19629 osf[1234]*)
19630 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19631 # it did *not* use an RPATH in a shared library to find objects the
19632 # library depends on, so we explicitly say `no'.
19633 lt_cv_sys_dlopen_deplibs=no
19634 ;;
19635 osf5.0|osf5.0a|osf5.1)
19636 # dlopen *does* load deplibs and with the right loader patch applied
19637 # it even uses RPATH in a shared library to search for shared objects
19638 # that the library depends on, but there's no easy way to know if that
19639 # patch is installed. Since this is the case, all we can really
19640 # say is unknown -- it depends on the patch being installed. If
19641 # it is, this changes to `yes'. Without it, it would be `no'.
19642 lt_cv_sys_dlopen_deplibs=unknown
19643 ;;
19644 osf*)
19645 # the two cases above should catch all versions of osf <= 5.1. Read
19646 # the comments above for what we know about them.
19647 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19648 # is used to find them so we can finally say `yes'.
19649 lt_cv_sys_dlopen_deplibs=yes
19650 ;;
19651 qnx*)
19652 lt_cv_sys_dlopen_deplibs=yes
19653 ;;
19654 solaris*)
19655 lt_cv_sys_dlopen_deplibs=yes
19656 ;;
19657 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19658 libltdl_cv_sys_dlopen_deplibs=yes
19659 ;;
19660 esac
19661
19662fi
cristy8b350f62009-11-15 23:12:43 +000019663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000019664$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19665if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19666
cristy8b350f62009-11-15 23:12:43 +000019667$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019668
19669fi
19670
19671:
19672
cristy3ed852e2009-09-05 21:47:34 +000019673for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000019674do :
19675 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19676"
19677if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019678 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019679#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000019680_ACEOF
19681
19682fi
19683
19684done
19685
19686
cristy8b350f62009-11-15 23:12:43 +000019687ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000019688# include <argz.h>
19689#endif
cristy8b350f62009-11-15 23:12:43 +000019690"
19691if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019692
19693cat >>confdefs.h <<_ACEOF
19694#define HAVE_ERROR_T 1
19695_ACEOF
19696
19697
19698else
19699
cristy8b350f62009-11-15 23:12:43 +000019700$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019701
19702
cristy8b350f62009-11-15 23:12:43 +000019703$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019704
19705fi
19706
19707
19708ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000019709for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19710 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000019711do :
19712 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19713ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19714eval as_val=\$$as_ac_var
19715 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019716 cat >>confdefs.h <<_ACEOF
19717#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19718_ACEOF
19719
19720else
19721 ARGZ_H=argz.h;
19722
19723 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19724
19725fi
19726done
19727
19728
cristy8b350f62009-11-15 23:12:43 +000019729if test -z "$ARGZ_H"; then :
19730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019731$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019732if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019733 $as_echo_n "(cached) " >&6
19734else
19735 case $host_os in #(
19736 *cygwin*)
19737 lt_cv_sys_argz_works=no
19738 if test "$cross_compiling" != no; then
19739 lt_cv_sys_argz_works="guessing no"
19740 else
19741 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19742 save_IFS=$IFS
19743 IFS=-.
19744 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19745 IFS=$save_IFS
19746 lt_os_major=${2-0}
19747 lt_os_minor=${3-0}
19748 lt_os_micro=${4-0}
19749 if test "$lt_os_major" -gt 1 \
19750 || { test "$lt_os_major" -eq 1 \
19751 && { test "$lt_os_minor" -gt 5 \
19752 || { test "$lt_os_minor" -eq 5 \
19753 && test "$lt_os_micro" -gt 24; }; }; }; then
19754 lt_cv_sys_argz_works=yes
19755 fi
19756 fi
19757 ;; #(
19758 *) lt_cv_sys_argz_works=yes ;;
19759 esac
19760fi
cristy8b350f62009-11-15 23:12:43 +000019761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019762$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019763 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019764
cristy8b350f62009-11-15 23:12:43 +000019765$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019766
19767else
19768 ARGZ_H=argz.h
19769
19770
19771 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19772
19773fi
cristy3ed852e2009-09-05 21:47:34 +000019774fi
19775
19776
19777
cristy8b350f62009-11-15 23:12:43 +000019778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019779$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019780if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019781 $as_echo_n "(cached) " >&6
19782else
19783 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19784 libltdl_cv_preloaded_symbols=yes
19785 else
19786 libltdl_cv_preloaded_symbols=no
19787 fi
19788
19789fi
cristy8b350f62009-11-15 23:12:43 +000019790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019791$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19792if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19793
cristy8b350f62009-11-15 23:12:43 +000019794$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019795
19796fi
19797
19798# Set options
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000019811if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019812 withval=$with_included_ltdl;
19813fi
19814
19815
19816if test "x$with_included_ltdl" != xyes; then
19817 # We are not being forced to use the included libltdl sources, so
19818 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000019819 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019820
cristy8b350f62009-11-15 23:12:43 +000019821"
19822if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19823 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 +000019824 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000019825"
19826if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000019828$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019829if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019830 $as_echo_n "(cached) " >&6
19831else
19832 ac_check_lib_save_LIBS=$LIBS
19833LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019835/* end confdefs.h. */
19836
19837/* Override any GCC internal prototype to avoid an error.
19838 Use char because int might match the return type of a GCC
19839 builtin and then its argument prototype would still apply. */
19840#ifdef __cplusplus
19841extern "C"
19842#endif
19843char lt_dladvise_preload ();
19844int
19845main ()
19846{
19847return lt_dladvise_preload ();
19848 ;
19849 return 0;
19850}
19851_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019852if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019853 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19854else
cristy8b350f62009-11-15 23:12:43 +000019855 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000019856fi
cristy8b350f62009-11-15 23:12:43 +000019857rm -f core conftest.err conftest.$ac_objext \
19858 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019859LIBS=$ac_check_lib_save_LIBS
19860fi
cristy8b350f62009-11-15 23:12:43 +000019861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000019862$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019863if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019864 with_included_ltdl=no
19865else
19866 with_included_ltdl=yes
19867fi
19868
19869else
19870 with_included_ltdl=yes
19871fi
19872
19873else
19874 with_included_ltdl=yes
19875fi
19876
19877
19878fi
19879
19880
19881
19882
19883# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000019884if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019885 withval=$with_ltdl_include;
19886fi
19887
19888
19889if test -n "$with_ltdl_include"; then
19890 if test -f "$with_ltdl_include/ltdl.h"; then :
19891 else
cristy8b350f62009-11-15 23:12:43 +000019892 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019893 fi
19894else
19895 with_ltdl_include=no
19896fi
19897
19898
19899# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000019900if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019901 withval=$with_ltdl_lib;
19902fi
19903
19904
19905if test -n "$with_ltdl_lib"; then
19906 if test -f "$with_ltdl_lib/libltdl.la"; then :
19907 else
cristy8b350f62009-11-15 23:12:43 +000019908 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019909 fi
19910else
19911 with_ltdl_lib=no
19912fi
19913
19914case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19915 ,yes,no,no,)
19916 case $enable_ltdl_convenience in
cristy8b350f62009-11-15 23:12:43 +000019917 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019918 "") enable_ltdl_convenience=yes
19919 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19920esac
19921LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19922LTDLDEPS=$LIBLTDL
19923LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19924
19925
19926
19927
19928
19929# For backwards non-gettext consistent compatibility...
19930INCLTDL="$LTDLINCL"
19931
19932
19933 ;;
19934 ,no,no,no,)
19935 # If the included ltdl is not to be used, then use the
19936 # preinstalled libltdl we found.
19937
cristy8b350f62009-11-15 23:12:43 +000019938$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019939
19940 LIBLTDL=-lltdl
19941 LTDLDEPS=
19942 LTDLINCL=
19943 ;;
19944 ,no*,no,*)
cristy8b350f62009-11-15 23:12:43 +000019945 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019946 ;;
19947 *) with_included_ltdl=no
19948 LIBLTDL="-L$with_ltdl_lib -lltdl"
19949 LTDLDEPS=
19950 LTDLINCL="-I$with_ltdl_include"
19951 ;;
19952esac
19953INCLTDL="$LTDLINCL"
19954
19955# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000019956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000019957$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019959$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000019961$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019963$as_echo "$LIBLTDL" >&6; }
19964
19965
19966
19967# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000019968if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019969 enableval=$enable_ltdl_install;
19970fi
19971
19972
19973case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19974 *yes*) ;;
19975 *) enable_ltdl_convenience=yes ;;
19976esac
19977
19978 if test x"${enable_ltdl_install-no}" != xno; then
19979 INSTALL_LTDL_TRUE=
19980 INSTALL_LTDL_FALSE='#'
19981else
19982 INSTALL_LTDL_TRUE='#'
19983 INSTALL_LTDL_FALSE=
19984fi
19985
19986 if test x"${enable_ltdl_convenience-no}" != xno; then
19987 CONVENIENCE_LTDL_TRUE=
19988 CONVENIENCE_LTDL_FALSE='#'
19989else
19990 CONVENIENCE_LTDL_TRUE='#'
19991 CONVENIENCE_LTDL_FALSE=
19992fi
19993
19994
19995
19996
19997
19998
cristyb7c7b8e2010-06-22 14:22:40 +000019999
cristy3ed852e2009-09-05 21:47:34 +000020000# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20001# the user used. This is so that ltdl.h can pick up the parent projects
20002# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20003# definitions required by ltdl.c.
20004# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20005
20006
20007
cristy3ed852e2009-09-05 21:47:34 +000020008for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000020009do :
20010 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20011ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20012"
20013eval as_val=\$$as_ac_Header
20014 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020015 cat >>confdefs.h <<_ACEOF
20016#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20017_ACEOF
20018
20019fi
20020
20021done
20022
20023
cristy3ed852e2009-09-05 21:47:34 +000020024for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000020025do :
20026 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20027ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20028eval as_val=\$$as_ac_var
20029 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020030 cat >>confdefs.h <<_ACEOF
20031#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20032_ACEOF
20033
20034else
20035
20036
20037 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20038
20039fi
20040done
20041
cristy3ed852e2009-09-05 21:47:34 +000020042for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000020043do :
20044 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20045ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20046eval as_val=\$$as_ac_var
20047 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020048 cat >>confdefs.h <<_ACEOF
20049#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20050_ACEOF
20051
20052else
20053
20054
20055 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20056
20057fi
20058done
20059
20060
20061
20062cat >>confdefs.h <<_ACEOF
20063#define LT_LIBEXT "$libext"
20064_ACEOF
20065
20066
20067name=ltdl
20068LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
20069
20070
20071
20072
20073
20074
20075
20076
20077# Only expand once:
20078
20079
20080
20081# Check to see if building shared libraries
20082libtool_build_shared_libs='no'
20083if test "$enable_shared" = 'yes'; then
20084 libtool_build_shared_libs='yes'
20085fi
20086
20087# Check to see if building static libraries
20088libtool_build_static_libs='no'
20089if test "$enable_static" = 'yes'; then
20090 libtool_build_static_libs='yes'
20091fi
20092
cristyfa112112010-01-04 17:48:07 +000020093 if test "${libtool_build_shared_libs}" = 'yes'; then
20094 WITH_SHARED_LIBS_TRUE=
20095 WITH_SHARED_LIBS_FALSE='#'
20096else
20097 WITH_SHARED_LIBS_TRUE='#'
20098 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000020099fi
20100
20101#
20102# Enable support for building loadable modules
20103#
20104
20105# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020106if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020107 withval=$with_modules; with_modules=$withval
20108else
cristy5a1cefd2010-01-06 20:42:35 +000020109 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020110fi
20111
20112
20113# Only allow building loadable modules if we are building shared libraries
20114if test "$with_modules" != 'no' ; then
20115 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020116 { $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 +000020117$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20118 with_modules='no'
20119 fi
20120fi
20121if test "$with_modules" != 'no'; then
20122
cristy8b350f62009-11-15 23:12:43 +000020123$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020124
20125fi
20126 if test "$with_modules" != 'no'; then
20127 WITH_MODULES_TRUE=
20128 WITH_MODULES_FALSE='#'
20129else
20130 WITH_MODULES_TRUE='#'
20131 WITH_MODULES_FALSE=
20132fi
20133
20134
20135# Enable building/use of libltdl if we are building shared libraries regardless
20136# of whether modules are built or not.
20137with_ltdl='no'
20138if test "$libtool_build_shared_libs" != 'no'; then
20139 with_ltdl='yes'
20140fi
20141
20142 if test "$with_ltdl" != 'no'; then
20143 WITH_LTDL_TRUE=
20144 WITH_LTDL_FALSE='#'
20145else
20146 WITH_LTDL_TRUE='#'
20147 WITH_LTDL_FALSE=
20148fi
20149
20150if test "$with_ltdl" != 'no'; then
20151
cristy8b350f62009-11-15 23:12:43 +000020152$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020153
20154
20155 # Set DLLDFLAGS
20156 if test X"$enable_shared" = Xyes; then
20157 DLLDFLAGS=-export-dynamic
20158
20159 fi
20160fi
20161
20162# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000020163# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020164# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020165if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020166 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20167else
20168 enable_delegate_build='no'
20169fi
20170
20171
20172# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020173if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020174 enableval=$enable_deprecated; enable_deprecated=$enableval
20175else
20176 enable_deprecated='no'
20177fi
20178
20179
20180if test "$enable_deprecated" = 'yes'; then
20181
cristy8b350f62009-11-15 23:12:43 +000020182$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020183
20184else
20185 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20186fi
20187
20188# Build a version of ImageMagick which operates uninstalled.
20189# Used to build distributions located via MAGICK_HOME / executable path
20190# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020191if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020192 enableval=$enable_installed; enable_installed=$enableval
20193else
20194 enable_installed='yes'
20195fi
20196
20197
20198if test "$enable_installed" = 'yes'; then
20199
cristy8b350f62009-11-15 23:12:43 +000020200$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020201
20202else
20203 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20204fi
20205
20206# Permit enciphering and deciphering image pixels.
20207# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020208if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020209 enableval=$enable_cipher; enable_cipher=$enableval
20210else
20211 enable_cipher='yes'
20212fi
20213
20214
20215if test "$enable_cipher" = 'yes'; then
20216
cristy8b350f62009-11-15 23:12:43 +000020217$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020218
20219fi
20220
20221# Build an embeddable version of ImageMagick.
20222# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020223if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020224 enableval=$enable_embeddable; enable_embeddable=$enableval
20225else
20226 enable_embeddable='no'
20227fi
20228
20229
20230if test "$enable_embeddable" = 'yes'; then
20231
cristy8b350f62009-11-15 23:12:43 +000020232$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020233
20234fi
20235
20236# Build a high dynamic range version of ImageMagick.
20237# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020238if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020239 enableval=$enable_hdri; enable_hdri=$enableval
20240else
20241 enable_hdri='no'
20242fi
20243
20244
20245MAGICK_HDRI=""
20246if test "$enable_hdri" = 'yes'; then
20247 MAGICK_HDRI="HDRI"
20248
cristy8b350f62009-11-15 23:12:43 +000020249$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020250
20251fi
20252
cristy3ed852e2009-09-05 21:47:34 +000020253# Build a version of ImageMagick with assert statements.
20254# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020255if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020256 enableval=$enable_assert; enable_assert=$enableval
20257else
20258 enable_assert='yes'
20259fi
20260
20261
20262if test "$enable_assert" = 'no'; then
20263
cristy8b350f62009-11-15 23:12:43 +000020264$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020265
20266fi
20267
20268# Add configure option --enable-maintainer-mode which enables dependency
20269# checking and generation useful to package maintainers. This is made an
20270# option to avoid confusing end users.
20271
cristy8b350f62009-11-15 23:12:43 +000020272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000020273$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20274 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000020275if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020276 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20277else
20278 USE_MAINTAINER_MODE=no
20279fi
20280
cristy8b350f62009-11-15 23:12:43 +000020281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000020282$as_echo "$USE_MAINTAINER_MODE" >&6; }
20283 if test $USE_MAINTAINER_MODE = yes; then
20284 MAINTAINER_MODE_TRUE=
20285 MAINTAINER_MODE_FALSE='#'
20286else
20287 MAINTAINER_MODE_TRUE='#'
20288 MAINTAINER_MODE_FALSE=
20289fi
20290
20291 MAINT=$MAINTAINER_MODE_TRUE
20292
20293
20294
20295
20296# Enable ccmalloc memory debugging support
20297# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020298if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020299 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20300else
20301 enable_ccmalloc='no'
20302fi
20303
20304
20305# Enable Electric Fence memory debugging support
20306# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020307if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020308 enableval=$enable_efence; enable_efence=$enableval
20309else
20310 enable_efence='no'
20311fi
20312
20313
20314# Enable prof-based profiling support
20315# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020316if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020317 enableval=$enable_prof; enable_prof=$enableval
20318else
20319 enable_prof='no'
20320fi
20321
20322
20323# Enable gprof-based profiling support
20324# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020325if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020326 enableval=$enable_gprof; enable_gprof=$enableval
20327else
20328 enable_gprof='no'
20329fi
20330
20331
20332# Enable gcov-based profiling support
20333# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020334if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020335 enableval=$enable_gcov; enable_gcov=$enableval
20336else
20337 enable_gcov='no'
20338fi
20339
20340
20341enable_profiling='no'
20342if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20343 enable_profiling='yes'
20344 if test "$libtool_build_shared_libs" = 'yes'; then
20345 echo "Warning: Can not profile code using shared libraries"
20346 fi
20347fi
20348
20349# Magick API method prefix
20350
20351# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020352if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020353 withval=$with_method_prefix; with_method_prefix=$enableval
20354else
20355 with_method_prefix=''
20356fi
20357
20358
20359if test "$with_method_prefix" != ''; then
20360
20361cat >>confdefs.h <<_ACEOF
20362#define NAMESPACE_PREFIX $with_method_prefix
20363_ACEOF
20364
20365fi
20366
20367# Number of bits in a Quantum
20368
20369# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020370if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020371 withval=$with_quantum_depth; with_quantum_depth=$withval
20372else
20373 with_quantum_depth=16
20374fi
20375
20376
20377if test "$with_quantum_depth" != '8'; then
20378 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20379fi
20380
20381case "${with_quantum_depth}" in
20382 8 ) ;;
20383 16 ) ;;
20384 32 ) ;;
20385 64 ) ;;
cristy8b350f62009-11-15 23:12:43 +000020386 * ) { as_fn_set_status 16
20387as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000020388esac
20389QUANTUM_DEPTH="$with_quantum_depth"
20390
20391cat >>confdefs.h <<_ACEOF
20392#define QUANTUM_DEPTH $QUANTUM_DEPTH
20393_ACEOF
20394
20395
20396# Set pixel cache threshold
20397
20398# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020399if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020400 withval=$with_cache; with_cache=$withval
20401else
20402 with_cache=''
20403fi
20404
20405
20406if test "$with_cache" != ''; then
20407
20408cat >>confdefs.h <<_ACEOF
20409#define PixelCacheThreshold $with_cache
20410_ACEOF
20411
20412 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20413fi
20414
20415# Disable/Enable support for full delegate paths
20416
20417# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020418if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020419 withval=$with_frozenpaths; with_frozenpaths=$withval
20420else
20421 with_frozenpaths='no'
20422fi
20423
20424
20425# Enable build/install of Magick++
20426
20427# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020428if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020429 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20430else
20431 with_magick_plus_plus='yes'
20432fi
20433
20434
20435# Disable build/install of PerlMagick.
20436
20437# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000020438if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020439 withval=$with_perl; with_perl=$withval
20440else
cristyb5f4e2f2010-04-25 00:49:11 +000020441 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000020442fi
20443
20444
20445# Options to pass when configuring PerlMagick
20446
20447# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000020448if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000020449 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000020450fi
20451
20452
cristy3ed852e2009-09-05 21:47:34 +000020453
20454# Enable umem, object-caching memory allocation library.
20455
20456# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000020457if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020458 withval=$with_umem; with_umem=$withval
20459else
20460 with_umem='no'
20461fi
20462
20463if test "$with_umem" != 'yes' ; then
20464 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20465fi
20466
20467#
20468# Specify path to shared libstdc++ if not in normal location
20469#
20470
20471# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000020472if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020473 withval=$with_libstdc; with_libstdc=$withval
20474else
20475 with_libstdc=''
20476fi
20477
20478
20479if test "$with_libstdc" != ''; then
20480 if test -d "$with_libstdc"; then
20481 LIBSTDCLDFLAGS="-L$with_libstdc"
20482 fi
20483fi
20484
20485
20486# Does gcc required -traditional?
20487if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000020488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020489$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020490if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020491 $as_echo_n "(cached) " >&6
20492else
20493 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000020494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020495/* end confdefs.h. */
20496#include <sgtty.h>
20497Autoconf TIOCGETP
20498_ACEOF
20499if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020500 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020501 ac_cv_prog_gcc_traditional=yes
20502else
20503 ac_cv_prog_gcc_traditional=no
20504fi
20505rm -f conftest*
20506
20507
20508 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000020509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020510/* end confdefs.h. */
20511#include <termio.h>
20512Autoconf TCGETA
20513_ACEOF
20514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020515 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020516 ac_cv_prog_gcc_traditional=yes
20517fi
20518rm -f conftest*
20519
20520 fi
20521fi
cristy8b350f62009-11-15 23:12:43 +000020522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020523$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20524 if test $ac_cv_prog_gcc_traditional = yes; then
20525 CC="$CC -traditional"
20526 fi
20527fi
20528
20529
20530########
20531#
20532# Set defines required to build DLLs and modules using MinGW
20533#
20534########
20535# These options are set for multi-thread DLL module build
20536# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20537# module: _DLL
20538# executable/Magick++: _DLL _MAGICKMOD_
20539MODULE_EXTRA_CPPFLAGS=''
20540LIBRARY_EXTRA_CPPFLAGS=''
20541if test "${native_win32_build}" = 'yes'; then
20542 if test "${libtool_build_shared_libs}" = 'yes'; then
20543 CPPFLAGS="$CPPFLAGS -D_DLL"
20544 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20545 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20546 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20547 if test "$with_modules" = 'yes'; then
20548 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20549 else
20550 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20551 fi
20552 else
20553 CPPFLAGS="$CPPFLAGS -D_LIB"
20554 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20555 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20556 fi
20557 if test "$with_threads" = 'yes'; then
20558 CPPFLAGS="$CPPFLAGS -D_MT"
20559 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20560 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20561 fi
20562fi
20563
20564
20565
20566# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020568$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020569if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020570 $as_echo_n "(cached) " >&6
20571else
cristy8b350f62009-11-15 23:12:43 +000020572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020573/* end confdefs.h. */
20574#include <stdlib.h>
20575#include <stdarg.h>
20576#include <string.h>
20577#include <float.h>
20578
20579int
20580main ()
20581{
20582
20583 ;
20584 return 0;
20585}
20586_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020587if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020588 ac_cv_header_stdc=yes
20589else
cristy8b350f62009-11-15 23:12:43 +000020590 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020591fi
cristy3ed852e2009-09-05 21:47:34 +000020592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20593
20594if test $ac_cv_header_stdc = yes; then
20595 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
20599
20600_ACEOF
20601if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020602 $EGREP "memchr" >/dev/null 2>&1; then :
20603
cristy3ed852e2009-09-05 21:47:34 +000020604else
20605 ac_cv_header_stdc=no
20606fi
20607rm -f conftest*
20608
20609fi
20610
20611if test $ac_cv_header_stdc = yes; then
20612 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020614/* end confdefs.h. */
20615#include <stdlib.h>
20616
20617_ACEOF
20618if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020619 $EGREP "free" >/dev/null 2>&1; then :
20620
cristy3ed852e2009-09-05 21:47:34 +000020621else
20622 ac_cv_header_stdc=no
20623fi
20624rm -f conftest*
20625
20626fi
20627
20628if test $ac_cv_header_stdc = yes; then
20629 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020630 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020631 :
20632else
cristy8b350f62009-11-15 23:12:43 +000020633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020634/* end confdefs.h. */
20635#include <ctype.h>
20636#include <stdlib.h>
20637#if ((' ' & 0x0FF) == 0x020)
20638# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20639# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20640#else
20641# define ISLOWER(c) \
20642 (('a' <= (c) && (c) <= 'i') \
20643 || ('j' <= (c) && (c) <= 'r') \
20644 || ('s' <= (c) && (c) <= 'z'))
20645# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20646#endif
20647
20648#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20649int
20650main ()
20651{
20652 int i;
20653 for (i = 0; i < 256; i++)
20654 if (XOR (islower (i), ISLOWER (i))
20655 || toupper (i) != TOUPPER (i))
20656 return 2;
20657 return 0;
20658}
20659_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020660if ac_fn_c_try_run "$LINENO"; then :
20661
cristy3ed852e2009-09-05 21:47:34 +000020662else
cristy8b350f62009-11-15 23:12:43 +000020663 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020664fi
cristy8b350f62009-11-15 23:12:43 +000020665rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20666 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020667fi
20668
cristy3ed852e2009-09-05 21:47:34 +000020669fi
20670fi
cristy8b350f62009-11-15 23:12:43 +000020671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020672$as_echo "$ac_cv_header_stdc" >&6; }
20673if test $ac_cv_header_stdc = yes; then
20674
cristy8b350f62009-11-15 23:12:43 +000020675$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020676
20677fi
20678
20679if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020680 { $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 +000020681 header files. Compilation cannot proceed. Please install the ANSI C
20682 headers and rerun this script." >&5
20683$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20684 header files. Compilation cannot proceed. Please install the ANSI C
20685 headers and rerun this script." >&2;};
20686fi
cristya0b81c32010-01-22 02:54:33 +000020687
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20689$as_echo_n "checking whether to enable assertions... " >&6; }
20690 # Check whether --enable-assert was given.
20691if test "${enable_assert+set}" = set; then :
20692 enableval=$enable_assert; ac_enable_assert=$enableval
20693 if test "x$enableval" = xno; then :
20694
20695$as_echo "#define NDEBUG 1" >>confdefs.h
20696
20697elif test "x$enableval" != xyes; then :
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20699$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20700 ac_enable_assert=yes
20701fi
20702else
20703 ac_enable_assert=yes
20704fi
20705
20706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20707$as_echo "$ac_enable_assert" >&6; }
20708
cristy3ed852e2009-09-05 21:47:34 +000020709ac_header_dirent=no
20710for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20711 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020713$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020714if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000020715 $as_echo_n "(cached) " >&6
20716else
cristy8b350f62009-11-15 23:12:43 +000020717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020718/* end confdefs.h. */
20719#include <sys/types.h>
20720#include <$ac_hdr>
20721
20722int
20723main ()
20724{
20725if ((DIR *) 0)
20726return 0;
20727 ;
20728 return 0;
20729}
20730_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020731if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020732 eval "$as_ac_Header=yes"
20733else
cristy8b350f62009-11-15 23:12:43 +000020734 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020735fi
cristy3ed852e2009-09-05 21:47:34 +000020736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20737fi
cristy8b350f62009-11-15 23:12:43 +000020738eval ac_res=\$$as_ac_Header
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020740$as_echo "$ac_res" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020741eval as_val=\$$as_ac_Header
20742 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020743 cat >>confdefs.h <<_ACEOF
20744#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20745_ACEOF
20746
20747ac_header_dirent=$ac_hdr; break
20748fi
20749
20750done
20751# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20752if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020754$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020755if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020756 $as_echo_n "(cached) " >&6
20757else
20758 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020760/* end confdefs.h. */
20761
20762/* Override any GCC internal prototype to avoid an error.
20763 Use char because int might match the return type of a GCC
20764 builtin and then its argument prototype would still apply. */
20765#ifdef __cplusplus
20766extern "C"
20767#endif
20768char opendir ();
20769int
20770main ()
20771{
20772return opendir ();
20773 ;
20774 return 0;
20775}
20776_ACEOF
20777for ac_lib in '' dir; do
20778 if test -z "$ac_lib"; then
20779 ac_res="none required"
20780 else
20781 ac_res=-l$ac_lib
20782 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20783 fi
cristy8b350f62009-11-15 23:12:43 +000020784 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020785 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020786fi
cristy8b350f62009-11-15 23:12:43 +000020787rm -f core conftest.err conftest.$ac_objext \
20788 conftest$ac_exeext
20789 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020790 break
20791fi
20792done
cristy8b350f62009-11-15 23:12:43 +000020793if test "${ac_cv_search_opendir+set}" = set; then :
20794
cristy3ed852e2009-09-05 21:47:34 +000020795else
20796 ac_cv_search_opendir=no
20797fi
20798rm conftest.$ac_ext
20799LIBS=$ac_func_search_save_LIBS
20800fi
cristy8b350f62009-11-15 23:12:43 +000020801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020802$as_echo "$ac_cv_search_opendir" >&6; }
20803ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020804if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020805 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20806
20807fi
20808
20809else
cristy8b350f62009-11-15 23:12:43 +000020810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020811$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020812if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020813 $as_echo_n "(cached) " >&6
20814else
20815 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020817/* end confdefs.h. */
20818
20819/* Override any GCC internal prototype to avoid an error.
20820 Use char because int might match the return type of a GCC
20821 builtin and then its argument prototype would still apply. */
20822#ifdef __cplusplus
20823extern "C"
20824#endif
20825char opendir ();
20826int
20827main ()
20828{
20829return opendir ();
20830 ;
20831 return 0;
20832}
20833_ACEOF
20834for ac_lib in '' x; do
20835 if test -z "$ac_lib"; then
20836 ac_res="none required"
20837 else
20838 ac_res=-l$ac_lib
20839 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20840 fi
cristy8b350f62009-11-15 23:12:43 +000020841 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020842 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020843fi
cristy8b350f62009-11-15 23:12:43 +000020844rm -f core conftest.err conftest.$ac_objext \
20845 conftest$ac_exeext
20846 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020847 break
20848fi
20849done
cristy8b350f62009-11-15 23:12:43 +000020850if test "${ac_cv_search_opendir+set}" = set; then :
20851
cristy3ed852e2009-09-05 21:47:34 +000020852else
20853 ac_cv_search_opendir=no
20854fi
20855rm conftest.$ac_ext
20856LIBS=$ac_func_search_save_LIBS
20857fi
cristy8b350f62009-11-15 23:12:43 +000020858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020859$as_echo "$ac_cv_search_opendir" >&6; }
20860ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020861if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020862 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20863
20864fi
20865
20866fi
20867
20868
20869# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020870for 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 +000020871do :
20872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20873ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20874eval as_val=\$$as_ac_Header
20875 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020876 cat >>confdefs.h <<_ACEOF
20877#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20878_ACEOF
20879
20880fi
20881
20882done
20883
20884
20885########
20886#
20887# Checks for typedefs, structures, and compiler characteristics.
20888#
20889########
20890
cristy8b350f62009-11-15 23:12:43 +000020891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020892$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020893if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020894 $as_echo_n "(cached) " >&6
20895else
cristy8b350f62009-11-15 23:12:43 +000020896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020897/* end confdefs.h. */
20898
20899#include <stdbool.h>
20900#ifndef bool
20901 "error: bool is not defined"
20902#endif
20903#ifndef false
20904 "error: false is not defined"
20905#endif
20906#if false
20907 "error: false is not 0"
20908#endif
20909#ifndef true
20910 "error: true is not defined"
20911#endif
20912#if true != 1
20913 "error: true is not 1"
20914#endif
20915#ifndef __bool_true_false_are_defined
20916 "error: __bool_true_false_are_defined is not defined"
20917#endif
20918
20919 struct s { _Bool s: 1; _Bool t; } s;
20920
20921 char a[true == 1 ? 1 : -1];
20922 char b[false == 0 ? 1 : -1];
20923 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20924 char d[(bool) 0.5 == true ? 1 : -1];
20925 bool e = &s;
20926 char f[(_Bool) 0.0 == false ? 1 : -1];
20927 char g[true];
20928 char h[sizeof (_Bool)];
20929 char i[sizeof s.t];
20930 enum { j = false, k = true, l = false * true, m = true * 256 };
20931 /* The following fails for
20932 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20933 _Bool n[m];
20934 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20935 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20936# if defined __xlc__ || defined __GNUC__
20937 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20938 reported by James Lemley on 2005-10-05; see
20939 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20940 This test is not quite right, since xlc is allowed to
20941 reject this program, as the initializer for xlcbug is
20942 not one of the forms that C requires support for.
20943 However, doing the test right would require a runtime
20944 test, and that would make cross-compilation harder.
20945 Let us hope that IBM fixes the xlc bug, and also adds
20946 support for this kind of constant expression. In the
20947 meantime, this test will reject xlc, which is OK, since
20948 our stdbool.h substitute should suffice. We also test
20949 this with GCC, where it should work, to detect more
20950 quickly whether someone messes up the test in the
20951 future. */
20952 char digs[] = "0123456789";
20953 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20954# endif
20955 /* Catch a bug in an HP-UX C compiler. See
20956 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20957 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20958 */
20959 _Bool q = true;
20960 _Bool *pq = &q;
20961
20962int
20963main ()
20964{
20965
20966 *pq |= q;
20967 *pq |= ! q;
20968 /* Refer to every declared value, to avoid compiler optimizations. */
20969 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20970 + !m + !n + !o + !p + !q + !pq);
20971
20972 ;
20973 return 0;
20974}
20975_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020976if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020977 ac_cv_header_stdbool_h=yes
20978else
cristy8b350f62009-11-15 23:12:43 +000020979 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020980fi
cristy3ed852e2009-09-05 21:47:34 +000020981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20982fi
cristy8b350f62009-11-15 23:12:43 +000020983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020984$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020985ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20986if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020987
20988cat >>confdefs.h <<_ACEOF
20989#define HAVE__BOOL 1
20990_ACEOF
20991
20992
20993fi
20994
20995if test $ac_cv_header_stdbool_h = yes; then
20996
cristy8b350f62009-11-15 23:12:43 +000020997$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020998
20999fi
21000
cristy8b350f62009-11-15 23:12:43 +000021001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021002$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021003if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021004 $as_echo_n "(cached) " >&6
21005else
cristy8b350f62009-11-15 23:12:43 +000021006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021007/* end confdefs.h. */
21008
21009int
21010main ()
21011{
21012
21013volatile int x;
21014int * volatile y = (int *) 0;
21015return !x && !y;
21016 ;
21017 return 0;
21018}
21019_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021020if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021021 ac_cv_c_volatile=yes
21022else
cristy8b350f62009-11-15 23:12:43 +000021023 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021024fi
cristy3ed852e2009-09-05 21:47:34 +000021025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21026fi
cristy8b350f62009-11-15 23:12:43 +000021027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021028$as_echo "$ac_cv_c_volatile" >&6; }
21029if test $ac_cv_c_volatile = no; then
21030
cristy8b350f62009-11-15 23:12:43 +000021031$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021032
21033fi
21034
cristy8b350f62009-11-15 23:12:43 +000021035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021036$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021037if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021038 $as_echo_n "(cached) " >&6
21039else
cristy8b350f62009-11-15 23:12:43 +000021040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021041/* end confdefs.h. */
21042#define x(y) #y
21043
21044char *s = x(teststring);
21045_ACEOF
21046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021047 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021048 ac_cv_c_stringize=no
21049else
21050 ac_cv_c_stringize=yes
21051fi
21052rm -f conftest*
21053
21054fi
cristy8b350f62009-11-15 23:12:43 +000021055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021056$as_echo "$ac_cv_c_stringize" >&6; }
21057if test $ac_cv_c_stringize = yes; then
21058
cristy8b350f62009-11-15 23:12:43 +000021059$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021060
21061fi
21062
cristy8b350f62009-11-15 23:12:43 +000021063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021064$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021065if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021066 $as_echo_n "(cached) " >&6
21067else
cristy8b350f62009-11-15 23:12:43 +000021068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021069/* end confdefs.h. */
21070#include <sys/types.h>
21071#include <sys/stat.h>
21072
21073#if defined S_ISBLK && defined S_IFDIR
21074extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21075#endif
21076
21077#if defined S_ISBLK && defined S_IFCHR
21078extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21079#endif
21080
21081#if defined S_ISLNK && defined S_IFREG
21082extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21083#endif
21084
21085#if defined S_ISSOCK && defined S_IFREG
21086extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21087#endif
21088
21089_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021090if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021091 ac_cv_header_stat_broken=no
21092else
cristy8b350f62009-11-15 23:12:43 +000021093 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021094fi
cristy3ed852e2009-09-05 21:47:34 +000021095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21096fi
cristy8b350f62009-11-15 23:12:43 +000021097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021098$as_echo "$ac_cv_header_stat_broken" >&6; }
21099if test $ac_cv_header_stat_broken = yes; then
21100
cristy8b350f62009-11-15 23:12:43 +000021101$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021102
21103fi
21104
cristy8b350f62009-11-15 23:12:43 +000021105{ $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 +000021106$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021107if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021108 $as_echo_n "(cached) " >&6
21109else
cristy8b350f62009-11-15 23:12:43 +000021110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021111/* end confdefs.h. */
21112#include <sys/types.h>
21113#include <sys/time.h>
21114#include <time.h>
21115
21116int
21117main ()
21118{
21119if ((struct tm *) 0)
21120return 0;
21121 ;
21122 return 0;
21123}
21124_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021125if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021126 ac_cv_header_time=yes
21127else
cristy8b350f62009-11-15 23:12:43 +000021128 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021129fi
cristy3ed852e2009-09-05 21:47:34 +000021130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21131fi
cristy8b350f62009-11-15 23:12:43 +000021132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021133$as_echo "$ac_cv_header_time" >&6; }
21134if test $ac_cv_header_time = yes; then
21135
cristy8b350f62009-11-15 23:12:43 +000021136$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021137
21138fi
21139
cristy8b350f62009-11-15 23:12:43 +000021140{ $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 +000021141$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021142if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021143 $as_echo_n "(cached) " >&6
21144else
cristy8b350f62009-11-15 23:12:43 +000021145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021146/* end confdefs.h. */
21147#include <sys/types.h>
21148#include <time.h>
21149
21150int
21151main ()
21152{
21153struct tm tm;
21154 int *p = &tm.tm_sec;
21155 return !p;
21156 ;
21157 return 0;
21158}
21159_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021160if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021161 ac_cv_struct_tm=time.h
21162else
cristy8b350f62009-11-15 23:12:43 +000021163 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021164fi
cristy3ed852e2009-09-05 21:47:34 +000021165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21166fi
cristy8b350f62009-11-15 23:12:43 +000021167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021168$as_echo "$ac_cv_struct_tm" >&6; }
21169if test $ac_cv_struct_tm = sys/time.h; then
21170
cristy8b350f62009-11-15 23:12:43 +000021171$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021172
21173fi
21174
cristy92703d82010-04-26 00:18:18 +000021175ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21176#include <$ac_cv_struct_tm>
21177
21178"
21179if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21180
21181cat >>confdefs.h <<_ACEOF
21182#define HAVE_STRUCT_TM_TM_ZONE 1
21183_ACEOF
21184
21185
21186fi
21187
21188if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21189
21190$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21191
21192else
21193 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21194"
21195if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21196 ac_have_decl=1
21197else
21198 ac_have_decl=0
21199fi
21200
21201cat >>confdefs.h <<_ACEOF
21202#define HAVE_DECL_TZNAME $ac_have_decl
21203_ACEOF
21204
21205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21206$as_echo_n "checking for tzname... " >&6; }
21207if test "${ac_cv_var_tzname+set}" = set; then :
21208 $as_echo_n "(cached) " >&6
21209else
21210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21211/* end confdefs.h. */
21212#include <time.h>
21213#if !HAVE_DECL_TZNAME
21214extern char *tzname[];
21215#endif
21216
21217int
21218main ()
21219{
21220return tzname[0][0];
21221 ;
21222 return 0;
21223}
21224_ACEOF
21225if ac_fn_c_try_link "$LINENO"; then :
21226 ac_cv_var_tzname=yes
21227else
21228 ac_cv_var_tzname=no
21229fi
21230rm -f core conftest.err conftest.$ac_objext \
21231 conftest$ac_exeext conftest.$ac_ext
21232fi
21233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21234$as_echo "$ac_cv_var_tzname" >&6; }
21235 if test $ac_cv_var_tzname = yes; then
21236
21237$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21238
21239 fi
21240fi
21241
cristy8b350f62009-11-15 23:12:43 +000021242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021243$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021244if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021245 $as_echo_n "(cached) " >&6
21246else
21247 echo '#! /bin/cat
21248exit 69
21249' >conftest
21250chmod u+x conftest
21251(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21252if test $? -ne 69; then
21253 ac_cv_sys_interpreter=yes
21254else
21255 ac_cv_sys_interpreter=no
21256fi
21257rm -f conftest
21258fi
cristy8b350f62009-11-15 23:12:43 +000021259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021260$as_echo "$ac_cv_sys_interpreter" >&6; }
21261interpval=$ac_cv_sys_interpreter
21262
21263
cristy3ed852e2009-09-05 21:47:34 +000021264# If the C compiler supports the keyword inline, do nothing. Otherwise
21265# define inline to __inline__ or __inline if it accepts one of those,
21266# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021268$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021269if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021270 $as_echo_n "(cached) " >&6
21271else
21272 ac_cv_c_inline=no
21273for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021275/* end confdefs.h. */
21276#ifndef __cplusplus
21277typedef int foo_t;
21278static $ac_kw foo_t static_foo () {return 0; }
21279$ac_kw foo_t foo () {return 0; }
21280#endif
21281
21282_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021283if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021284 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021285fi
cristy3ed852e2009-09-05 21:47:34 +000021286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21287 test "$ac_cv_c_inline" != no && break
21288done
21289
21290fi
cristy8b350f62009-11-15 23:12:43 +000021291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021292$as_echo "$ac_cv_c_inline" >&6; }
21293
cristy3ed852e2009-09-05 21:47:34 +000021294case $ac_cv_c_inline in
21295 inline | yes) ;;
21296 *)
21297 case $ac_cv_c_inline in
21298 no) ac_val=;;
21299 *) ac_val=$ac_cv_c_inline;;
21300 esac
21301 cat >>confdefs.h <<_ACEOF
21302#ifndef __cplusplus
21303#define inline $ac_val
21304#endif
21305_ACEOF
21306 ;;
21307esac
21308
21309
21310# If the C compiler supports the keyword restrict, do nothing. Otherwise
21311# define restrict to __restrict__ or __restrict if it accepts one of those,
21312# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021314$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021315if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021316 $as_echo_n "(cached) " >&6
21317else
21318 ac_cv_c_restrict=no
21319 # The order here caters to the fact that C++ does not require restrict.
21320 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021322/* end confdefs.h. */
21323typedef int * int_ptr;
21324 int foo (int_ptr $ac_kw ip) {
21325 return ip[0];
21326 }
21327int
21328main ()
21329{
21330int s[1];
21331 int * $ac_kw t = s;
21332 t[0] = 0;
21333 return foo(t)
21334 ;
21335 return 0;
21336}
21337_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021338if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021339 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021340fi
cristy3ed852e2009-09-05 21:47:34 +000021341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21342 test "$ac_cv_c_restrict" != no && break
21343 done
21344
21345fi
cristy8b350f62009-11-15 23:12:43 +000021346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021347$as_echo "$ac_cv_c_restrict" >&6; }
21348
cristy3ed852e2009-09-05 21:47:34 +000021349 case $ac_cv_c_restrict in
21350 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021351 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021352 ;;
21353 *) cat >>confdefs.h <<_ACEOF
21354#define restrict $ac_cv_c_restrict
21355_ACEOF
21356 ;;
21357 esac
21358
21359
21360# If words are stored with the most significant byte first (like
21361# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021363$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021364if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021365 $as_echo_n "(cached) " >&6
21366else
21367 ac_cv_c_bigendian=unknown
21368 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021370/* end confdefs.h. */
21371#ifndef __APPLE_CC__
21372 not a universal capable compiler
21373 #endif
21374 typedef int dummy;
21375
21376_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021377if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021378
21379 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021380 # there are at least two -arch flags with different values.
21381 ac_arch=
21382 ac_prev=
21383 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21384 if test -n "$ac_prev"; then
21385 case $ac_word in
21386 i?86 | x86_64 | ppc | ppc64)
21387 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21388 ac_arch=$ac_word
21389 else
21390 ac_cv_c_bigendian=universal
21391 break
21392 fi
21393 ;;
21394 esac
21395 ac_prev=
21396 elif test "x$ac_word" = "x-arch"; then
21397 ac_prev=arch
21398 fi
21399 done
cristy3ed852e2009-09-05 21:47:34 +000021400fi
cristy3ed852e2009-09-05 21:47:34 +000021401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21402 if test $ac_cv_c_bigendian = unknown; then
21403 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021405/* end confdefs.h. */
21406#include <sys/types.h>
21407 #include <sys/param.h>
21408
21409int
21410main ()
21411{
21412#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21413 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21414 && LITTLE_ENDIAN)
21415 bogus endian macros
21416 #endif
21417
21418 ;
21419 return 0;
21420}
21421_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021422if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021423 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021425/* end confdefs.h. */
21426#include <sys/types.h>
21427 #include <sys/param.h>
21428
21429int
21430main ()
21431{
21432#if BYTE_ORDER != BIG_ENDIAN
21433 not big endian
21434 #endif
21435
21436 ;
21437 return 0;
21438}
21439_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021440if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021441 ac_cv_c_bigendian=yes
21442else
cristy8b350f62009-11-15 23:12:43 +000021443 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021444fi
cristy3ed852e2009-09-05 21:47:34 +000021445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021446fi
cristy3ed852e2009-09-05 21:47:34 +000021447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21448 fi
21449 if test $ac_cv_c_bigendian = unknown; then
21450 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000021451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021452/* end confdefs.h. */
21453#include <limits.h>
21454
21455int
21456main ()
21457{
21458#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21459 bogus endian macros
21460 #endif
21461
21462 ;
21463 return 0;
21464}
21465_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021466if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021467 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021469/* end confdefs.h. */
21470#include <limits.h>
21471
21472int
21473main ()
21474{
21475#ifndef _BIG_ENDIAN
21476 not big endian
21477 #endif
21478
21479 ;
21480 return 0;
21481}
21482_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021483if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021484 ac_cv_c_bigendian=yes
21485else
cristy8b350f62009-11-15 23:12:43 +000021486 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021487fi
cristy3ed852e2009-09-05 21:47:34 +000021488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021489fi
cristy3ed852e2009-09-05 21:47:34 +000021490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21491 fi
21492 if test $ac_cv_c_bigendian = unknown; then
21493 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000021494 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021495 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000021496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021497/* end confdefs.h. */
21498short int ascii_mm[] =
21499 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21500 short int ascii_ii[] =
21501 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21502 int use_ascii (int i) {
21503 return ascii_mm[i] + ascii_ii[i];
21504 }
21505 short int ebcdic_ii[] =
21506 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21507 short int ebcdic_mm[] =
21508 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21509 int use_ebcdic (int i) {
21510 return ebcdic_mm[i] + ebcdic_ii[i];
21511 }
21512 extern int foo;
21513
21514int
21515main ()
21516{
21517return use_ascii (foo) == use_ebcdic (foo);
21518 ;
21519 return 0;
21520}
21521_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021522if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021523 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21524 ac_cv_c_bigendian=yes
21525 fi
21526 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21527 if test "$ac_cv_c_bigendian" = unknown; then
21528 ac_cv_c_bigendian=no
21529 else
21530 # finding both strings is unlikely to happen, but who knows?
21531 ac_cv_c_bigendian=unknown
21532 fi
21533 fi
cristy3ed852e2009-09-05 21:47:34 +000021534fi
cristy3ed852e2009-09-05 21:47:34 +000021535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21536else
cristy8b350f62009-11-15 23:12:43 +000021537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021538/* end confdefs.h. */
21539$ac_includes_default
21540int
21541main ()
21542{
21543
21544 /* Are we little or big endian? From Harbison&Steele. */
21545 union
21546 {
21547 long int l;
21548 char c[sizeof (long int)];
21549 } u;
21550 u.l = 1;
21551 return u.c[sizeof (long int) - 1] == 1;
21552
21553 ;
21554 return 0;
21555}
21556_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021557if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021558 ac_cv_c_bigendian=no
21559else
cristy8b350f62009-11-15 23:12:43 +000021560 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000021561fi
cristy8b350f62009-11-15 23:12:43 +000021562rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21563 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021564fi
21565
cristy3ed852e2009-09-05 21:47:34 +000021566 fi
21567fi
cristy8b350f62009-11-15 23:12:43 +000021568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021569$as_echo "$ac_cv_c_bigendian" >&6; }
21570 case $ac_cv_c_bigendian in #(
21571 yes)
cristy8b350f62009-11-15 23:12:43 +000021572 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021573;; #(
21574 no)
21575 ;; #(
21576 universal)
21577
cristy8b350f62009-11-15 23:12:43 +000021578$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021579
21580 ;; #(
21581 *)
cristy8b350f62009-11-15 23:12:43 +000021582 as_fn_error "unknown endianness
21583 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021584 esac
21585
21586
21587# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021588ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21589if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021590
cristy3ed852e2009-09-05 21:47:34 +000021591else
21592
21593cat >>confdefs.h <<_ACEOF
21594#define mode_t int
21595_ACEOF
21596
21597fi
21598
21599
21600# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021601ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21602if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021603
cristy3ed852e2009-09-05 21:47:34 +000021604else
21605
21606cat >>confdefs.h <<_ACEOF
21607#define off_t long int
21608_ACEOF
21609
21610fi
21611
21612
21613# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021614ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21615if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021616
cristy3ed852e2009-09-05 21:47:34 +000021617else
21618
21619cat >>confdefs.h <<_ACEOF
21620#define pid_t int
21621_ACEOF
21622
21623fi
21624
21625
21626# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021627ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21628if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021629
cristy3ed852e2009-09-05 21:47:34 +000021630else
21631
21632cat >>confdefs.h <<_ACEOF
21633#define size_t unsigned int
21634_ACEOF
21635
21636fi
21637
21638
21639# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021640ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21641if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021642
cristy3ed852e2009-09-05 21:47:34 +000021643else
21644
21645cat >>confdefs.h <<_ACEOF
21646#define ssize_t int
21647_ACEOF
21648
21649fi
21650
21651
21652# If the C compiler supports a working long double type with more range
21653# or precision than the double type, define HAVE_LONG_DOUBLE.
21654
cristy8b350f62009-11-15 23:12:43 +000021655 { $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 +000021656$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021657if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021658 $as_echo_n "(cached) " >&6
21659else
cristy8b350f62009-11-15 23:12:43 +000021660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021661/* end confdefs.h. */
21662#include <float.h>
21663 long double const a[] =
21664 {
21665 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21666 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21667 };
21668 long double
21669 f (long double x)
21670 {
21671 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21672 + (x ? f (x) : 'c'));
21673 }
21674
21675int
21676main ()
21677{
21678static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21679 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21680 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21681 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21682 && (int) LDBL_EPSILON == 0
21683 )];
21684test_array [0] = 0
21685
21686 ;
21687 return 0;
21688}
21689_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021690if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021691 ac_cv_type_long_double_wider=yes
21692else
cristy8b350f62009-11-15 23:12:43 +000021693 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021694fi
cristy3ed852e2009-09-05 21:47:34 +000021695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21696fi
cristy8b350f62009-11-15 23:12:43 +000021697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021698$as_echo "$ac_cv_type_long_double_wider" >&6; }
21699 if test $ac_cv_type_long_double_wider = yes; then
21700
cristy8b350f62009-11-15 23:12:43 +000021701$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021702
21703 fi
21704
21705
21706# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21707# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021709$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021710if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021711 $as_echo_n "(cached) " >&6
21712else
cristy8b350f62009-11-15 23:12:43 +000021713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021714/* end confdefs.h. */
21715$ac_includes_default
21716int
21717main ()
21718{
21719static int test_array [1 - 2 * !(((char) -1) < 0)];
21720test_array [0] = 0
21721
21722 ;
21723 return 0;
21724}
21725_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021726if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021727 ac_cv_c_char_unsigned=no
21728else
cristy8b350f62009-11-15 23:12:43 +000021729 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021730fi
cristy3ed852e2009-09-05 21:47:34 +000021731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21732fi
cristy8b350f62009-11-15 23:12:43 +000021733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021734$as_echo "$ac_cv_c_char_unsigned" >&6; }
21735if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021736 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021737
21738fi
21739
21740
21741# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21742# The cast to long int works around a bug in the HP C Compiler
21743# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21744# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21745# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021747$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021748if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021749 $as_echo_n "(cached) " >&6
21750else
cristy8b350f62009-11-15 23:12:43 +000021751 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 +000021752
cristy3ed852e2009-09-05 21:47:34 +000021753else
cristy8b350f62009-11-15 23:12:43 +000021754 if test "$ac_cv_type_signed_short" = yes; then
21755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021756$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021757{ as_fn_set_status 77
21758as_fn_error "cannot compute sizeof (signed short)
21759See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021760 else
21761 ac_cv_sizeof_signed_short=0
21762 fi
21763fi
cristy8b350f62009-11-15 23:12:43 +000021764
cristy3ed852e2009-09-05 21:47:34 +000021765fi
cristy8b350f62009-11-15 23:12:43 +000021766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021767$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21768
21769
21770
21771cat >>confdefs.h <<_ACEOF
21772#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21773_ACEOF
21774
21775
21776
21777# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21778# The cast to long int works around a bug in the HP C Compiler
21779# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21780# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21781# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021783$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021784if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021785 $as_echo_n "(cached) " >&6
21786else
cristy8b350f62009-11-15 23:12:43 +000021787 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 +000021788
cristy3ed852e2009-09-05 21:47:34 +000021789else
cristy8b350f62009-11-15 23:12:43 +000021790 if test "$ac_cv_type_unsigned_short" = yes; then
21791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021792$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021793{ as_fn_set_status 77
21794as_fn_error "cannot compute sizeof (unsigned short)
21795See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021796 else
21797 ac_cv_sizeof_unsigned_short=0
21798 fi
21799fi
cristy8b350f62009-11-15 23:12:43 +000021800
cristy3ed852e2009-09-05 21:47:34 +000021801fi
cristy8b350f62009-11-15 23:12:43 +000021802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021803$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21804
21805
21806
21807cat >>confdefs.h <<_ACEOF
21808#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21809_ACEOF
21810
21811
21812
21813# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21814# The cast to long int works around a bug in the HP C Compiler
21815# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21816# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21817# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021819$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021820if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021821 $as_echo_n "(cached) " >&6
21822else
cristy8b350f62009-11-15 23:12:43 +000021823 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 +000021824
cristy3ed852e2009-09-05 21:47:34 +000021825else
cristy8b350f62009-11-15 23:12:43 +000021826 if test "$ac_cv_type_signed_int" = yes; then
21827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021829{ as_fn_set_status 77
21830as_fn_error "cannot compute sizeof (signed int)
21831See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021832 else
21833 ac_cv_sizeof_signed_int=0
21834 fi
21835fi
cristy8b350f62009-11-15 23:12:43 +000021836
cristy3ed852e2009-09-05 21:47:34 +000021837fi
cristy8b350f62009-11-15 23:12:43 +000021838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021839$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21840
21841
21842
21843cat >>confdefs.h <<_ACEOF
21844#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21845_ACEOF
21846
21847
21848
21849# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21850# The cast to long int works around a bug in the HP C Compiler
21851# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21852# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21853# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021855$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021856if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021857 $as_echo_n "(cached) " >&6
21858else
cristy8b350f62009-11-15 23:12:43 +000021859 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 +000021860
cristy3ed852e2009-09-05 21:47:34 +000021861else
cristy8b350f62009-11-15 23:12:43 +000021862 if test "$ac_cv_type_unsigned_int" = yes; then
21863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021865{ as_fn_set_status 77
21866as_fn_error "cannot compute sizeof (unsigned int)
21867See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021868 else
21869 ac_cv_sizeof_unsigned_int=0
21870 fi
21871fi
cristy8b350f62009-11-15 23:12:43 +000021872
cristy3ed852e2009-09-05 21:47:34 +000021873fi
cristy8b350f62009-11-15 23:12:43 +000021874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021875$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21876
21877
21878
21879cat >>confdefs.h <<_ACEOF
21880#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21881_ACEOF
21882
21883
21884
21885# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21886# The cast to long int works around a bug in the HP C Compiler
21887# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21888# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21889# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021891$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021892if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021893 $as_echo_n "(cached) " >&6
21894else
cristy8b350f62009-11-15 23:12:43 +000021895 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 +000021896
cristy3ed852e2009-09-05 21:47:34 +000021897else
cristy8b350f62009-11-15 23:12:43 +000021898 if test "$ac_cv_type_signed_long" = yes; then
21899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021901{ as_fn_set_status 77
21902as_fn_error "cannot compute sizeof (signed long)
21903See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021904 else
21905 ac_cv_sizeof_signed_long=0
21906 fi
21907fi
cristy8b350f62009-11-15 23:12:43 +000021908
cristy3ed852e2009-09-05 21:47:34 +000021909fi
cristy8b350f62009-11-15 23:12:43 +000021910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021911$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21912
21913
21914
21915cat >>confdefs.h <<_ACEOF
21916#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21917_ACEOF
21918
21919
21920
21921# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21922# The cast to long int works around a bug in the HP C Compiler
21923# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21924# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21925# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021927$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021928if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021929 $as_echo_n "(cached) " >&6
21930else
cristy8b350f62009-11-15 23:12:43 +000021931 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 +000021932
cristy3ed852e2009-09-05 21:47:34 +000021933else
cristy8b350f62009-11-15 23:12:43 +000021934 if test "$ac_cv_type_unsigned_long" = yes; then
21935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021936$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021937{ as_fn_set_status 77
21938as_fn_error "cannot compute sizeof (unsigned long)
21939See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021940 else
21941 ac_cv_sizeof_unsigned_long=0
21942 fi
21943fi
cristy8b350f62009-11-15 23:12:43 +000021944
cristy3ed852e2009-09-05 21:47:34 +000021945fi
cristy8b350f62009-11-15 23:12:43 +000021946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021947$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21948
21949
21950
21951cat >>confdefs.h <<_ACEOF
21952#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21953_ACEOF
21954
21955
21956
21957# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21958# 'signed long long' is not supported then the value defined is zero.
21959# The cast to long int works around a bug in the HP C Compiler
21960# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21961# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21962# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021964$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021965if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021966 $as_echo_n "(cached) " >&6
21967else
cristy8b350f62009-11-15 23:12:43 +000021968 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 +000021969
cristy3ed852e2009-09-05 21:47:34 +000021970else
cristy8b350f62009-11-15 23:12:43 +000021971 if test "$ac_cv_type_signed_long_long" = yes; then
21972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021974{ as_fn_set_status 77
21975as_fn_error "cannot compute sizeof (signed long long)
21976See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021977 else
21978 ac_cv_sizeof_signed_long_long=0
21979 fi
21980fi
cristy8b350f62009-11-15 23:12:43 +000021981
cristy3ed852e2009-09-05 21:47:34 +000021982fi
cristy8b350f62009-11-15 23:12:43 +000021983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021984$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21985
21986
21987
21988cat >>confdefs.h <<_ACEOF
21989#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21990_ACEOF
21991
21992
21993
21994# Obtain size of a 'unsigned long long' and define as
21995# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21996# supported then the value defined is zero.
21997# The cast to long int works around a bug in the HP C Compiler
21998# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21999# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22000# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022002$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022003if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022004 $as_echo_n "(cached) " >&6
22005else
cristy8b350f62009-11-15 23:12:43 +000022006 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 +000022007
cristy3ed852e2009-09-05 21:47:34 +000022008else
cristy8b350f62009-11-15 23:12:43 +000022009 if test "$ac_cv_type_unsigned_long_long" = yes; then
22010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000022012{ as_fn_set_status 77
22013as_fn_error "cannot compute sizeof (unsigned long long)
22014See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022015 else
22016 ac_cv_sizeof_unsigned_long_long=0
22017 fi
22018fi
cristy8b350f62009-11-15 23:12:43 +000022019
cristy3ed852e2009-09-05 21:47:34 +000022020fi
cristy8b350f62009-11-15 23:12:43 +000022021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022022$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22023
22024
22025
22026cat >>confdefs.h <<_ACEOF
22027#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22028_ACEOF
22029
22030
22031
22032# Obtain size of off_t and define as SIZEOF_OFF_T
22033# The cast to long int works around a bug in the HP C Compiler
22034# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22035# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22036# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022038$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022039if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022040 $as_echo_n "(cached) " >&6
22041else
cristy8b350f62009-11-15 23:12:43 +000022042 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 +000022043
cristy3ed852e2009-09-05 21:47:34 +000022044else
cristy8b350f62009-11-15 23:12:43 +000022045 if test "$ac_cv_type_off_t" = yes; then
22046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000022048{ as_fn_set_status 77
22049as_fn_error "cannot compute sizeof (off_t)
22050See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022051 else
22052 ac_cv_sizeof_off_t=0
22053 fi
22054fi
cristy8b350f62009-11-15 23:12:43 +000022055
cristy3ed852e2009-09-05 21:47:34 +000022056fi
cristy8b350f62009-11-15 23:12:43 +000022057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022058$as_echo "$ac_cv_sizeof_off_t" >&6; }
22059
22060
22061
22062cat >>confdefs.h <<_ACEOF
22063#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22064_ACEOF
22065
22066
22067
22068# Obtain size of size_t and define as SIZEOF_SIZE_T
22069# The cast to long int works around a bug in the HP C Compiler
22070# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22071# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22072# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022074$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022075if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022076 $as_echo_n "(cached) " >&6
22077else
cristy8b350f62009-11-15 23:12:43 +000022078 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 +000022079
cristy3ed852e2009-09-05 21:47:34 +000022080else
cristy8b350f62009-11-15 23:12:43 +000022081 if test "$ac_cv_type_size_t" = yes; then
22082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000022084{ as_fn_set_status 77
22085as_fn_error "cannot compute sizeof (size_t)
22086See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022087 else
22088 ac_cv_sizeof_size_t=0
22089 fi
22090fi
cristy8b350f62009-11-15 23:12:43 +000022091
cristy3ed852e2009-09-05 21:47:34 +000022092fi
cristy8b350f62009-11-15 23:12:43 +000022093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022094$as_echo "$ac_cv_sizeof_size_t" >&6; }
22095
22096
22097
22098cat >>confdefs.h <<_ACEOF
22099#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22100_ACEOF
22101
22102
22103
cristy330e9352010-06-01 18:42:49 +000022104# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
22105# The cast to long int works around a bug in the HP C Compiler
22106# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22107# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22108# This bug is HP SR number 8606223364.
22109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
22110$as_echo_n "checking size of ssize_t... " >&6; }
22111if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
22112 $as_echo_n "(cached) " >&6
22113else
22114 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
22115
22116else
22117 if test "$ac_cv_type_ssize_t" = yes; then
22118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22120{ as_fn_set_status 77
22121as_fn_error "cannot compute sizeof (ssize_t)
22122See \`config.log' for more details." "$LINENO" 5; }; }
22123 else
22124 ac_cv_sizeof_ssize_t=0
22125 fi
22126fi
22127
22128fi
22129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
22130$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
22131
22132
22133
22134cat >>confdefs.h <<_ACEOF
22135#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
22136_ACEOF
22137
22138
22139
cristy3ed852e2009-09-05 21:47:34 +000022140# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
22141# The cast to long int works around a bug in the HP C Compiler
22142# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22143# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22144# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000022146$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022147if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022148 $as_echo_n "(cached) " >&6
22149else
cristy8b350f62009-11-15 23:12:43 +000022150 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 +000022151
cristy3ed852e2009-09-05 21:47:34 +000022152else
cristy8b350f62009-11-15 23:12:43 +000022153 if test "$ac_cv_type_unsigned_intp" = yes; then
22154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022155$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000022156{ as_fn_set_status 77
22157as_fn_error "cannot compute sizeof (unsigned int*)
22158See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022159 else
22160 ac_cv_sizeof_unsigned_intp=0
22161 fi
22162fi
cristy8b350f62009-11-15 23:12:43 +000022163
cristy3ed852e2009-09-05 21:47:34 +000022164fi
cristy8b350f62009-11-15 23:12:43 +000022165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022166$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
22167
22168
22169
22170cat >>confdefs.h <<_ACEOF
22171#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22172_ACEOF
22173
22174
22175
22176#
22177# Compute sized types for current CPU and compiler options.
22178#
22179
cristy8b350f62009-11-15 23:12:43 +000022180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022181$as_echo_n "checking for signed 8-bit type... " >&6; }
22182INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000022183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022184$as_echo "$INT8_T" >&6; }
22185
22186
cristy8b350f62009-11-15 23:12:43 +000022187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022188$as_echo_n "checking for unsigned 8-bit type... " >&6; }
22189UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000022190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022191$as_echo "$UINT8_T" >&6; }
22192
22193
cristy8b350f62009-11-15 23:12:43 +000022194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022195$as_echo_n "checking for signed 16-bit type... " >&6; }
22196INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022198$as_echo "$INT16_T" >&6; }
22199
22200
cristy8b350f62009-11-15 23:12:43 +000022201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022202$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22203UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022205$as_echo "$UINT16_T" >&6; }
22206
22207
cristy8b350f62009-11-15 23:12:43 +000022208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022209$as_echo_n "checking for signed 32-bit type... " >&6; }
22210INT32_T='none'
22211if test $ac_cv_sizeof_signed_int -eq 4; then
22212 INT32_T='signed int'
22213elif test $ac_cv_sizeof_signed_long -eq 4; then
22214 INT32_T='signed long'
22215fi
cristy8b350f62009-11-15 23:12:43 +000022216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022217$as_echo "$INT32_T" >&6; }
22218
22219
cristy8b350f62009-11-15 23:12:43 +000022220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022221$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22222UINT32_T='none'
22223if test $ac_cv_sizeof_unsigned_int -eq 4; then
22224 UINT32_T='unsigned int'
22225elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22226 UINT32_T='unsigned long'
22227fi
cristy8b350f62009-11-15 23:12:43 +000022228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022229$as_echo "$UINT32_T" >&6; }
22230
22231
cristy8b350f62009-11-15 23:12:43 +000022232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022233$as_echo_n "checking for signed 64-bit type... " >&6; }
22234INT64_T='none'
22235if test $ac_cv_sizeof_signed_long -eq 8; then
22236 INT64_T='signed long'
22237elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22238 INT64_T='signed long long'
22239fi
cristy8b350f62009-11-15 23:12:43 +000022240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022241$as_echo "$INT64_T" >&6; }
22242
22243
cristy8b350f62009-11-15 23:12:43 +000022244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022245$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22246UINT64_T='none'
22247if test $ac_cv_sizeof_unsigned_long -eq 8; then
22248 UINT64_T='unsigned long'
22249elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22250 UINT64_T='unsigned long long'
22251fi
cristy8b350f62009-11-15 23:12:43 +000022252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022253$as_echo "$UINT64_T" >&6; }
22254
22255
cristy8b350f62009-11-15 23:12:43 +000022256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022257$as_echo_n "checking for unsigned maximum type... " >&6; }
22258UINTMAX_T='none'
22259if test "$UINT64_T" != 'none'; then
22260 UINTMAX_T=$UINT64_T
22261elif test "$UINT32_T" != 'none'; then
22262 UINTMAX_T=$UINT32_T
22263fi
cristy8b350f62009-11-15 23:12:43 +000022264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022265$as_echo "$UINTMAX_T" >&6; }
22266
22267
cristy8b350f62009-11-15 23:12:43 +000022268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022269$as_echo_n "checking for pointer difference type... " >&6; }
22270UINTPTR_T='none'
22271if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22272 UINTPTR_T='unsigned long'
22273elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22274 UINTPTR_T='unsigned long long'
22275fi
cristy8b350f62009-11-15 23:12:43 +000022276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022277$as_echo "$UINTPTR_T" >&6; }
22278
22279
cristy8b350f62009-11-15 23:12:43 +000022280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022281$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022283/* end confdefs.h. */
22284
22285int
22286main ()
22287{
22288{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22289 ;
22290 return 0;
22291}
22292_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022293if ac_fn_c_try_compile "$LINENO"; then :
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022295$as_echo "yes" >&6; }
22296else
cristy8b350f62009-11-15 23:12:43 +000022297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022298$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022300$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022302/* end confdefs.h. */
22303
22304int
22305main ()
22306{
22307{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22308 ;
22309 return 0;
22310}
22311_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022312if ac_fn_c_try_compile "$LINENO"; then :
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022314$as_echo "yes" >&6; }
22315
cristy8b350f62009-11-15 23:12:43 +000022316$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022317
22318else
cristy8b350f62009-11-15 23:12:43 +000022319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022320$as_echo "no" >&6; }
22321
cristy8b350f62009-11-15 23:12:43 +000022322$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022323
22324fi
cristy3ed852e2009-09-05 21:47:34 +000022325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22326fi
cristy3ed852e2009-09-05 21:47:34 +000022327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22328
22329########
22330#
22331# Check for functions
22332#
22333########
cristy3ed852e2009-09-05 21:47:34 +000022334for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000022335do :
22336 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22337ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22338eval as_val=\$$as_ac_Header
22339 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022340 cat >>confdefs.h <<_ACEOF
22341#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22342_ACEOF
22343
22344fi
22345
22346done
22347
cristy3ed852e2009-09-05 21:47:34 +000022348for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022349do :
22350 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22351if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022352 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022353#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022354_ACEOF
22355
22356fi
22357done
22358
cristy8b350f62009-11-15 23:12:43 +000022359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000022360$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022361if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022362 $as_echo_n "(cached) " >&6
22363else
cristy8b350f62009-11-15 23:12:43 +000022364 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022365 magick_cv_func_mmap_fileio=no
22366else
cristy8b350f62009-11-15 23:12:43 +000022367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022368/* end confdefs.h. */
22369$ac_includes_default
22370/* malloc might have been renamed as rpl_malloc. */
22371#undef malloc
22372
22373/*
22374 This test is derived from GNU Autoconf's similar macro.
22375 The purpose of this test is to verify that files may be memory
22376 mapped, and that memory mapping and file I/O are coherent.
22377
22378 The test creates a test file, memory maps the file, updates
22379 the file using the memory map, and then reads the file using
22380 file I/O to verify that the file contains the updates.
22381*/
22382
22383#include <fcntl.h>
22384#include <sys/mman.h>
22385
22386#if !STDC_HEADERS && !HAVE_STDLIB_H
22387char *malloc ();
22388#endif
22389
22390/* This mess was copied from the GNU getpagesize.h. */
22391#if !HAVE_GETPAGESIZE
22392/* Assume that all systems that can run configure have sys/param.h. */
22393# if !HAVE_SYS_PARAM_H
22394# define HAVE_SYS_PARAM_H 1
22395# endif
22396
22397# ifdef _SC_PAGESIZE
22398# define getpagesize() sysconf(_SC_PAGESIZE)
22399# else /* no _SC_PAGESIZE */
22400# if HAVE_SYS_PARAM_H
22401# include <sys/param.h>
22402# ifdef EXEC_PAGESIZE
22403# define getpagesize() EXEC_PAGESIZE
22404# else /* no EXEC_PAGESIZE */
22405# ifdef NBPG
22406# define getpagesize() NBPG * CLSIZE
22407# ifndef CLSIZE
22408# define CLSIZE 1
22409# endif /* no CLSIZE */
22410# else /* no NBPG */
22411# ifdef NBPC
22412# define getpagesize() NBPC
22413# else /* no NBPC */
22414# ifdef PAGESIZE
22415# define getpagesize() PAGESIZE
22416# endif /* PAGESIZE */
22417# endif /* no NBPC */
22418# endif /* no NBPG */
22419# endif /* no EXEC_PAGESIZE */
22420# else /* no HAVE_SYS_PARAM_H */
22421# define getpagesize() 8192 /* punt totally */
22422# endif /* no HAVE_SYS_PARAM_H */
22423# endif /* no _SC_PAGESIZE */
22424
22425#endif /* no HAVE_GETPAGESIZE */
22426
22427int
22428main ()
22429{
22430 char *data, *data2, *data3;
22431 int i, pagesize;
22432 int fd;
22433
22434 pagesize = getpagesize ();
22435
22436 /* First, make a file with some known garbage in it. */
22437 data = (char *) malloc (pagesize);
22438 if (!data)
22439 exit (1);
22440 for (i = 0; i < pagesize; ++i)
22441 *(data + i) = rand ();
22442 umask (0);
22443 fd = creat ("conftest.mmap", 0600);
22444 if (fd < 0)
22445 exit (1);
22446 if (write (fd, data, pagesize) != pagesize)
22447 exit (1);
22448 close (fd);
22449
22450 /* Mmap the file as read/write/shared and verify that we see the
22451 same garbage. */
22452 fd = open ("conftest.mmap", O_RDWR);
22453 if (fd < 0)
22454 exit (1);
22455 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22456 if (data2 == 0)
22457 exit (1);
22458 for (i = 0; i < pagesize; ++i)
22459 if (*(data + i) != *(data2 + i))
22460 exit (1);
22461
22462 /* Finally, make sure that changes to the mapped area
22463 percolate back to the file as seen by read(). */
22464 for (i = 0; i < pagesize; ++i)
22465 *(data2 + i) = *(data2 + i) + 1;
22466 data3 = (char *) malloc (pagesize);
22467 if (!data3)
22468 exit (1);
22469 if (read (fd, data3, pagesize) != pagesize)
22470 exit (1);
22471 for (i = 0; i < pagesize; ++i)
22472 if (*(data2 + i) != *(data3 + i))
22473 exit (1);
22474 close (fd);
22475 exit (0);
22476}
22477_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022478if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022479 magick_cv_func_mmap_fileio=yes
22480else
cristy8b350f62009-11-15 23:12:43 +000022481 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000022482fi
cristy8b350f62009-11-15 23:12:43 +000022483rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22484 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022485fi
22486
cristy3ed852e2009-09-05 21:47:34 +000022487fi
cristy8b350f62009-11-15 23:12:43 +000022488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000022489$as_echo "$magick_cv_func_mmap_fileio" >&6; }
22490if test $magick_cv_func_mmap_fileio = yes; then
22491
cristy8b350f62009-11-15 23:12:43 +000022492$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022493
22494fi
22495rm -f conftest.mmap
22496
cristy8b350f62009-11-15 23:12:43 +000022497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022498$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022499if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022500 $as_echo_n "(cached) " >&6
22501else
cristy8b350f62009-11-15 23:12:43 +000022502 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022503 ac_cv_func_closedir_void=yes
22504else
cristy8b350f62009-11-15 23:12:43 +000022505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022506/* end confdefs.h. */
22507$ac_includes_default
22508#include <$ac_header_dirent>
22509#ifndef __cplusplus
22510int closedir ();
22511#endif
22512
22513int
22514main ()
22515{
22516return closedir (opendir (".")) != 0;
22517 ;
22518 return 0;
22519}
22520_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022521if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022522 ac_cv_func_closedir_void=no
22523else
cristy8b350f62009-11-15 23:12:43 +000022524 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000022525fi
cristy8b350f62009-11-15 23:12:43 +000022526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22527 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022528fi
22529
cristy3ed852e2009-09-05 21:47:34 +000022530fi
cristy8b350f62009-11-15 23:12:43 +000022531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022532$as_echo "$ac_cv_func_closedir_void" >&6; }
22533if test $ac_cv_func_closedir_void = yes; then
22534
cristy8b350f62009-11-15 23:12:43 +000022535$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022536
22537fi
22538
cristycd4c5312009-11-22 01:19:08 +000022539
22540
22541
22542 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000022543do :
22544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000022545ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22546"
cristy8b350f62009-11-15 23:12:43 +000022547eval as_val=\$$as_ac_Header
22548 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022549 cat >>confdefs.h <<_ACEOF
22550#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22551_ACEOF
22552
22553fi
22554
22555done
22556
cristycd4c5312009-11-22 01:19:08 +000022557
22558
22559
22560
22561
22562
22563
cristy3ed852e2009-09-05 21:47:34 +000022564for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022565do :
22566 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22567if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022568 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022569#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022570_ACEOF
22571
22572fi
22573done
22574
cristy8b350f62009-11-15 23:12:43 +000022575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000022576$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022577if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022578 $as_echo_n "(cached) " >&6
22579else
cristy8b350f62009-11-15 23:12:43 +000022580 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022581 ac_cv_func_mmap_fixed_mapped=no
22582else
cristy8b350f62009-11-15 23:12:43 +000022583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022584/* end confdefs.h. */
22585$ac_includes_default
22586/* malloc might have been renamed as rpl_malloc. */
22587#undef malloc
22588
22589/* Thanks to Mike Haertel and Jim Avera for this test.
22590 Here is a matrix of mmap possibilities:
22591 mmap private not fixed
22592 mmap private fixed at somewhere currently unmapped
22593 mmap private fixed at somewhere already mapped
22594 mmap shared not fixed
22595 mmap shared fixed at somewhere currently unmapped
22596 mmap shared fixed at somewhere already mapped
22597 For private mappings, we should verify that changes cannot be read()
22598 back from the file, nor mmap's back from the file at a different
22599 address. (There have been systems where private was not correctly
22600 implemented like the infamous i386 svr4.0, and systems where the
22601 VM page cache was not coherent with the file system buffer cache
22602 like early versions of FreeBSD and possibly contemporary NetBSD.)
22603 For shared mappings, we should conversely verify that changes get
22604 propagated back to all the places they're supposed to be.
22605
22606 Grep wants private fixed already mapped.
22607 The main things grep needs to know about mmap are:
22608 * does it exist and is it safe to write into the mmap'd area
22609 * how to use it (BSD variants) */
22610
22611#include <fcntl.h>
22612#include <sys/mman.h>
22613
22614#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22615char *malloc ();
22616#endif
22617
22618/* This mess was copied from the GNU getpagesize.h. */
22619#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022620# ifdef _SC_PAGESIZE
22621# define getpagesize() sysconf(_SC_PAGESIZE)
22622# else /* no _SC_PAGESIZE */
22623# ifdef HAVE_SYS_PARAM_H
22624# include <sys/param.h>
22625# ifdef EXEC_PAGESIZE
22626# define getpagesize() EXEC_PAGESIZE
22627# else /* no EXEC_PAGESIZE */
22628# ifdef NBPG
22629# define getpagesize() NBPG * CLSIZE
22630# ifndef CLSIZE
22631# define CLSIZE 1
22632# endif /* no CLSIZE */
22633# else /* no NBPG */
22634# ifdef NBPC
22635# define getpagesize() NBPC
22636# else /* no NBPC */
22637# ifdef PAGESIZE
22638# define getpagesize() PAGESIZE
22639# endif /* PAGESIZE */
22640# endif /* no NBPC */
22641# endif /* no NBPG */
22642# endif /* no EXEC_PAGESIZE */
22643# else /* no HAVE_SYS_PARAM_H */
22644# define getpagesize() 8192 /* punt totally */
22645# endif /* no HAVE_SYS_PARAM_H */
22646# endif /* no _SC_PAGESIZE */
22647
22648#endif /* no HAVE_GETPAGESIZE */
22649
22650int
22651main ()
22652{
22653 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022654 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022655 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022656 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022657
22658 pagesize = getpagesize ();
22659
22660 /* First, make a file with some known garbage in it. */
22661 data = (char *) malloc (pagesize);
22662 if (!data)
22663 return 1;
22664 for (i = 0; i < pagesize; ++i)
22665 *(data + i) = rand ();
22666 umask (0);
22667 fd = creat ("conftest.mmap", 0600);
22668 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022669 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022670 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022671 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022672 close (fd);
22673
cristycd4c5312009-11-22 01:19:08 +000022674 /* Next, check that the tail of a page is zero-filled. File must have
22675 non-zero length, otherwise we risk SIGBUS for entire page. */
22676 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22677 if (fd2 < 0)
22678 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022679 cdata2 = "";
22680 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022681 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022682 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022683 if (data2 == MAP_FAILED)
22684 return 6;
22685 for (i = 0; i < pagesize; ++i)
22686 if (*(data2 + i))
22687 return 7;
22688 close (fd2);
22689 if (munmap (data2, pagesize))
22690 return 8;
22691
cristy3ed852e2009-09-05 21:47:34 +000022692 /* Next, try to mmap the file at a fixed address which already has
22693 something else allocated at it. If we can, also make sure that
22694 we see the same garbage. */
22695 fd = open ("conftest.mmap", O_RDWR);
22696 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022697 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022698 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22699 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022700 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022701 for (i = 0; i < pagesize; ++i)
22702 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022703 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022704
22705 /* Finally, make sure that changes to the mapped area do not
22706 percolate back to the file as seen by read(). (This is a bug on
22707 some variants of i386 svr4.0.) */
22708 for (i = 0; i < pagesize; ++i)
22709 *(data2 + i) = *(data2 + i) + 1;
22710 data3 = (char *) malloc (pagesize);
22711 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022712 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022713 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022714 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022715 for (i = 0; i < pagesize; ++i)
22716 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022717 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022718 close (fd);
22719 return 0;
22720}
22721_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022722if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022723 ac_cv_func_mmap_fixed_mapped=yes
22724else
cristy8b350f62009-11-15 23:12:43 +000022725 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022726fi
cristy8b350f62009-11-15 23:12:43 +000022727rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22728 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022729fi
22730
cristy3ed852e2009-09-05 21:47:34 +000022731fi
cristy8b350f62009-11-15 23:12:43 +000022732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022733$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22734if test $ac_cv_func_mmap_fixed_mapped = yes; then
22735
cristy8b350f62009-11-15 23:12:43 +000022736$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022737
22738fi
cristycd4c5312009-11-22 01:19:08 +000022739rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022740
cristy3ed852e2009-09-05 21:47:34 +000022741for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022742do :
22743 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22744if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022745 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022746#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022747_ACEOF
22748
22749fi
22750
22751done
22752
cristy3ed852e2009-09-05 21:47:34 +000022753for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022754do :
22755 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22756ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22757eval as_val=\$$as_ac_var
22758 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022759 cat >>confdefs.h <<_ACEOF
22760#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22761_ACEOF
22762
22763fi
22764done
22765
22766if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022768$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022769if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022770 $as_echo_n "(cached) " >&6
22771else
cristy8b350f62009-11-15 23:12:43 +000022772 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022773 ac_cv_func_fork_works=cross
22774else
cristy8b350f62009-11-15 23:12:43 +000022775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022776/* end confdefs.h. */
22777$ac_includes_default
22778int
22779main ()
22780{
22781
22782 /* By Ruediger Kuhlmann. */
22783 return fork () < 0;
22784
22785 ;
22786 return 0;
22787}
22788_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022789if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022790 ac_cv_func_fork_works=yes
22791else
cristy8b350f62009-11-15 23:12:43 +000022792 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022793fi
cristy8b350f62009-11-15 23:12:43 +000022794rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22795 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022796fi
22797
cristy3ed852e2009-09-05 21:47:34 +000022798fi
cristy8b350f62009-11-15 23:12:43 +000022799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022800$as_echo "$ac_cv_func_fork_works" >&6; }
22801
22802else
22803 ac_cv_func_fork_works=$ac_cv_func_fork
22804fi
22805if test "x$ac_cv_func_fork_works" = xcross; then
22806 case $host in
22807 *-*-amigaos* | *-*-msdosdjgpp*)
22808 # Override, as these systems have only a dummy fork() stub
22809 ac_cv_func_fork_works=no
22810 ;;
22811 *)
22812 ac_cv_func_fork_works=yes
22813 ;;
22814 esac
cristy8b350f62009-11-15 23:12:43 +000022815 { $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 +000022816$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22817fi
22818ac_cv_func_vfork_works=$ac_cv_func_vfork
22819if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022821$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022822if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022823 $as_echo_n "(cached) " >&6
22824else
cristy8b350f62009-11-15 23:12:43 +000022825 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022826 ac_cv_func_vfork_works=cross
22827else
cristy8b350f62009-11-15 23:12:43 +000022828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022829/* end confdefs.h. */
22830/* Thanks to Paul Eggert for this test. */
22831$ac_includes_default
22832#include <sys/wait.h>
22833#ifdef HAVE_VFORK_H
22834# include <vfork.h>
22835#endif
22836/* On some sparc systems, changes by the child to local and incoming
22837 argument registers are propagated back to the parent. The compiler
22838 is told about this with #include <vfork.h>, but some compilers
22839 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22840 static variable whose address is put into a register that is
22841 clobbered by the vfork. */
22842static void
22843#ifdef __cplusplus
22844sparc_address_test (int arg)
22845# else
22846sparc_address_test (arg) int arg;
22847#endif
22848{
22849 static pid_t child;
22850 if (!child) {
22851 child = vfork ();
22852 if (child < 0) {
22853 perror ("vfork");
22854 _exit(2);
22855 }
22856 if (!child) {
22857 arg = getpid();
22858 write(-1, "", 0);
22859 _exit (arg);
22860 }
22861 }
22862}
22863
22864int
22865main ()
22866{
22867 pid_t parent = getpid ();
22868 pid_t child;
22869
22870 sparc_address_test (0);
22871
22872 child = vfork ();
22873
22874 if (child == 0) {
22875 /* Here is another test for sparc vfork register problems. This
22876 test uses lots of local variables, at least as many local
22877 variables as main has allocated so far including compiler
22878 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22879 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22880 reuse the register of parent for one of the local variables,
22881 since it will think that parent can't possibly be used any more
22882 in this routine. Assigning to the local variable will thus
22883 munge parent in the parent process. */
22884 pid_t
22885 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22886 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22887 /* Convince the compiler that p..p7 are live; otherwise, it might
22888 use the same hardware register for all 8 local variables. */
22889 if (p != p1 || p != p2 || p != p3 || p != p4
22890 || p != p5 || p != p6 || p != p7)
22891 _exit(1);
22892
22893 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22894 from child file descriptors. If the child closes a descriptor
22895 before it execs or exits, this munges the parent's descriptor
22896 as well. Test for this by closing stdout in the child. */
22897 _exit(close(fileno(stdout)) != 0);
22898 } else {
22899 int status;
22900 struct stat st;
22901
22902 while (wait(&status) != child)
22903 ;
22904 return (
22905 /* Was there some problem with vforking? */
22906 child < 0
22907
22908 /* Did the child fail? (This shouldn't happen.) */
22909 || status
22910
22911 /* Did the vfork/compiler bug occur? */
22912 || parent != getpid()
22913
22914 /* Did the file descriptor bug occur? */
22915 || fstat(fileno(stdout), &st) != 0
22916 );
22917 }
22918}
22919_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022920if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022921 ac_cv_func_vfork_works=yes
22922else
cristy8b350f62009-11-15 23:12:43 +000022923 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022924fi
cristy8b350f62009-11-15 23:12:43 +000022925rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22926 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022927fi
22928
cristy3ed852e2009-09-05 21:47:34 +000022929fi
cristy8b350f62009-11-15 23:12:43 +000022930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022931$as_echo "$ac_cv_func_vfork_works" >&6; }
22932
22933fi;
22934if test "x$ac_cv_func_fork_works" = xcross; then
22935 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022936 { $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 +000022937$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22938fi
22939
22940if test "x$ac_cv_func_vfork_works" = xyes; then
22941
cristy8b350f62009-11-15 23:12:43 +000022942$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022943
22944else
22945
cristy8b350f62009-11-15 23:12:43 +000022946$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022947
22948fi
22949if test "x$ac_cv_func_fork_works" = xyes; then
22950
cristy8b350f62009-11-15 23:12:43 +000022951$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022952
22953fi
22954
cristy8b350f62009-11-15 23:12:43 +000022955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022956$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022957if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022958 $as_echo_n "(cached) " >&6
22959else
cristy8b350f62009-11-15 23:12:43 +000022960 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022961 ac_cv_func_memcmp_working=no
22962else
cristy8b350f62009-11-15 23:12:43 +000022963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022964/* end confdefs.h. */
22965$ac_includes_default
22966int
22967main ()
22968{
22969
22970 /* Some versions of memcmp are not 8-bit clean. */
22971 char c0 = '\100', c1 = '\200', c2 = '\201';
22972 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22973 return 1;
22974
22975 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22976 or more and with at least one buffer not starting on a 4-byte boundary.
22977 William Lewis provided this test program. */
22978 {
22979 char foo[21];
22980 char bar[21];
22981 int i;
22982 for (i = 0; i < 4; i++)
22983 {
22984 char *a = foo + i;
22985 char *b = bar + i;
22986 strcpy (a, "--------01111111");
22987 strcpy (b, "--------10000000");
22988 if (memcmp (a, b, 16) >= 0)
22989 return 1;
22990 }
22991 return 0;
22992 }
22993
22994 ;
22995 return 0;
22996}
22997_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022998if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022999 ac_cv_func_memcmp_working=yes
23000else
cristy8b350f62009-11-15 23:12:43 +000023001 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000023002fi
cristy8b350f62009-11-15 23:12:43 +000023003rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23004 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023005fi
23006
cristy3ed852e2009-09-05 21:47:34 +000023007fi
cristy8b350f62009-11-15 23:12:43 +000023008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000023009$as_echo "$ac_cv_func_memcmp_working" >&6; }
23010test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23011 *" memcmp.$ac_objext "* ) ;;
23012 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23013 ;;
23014esac
23015
23016
cristy3ed852e2009-09-05 21:47:34 +000023017for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000023018do :
23019 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23020ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23021eval as_val=\$$as_ac_Header
23022 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023023 cat >>confdefs.h <<_ACEOF
23024#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23025_ACEOF
23026
23027fi
23028
23029done
23030
cristy8b350f62009-11-15 23:12:43 +000023031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000023032$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023033if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023034 $as_echo_n "(cached) " >&6
23035else
23036 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23037 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23038 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000023039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023040/* end confdefs.h. */
23041$ac_includes_default
23042#ifdef HAVE_SYS_SELECT_H
23043# include <sys/select.h>
23044#endif
23045#ifdef HAVE_SYS_SOCKET_H
23046# include <sys/socket.h>
23047#endif
23048
23049int
23050main ()
23051{
23052extern int select ($ac_arg1,
23053 $ac_arg234, $ac_arg234, $ac_arg234,
23054 $ac_arg5);
23055 ;
23056 return 0;
23057}
23058_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023059if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023060 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000023061fi
cristy3ed852e2009-09-05 21:47:34 +000023062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23063 done
23064 done
23065done
23066# Provide a safe default value.
23067: ${ac_cv_func_select_args='int,int *,struct timeval *'}
23068
23069fi
cristy8b350f62009-11-15 23:12:43 +000023070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000023071$as_echo "$ac_cv_func_select_args" >&6; }
23072ac_save_IFS=$IFS; IFS=','
23073set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23074IFS=$ac_save_IFS
23075shift
23076
23077cat >>confdefs.h <<_ACEOF
23078#define SELECT_TYPE_ARG1 $1
23079_ACEOF
23080
23081
23082cat >>confdefs.h <<_ACEOF
23083#define SELECT_TYPE_ARG234 ($2)
23084_ACEOF
23085
23086
23087cat >>confdefs.h <<_ACEOF
23088#define SELECT_TYPE_ARG5 ($3)
23089_ACEOF
23090
23091rm -f conftest*
23092
cristy8b350f62009-11-15 23:12:43 +000023093if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023094 $as_echo_n "(cached) " >&6
23095else
23096 ac_cv_func_setvbuf_reversed=no
23097fi
23098
23099
cristy8b350f62009-11-15 23:12:43 +000023100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000023101$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023102if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023103 $as_echo_n "(cached) " >&6
23104else
cristy8b350f62009-11-15 23:12:43 +000023105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023106/* end confdefs.h. */
23107#include <sys/types.h>
23108#include <signal.h>
23109
23110int
23111main ()
23112{
23113return *(signal (0, 0)) (0) == 1;
23114 ;
23115 return 0;
23116}
23117_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023118if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023119 ac_cv_type_signal=int
23120else
cristy8b350f62009-11-15 23:12:43 +000023121 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000023122fi
cristy3ed852e2009-09-05 21:47:34 +000023123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23124fi
cristy8b350f62009-11-15 23:12:43 +000023125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000023126$as_echo "$ac_cv_type_signal" >&6; }
23127
23128cat >>confdefs.h <<_ACEOF
23129#define RETSIGTYPE $ac_cv_type_signal
23130_ACEOF
23131
23132
cristy8b350f62009-11-15 23:12:43 +000023133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023134$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023135if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023136 $as_echo_n "(cached) " >&6
23137else
cristy8b350f62009-11-15 23:12:43 +000023138 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023139 ac_cv_func_strtod=no
23140else
cristy8b350f62009-11-15 23:12:43 +000023141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023142/* end confdefs.h. */
23143
23144$ac_includes_default
23145#ifndef strtod
23146double strtod ();
23147#endif
23148int
23149main()
23150{
23151 {
23152 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
23153 char *string = " +69";
23154 char *term;
23155 double value;
23156 value = strtod (string, &term);
23157 if (value != 69 || term != (string + 4))
23158 return 1;
23159 }
23160
23161 {
23162 /* Under Solaris 2.4, strtod returns the wrong value for the
23163 terminating character under some conditions. */
23164 char *string = "NaN";
23165 char *term;
23166 strtod (string, &term);
23167 if (term != string && *(term - 1) == 0)
23168 return 1;
23169 }
23170 return 0;
23171}
23172
23173_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023174if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023175 ac_cv_func_strtod=yes
23176else
cristy8b350f62009-11-15 23:12:43 +000023177 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000023178fi
cristy8b350f62009-11-15 23:12:43 +000023179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23180 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023181fi
23182
cristy3ed852e2009-09-05 21:47:34 +000023183fi
cristy8b350f62009-11-15 23:12:43 +000023184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023185$as_echo "$ac_cv_func_strtod" >&6; }
23186if test $ac_cv_func_strtod = no; then
23187 case " $LIBOBJS " in
23188 *" strtod.$ac_objext "* ) ;;
23189 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23190 ;;
23191esac
23192
cristy8b350f62009-11-15 23:12:43 +000023193ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23194if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023195
cristy3ed852e2009-09-05 21:47:34 +000023196fi
23197
cristy3ed852e2009-09-05 21:47:34 +000023198if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023200$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023201if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023202 $as_echo_n "(cached) " >&6
23203else
23204 ac_check_lib_save_LIBS=$LIBS
23205LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023207/* end confdefs.h. */
23208
23209/* Override any GCC internal prototype to avoid an error.
23210 Use char because int might match the return type of a GCC
23211 builtin and then its argument prototype would still apply. */
23212#ifdef __cplusplus
23213extern "C"
23214#endif
23215char pow ();
23216int
23217main ()
23218{
23219return pow ();
23220 ;
23221 return 0;
23222}
23223_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023224if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023225 ac_cv_lib_m_pow=yes
23226else
cristy8b350f62009-11-15 23:12:43 +000023227 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023228fi
cristy8b350f62009-11-15 23:12:43 +000023229rm -f core conftest.err conftest.$ac_objext \
23230 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023231LIBS=$ac_check_lib_save_LIBS
23232fi
cristy8b350f62009-11-15 23:12:43 +000023233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023234$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023235if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023236 POW_LIB=-lm
23237else
cristy8b350f62009-11-15 23:12:43 +000023238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023239$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23240fi
23241
23242fi
23243
23244fi
23245
cristy3ed852e2009-09-05 21:47:34 +000023246for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023247do :
23248 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23249if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023250 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023251#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023252_ACEOF
23253
cristy8b350f62009-11-15 23:12:43 +000023254ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23255if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023256
cristy8b350f62009-11-15 23:12:43 +000023257$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023258
23259fi
23260
23261fi
23262done
23263
23264
23265
cristy161b9262010-03-20 19:34:32 +000023266#
23267# Find math library
23268#
23269MATH_LIBS=''
23270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23271$as_echo_n "checking for sqrt in -lm... " >&6; }
23272if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23273 $as_echo_n "(cached) " >&6
23274else
23275 ac_check_lib_save_LIBS=$LIBS
23276LIBS="-lm $LIBS"
23277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23278/* end confdefs.h. */
23279
23280/* Override any GCC internal prototype to avoid an error.
23281 Use char because int might match the return type of a GCC
23282 builtin and then its argument prototype would still apply. */
23283#ifdef __cplusplus
23284extern "C"
23285#endif
23286char sqrt ();
23287int
23288main ()
23289{
23290return sqrt ();
23291 ;
23292 return 0;
23293}
23294_ACEOF
23295if ac_fn_c_try_link "$LINENO"; then :
23296 ac_cv_lib_m_sqrt=yes
23297else
23298 ac_cv_lib_m_sqrt=no
23299fi
23300rm -f core conftest.err conftest.$ac_objext \
23301 conftest$ac_exeext conftest.$ac_ext
23302LIBS=$ac_check_lib_save_LIBS
23303fi
23304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23305$as_echo "$ac_cv_lib_m_sqrt" >&6; }
23306if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23307 MATH_LIBS="-lm"
23308fi
23309
23310LIBS="$MATH_LIBS $LIBS"
23311
23312
cristy56ed31c2010-03-22 00:46:21 +000023313for ac_func in _exit atexit cimag clock directio execvp fchmod floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 localtime_r lstat memmove memset mkstemp munmap _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign pow pread pwrite raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000023314do :
23315 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23316ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23317eval as_val=\$$as_ac_var
23318 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023319 cat >>confdefs.h <<_ACEOF
23320#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23321_ACEOF
23322
23323fi
23324done
23325
23326
cristye43a45e2009-09-28 14:49:00 +000023327#
23328# Check for clock_gettime().
23329#
cristy8b350f62009-11-15 23:12:43 +000023330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023331$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023332if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023333 $as_echo_n "(cached) " >&6
23334else
23335 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023337/* end confdefs.h. */
23338
23339/* Override any GCC internal prototype to avoid an error.
23340 Use char because int might match the return type of a GCC
23341 builtin and then its argument prototype would still apply. */
23342#ifdef __cplusplus
23343extern "C"
23344#endif
23345char clock_gettime ();
23346int
23347main ()
23348{
23349return clock_gettime ();
23350 ;
23351 return 0;
23352}
23353_ACEOF
23354for ac_lib in '' rt; do
23355 if test -z "$ac_lib"; then
23356 ac_res="none required"
23357 else
23358 ac_res=-l$ac_lib
23359 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23360 fi
cristy8b350f62009-11-15 23:12:43 +000023361 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023362 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000023363fi
cristy8b350f62009-11-15 23:12:43 +000023364rm -f core conftest.err conftest.$ac_objext \
23365 conftest$ac_exeext
23366 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023367 break
23368fi
23369done
cristy8b350f62009-11-15 23:12:43 +000023370if test "${ac_cv_search_clock_gettime+set}" = set; then :
23371
cristye43a45e2009-09-28 14:49:00 +000023372else
23373 ac_cv_search_clock_gettime=no
23374fi
23375rm conftest.$ac_ext
23376LIBS=$ac_func_search_save_LIBS
23377fi
cristy8b350f62009-11-15 23:12:43 +000023378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023379$as_echo "$ac_cv_search_clock_gettime" >&6; }
23380ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000023381if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000023382 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23383
23384
cristy8b350f62009-11-15 23:12:43 +000023385$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023386
cristy8b350f62009-11-15 23:12:43 +000023387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000023388$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023390/* end confdefs.h. */
23391#include <time.h>
23392int
23393main ()
23394{
23395clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000023396 ;
23397 return 0;
23398}
23399_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023400if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023401
cristy8b350f62009-11-15 23:12:43 +000023402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000023403$as_echo "yes" >&6; }
23404
cristy8b350f62009-11-15 23:12:43 +000023405$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023406
23407
23408else
cristy8b350f62009-11-15 23:12:43 +000023409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000023410$as_echo "no" >&6; }
23411
23412fi
cristye43a45e2009-09-28 14:49:00 +000023413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23414
23415else
23416
cristy8b350f62009-11-15 23:12:43 +000023417 for ac_func in gettimeofday ftime
23418do :
23419 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23420ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23421eval as_val=\$$as_ac_var
23422 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000023423 cat >>confdefs.h <<_ACEOF
23424#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23425_ACEOF
23426 break
23427fi
23428done
23429
23430
23431
23432fi
23433
23434
cristy3ed852e2009-09-05 21:47:34 +000023435########
23436#
23437# Check for function prototypes
23438#
23439########
23440
cristy8b350f62009-11-15 23:12:43 +000023441ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000023442#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023443"
23444if test "x$ac_cv_have_decl_pread" = x""yes; then :
23445 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023446else
cristy8b350f62009-11-15 23:12:43 +000023447 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023448fi
23449
cristy3ed852e2009-09-05 21:47:34 +000023450cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023451#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023452_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023453ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000023454#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023455"
23456if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23457 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023458else
cristy8b350f62009-11-15 23:12:43 +000023459 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023460fi
23461
cristy3ed852e2009-09-05 21:47:34 +000023462cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023463#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023464_ACEOF
23465
23466
cristy8b350f62009-11-15 23:12:43 +000023467ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000023468#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000023469"
23470if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23471 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023472else
cristy8b350f62009-11-15 23:12:43 +000023473 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023474fi
23475
cristy3ed852e2009-09-05 21:47:34 +000023476cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023477#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023478_ACEOF
23479
23480
cristy8b350f62009-11-15 23:12:43 +000023481ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000023482#include <stdio.h>
23483#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000023484"
23485if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23486 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023487else
cristy8b350f62009-11-15 23:12:43 +000023488 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023489fi
23490
cristy3ed852e2009-09-05 21:47:34 +000023491cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023492#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023493_ACEOF
23494
23495
cristy3ed852e2009-09-05 21:47:34 +000023496########
23497#
23498# C++ Support Tests (For Magick++)
23499#
23500########
23501have_magick_plus_plus='no'
23502if test "$with_magick_plus_plus" = 'yes'; then
23503 OLIBS="$LIBS"
23504 LIBS=''
23505 ac_ext=cpp
23506ac_cpp='$CXXCPP $CPPFLAGS'
23507ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23508ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23509ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23510
23511
23512 # Full set of headers used...
23513 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23514 # functional iomanip iosfwd iostream iterator list string strstream utility
23515 ac_ext=cpp
23516ac_cpp='$CXXCPP $CPPFLAGS'
23517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23520
23521 ac_ext=cpp
23522ac_cpp='$CXXCPP $CPPFLAGS'
23523ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23524ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23525ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23526if test -z "$CXX"; then
23527 if test -n "$CCC"; then
23528 CXX=$CCC
23529 else
23530 if test -n "$ac_tool_prefix"; then
23531 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23532 do
23533 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23534set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023536$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023537if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023538 $as_echo_n "(cached) " >&6
23539else
23540 if test -n "$CXX"; then
23541 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23542else
23543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23544for as_dir in $PATH
23545do
23546 IFS=$as_save_IFS
23547 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023548 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23550 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023552 break 2
23553 fi
23554done
cristy8b350f62009-11-15 23:12:43 +000023555 done
cristy3ed852e2009-09-05 21:47:34 +000023556IFS=$as_save_IFS
23557
23558fi
23559fi
23560CXX=$ac_cv_prog_CXX
23561if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023563$as_echo "$CXX" >&6; }
23564else
cristy8b350f62009-11-15 23:12:43 +000023565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023566$as_echo "no" >&6; }
23567fi
23568
23569
23570 test -n "$CXX" && break
23571 done
23572fi
23573if test -z "$CXX"; then
23574 ac_ct_CXX=$CXX
23575 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23576do
23577 # Extract the first word of "$ac_prog", so it can be a program name with args.
23578set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023580$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023581if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023582 $as_echo_n "(cached) " >&6
23583else
23584 if test -n "$ac_ct_CXX"; then
23585 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23586else
23587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23588for as_dir in $PATH
23589do
23590 IFS=$as_save_IFS
23591 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023592 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23594 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023596 break 2
23597 fi
23598done
cristy8b350f62009-11-15 23:12:43 +000023599 done
cristy3ed852e2009-09-05 21:47:34 +000023600IFS=$as_save_IFS
23601
23602fi
23603fi
23604ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23605if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023607$as_echo "$ac_ct_CXX" >&6; }
23608else
cristy8b350f62009-11-15 23:12:43 +000023609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023610$as_echo "no" >&6; }
23611fi
23612
23613
23614 test -n "$ac_ct_CXX" && break
23615done
23616
23617 if test "x$ac_ct_CXX" = x; then
23618 CXX="g++"
23619 else
23620 case $cross_compiling:$ac_tool_warned in
23621yes:)
cristy8b350f62009-11-15 23:12:43 +000023622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23624ac_tool_warned=yes ;;
23625esac
23626 CXX=$ac_ct_CXX
23627 fi
23628fi
23629
23630 fi
23631fi
23632# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023633$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023634set X $ac_compile
23635ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023636for ac_option in --version -v -V -qversion; do
23637 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023638case "(($ac_try" in
23639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23640 *) ac_try_echo=$ac_try;;
23641esac
cristy8b350f62009-11-15 23:12:43 +000023642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23643$as_echo "$ac_try_echo"; } >&5
23644 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023645 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023646 if test -s conftest.err; then
23647 sed '10a\
23648... rest of stderr output deleted ...
23649 10q' conftest.err >conftest.er1
23650 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023651 fi
cristycd4c5312009-11-22 01:19:08 +000023652 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23654 test $ac_status = 0; }
23655done
cristy3ed852e2009-09-05 21:47:34 +000023656
cristy8b350f62009-11-15 23:12:43 +000023657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023658$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023659if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023660 $as_echo_n "(cached) " >&6
23661else
cristy8b350f62009-11-15 23:12:43 +000023662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023663/* end confdefs.h. */
23664
23665int
23666main ()
23667{
23668#ifndef __GNUC__
23669 choke me
23670#endif
23671
23672 ;
23673 return 0;
23674}
23675_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023676if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023677 ac_compiler_gnu=yes
23678else
cristy8b350f62009-11-15 23:12:43 +000023679 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023680fi
cristy3ed852e2009-09-05 21:47:34 +000023681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23682ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23683
23684fi
cristy8b350f62009-11-15 23:12:43 +000023685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023686$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23687if test $ac_compiler_gnu = yes; then
23688 GXX=yes
23689else
23690 GXX=
23691fi
23692ac_test_CXXFLAGS=${CXXFLAGS+set}
23693ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023695$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023696if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023697 $as_echo_n "(cached) " >&6
23698else
23699 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23700 ac_cxx_werror_flag=yes
23701 ac_cv_prog_cxx_g=no
23702 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023704/* end confdefs.h. */
23705
23706int
23707main ()
23708{
23709
23710 ;
23711 return 0;
23712}
23713_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023714if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023715 ac_cv_prog_cxx_g=yes
23716else
cristy8b350f62009-11-15 23:12:43 +000023717 CXXFLAGS=""
23718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023719/* end confdefs.h. */
23720
23721int
23722main ()
23723{
23724
23725 ;
23726 return 0;
23727}
23728_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023729if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023730
cristy8b350f62009-11-15 23:12:43 +000023731else
23732 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023733 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023735/* end confdefs.h. */
23736
23737int
23738main ()
23739{
23740
23741 ;
23742 return 0;
23743}
23744_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023745if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023746 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023747fi
cristy3ed852e2009-09-05 21:47:34 +000023748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23749fi
cristy3ed852e2009-09-05 21:47:34 +000023750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23751fi
cristy3ed852e2009-09-05 21:47:34 +000023752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23753 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23754fi
cristy8b350f62009-11-15 23:12:43 +000023755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023756$as_echo "$ac_cv_prog_cxx_g" >&6; }
23757if test "$ac_test_CXXFLAGS" = set; then
23758 CXXFLAGS=$ac_save_CXXFLAGS
23759elif test $ac_cv_prog_cxx_g = yes; then
23760 if test "$GXX" = yes; then
23761 CXXFLAGS="-g -O2"
23762 else
23763 CXXFLAGS="-g"
23764 fi
23765else
23766 if test "$GXX" = yes; then
23767 CXXFLAGS="-O2"
23768 else
23769 CXXFLAGS=
23770 fi
23771fi
23772ac_ext=cpp
23773ac_cpp='$CXXCPP $CPPFLAGS'
23774ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23775ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23776ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23777
23778depcc="$CXX" am_compiler_list=
23779
cristy8b350f62009-11-15 23:12:43 +000023780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023781$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023782if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023783 $as_echo_n "(cached) " >&6
23784else
23785 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23786 # We make a subdir and do the tests there. Otherwise we can end up
23787 # making bogus files that we don't know about and never remove. For
23788 # instance it was reported that on HP-UX the gcc test will end up
23789 # making a dummy file named `D' -- because `-MD' means `put the output
23790 # in D'.
23791 mkdir conftest.dir
23792 # Copy depcomp to subdir because otherwise we won't find it if we're
23793 # using a relative directory.
23794 cp "$am_depcomp" conftest.dir
23795 cd conftest.dir
23796 # We will build objects and dependencies in a subdirectory because
23797 # it helps to detect inapplicable dependency modes. For instance
23798 # both Tru64's cc and ICC support -MD to output dependencies as a
23799 # side effect of compilation, but ICC will put the dependencies in
23800 # the current directory while Tru64 will put them in the object
23801 # directory.
23802 mkdir sub
23803
23804 am_cv_CXX_dependencies_compiler_type=none
23805 if test "$am_compiler_list" = ""; then
23806 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23807 fi
23808 am__universal=false
23809 case " $depcc " in #(
23810 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23811 esac
23812
23813 for depmode in $am_compiler_list; do
23814 # Setup a source with many dependencies, because some compilers
23815 # like to wrap large dependency lists on column 80 (with \), and
23816 # we should not choose a depcomp mode which is confused by this.
23817 #
23818 # We need to recreate these files for each test, as the compiler may
23819 # overwrite some of them when testing with obscure command lines.
23820 # This happens at least with the AIX C compiler.
23821 : > sub/conftest.c
23822 for i in 1 2 3 4 5 6; do
23823 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23824 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23825 # Solaris 8's {/usr,}/bin/sh.
23826 touch sub/conftst$i.h
23827 done
23828 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23829
23830 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23831 # mode. It turns out that the SunPro C++ compiler does not properly
23832 # handle `-M -o', and we need to detect this. Also, some Intel
23833 # versions had trouble with output in subdirs
23834 am__obj=sub/conftest.${OBJEXT-o}
23835 am__minus_obj="-o $am__obj"
23836 case $depmode in
23837 gcc)
23838 # This depmode causes a compiler race in universal mode.
23839 test "$am__universal" = false || continue
23840 ;;
23841 nosideeffect)
23842 # after this tag, mechanisms are not by side-effect, so they'll
23843 # only be used when explicitly requested
23844 if test "x$enable_dependency_tracking" = xyes; then
23845 continue
23846 else
23847 break
23848 fi
23849 ;;
23850 msvisualcpp | msvcmsys)
23851 # This compiler won't grok `-c -o', but also, the minuso test has
23852 # not run yet. These depmodes are late enough in the game, and
23853 # so weak that their functioning should not be impacted.
23854 am__obj=conftest.${OBJEXT-o}
23855 am__minus_obj=
23856 ;;
23857 none) break ;;
23858 esac
23859 if depmode=$depmode \
23860 source=sub/conftest.c object=$am__obj \
23861 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23862 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23863 >/dev/null 2>conftest.err &&
23864 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23865 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23866 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23867 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23868 # icc doesn't choke on unknown options, it will just issue warnings
23869 # or remarks (even with -Werror). So we grep stderr for any message
23870 # that says an option was ignored or not supported.
23871 # When given -MP, icc 7.0 and 7.1 complain thusly:
23872 # icc: Command line warning: ignoring option '-M'; no argument required
23873 # The diagnosis changed in icc 8.0:
23874 # icc: Command line remark: option '-MP' not supported
23875 if (grep 'ignoring option' conftest.err ||
23876 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23877 am_cv_CXX_dependencies_compiler_type=$depmode
23878 break
23879 fi
23880 fi
23881 done
23882
23883 cd ..
23884 rm -rf conftest.dir
23885else
23886 am_cv_CXX_dependencies_compiler_type=none
23887fi
23888
23889fi
cristy8b350f62009-11-15 23:12:43 +000023890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023891$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23892CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23893
23894 if
23895 test "x$enable_dependency_tracking" != xno \
23896 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23897 am__fastdepCXX_TRUE=
23898 am__fastdepCXX_FALSE='#'
23899else
23900 am__fastdepCXX_TRUE='#'
23901 am__fastdepCXX_FALSE=
23902fi
23903
23904
cristy8b350f62009-11-15 23:12:43 +000023905 { $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 +000023906$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023907if test "${ax_cv_cxx_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023908 $as_echo_n "(cached) " >&6
23909else
23910
23911 ac_ext=cpp
23912ac_cpp='$CXXCPP $CPPFLAGS'
23913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23916
cristy8b350f62009-11-15 23:12:43 +000023917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023918/* end confdefs.h. */
23919
23920int f(int x){return 1;}
23921int f(char x){return 1;}
23922int f(bool x){return 1;}
23923
23924int
23925main ()
23926{
23927bool b = true; return f(b);
23928 ;
23929 return 0;
23930}
23931_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023932if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023933 ax_cv_cxx_bool=yes
cristy3ed852e2009-09-05 21:47:34 +000023934else
cristy964cb7f2010-04-25 23:18:00 +000023935 ax_cv_cxx_bool=no
cristy3ed852e2009-09-05 21:47:34 +000023936fi
cristy3ed852e2009-09-05 21:47:34 +000023937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23938 ac_ext=cpp
23939ac_cpp='$CXXCPP $CPPFLAGS'
23940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23943
23944
23945fi
cristy964cb7f2010-04-25 23:18:00 +000023946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23947$as_echo "$ax_cv_cxx_bool" >&6; }
23948if test "$ax_cv_cxx_bool" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023949
cristy8b350f62009-11-15 23:12:43 +000023950$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023951
23952fi
23953
cristy8b350f62009-11-15 23:12:43 +000023954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023955$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023956if test "${ax_cv_cxx_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023957 $as_echo_n "(cached) " >&6
23958else
23959
23960 ac_ext=cpp
23961ac_cpp='$CXXCPP $CPPFLAGS'
23962ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23963ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23964ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23965
cristy8b350f62009-11-15 23:12:43 +000023966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023967/* end confdefs.h. */
23968namespace Outer { namespace Inner { int i = 0; }}
23969int
23970main ()
23971{
23972using namespace Outer::Inner; return i;
23973 ;
23974 return 0;
23975}
23976_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023977if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023978 ax_cv_cxx_namespaces=yes
cristy3ed852e2009-09-05 21:47:34 +000023979else
cristy964cb7f2010-04-25 23:18:00 +000023980 ax_cv_cxx_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000023981fi
cristy3ed852e2009-09-05 21:47:34 +000023982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23983 ac_ext=cpp
23984ac_cpp='$CXXCPP $CPPFLAGS'
23985ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23986ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23987ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23988
23989
23990fi
cristy964cb7f2010-04-25 23:18:00 +000023991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23992$as_echo "$ax_cv_cxx_namespaces" >&6; }
23993if test "$ax_cv_cxx_namespaces" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023994
cristy8b350f62009-11-15 23:12:43 +000023995$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023996
23997fi
23998
cristy964cb7f2010-04-25 23:18:00 +000023999
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
24001$as_echo_n "checking if g++ supports namespace std... " >&6; }
24002if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024003 $as_echo_n "(cached) " >&6
24004else
24005
cristy964cb7f2010-04-25 23:18:00 +000024006 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000024007ac_cpp='$CXXCPP $CPPFLAGS'
24008ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24009ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24010ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24011
cristy964cb7f2010-04-25 23:18:00 +000024012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024013/* end confdefs.h. */
24014#include <iostream>
cristy964cb7f2010-04-25 23:18:00 +000024015 std::istream& is = std::cin;
cristy3ed852e2009-09-05 21:47:34 +000024016int
24017main ()
24018{
cristy964cb7f2010-04-25 23:18:00 +000024019
cristy3ed852e2009-09-05 21:47:34 +000024020 ;
24021 return 0;
24022}
24023_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024024if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000024025 ax_cv_cxx_have_std_namespace=yes
cristy3ed852e2009-09-05 21:47:34 +000024026else
cristy964cb7f2010-04-25 23:18:00 +000024027 ax_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000024028fi
cristy3ed852e2009-09-05 21:47:34 +000024029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
24036
24037fi
cristy964cb7f2010-04-25 23:18:00 +000024038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
24039$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
24040 if test "$ax_cv_cxx_have_std_namespace" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000024041
cristy964cb7f2010-04-25 23:18:00 +000024042$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024043
cristy964cb7f2010-04-25 23:18:00 +000024044 fi
cristy3ed852e2009-09-05 21:47:34 +000024045
cristy8b350f62009-11-15 23:12:43 +000024046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000024047$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024048if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024049 $as_echo_n "(cached) " >&6
24050else
24051
24052
24053 ac_ext=cpp
24054ac_cpp='$CXXCPP $CPPFLAGS'
24055ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24056ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24057ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24058
cristy8b350f62009-11-15 23:12:43 +000024059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024060/* end confdefs.h. */
24061#include <iostream>
24062#include <map>
24063#include <iomanip>
24064#include <cmath>
24065#ifdef HAVE_NAMESPACES
24066using namespace std;
24067#endif
24068int
24069main ()
24070{
24071return 0;
24072 ;
24073 return 0;
24074}
24075_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024076if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024077 ac_cv_cxx_have_std_libs=yes
24078else
cristy8b350f62009-11-15 23:12:43 +000024079 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000024080fi
cristy3ed852e2009-09-05 21:47:34 +000024081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24082 ac_ext=cpp
24083ac_cpp='$CXXCPP $CPPFLAGS'
24084ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24085ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24086ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24087
24088
24089fi
cristy8b350f62009-11-15 23:12:43 +000024090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000024091$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
24092if test "$ac_cv_cxx_have_std_libs" = yes; then
24093
cristy8b350f62009-11-15 23:12:43 +000024094$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024095
24096fi
24097
cristy8b350f62009-11-15 23:12:43 +000024098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000024099$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024100if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024101 $as_echo_n "(cached) " >&6
24102else
24103
24104 ac_ext=cpp
24105ac_cpp='$CXXCPP $CPPFLAGS'
24106ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24107ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24108ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24109
cristy8b350f62009-11-15 23:12:43 +000024110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024111/* end confdefs.h. */
24112const wchar_t* s=L"wide string";
24113_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024114if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024115 ac_cv_cxx_have_lstring=yes
24116else
cristy8b350f62009-11-15 23:12:43 +000024117 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000024118fi
cristy3ed852e2009-09-05 21:47:34 +000024119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24120 ac_ext=cpp
24121ac_cpp='$CXXCPP $CPPFLAGS'
24122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24125
24126
24127fi
cristy8b350f62009-11-15 23:12:43 +000024128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000024129$as_echo "$ac_cv_cxx_have_lstring" >&6; }
24130if test "$ac_cv_cxx_have_lstring" = yes; then
24131
cristy8b350f62009-11-15 23:12:43 +000024132$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024133
24134fi
24135
24136
24137 OPENMP_CXXFLAGS=
24138 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000024139if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024140 enableval=$enable_openmp;
24141fi
24142
24143 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000024144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
24145$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024146if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024147 $as_echo_n "(cached) " >&6
24148else
cristy8b350f62009-11-15 23:12:43 +000024149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24150/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024151
24152#ifndef _OPENMP
24153 choke me
24154#endif
24155#include <omp.h>
24156int main () { return omp_get_num_threads (); }
24157
24158_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024159if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024160 ac_cv_prog_cxx_openmp='none needed'
24161else
cristy8b350f62009-11-15 23:12:43 +000024162 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000024163 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
24164 ac_save_CXXFLAGS=$CXXFLAGS
24165 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000024166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24167/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024168
24169#ifndef _OPENMP
24170 choke me
24171#endif
24172#include <omp.h>
24173int main () { return omp_get_num_threads (); }
24174
24175_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024176if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024177 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000024178fi
cristy8b350f62009-11-15 23:12:43 +000024179rm -f core conftest.err conftest.$ac_objext \
24180 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024181 CXXFLAGS=$ac_save_CXXFLAGS
24182 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24183 break
24184 fi
24185 done
24186fi
cristy8b350f62009-11-15 23:12:43 +000024187rm -f core conftest.err conftest.$ac_objext \
24188 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024189fi
cristy8b350f62009-11-15 23:12:43 +000024190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024191$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24192 case $ac_cv_prog_cxx_openmp in #(
24193 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000024194 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000024195 *)
cristy8b350f62009-11-15 23:12:43 +000024196 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024197 esac
24198 fi
24199
24200
24201 ac_ext=c
24202ac_cpp='$CPP $CPPFLAGS'
24203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24205ac_compiler_gnu=$ac_cv_c_compiler_gnu
24206
24207
cristy8b350f62009-11-15 23:12:43 +000024208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024209$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24210 if \
cristy964cb7f2010-04-25 23:18:00 +000024211 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024212 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024213 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024214 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024215 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024216 have_magick_plus_plus='yes'
24217 else
24218 have_magick_plus_plus='no (failed tests)'
24219 fi
cristy8b350f62009-11-15 23:12:43 +000024220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024221$as_echo "$have_magick_plus_plus" >&6; }
24222 LIBS="$OLIBS"
24223fi
24224 if test "$have_magick_plus_plus" = 'yes'; then
24225 WITH_MAGICK_PLUS_PLUS_TRUE=
24226 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24227else
24228 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24229 WITH_MAGICK_PLUS_PLUS_FALSE=
24230fi
24231
24232
24233# Only check for delegate libraries in subdirectories if requested.
24234if test "$enable_delegate_build" != 'no'; then
24235 # Check for delegate sub-directories and add -I & -L options as required.
24236 # This presumes that delegates are installed as detailed in the ImageMagick
24237 # README. If delegates are installed in a standard location where the
24238 # compiler will automatically find them then these options should not be
24239 # required.
24240
24241 #
24242 # Most delegates have includes in the same directory as the library, but not all...
24243 #
24244 # Includes
cristy5850e4b2010-01-08 14:28:24 +000024245 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 +000024246 if test -d "$builddir/$dir"; then
24247 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24248 else
24249 if test -d "$srcdirfull/$dir"; then
24250 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24251 fi
24252 fi
24253 done
24254
24255 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000024256 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 +000024257 if test -d "$builddir/$dir/.libs"; then
24258 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24259 else
24260 if test -d "$srcdirfull/$dir/.libs"; then
24261 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24262 fi
24263 fi
24264 if test -d "$builddir/$dir"; then
24265 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24266 else
24267 if test -d "$srcdirfull/$dir"; then
24268 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24269 fi
24270 fi
24271 done
24272fi
24273
24274# Assume that delegate headers reside under same directory as ImageMagick
24275# installation prefix.
24276MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24277
24278#
24279# Find the X11 RGB database
24280#
cristy8b350f62009-11-15 23:12:43 +000024281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024282$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024283if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024284 $as_echo_n "(cached) " >&6
24285else
24286 # Look for the header file in a standard set of common directories.
24287# Check X11 before X11Rn because it is often a symlink to the current release.
24288 for ac_dir in \
24289 /lib/usr/lib/X11 \
24290 /usr/X11/lib \
24291 /usr/X11R4/lib \
24292 /usr/X11R5/lib \
24293 /usr/X11R6/lib \
24294 /usr/X11R7/lib \
24295 /usr/X386/lib \
24296 /usr/XFree86/lib/X11 \
24297 /usr/athena/lib \
24298 /usr/lib \
24299 /usr/lib/X11 \
24300 /usr/lib/X11R4 \
24301 /usr/lib/X11R5 \
24302 /usr/lib/X11R6 \
24303 /usr/lib/X11R7 \
24304 /usr/local/X11/lib \
24305 /usr/local/X11R4/lib \
24306 /usr/local/X11R5/lib \
24307 /usr/local/X11R6/lib \
24308 /usr/local/lib \
24309 /usr/local/lib/X11 \
24310 /usr/local/lib/X11R4 \
24311 /usr/local/lib/X11R5 \
24312 /usr/local/lib/X11R6 \
24313 /usr/local/lib/X11R7 \
24314 /usr/local/x11r5/lib \
24315 /usr/lpp/Xamples/lib \
24316 /usr/openwin/lib \
24317 /usr/openwin/share/lib \
24318 /usr/unsupported/lib \
24319 /usr/x386/lib \
24320 ; do
24321 if test -f "$ac_dir/X11/rgb.txt"; then
24322 im_cv_x_configure="$ac_dir/X11/"
24323 break
24324 elif test -f "$ac_dir/rgb.txt"; then
24325 im_cv_x_configure="$ac_dir/"
24326 break
24327 fi
24328
24329 done
24330fi
cristy8b350f62009-11-15 23:12:43 +000024331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024332$as_echo "$im_cv_x_configure" >&6; }
24333X11_CONFIGURE_PATH="$im_cv_x_configure"
24334case "${build_os}" in
24335 mingw* )
24336 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24337 ;;
24338esac
24339
24340cat >>confdefs.h <<_ACEOF
24341#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24342_ACEOF
24343
24344
24345#
24346# Find OpenMP library
24347#
24348GOMP_LIBS=''
24349if test "$enable_openmp" != 'no'; then
24350 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024352$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024353if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024354 $as_echo_n "(cached) " >&6
24355else
24356 ac_check_lib_save_LIBS=$LIBS
24357LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024359/* end confdefs.h. */
24360
24361/* Override any GCC internal prototype to avoid an error.
24362 Use char because int might match the return type of a GCC
24363 builtin and then its argument prototype would still apply. */
24364#ifdef __cplusplus
24365extern "C"
24366#endif
24367char GOMP_parallel_start ();
24368int
24369main ()
24370{
24371return GOMP_parallel_start ();
24372 ;
24373 return 0;
24374}
24375_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024376if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024377 ac_cv_lib_gomp_GOMP_parallel_start=yes
24378else
cristy8b350f62009-11-15 23:12:43 +000024379 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024380fi
cristy8b350f62009-11-15 23:12:43 +000024381rm -f core conftest.err conftest.$ac_objext \
24382 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024383LIBS=$ac_check_lib_save_LIBS
24384fi
cristy8b350f62009-11-15 23:12:43 +000024385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024386$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024387if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024388 GOMP_LIBS="-lgomp"
24389fi
24390 # gcc
24391 else
cristy8b350f62009-11-15 23:12:43 +000024392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024393$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024394if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024395 $as_echo_n "(cached) " >&6
24396else
24397 ac_check_lib_save_LIBS=$LIBS
24398LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024400/* end confdefs.h. */
24401
24402/* Override any GCC internal prototype to avoid an error.
24403 Use char because int might match the return type of a GCC
24404 builtin and then its argument prototype would still apply. */
24405#ifdef __cplusplus
24406extern "C"
24407#endif
24408char sunw_mp_register_warn ();
24409int
24410main ()
24411{
24412return sunw_mp_register_warn ();
24413 ;
24414 return 0;
24415}
24416_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024417if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024418 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24419else
cristy8b350f62009-11-15 23:12:43 +000024420 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000024421fi
cristy8b350f62009-11-15 23:12:43 +000024422rm -f core conftest.err conftest.$ac_objext \
24423 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024424LIBS=$ac_check_lib_save_LIBS
24425fi
cristy8b350f62009-11-15 23:12:43 +000024426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000024427$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024428if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024429 GOMP_LIBS="-lmtsk"
24430fi
24431 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000024432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024433$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024434if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024435 $as_echo_n "(cached) " >&6
24436else
24437 ac_check_lib_save_LIBS=$LIBS
24438LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024440/* end confdefs.h. */
24441
24442/* Override any GCC internal prototype to avoid an error.
24443 Use char because int might match the return type of a GCC
24444 builtin and then its argument prototype would still apply. */
24445#ifdef __cplusplus
24446extern "C"
24447#endif
24448char _xlsmpFlush ();
24449int
24450main ()
24451{
24452return _xlsmpFlush ();
24453 ;
24454 return 0;
24455}
24456_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024457if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024458 ac_cv_lib_xlsmp__xlsmpFlush=yes
24459else
cristy8b350f62009-11-15 23:12:43 +000024460 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000024461fi
cristy8b350f62009-11-15 23:12:43 +000024462rm -f core conftest.err conftest.$ac_objext \
24463 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024464LIBS=$ac_check_lib_save_LIBS
24465fi
cristy8b350f62009-11-15 23:12:43 +000024466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000024467$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024468if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024469 GOMP_LIBS="-lxlsmp"
24470fi
24471 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000024472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024473$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024474if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024475 $as_echo_n "(cached) " >&6
24476else
24477 ac_check_lib_save_LIBS=$LIBS
24478LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024480/* end confdefs.h. */
24481
24482/* Override any GCC internal prototype to avoid an error.
24483 Use char because int might match the return type of a GCC
24484 builtin and then its argument prototype would still apply. */
24485#ifdef __cplusplus
24486extern "C"
24487#endif
24488char mp_destroy ();
24489int
24490main ()
24491{
24492return mp_destroy ();
24493 ;
24494 return 0;
24495}
24496_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024497if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024498 ac_cv_lib_mp_mp_destroy=yes
24499else
cristy8b350f62009-11-15 23:12:43 +000024500 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000024501fi
cristy8b350f62009-11-15 23:12:43 +000024502rm -f core conftest.err conftest.$ac_objext \
24503 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024504LIBS=$ac_check_lib_save_LIBS
24505fi
cristy8b350f62009-11-15 23:12:43 +000024506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000024507$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024508if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024509 GOMP_LIBS="-lmp"
24510fi
24511 # SGI IRIX 6.5 MIPSpro C/C++
24512 fi
24513 LIBS="$GOMP_LIBS $LIBS"
24514fi
24515
24516
24517#
24518# Find Posix threads library
24519#
24520THREAD_LIBS=''
24521if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24522
24523 if test "x$PTHREAD_LIBS" = "x"; then
24524 case "${host_cpu}-${host_os}" in
24525 *-freebsd*)
24526
24527
24528
24529ac_ext=c
24530ac_cpp='$CPP $CPPFLAGS'
24531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24533ac_compiler_gnu=$ac_cv_c_compiler_gnu
24534
24535magick_pthread_lib_ok=no
24536
24537LIB=-lc_r
24538save_LIBS="$LIBS"
24539LIBS="$LIBS $LIB"
24540
cristy8b350f62009-11-15 23:12:43 +000024541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024542$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024544/* end confdefs.h. */
24545#include <pthread.h>
24546int
24547main ()
24548{
24549 pthread_t th;
24550 pthread_join(th, 0);
24551 pthread_attr_init(0);
24552 pthread_cleanup_push(0, 0);
24553 pthread_create(0,0,0,0);
24554 pthread_cleanup_pop(0);
24555 ;
24556 return 0;
24557}
24558_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024559if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024560 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024561fi
cristy8b350f62009-11-15 23:12:43 +000024562rm -f core conftest.err conftest.$ac_objext \
24563 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024564
cristy8b350f62009-11-15 23:12:43 +000024565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024566$as_echo "${magick_pthread_lib_ok}" >&6; }
24567if test "$magick_pthread_lib_ok" = yes
24568then
24569 PTHREAD_LIBS=-lc_r
24570 :
24571else
24572
24573 :
24574fi
24575
24576LIBS="$save_LIBS"
24577
24578ac_ext=c
24579ac_cpp='$CPP $CPPFLAGS'
24580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24582ac_compiler_gnu=$ac_cv_c_compiler_gnu
24583
24584 ;;
24585 esac
24586 fi
24587
24588 for lib in pthread pthreads; do
24589 if test "x$PTHREAD_LIBS" = "x"; then
24590
24591
24592
24593ac_ext=c
24594ac_cpp='$CPP $CPPFLAGS'
24595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24597ac_compiler_gnu=$ac_cv_c_compiler_gnu
24598
24599magick_pthread_lib_ok=no
24600
24601LIB=-l$lib
24602save_LIBS="$LIBS"
24603LIBS="$LIBS $LIB"
24604
cristy8b350f62009-11-15 23:12:43 +000024605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024606$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024608/* end confdefs.h. */
24609#include <pthread.h>
24610int
24611main ()
24612{
24613 pthread_t th;
24614 pthread_join(th, 0);
24615 pthread_attr_init(0);
24616 pthread_cleanup_push(0, 0);
24617 pthread_create(0,0,0,0);
24618 pthread_cleanup_pop(0);
24619 ;
24620 return 0;
24621}
24622_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024623if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024624 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024625fi
cristy8b350f62009-11-15 23:12:43 +000024626rm -f core conftest.err conftest.$ac_objext \
24627 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024628
cristy8b350f62009-11-15 23:12:43 +000024629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024630$as_echo "${magick_pthread_lib_ok}" >&6; }
24631if test "$magick_pthread_lib_ok" = yes
24632then
24633 PTHREAD_LIBS=-l$lib
24634 :
24635else
24636
24637 :
24638fi
24639
24640LIBS="$save_LIBS"
24641
24642ac_ext=c
24643ac_cpp='$CPP $CPPFLAGS'
24644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24646ac_compiler_gnu=$ac_cv_c_compiler_gnu
24647
24648
24649 fi
24650 done
24651
24652 THREAD_LIBS="$PTHREAD_LIBS"
24653 LIBS="$LIBS $THREAD_LIBS"
24654fi
24655
24656
24657#
24658# Check for umem.
24659#
24660have_umem='no'
24661UMEM_LIBS=''
24662if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024664$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024666$as_echo "" >&6; }
24667 failed=0
24668 passed=0
cristy8b350f62009-11-15 23:12:43 +000024669 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24670if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024671 passed=`expr $passed + 1`
24672else
24673 failed=`expr $failed + 1`
24674fi
24675
24676
cristy8b350f62009-11-15 23:12:43 +000024677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024678$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024679if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024680 $as_echo_n "(cached) " >&6
24681else
24682 ac_check_lib_save_LIBS=$LIBS
24683LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024685/* end confdefs.h. */
24686
24687/* Override any GCC internal prototype to avoid an error.
24688 Use char because int might match the return type of a GCC
24689 builtin and then its argument prototype would still apply. */
24690#ifdef __cplusplus
24691extern "C"
24692#endif
24693char umem_alloc ();
24694int
24695main ()
24696{
24697return umem_alloc ();
24698 ;
24699 return 0;
24700}
24701_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024702if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024703 ac_cv_lib_umem_umem_alloc=yes
24704else
cristy8b350f62009-11-15 23:12:43 +000024705 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024706fi
cristy8b350f62009-11-15 23:12:43 +000024707rm -f core conftest.err conftest.$ac_objext \
24708 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024709LIBS=$ac_check_lib_save_LIBS
24710fi
cristy8b350f62009-11-15 23:12:43 +000024711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024712$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024713if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024714 passed=`expr $passed + 1`
24715else
24716 failed=`expr $failed + 1`
24717fi
24718
cristy8b350f62009-11-15 23:12:43 +000024719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024720$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024721if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024722 $as_echo_n "(cached) " >&6
24723else
24724 ac_check_lib_save_LIBS=$LIBS
24725LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024727/* end confdefs.h. */
24728
24729/* Override any GCC internal prototype to avoid an error.
24730 Use char because int might match the return type of a GCC
24731 builtin and then its argument prototype would still apply. */
24732#ifdef __cplusplus
24733extern "C"
24734#endif
24735char umem_free ();
24736int
24737main ()
24738{
24739return umem_free ();
24740 ;
24741 return 0;
24742}
24743_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024744if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024745 ac_cv_lib_umem_umem_free=yes
24746else
cristy8b350f62009-11-15 23:12:43 +000024747 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024748fi
cristy8b350f62009-11-15 23:12:43 +000024749rm -f core conftest.err conftest.$ac_objext \
24750 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024751LIBS=$ac_check_lib_save_LIBS
24752fi
cristy8b350f62009-11-15 23:12:43 +000024753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024754$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024755if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024756 passed=`expr $passed + 1`
24757else
24758 failed=`expr $failed + 1`
24759fi
24760
cristy8b350f62009-11-15 23:12:43 +000024761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024762$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24763 if test $passed -gt 0; then
24764 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024766$as_echo "no -- some components failed test" >&6; }
24767 have_umem='no (failed tests)'
24768 else
24769 UMEM_LIBS='-lumem'
24770 LIBS="$UMEM_LIBS $LIBS"
24771
cristy8b350f62009-11-15 23:12:43 +000024772$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024773
cristy8b350f62009-11-15 23:12:43 +000024774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024775$as_echo "yes" >&6; }
24776 have_umem='yes'
24777 fi
24778 else
cristy8b350f62009-11-15 23:12:43 +000024779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024780$as_echo "no" >&6; }
24781 fi
24782fi
24783 if test "$have_umem" = 'yes'; then
24784 HasUMEM_TRUE=
24785 HasUMEM_FALSE='#'
24786else
24787 HasUMEM_TRUE='#'
24788 HasUMEM_FALSE=
24789fi
24790
24791
24792
24793#
24794# Add support for ccmalloc memory debugging library if requested
24795#
24796have_ccmalloc='no'
24797CCMALLOC_LIBS=''
24798if test "$enable_ccmalloc" = 'yes'; then
24799 # Extract the first word of "ccmalloc", so it can be a program name with args.
24800set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024802$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024803if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024804 $as_echo_n "(cached) " >&6
24805else
24806 case $CCMALLOCDelegate in
24807 [\\/]* | ?:[\\/]*)
24808 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24809 ;;
24810 *)
24811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24812for as_dir in $PATH
24813do
24814 IFS=$as_save_IFS
24815 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024816 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24818 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024820 break 2
24821 fi
24822done
cristy8b350f62009-11-15 23:12:43 +000024823 done
cristy3ed852e2009-09-05 21:47:34 +000024824IFS=$as_save_IFS
24825
24826 ;;
24827esac
24828fi
24829CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24830if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024832$as_echo "$CCMALLOCDelegate" >&6; }
24833else
cristy8b350f62009-11-15 23:12:43 +000024834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024835$as_echo "no" >&6; }
24836fi
24837
24838
24839 if test -n "$CCMALLOCDelegate"; then
24840 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24841 OLIBS="$LIBS"
24842 # Assume that gcc is used with ccmalloc.
24843 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024845$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024846if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024847 $as_echo_n "(cached) " >&6
24848else
24849 ac_check_lib_save_LIBS=$LIBS
24850LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024852/* end confdefs.h. */
24853
24854/* Override any GCC internal prototype to avoid an error.
24855 Use char because int might match the return type of a GCC
24856 builtin and then its argument prototype would still apply. */
24857#ifdef __cplusplus
24858extern "C"
24859#endif
24860char ccmalloc_malloc ();
24861int
24862main ()
24863{
24864return ccmalloc_malloc ();
24865 ;
24866 return 0;
24867}
24868_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024869if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024870 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24871else
cristy8b350f62009-11-15 23:12:43 +000024872 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024873fi
cristy8b350f62009-11-15 23:12:43 +000024874rm -f core conftest.err conftest.$ac_objext \
24875 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024876LIBS=$ac_check_lib_save_LIBS
24877fi
cristy8b350f62009-11-15 23:12:43 +000024878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024879$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024880if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024881 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24882fi
24883
24884 if test -n "$CCMALLOC_LIBS"; then
24885 LIBS="$OLIBS"
24886 LIBS="$LIBS $CCMALLOC_LIBS"
24887 have_ccmalloc='yes'
24888 else
24889 LIBS="$OLIBS"
24890 fi
24891 fi
24892fi
24893
24894#
24895# Add support for efence memory debugging library if requested
24896#
24897if test "$enable_efence" = 'yes'; then
24898 EFENCE_LIBS='-lefence'
24899 LIBS="$EFENCE_LIBS $LIBS"
24900fi
24901
cristy3ed852e2009-09-05 21:47:34 +000024902
24903#
24904# Check for BZLIB
24905#
24906
24907
24908# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024909if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024910 withval=$with_bzlib; with_bzlib=$withval
24911else
24912 with_bzlib='yes'
24913fi
24914
24915
24916if test "$with_bzlib" != 'yes'; then
24917 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24918fi
24919
24920have_bzlib='no'
24921if test "$with_bzlib" != 'no'; then
24922 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024924$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024926$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024928$as_echo "" >&6; }
24929 failed=0
24930 passed=0
24931 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024932 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24933if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024934 passed=`expr $passed + 1`
24935else
24936 failed=`expr $failed + 1`
24937fi
24938
24939
cristy8b350f62009-11-15 23:12:43 +000024940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024941$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024942if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024943 $as_echo_n "(cached) " >&6
24944else
24945 ac_check_lib_save_LIBS=$LIBS
24946LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024948/* end confdefs.h. */
24949
24950/* Override any GCC internal prototype to avoid an error.
24951 Use char because int might match the return type of a GCC
24952 builtin and then its argument prototype would still apply. */
24953#ifdef __cplusplus
24954extern "C"
24955#endif
24956char BZ2_bzDecompress ();
24957int
24958main ()
24959{
24960return BZ2_bzDecompress ();
24961 ;
24962 return 0;
24963}
24964_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024965if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024966 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24967else
cristy8b350f62009-11-15 23:12:43 +000024968 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024969fi
cristy8b350f62009-11-15 23:12:43 +000024970rm -f core conftest.err conftest.$ac_objext \
24971 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024972LIBS=$ac_check_lib_save_LIBS
24973fi
cristy8b350f62009-11-15 23:12:43 +000024974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024975$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024976if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024977 found_libbz=`expr $found_libbz + 1`
24978fi
24979
24980 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024982$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024983if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024984 $as_echo_n "(cached) " >&6
24985else
24986 ac_check_lib_save_LIBS=$LIBS
24987LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024989/* end confdefs.h. */
24990
24991/* Override any GCC internal prototype to avoid an error.
24992 Use char because int might match the return type of a GCC
24993 builtin and then its argument prototype would still apply. */
24994#ifdef __cplusplus
24995extern "C"
24996#endif
24997char _imp__BZ2_decompress ();
24998int
24999main ()
25000{
25001return _imp__BZ2_decompress ();
25002 ;
25003 return 0;
25004}
25005_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025006if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025007 ac_cv_lib_bz2__imp__BZ2_decompress=yes
25008else
cristy8b350f62009-11-15 23:12:43 +000025009 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000025010fi
cristy8b350f62009-11-15 23:12:43 +000025011rm -f core conftest.err conftest.$ac_objext \
25012 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025013LIBS=$ac_check_lib_save_LIBS
25014fi
cristy8b350f62009-11-15 23:12:43 +000025015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025016$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025017if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025018 found_libbz=`expr $found_libbz + 1`
25019fi
25020
25021 fi
25022 if test $found_libbz -gt 0; then
25023 passed=`expr $passed + 1`
25024 else
25025 failed=`expr $failed + 1`
25026 fi
cristy8b350f62009-11-15 23:12:43 +000025027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025028$as_echo_n "checking if BZLIB package is complete... " >&6; }
25029 if test $passed -gt 0; then
25030 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025032$as_echo "no -- some components failed test" >&6; }
25033 have_bzlib='no (failed tests)'
25034 else
25035 BZLIB_LIBS='-lbz2'
25036 LIBS="$BZLIB_LIBS $LIBS"
25037
cristy8b350f62009-11-15 23:12:43 +000025038$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025039
cristy8b350f62009-11-15 23:12:43 +000025040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025041$as_echo "yes" >&6; }
25042 have_bzlib='yes'
25043 fi
25044 else
cristy8b350f62009-11-15 23:12:43 +000025045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025046$as_echo "no" >&6; }
25047 fi
25048fi
25049 if test "$have_bzlib" = 'yes'; then
25050 BZLIB_DELEGATE_TRUE=
25051 BZLIB_DELEGATE_FALSE='#'
25052else
25053 BZLIB_DELEGATE_TRUE='#'
25054 BZLIB_DELEGATE_FALSE=
25055fi
25056
25057
25058
25059#
25060# Find the X11 include and library directories.
25061#
25062IPC_LIBS=''
25063X11_LIBS=''
25064XEXT_LIBS=''
25065XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000025067$as_echo_n "checking for X... " >&6; }
25068
25069
25070# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000025071if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025072 withval=$with_x;
25073fi
25074
25075# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25076if test "x$with_x" = xno; then
25077 # The user explicitly disabled X.
25078 have_x=disabled
25079else
25080 case $x_includes,$x_libraries in #(
cristy8b350f62009-11-15 23:12:43 +000025081 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
25082 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025083 $as_echo_n "(cached) " >&6
25084else
25085 # One or both of the vars are not set, and there is no cached value.
25086ac_x_includes=no ac_x_libraries=no
25087rm -f -r conftest.dir
25088if mkdir conftest.dir; then
25089 cd conftest.dir
25090 cat >Imakefile <<'_ACEOF'
25091incroot:
25092 @echo incroot='${INCROOT}'
25093usrlibdir:
25094 @echo usrlibdir='${USRLIBDIR}'
25095libdir:
25096 @echo libdir='${LIBDIR}'
25097_ACEOF
25098 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25099 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25100 for ac_var in incroot usrlibdir libdir; do
25101 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25102 done
25103 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25104 for ac_extension in a so sl dylib la dll; do
25105 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25106 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25107 ac_im_usrlibdir=$ac_im_libdir; break
25108 fi
25109 done
25110 # Screen out bogus values from the imake configuration. They are
25111 # bogus both because they are the default anyway, and because
25112 # using them would break gcc on systems where it needs fixed includes.
25113 case $ac_im_incroot in
25114 /usr/include) ac_x_includes= ;;
25115 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25116 esac
25117 case $ac_im_usrlibdir in
25118 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25119 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25120 esac
25121 fi
25122 cd ..
25123 rm -f -r conftest.dir
25124fi
25125
25126# Standard set of common directories for X headers.
25127# Check X11 before X11Rn because it is often a symlink to the current release.
25128ac_x_header_dirs='
25129/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000025130/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025131/usr/X11R6/include
25132/usr/X11R5/include
25133/usr/X11R4/include
25134
25135/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000025136/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025137/usr/include/X11R6
25138/usr/include/X11R5
25139/usr/include/X11R4
25140
25141/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000025142/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025143/usr/local/X11R6/include
25144/usr/local/X11R5/include
25145/usr/local/X11R4/include
25146
25147/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000025148/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025149/usr/local/include/X11R6
25150/usr/local/include/X11R5
25151/usr/local/include/X11R4
25152
25153/usr/X386/include
25154/usr/x386/include
25155/usr/XFree86/include/X11
25156
25157/usr/include
25158/usr/local/include
25159/usr/unsupported/include
25160/usr/athena/include
25161/usr/local/x11r5/include
25162/usr/lpp/Xamples/include
25163
25164/usr/openwin/include
25165/usr/openwin/share/include'
25166
25167if test "$ac_x_includes" = no; then
25168 # Guess where to find include files, by looking for Xlib.h.
25169 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000025170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025171/* end confdefs.h. */
25172#include <X11/Xlib.h>
25173_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025174if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025175 # We can compile using X headers with no special include directory.
25176ac_x_includes=
25177else
cristyc7083c12009-10-14 03:16:55 +000025178 for ac_dir in $ac_x_header_dirs; do
25179 if test -r "$ac_dir/X11/Xlib.h"; then
25180 ac_x_includes=$ac_dir
25181 break
25182 fi
25183done
25184fi
cristyc7083c12009-10-14 03:16:55 +000025185rm -f conftest.err conftest.$ac_ext
25186fi # $ac_x_includes = no
25187
25188if test "$ac_x_libraries" = no; then
25189 # Check for the libraries.
25190 # See if we find them without any special options.
25191 # Don't add to $LIBS permanently.
25192 ac_save_LIBS=$LIBS
25193 LIBS="-lX11 $LIBS"
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>
25197int
25198main ()
25199{
25200XrmInitialize ()
25201 ;
25202 return 0;
25203}
25204_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025205if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025206 LIBS=$ac_save_LIBS
25207# We can link X programs with no special library path.
25208ac_x_libraries=
25209else
cristy8b350f62009-11-15 23:12:43 +000025210 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025211for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25212do
25213 # Don't even attempt the hair of trying to link an X program!
25214 for ac_extension in a so sl dylib la dll; do
25215 if test -r "$ac_dir/libX11.$ac_extension"; then
25216 ac_x_libraries=$ac_dir
25217 break 2
25218 fi
25219 done
25220done
25221fi
cristy8b350f62009-11-15 23:12:43 +000025222rm -f core conftest.err conftest.$ac_objext \
25223 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025224fi # $ac_x_libraries = no
25225
25226case $ac_x_includes,$ac_x_libraries in #(
25227 no,* | *,no | *\'*)
25228 # Didn't find X, or a directory has "'" in its name.
25229 ac_cv_have_x="have_x=no";; #(
25230 *)
25231 # Record where we found X for the cache.
25232 ac_cv_have_x="have_x=yes\
25233 ac_x_includes='$ac_x_includes'\
25234 ac_x_libraries='$ac_x_libraries'"
25235esac
25236fi
25237;; #(
25238 *) have_x=yes;;
25239 esac
25240 eval "$ac_cv_have_x"
25241fi # $with_x != no
25242
25243if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025245$as_echo "$have_x" >&6; }
25246 no_x=yes
25247else
25248 # If each of the values was on the command line, it overrides each guess.
25249 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25250 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25251 # Update the cache value to reflect the command line values.
25252 ac_cv_have_x="have_x=yes\
25253 ac_x_includes='$x_includes'\
25254 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025256$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25257fi
25258
cristy3ed852e2009-09-05 21:47:34 +000025259if test "$no_x" = yes; then
25260 # Not all programs may use this symbol, but it does not hurt to define it.
25261
cristy8b350f62009-11-15 23:12:43 +000025262$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025263
25264 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25265else
25266 if test -n "$x_includes"; then
25267 X_CFLAGS="$X_CFLAGS -I$x_includes"
25268 fi
25269
25270 # It would also be nice to do this for all -L options, not just this one.
25271 if test -n "$x_libraries"; then
25272 X_LIBS="$X_LIBS -L$x_libraries"
25273 # For Solaris; some versions of Sun CC require a space after -R and
25274 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025276$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25277 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25278 ac_xsave_c_werror_flag=$ac_c_werror_flag
25279 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025281/* end confdefs.h. */
25282
25283int
25284main ()
25285{
25286
25287 ;
25288 return 0;
25289}
25290_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025291if ac_fn_c_try_link "$LINENO"; then :
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025293$as_echo "no" >&6; }
25294 X_LIBS="$X_LIBS -R$x_libraries"
25295else
cristy8b350f62009-11-15 23:12:43 +000025296 LIBS="$ac_xsave_LIBS -R $x_libraries"
25297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025298/* end confdefs.h. */
25299
25300int
25301main ()
25302{
25303
25304 ;
25305 return 0;
25306}
25307_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025308if ac_fn_c_try_link "$LINENO"; then :
25309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025310$as_echo "yes" >&6; }
25311 X_LIBS="$X_LIBS -R $x_libraries"
25312else
cristy8b350f62009-11-15 23:12:43 +000025313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025314$as_echo "neither works" >&6; }
25315fi
cristy8b350f62009-11-15 23:12:43 +000025316rm -f core conftest.err conftest.$ac_objext \
25317 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025318fi
cristy8b350f62009-11-15 23:12:43 +000025319rm -f core conftest.err conftest.$ac_objext \
25320 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025321 ac_c_werror_flag=$ac_xsave_c_werror_flag
25322 LIBS=$ac_xsave_LIBS
25323 fi
25324
25325 # Check for system-dependent libraries X programs must link with.
25326 # Do this before checking for the system-independent R6 libraries
25327 # (-lICE), since we may need -lsocket or whatever for X linking.
25328
25329 if test "$ISC" = yes; then
25330 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25331 else
25332 # Martyn Johnson says this is needed for Ultrix, if the X
25333 # libraries were built with DECnet support. And Karl Berry says
25334 # the Alpha needs dnet_stub (dnet does not exist).
25335 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025337/* end confdefs.h. */
25338
25339/* Override any GCC internal prototype to avoid an error.
25340 Use char because int might match the return type of a GCC
25341 builtin and then its argument prototype would still apply. */
25342#ifdef __cplusplus
25343extern "C"
25344#endif
25345char XOpenDisplay ();
25346int
25347main ()
25348{
25349return XOpenDisplay ();
25350 ;
25351 return 0;
25352}
25353_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025354if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025355
cristy8b350f62009-11-15 23:12:43 +000025356else
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025358$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025359if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025360 $as_echo_n "(cached) " >&6
25361else
25362 ac_check_lib_save_LIBS=$LIBS
25363LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025365/* end confdefs.h. */
25366
25367/* Override any GCC internal prototype to avoid an error.
25368 Use char because int might match the return type of a GCC
25369 builtin and then its argument prototype would still apply. */
25370#ifdef __cplusplus
25371extern "C"
25372#endif
25373char dnet_ntoa ();
25374int
25375main ()
25376{
25377return dnet_ntoa ();
25378 ;
25379 return 0;
25380}
25381_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025382if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025383 ac_cv_lib_dnet_dnet_ntoa=yes
25384else
cristy8b350f62009-11-15 23:12:43 +000025385 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025386fi
cristy8b350f62009-11-15 23:12:43 +000025387rm -f core conftest.err conftest.$ac_objext \
25388 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025389LIBS=$ac_check_lib_save_LIBS
25390fi
cristy8b350f62009-11-15 23:12:43 +000025391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025392$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025393if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025394 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25395fi
25396
25397 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000025398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000025399$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025400if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025401 $as_echo_n "(cached) " >&6
25402else
25403 ac_check_lib_save_LIBS=$LIBS
25404LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025406/* end confdefs.h. */
25407
25408/* Override any GCC internal prototype to avoid an error.
25409 Use char because int might match the return type of a GCC
25410 builtin and then its argument prototype would still apply. */
25411#ifdef __cplusplus
25412extern "C"
25413#endif
25414char dnet_ntoa ();
25415int
25416main ()
25417{
25418return dnet_ntoa ();
25419 ;
25420 return 0;
25421}
25422_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025423if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025424 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25425else
cristy8b350f62009-11-15 23:12:43 +000025426 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025427fi
cristy8b350f62009-11-15 23:12:43 +000025428rm -f core conftest.err conftest.$ac_objext \
25429 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025430LIBS=$ac_check_lib_save_LIBS
25431fi
cristy8b350f62009-11-15 23:12:43 +000025432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025433$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025434if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025435 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25436fi
25437
25438 fi
25439fi
cristy8b350f62009-11-15 23:12:43 +000025440rm -f core conftest.err conftest.$ac_objext \
25441 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025442 LIBS="$ac_xsave_LIBS"
25443
25444 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25445 # to get the SysV transport functions.
25446 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25447 # needs -lnsl.
25448 # The nsl library prevents programs from opening the X display
25449 # on Irix 5.2, according to T.E. Dickey.
25450 # The functions gethostbyname, getservbyname, and inet_addr are
25451 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000025452 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25453if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025454
cristy3ed852e2009-09-05 21:47:34 +000025455fi
25456
cristy3ed852e2009-09-05 21:47:34 +000025457 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025459$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025460if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025461 $as_echo_n "(cached) " >&6
25462else
25463 ac_check_lib_save_LIBS=$LIBS
25464LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025466/* end confdefs.h. */
25467
25468/* Override any GCC internal prototype to avoid an error.
25469 Use char because int might match the return type of a GCC
25470 builtin and then its argument prototype would still apply. */
25471#ifdef __cplusplus
25472extern "C"
25473#endif
25474char gethostbyname ();
25475int
25476main ()
25477{
25478return gethostbyname ();
25479 ;
25480 return 0;
25481}
25482_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025483if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025484 ac_cv_lib_nsl_gethostbyname=yes
25485else
cristy8b350f62009-11-15 23:12:43 +000025486 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025487fi
cristy8b350f62009-11-15 23:12:43 +000025488rm -f core conftest.err conftest.$ac_objext \
25489 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025490LIBS=$ac_check_lib_save_LIBS
25491fi
cristy8b350f62009-11-15 23:12:43 +000025492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025493$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025494if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025495 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25496fi
25497
25498 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000025500$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025501if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025502 $as_echo_n "(cached) " >&6
25503else
25504 ac_check_lib_save_LIBS=$LIBS
25505LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025507/* end confdefs.h. */
25508
25509/* Override any GCC internal prototype to avoid an error.
25510 Use char because int might match the return type of a GCC
25511 builtin and then its argument prototype would still apply. */
25512#ifdef __cplusplus
25513extern "C"
25514#endif
25515char gethostbyname ();
25516int
25517main ()
25518{
25519return gethostbyname ();
25520 ;
25521 return 0;
25522}
25523_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025524if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025525 ac_cv_lib_bsd_gethostbyname=yes
25526else
cristy8b350f62009-11-15 23:12:43 +000025527 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025528fi
cristy8b350f62009-11-15 23:12:43 +000025529rm -f core conftest.err conftest.$ac_objext \
25530 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025531LIBS=$ac_check_lib_save_LIBS
25532fi
cristy8b350f62009-11-15 23:12:43 +000025533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025534$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025535if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025536 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25537fi
25538
25539 fi
25540 fi
25541
25542 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25543 # socket/setsockopt and other routines are undefined under SCO ODT
25544 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25545 # on later versions), says Simon Leinen: it contains gethostby*
25546 # variants that don't use the name server (or something). -lsocket
25547 # must be given before -lnsl if both are needed. We assume that
25548 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000025549 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25550if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025551
cristy3ed852e2009-09-05 21:47:34 +000025552fi
25553
cristy3ed852e2009-09-05 21:47:34 +000025554 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000025555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000025556$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025557if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025558 $as_echo_n "(cached) " >&6
25559else
25560 ac_check_lib_save_LIBS=$LIBS
25561LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025563/* end confdefs.h. */
25564
25565/* Override any GCC internal prototype to avoid an error.
25566 Use char because int might match the return type of a GCC
25567 builtin and then its argument prototype would still apply. */
25568#ifdef __cplusplus
25569extern "C"
25570#endif
25571char connect ();
25572int
25573main ()
25574{
25575return connect ();
25576 ;
25577 return 0;
25578}
25579_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025580if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025581 ac_cv_lib_socket_connect=yes
25582else
cristy8b350f62009-11-15 23:12:43 +000025583 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000025584fi
cristy8b350f62009-11-15 23:12:43 +000025585rm -f core conftest.err conftest.$ac_objext \
25586 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025587LIBS=$ac_check_lib_save_LIBS
25588fi
cristy8b350f62009-11-15 23:12:43 +000025589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000025590$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025591if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025592 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25593fi
25594
25595 fi
25596
25597 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000025598 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25599if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025600
cristy3ed852e2009-09-05 21:47:34 +000025601fi
25602
cristy3ed852e2009-09-05 21:47:34 +000025603 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000025604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000025605$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025606if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025607 $as_echo_n "(cached) " >&6
25608else
25609 ac_check_lib_save_LIBS=$LIBS
25610LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025612/* end confdefs.h. */
25613
25614/* Override any GCC internal prototype to avoid an error.
25615 Use char because int might match the return type of a GCC
25616 builtin and then its argument prototype would still apply. */
25617#ifdef __cplusplus
25618extern "C"
25619#endif
25620char remove ();
25621int
25622main ()
25623{
25624return remove ();
25625 ;
25626 return 0;
25627}
25628_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025629if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025630 ac_cv_lib_posix_remove=yes
25631else
cristy8b350f62009-11-15 23:12:43 +000025632 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025633fi
cristy8b350f62009-11-15 23:12:43 +000025634rm -f core conftest.err conftest.$ac_objext \
25635 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025636LIBS=$ac_check_lib_save_LIBS
25637fi
cristy8b350f62009-11-15 23:12:43 +000025638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025639$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025640if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025641 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25642fi
25643
25644 fi
25645
25646 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025647 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25648if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025649
cristy3ed852e2009-09-05 21:47:34 +000025650fi
25651
cristy3ed852e2009-09-05 21:47:34 +000025652 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025654$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025655if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025656 $as_echo_n "(cached) " >&6
25657else
25658 ac_check_lib_save_LIBS=$LIBS
25659LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025661/* end confdefs.h. */
25662
25663/* Override any GCC internal prototype to avoid an error.
25664 Use char because int might match the return type of a GCC
25665 builtin and then its argument prototype would still apply. */
25666#ifdef __cplusplus
25667extern "C"
25668#endif
25669char shmat ();
25670int
25671main ()
25672{
25673return shmat ();
25674 ;
25675 return 0;
25676}
25677_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025678if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025679 ac_cv_lib_ipc_shmat=yes
25680else
cristy8b350f62009-11-15 23:12:43 +000025681 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025682fi
cristy8b350f62009-11-15 23:12:43 +000025683rm -f core conftest.err conftest.$ac_objext \
25684 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025685LIBS=$ac_check_lib_save_LIBS
25686fi
cristy8b350f62009-11-15 23:12:43 +000025687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025688$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025689if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025690 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25691fi
25692
25693 fi
25694 fi
25695
25696 # Check for libraries that X11R6 Xt/Xaw programs need.
25697 ac_save_LDFLAGS=$LDFLAGS
25698 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25699 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25700 # check for ICE first), but we must link in the order -lSM -lICE or
25701 # we get undefined symbols. So assume we have SM if we have ICE.
25702 # These have to be linked with before -lX11, unlike the other
25703 # libraries we check for below, so use a different variable.
25704 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025706$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025707if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025708 $as_echo_n "(cached) " >&6
25709else
25710 ac_check_lib_save_LIBS=$LIBS
25711LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025713/* end confdefs.h. */
25714
25715/* Override any GCC internal prototype to avoid an error.
25716 Use char because int might match the return type of a GCC
25717 builtin and then its argument prototype would still apply. */
25718#ifdef __cplusplus
25719extern "C"
25720#endif
25721char IceConnectionNumber ();
25722int
25723main ()
25724{
25725return IceConnectionNumber ();
25726 ;
25727 return 0;
25728}
25729_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025730if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025731 ac_cv_lib_ICE_IceConnectionNumber=yes
25732else
cristy8b350f62009-11-15 23:12:43 +000025733 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025734fi
cristy8b350f62009-11-15 23:12:43 +000025735rm -f core conftest.err conftest.$ac_objext \
25736 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025737LIBS=$ac_check_lib_save_LIBS
25738fi
cristy8b350f62009-11-15 23:12:43 +000025739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025740$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025741if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025742 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25743fi
25744
25745 LDFLAGS=$ac_save_LDFLAGS
25746
25747fi
25748
25749if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025751$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025753$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025755$as_echo "" >&6; }
25756 LDFLAGS="$LDFLAGS $X_LIBS"
25757 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25758 LIBS="$X11_LIBS $LIBS"
25759 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25760
25761
cristy8b350f62009-11-15 23:12:43 +000025762$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025763
25764 #
25765 # Check for X11 shared memory extension
25766 #
25767 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025768 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25769if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025770 have_shmctl='yes'
25771fi
25772
25773 if test "$have_shmctl" != 'yes'; then
25774 PERSIST_LIBS=$LIBS
25775 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025777/* end confdefs.h. */
25778
25779/* Override any GCC internal prototype to avoid an error.
25780 Use char because int might match the return type of a GCC
25781 builtin and then its argument prototype would still apply. */
25782#ifdef __cplusplus
25783extern "C"
25784#endif
25785char shmctl ();
25786int
25787main ()
25788{
25789return shmctl ();
25790 ;
25791 return 0;
25792}
25793_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025794if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025795 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025796fi
cristy8b350f62009-11-15 23:12:43 +000025797rm -f core conftest.err conftest.$ac_objext \
25798 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025799 LIBS=$PERSIST_LIBS
25800 fi
25801
25802 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025804$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025805if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025806 $as_echo_n "(cached) " >&6
25807else
25808 ac_check_lib_save_LIBS=$LIBS
25809LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025811/* end confdefs.h. */
25812
25813/* Override any GCC internal prototype to avoid an error.
25814 Use char because int might match the return type of a GCC
25815 builtin and then its argument prototype would still apply. */
25816#ifdef __cplusplus
25817extern "C"
25818#endif
25819char XShmAttach ();
25820int
25821main ()
25822{
25823return XShmAttach ();
25824 ;
25825 return 0;
25826}
25827_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025828if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025829 ac_cv_lib_Xext_XShmAttach=yes
25830else
cristy8b350f62009-11-15 23:12:43 +000025831 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025832fi
cristy8b350f62009-11-15 23:12:43 +000025833rm -f core conftest.err conftest.$ac_objext \
25834 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025835LIBS=$ac_check_lib_save_LIBS
25836fi
cristy8b350f62009-11-15 23:12:43 +000025837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025838$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025839if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025840 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025841$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025842
25843fi
25844
25845 fi
25846
25847 #
25848 # Check for X11 shape extension
25849 #
cristy8b350f62009-11-15 23:12:43 +000025850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025851$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025852if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025853 $as_echo_n "(cached) " >&6
25854else
25855 ac_check_lib_save_LIBS=$LIBS
25856LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025858/* end confdefs.h. */
25859
25860/* Override any GCC internal prototype to avoid an error.
25861 Use char because int might match the return type of a GCC
25862 builtin and then its argument prototype would still apply. */
25863#ifdef __cplusplus
25864extern "C"
25865#endif
25866char XShapeCombineMask ();
25867int
25868main ()
25869{
25870return XShapeCombineMask ();
25871 ;
25872 return 0;
25873}
25874_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025875if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025876 ac_cv_lib_Xext_XShapeCombineMask=yes
25877else
cristy8b350f62009-11-15 23:12:43 +000025878 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025879fi
cristy8b350f62009-11-15 23:12:43 +000025880rm -f core conftest.err conftest.$ac_objext \
25881 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025882LIBS=$ac_check_lib_save_LIBS
25883fi
cristy8b350f62009-11-15 23:12:43 +000025884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025885$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025886if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025887 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025888$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025889
25890fi
25891
cristy8b350f62009-11-15 23:12:43 +000025892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025893$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025894if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025895 $as_echo_n "(cached) " >&6
25896else
25897 ac_check_lib_save_LIBS=$LIBS
25898LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025900/* end confdefs.h. */
25901
25902/* Override any GCC internal prototype to avoid an error.
25903 Use char because int might match the return type of a GCC
25904 builtin and then its argument prototype would still apply. */
25905#ifdef __cplusplus
25906extern "C"
25907#endif
25908char XtSetEventDispatcher ();
25909int
25910main ()
25911{
25912return XtSetEventDispatcher ();
25913 ;
25914 return 0;
25915}
25916_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025917if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025918 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25919else
cristy8b350f62009-11-15 23:12:43 +000025920 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025921fi
cristy8b350f62009-11-15 23:12:43 +000025922rm -f core conftest.err conftest.$ac_objext \
25923 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025924LIBS=$ac_check_lib_save_LIBS
25925fi
cristy8b350f62009-11-15 23:12:43 +000025926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025927$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025928if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025929 XT_LIBS='-lXt'
25930fi
25931
25932 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25933fi
25934if test "$no_x" != 'yes'; then
25935 have_x='yes'
25936else
25937 have_x='no'
25938fi
25939 if test "$have_x" = 'yes'; then
25940 X11_DELEGATE_TRUE=
25941 X11_DELEGATE_FALSE='#'
25942else
25943 X11_DELEGATE_TRUE='#'
25944 X11_DELEGATE_FALSE=
25945fi
25946
25947
25948
25949
25950
25951#
25952# Check for ZLIB
25953#
25954
25955# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025956if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025957 withval=$with_zlib; with_zlib=$withval
25958else
25959 with_zlib='yes'
25960fi
25961
25962
25963if test "$with_zlib" != 'yes'; then
25964 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25965fi
25966
25967have_zlib='no'
25968ZLIB_LIBS=''
25969if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025971$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025973$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025975$as_echo "" >&6; }
25976 ZLIB_LIBS=''
25977 failed=0
25978 passed=0
cristy8b350f62009-11-15 23:12:43 +000025979 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25980if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025981 passed=`expr $passed + 1`
25982else
25983 failed=`expr $failed + 1`
25984fi
25985
25986
cristy8b350f62009-11-15 23:12:43 +000025987 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25988if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025989 passed=`expr $passed + 1`
25990else
25991 failed=`expr $failed + 1`
25992fi
25993
25994
cristy8b350f62009-11-15 23:12:43 +000025995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025996$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025997if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025998 $as_echo_n "(cached) " >&6
25999else
26000 ac_check_lib_save_LIBS=$LIBS
26001LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026003/* end confdefs.h. */
26004
26005/* Override any GCC internal prototype to avoid an error.
26006 Use char because int might match the return type of a GCC
26007 builtin and then its argument prototype would still apply. */
26008#ifdef __cplusplus
26009extern "C"
26010#endif
26011char compress ();
26012int
26013main ()
26014{
26015return compress ();
26016 ;
26017 return 0;
26018}
26019_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026020if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026021 ac_cv_lib_z_compress=yes
26022else
cristy8b350f62009-11-15 23:12:43 +000026023 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000026024fi
cristy8b350f62009-11-15 23:12:43 +000026025rm -f core conftest.err conftest.$ac_objext \
26026 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026027LIBS=$ac_check_lib_save_LIBS
26028fi
cristy8b350f62009-11-15 23:12:43 +000026029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026030$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026031if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026032 passed=`expr $passed + 1`
26033else
26034 failed=`expr $failed + 1`
26035fi
26036
cristy8b350f62009-11-15 23:12:43 +000026037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026038$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026039if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026040 $as_echo_n "(cached) " >&6
26041else
26042 ac_check_lib_save_LIBS=$LIBS
26043LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026045/* end confdefs.h. */
26046
26047/* Override any GCC internal prototype to avoid an error.
26048 Use char because int might match the return type of a GCC
26049 builtin and then its argument prototype would still apply. */
26050#ifdef __cplusplus
26051extern "C"
26052#endif
26053char uncompress ();
26054int
26055main ()
26056{
26057return uncompress ();
26058 ;
26059 return 0;
26060}
26061_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026062if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026063 ac_cv_lib_z_uncompress=yes
26064else
cristy8b350f62009-11-15 23:12:43 +000026065 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000026066fi
cristy8b350f62009-11-15 23:12:43 +000026067rm -f core conftest.err conftest.$ac_objext \
26068 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026069LIBS=$ac_check_lib_save_LIBS
26070fi
cristy8b350f62009-11-15 23:12:43 +000026071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026072$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026073if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026074 passed=`expr $passed + 1`
26075else
26076 failed=`expr $failed + 1`
26077fi
26078
cristy8b350f62009-11-15 23:12:43 +000026079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026080$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026081if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026082 $as_echo_n "(cached) " >&6
26083else
26084 ac_check_lib_save_LIBS=$LIBS
26085LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026087/* end confdefs.h. */
26088
26089/* Override any GCC internal prototype to avoid an error.
26090 Use char because int might match the return type of a GCC
26091 builtin and then its argument prototype would still apply. */
26092#ifdef __cplusplus
26093extern "C"
26094#endif
26095char deflate ();
26096int
26097main ()
26098{
26099return deflate ();
26100 ;
26101 return 0;
26102}
26103_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026104if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026105 ac_cv_lib_z_deflate=yes
26106else
cristy8b350f62009-11-15 23:12:43 +000026107 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000026108fi
cristy8b350f62009-11-15 23:12:43 +000026109rm -f core conftest.err conftest.$ac_objext \
26110 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026111LIBS=$ac_check_lib_save_LIBS
26112fi
cristy8b350f62009-11-15 23:12:43 +000026113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026114$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026115if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026116 passed=`expr $passed + 1`
26117else
26118 failed=`expr $failed + 1`
26119fi
26120
cristy8b350f62009-11-15 23:12:43 +000026121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026122$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026123if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026124 $as_echo_n "(cached) " >&6
26125else
26126 ac_check_lib_save_LIBS=$LIBS
26127LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026129/* end confdefs.h. */
26130
26131/* Override any GCC internal prototype to avoid an error.
26132 Use char because int might match the return type of a GCC
26133 builtin and then its argument prototype would still apply. */
26134#ifdef __cplusplus
26135extern "C"
26136#endif
26137char inflate ();
26138int
26139main ()
26140{
26141return inflate ();
26142 ;
26143 return 0;
26144}
26145_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026146if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026147 ac_cv_lib_z_inflate=yes
26148else
cristy8b350f62009-11-15 23:12:43 +000026149 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000026150fi
cristy8b350f62009-11-15 23:12:43 +000026151rm -f core conftest.err conftest.$ac_objext \
26152 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026153LIBS=$ac_check_lib_save_LIBS
26154fi
cristy8b350f62009-11-15 23:12:43 +000026155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026156$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026157if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026158 passed=`expr $passed + 1`
26159else
26160 failed=`expr $failed + 1`
26161fi
26162
cristy8b350f62009-11-15 23:12:43 +000026163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026164$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026165if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026166 $as_echo_n "(cached) " >&6
26167else
26168 ac_check_lib_save_LIBS=$LIBS
26169LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026171/* end confdefs.h. */
26172
26173/* Override any GCC internal prototype to avoid an error.
26174 Use char because int might match the return type of a GCC
26175 builtin and then its argument prototype would still apply. */
26176#ifdef __cplusplus
26177extern "C"
26178#endif
26179char gzseek ();
26180int
26181main ()
26182{
26183return gzseek ();
26184 ;
26185 return 0;
26186}
26187_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026188if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026189 ac_cv_lib_z_gzseek=yes
26190else
cristy8b350f62009-11-15 23:12:43 +000026191 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000026192fi
cristy8b350f62009-11-15 23:12:43 +000026193rm -f core conftest.err conftest.$ac_objext \
26194 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026195LIBS=$ac_check_lib_save_LIBS
26196fi
cristy8b350f62009-11-15 23:12:43 +000026197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026198$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026199if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026200 passed=`expr $passed + 1`
26201else
26202 failed=`expr $failed + 1`
26203fi
26204
cristy8b350f62009-11-15 23:12:43 +000026205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026206$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026207if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026208 $as_echo_n "(cached) " >&6
26209else
26210 ac_check_lib_save_LIBS=$LIBS
26211LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026213/* end confdefs.h. */
26214
26215/* Override any GCC internal prototype to avoid an error.
26216 Use char because int might match the return type of a GCC
26217 builtin and then its argument prototype would still apply. */
26218#ifdef __cplusplus
26219extern "C"
26220#endif
26221char gztell ();
26222int
26223main ()
26224{
26225return gztell ();
26226 ;
26227 return 0;
26228}
26229_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026230if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026231 ac_cv_lib_z_gztell=yes
26232else
cristy8b350f62009-11-15 23:12:43 +000026233 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026234fi
cristy8b350f62009-11-15 23:12:43 +000026235rm -f core conftest.err conftest.$ac_objext \
26236 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026237LIBS=$ac_check_lib_save_LIBS
26238fi
cristy8b350f62009-11-15 23:12:43 +000026239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026240$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026241if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026242 passed=`expr $passed + 1`
26243else
26244 failed=`expr $failed + 1`
26245fi
26246
cristy8b350f62009-11-15 23:12:43 +000026247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026248$as_echo_n "checking if ZLIB package is complete... " >&6; }
26249 if test $passed -gt 0; then
26250 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026252$as_echo "no -- some components failed test" >&6; }
26253 have_zlib='no (failed tests)'
26254 else
26255 ZLIB_LIBS='-lz'
26256 LIBS="$ZLIB_LIBS $LIBS"
26257
cristy8b350f62009-11-15 23:12:43 +000026258$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026259
cristy8b350f62009-11-15 23:12:43 +000026260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026261$as_echo "yes" >&6; }
26262 have_zlib='yes'
26263 fi
26264 else
cristy8b350f62009-11-15 23:12:43 +000026265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026266$as_echo "no" >&6; }
26267 fi
26268fi
26269 if test "$have_zlib" = 'yes'; then
26270 ZLIB_DELEGATE_TRUE=
26271 ZLIB_DELEGATE_FALSE='#'
26272else
26273 ZLIB_DELEGATE_TRUE='#'
26274 ZLIB_DELEGATE_FALSE=
26275fi
26276
26277
26278
26279#
26280# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26281#
26282LIB_DL=''
26283if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026285$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026286if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026287 $as_echo_n "(cached) " >&6
26288else
26289 ac_check_lib_save_LIBS=$LIBS
26290LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026292/* end confdefs.h. */
26293
26294/* Override any GCC internal prototype to avoid an error.
26295 Use char because int might match the return type of a GCC
26296 builtin and then its argument prototype would still apply. */
26297#ifdef __cplusplus
26298extern "C"
26299#endif
26300char dlopen ();
26301int
26302main ()
26303{
26304return dlopen ();
26305 ;
26306 return 0;
26307}
26308_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026309if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026310 ac_cv_lib_dl_dlopen=yes
26311else
cristy8b350f62009-11-15 23:12:43 +000026312 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026313fi
cristy8b350f62009-11-15 23:12:43 +000026314rm -f core conftest.err conftest.$ac_objext \
26315 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026316LIBS=$ac_check_lib_save_LIBS
26317fi
cristy8b350f62009-11-15 23:12:43 +000026318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026319$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026320if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026321 LIB_DL='-ldl'
26322fi
26323
26324 LIBS="$LIB_DL $LIBS"
26325fi
26326
26327
26328
26329#
26330# Check for Autotrace delegate library.
26331#
26332
26333# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026334if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026335 withval=$with_autotrace; with_autotrace=$withval
26336else
26337 with_autotrace='no'
26338fi
26339
26340
26341if test "$with_autotrace" != 'yes'; then
26342 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26343fi
26344
26345have_autotrace='no'
26346AUTOTRACE_CFLAGS=""
26347AUTOTRACE_LIBS=""
26348AUTOTRACE_PKG=""
26349if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026351$as_echo "-------------------------------------------------------------" >&6; }
26352
26353pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026355$as_echo_n "checking for AUTOTRACE... " >&6; }
26356
26357if test -n "$AUTOTRACE_CFLAGS"; then
26358 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26359 elif test -n "$PKG_CONFIG"; then
26360 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026361 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026362 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26363 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26365 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026366 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26367else
26368 pkg_failed=yes
26369fi
26370 else
26371 pkg_failed=untried
26372fi
26373if test -n "$AUTOTRACE_LIBS"; then
26374 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26375 elif test -n "$PKG_CONFIG"; then
26376 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026377 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026378 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26379 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26381 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026382 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26383else
26384 pkg_failed=yes
26385fi
26386 else
26387 pkg_failed=untried
26388fi
26389
26390
26391
26392if test $pkg_failed = yes; then
26393
26394if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26395 _pkg_short_errors_supported=yes
26396else
26397 _pkg_short_errors_supported=no
26398fi
26399 if test $_pkg_short_errors_supported = yes; then
26400 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26401 else
26402 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26403 fi
26404 # Put the nasty error message in config.log where it belongs
26405 echo "$AUTOTRACE_PKG_ERRORS" >&5
26406
cristy8b350f62009-11-15 23:12:43 +000026407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026408$as_echo "no" >&6; }
26409 have_autotrace=no
26410elif test $pkg_failed = untried; then
26411 have_autotrace=no
26412else
26413 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26414 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000026415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026416$as_echo "yes" >&6; }
26417 have_autotrace=yes
26418fi
cristy8b350f62009-11-15 23:12:43 +000026419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026420$as_echo "" >&6; }
26421fi
26422
26423if test "$have_autotrace" = 'yes'; then
26424 failed=0
26425
cristy8b350f62009-11-15 23:12:43 +000026426$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026427
26428 if test "$with_modules" = 'no'; then
26429 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26430 fi
26431fi
26432
26433 if test "$have_autotrace" = 'yes'; then
26434 AUTOTRACE_DELEGATE_TRUE=
26435 AUTOTRACE_DELEGATE_FALSE='#'
26436else
26437 AUTOTRACE_DELEGATE_TRUE='#'
26438 AUTOTRACE_DELEGATE_FALSE=
26439fi
26440
26441
26442
26443
26444
26445#
26446# Check for Display Postscript delegate library.
26447#
26448
26449# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000026450if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026451 withval=$with_dps; with_dps=$withval
26452else
26453 with_dps='yes'
26454fi
26455
26456
26457if test "$with_dps" != 'yes'; then
26458 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26459fi
26460
26461have_dps='no'
26462DPS_LIBS=''
26463if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026465$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026467$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026469$as_echo "" >&6; }
26470 failed=0
26471 passed=0
26472 PERSIST_CPPFLAGS="$CPPFLAGS"
26473 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000026474 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26475if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026476 passed=`expr $passed + 1`
26477else
26478 failed=`expr $failed + 1`
26479fi
26480
26481
26482 # DPS issues:
26483 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26484 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26485 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26486 # ImageMagick itself doesn't use -lXt.
26487 have_libdps='no'
26488 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000026489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026490$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026491if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026492 $as_echo_n "(cached) " >&6
26493else
26494 ac_check_lib_save_LIBS=$LIBS
26495LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026497/* end confdefs.h. */
26498
26499/* Override any GCC internal prototype to avoid an error.
26500 Use char because int might match the return type of a GCC
26501 builtin and then its argument prototype would still apply. */
26502#ifdef __cplusplus
26503extern "C"
26504#endif
26505char DPSInitialize ();
26506int
26507main ()
26508{
26509return DPSInitialize ();
26510 ;
26511 return 0;
26512}
26513_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026514if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026515 ac_cv_lib_dps_DPSInitialize=yes
26516else
cristy8b350f62009-11-15 23:12:43 +000026517 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026518fi
cristy8b350f62009-11-15 23:12:43 +000026519rm -f core conftest.err conftest.$ac_objext \
26520 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026521LIBS=$ac_check_lib_save_LIBS
26522fi
cristy8b350f62009-11-15 23:12:43 +000026523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026524$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026525if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026526 have_libdps='yes'
26527else
26528 have_libdps='no'
26529fi
26530
26531 if test "$have_libdps" != 'yes'; then
26532 # Unset cache variable so we can try again.
26533 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000026534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026535$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026536if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026537 $as_echo_n "(cached) " >&6
26538else
26539 ac_check_lib_save_LIBS=$LIBS
26540LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026542/* end confdefs.h. */
26543
26544/* Override any GCC internal prototype to avoid an error.
26545 Use char because int might match the return type of a GCC
26546 builtin and then its argument prototype would still apply. */
26547#ifdef __cplusplus
26548extern "C"
26549#endif
26550char DPSInitialize ();
26551int
26552main ()
26553{
26554return DPSInitialize ();
26555 ;
26556 return 0;
26557}
26558_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026559if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026560 ac_cv_lib_dps_DPSInitialize=yes
26561else
cristy8b350f62009-11-15 23:12:43 +000026562 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026563fi
cristy8b350f62009-11-15 23:12:43 +000026564rm -f core conftest.err conftest.$ac_objext \
26565 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026566LIBS=$ac_check_lib_save_LIBS
26567fi
cristy8b350f62009-11-15 23:12:43 +000026568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026569$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026570if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026571 have_libdps='yes'
26572else
26573 have_libdps='no'
26574fi
26575
26576 if test "$have_libdps" = 'yes'; then
26577 LIBDPS_XT='-lXt'
26578 fi
26579 fi
26580 if test "$have_libdps" = 'yes'; then
26581 passed=`expr $passed + 1`
26582 else
26583 failed=`expr $failed + 1`
26584 fi
cristy8b350f62009-11-15 23:12:43 +000026585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026586$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026587if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026588 $as_echo_n "(cached) " >&6
26589else
26590 ac_check_lib_save_LIBS=$LIBS
26591LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026593/* end confdefs.h. */
26594
26595/* Override any GCC internal prototype to avoid an error.
26596 Use char because int might match the return type of a GCC
26597 builtin and then its argument prototype would still apply. */
26598#ifdef __cplusplus
26599extern "C"
26600#endif
26601char XDPSPixelsPerPoint ();
26602int
26603main ()
26604{
26605return XDPSPixelsPerPoint ();
26606 ;
26607 return 0;
26608}
26609_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026610if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026611 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26612else
cristy8b350f62009-11-15 23:12:43 +000026613 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000026614fi
cristy8b350f62009-11-15 23:12:43 +000026615rm -f core conftest.err conftest.$ac_objext \
26616 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026617LIBS=$ac_check_lib_save_LIBS
26618fi
cristy8b350f62009-11-15 23:12:43 +000026619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026620$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026621if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026622 passed=`expr $passed + 1`
26623else
26624 failed=`expr $failed + 1`
26625fi
26626
cristy8b350f62009-11-15 23:12:43 +000026627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026628$as_echo_n "checking if DPS package is complete... " >&6; }
26629 if test $passed -gt 0; then
26630 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026632$as_echo "no -- some components failed test" >&6; }
26633 have_dps='no (failed tests)'
26634 CPPFLAGS="$PERSIST_CPPFLAGS"
26635 else
26636 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26637 LIBS="$DPS_LIBS $LIBS"
26638
cristy8b350f62009-11-15 23:12:43 +000026639$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026640
cristy8b350f62009-11-15 23:12:43 +000026641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026642$as_echo "yes" >&6; }
26643 have_dps='yes'
26644 fi
26645 else
cristy8b350f62009-11-15 23:12:43 +000026646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026647$as_echo "no" >&6; }
26648 CPPFLAGS=$PERSIST_CPPFLAGS
26649 fi
26650fi
26651 if test "$have_dps" = 'yes'; then
26652 DPS_DELEGATE_TRUE=
26653 DPS_DELEGATE_FALSE='#'
26654else
26655 DPS_DELEGATE_TRUE='#'
26656 DPS_DELEGATE_FALSE=
26657fi
26658
26659
26660
26661
26662#
26663# Check for DJVU delegate library.
26664#
26665
26666# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026667if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026668 withval=$with_djvu; with_djvu=$withval
26669else
26670 with_djvu='yes'
26671fi
26672
26673
26674if test "$with_djvu" != 'yes'; then
26675 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26676fi
26677
26678have_djvu='no'
26679DJVU_LIBS=''
26680if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026682$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026684$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026686$as_echo "" >&6; }
26687 failed=0
26688 passed=0
cristy8b350f62009-11-15 23:12:43 +000026689 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26690if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026691 passed=`expr $passed + 1`
26692else
26693 failed=`expr $failed + 1`
26694fi
26695
26696
cristy8b350f62009-11-15 23:12:43 +000026697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026698$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026699if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026700 $as_echo_n "(cached) " >&6
26701else
26702 ac_check_lib_save_LIBS=$LIBS
26703LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026705/* end confdefs.h. */
26706
26707/* Override any GCC internal prototype to avoid an error.
26708 Use char because int might match the return type of a GCC
26709 builtin and then its argument prototype would still apply. */
26710#ifdef __cplusplus
26711extern "C"
26712#endif
26713char ddjvu_context_create ();
26714int
26715main ()
26716{
26717return ddjvu_context_create ();
26718 ;
26719 return 0;
26720}
26721_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026722if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026723 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26724else
cristy8b350f62009-11-15 23:12:43 +000026725 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026726fi
cristy8b350f62009-11-15 23:12:43 +000026727rm -f core conftest.err conftest.$ac_objext \
26728 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026729LIBS=$ac_check_lib_save_LIBS
26730fi
cristy8b350f62009-11-15 23:12:43 +000026731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026732$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026733if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026734 passed=`expr $passed + 1`
26735else
26736 failed=`expr $failed + 1`
26737fi
26738
cristy8b350f62009-11-15 23:12:43 +000026739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026740$as_echo_n "checking if DJVU package is complete... " >&6; }
26741 if test $passed -gt 0; then
26742 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026744$as_echo "no -- some components failed test" >&6; }
26745 have_djvu='no (failed tests)'
26746 else
26747 DJVU_LIBS='-ldjvulibre'
26748 LIBS="$DJVU_LIBS $LIBS"
26749
cristy8b350f62009-11-15 23:12:43 +000026750$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026751
cristy8b350f62009-11-15 23:12:43 +000026752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026753$as_echo "yes" >&6; }
26754 have_djvu='yes'
26755 fi
26756 else
cristy8b350f62009-11-15 23:12:43 +000026757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026758$as_echo "no" >&6; }
26759 fi
26760fi
26761 if test "$have_djvu" = 'yes'; then
26762 DJVU_DELEGATE_TRUE=
26763 DJVU_DELEGATE_FALSE='#'
26764else
26765 DJVU_DELEGATE_TRUE='#'
26766 DJVU_DELEGATE_FALSE=
26767fi
26768
26769
26770
26771
26772#
cristy430a7312010-01-21 20:44:04 +000026773# Set DejaVu font directory.
26774#
26775
26776# Check whether --with-dejavu-font-dir was given.
26777if test "${with_dejavu_font_dir+set}" = set; then :
26778 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26779else
26780 with_dejavu_font_dir='default'
26781fi
26782
26783
26784if test "$with_dejavu_font_dir" != 'default'; then
26785 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26786fi
26787
26788
26789#
cristy3ed852e2009-09-05 21:47:34 +000026790# Check for FFTW delegate library.
26791#
26792
26793# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026794if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026795 withval=$with_fftw; with_fftw=$withval
26796else
26797 with_fftw='yes'
26798fi
26799
26800
26801if test "$with_fftw" != 'yes'; then
26802 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26803fi
26804
26805have_fftw='no'
26806FFTW_LIBS=''
26807if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026809$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026811$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026813$as_echo "" >&6; }
26814 failed=0
26815 passed=0
cristy8b350f62009-11-15 23:12:43 +000026816 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26817if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026818 passed=`expr $passed + 1`
26819else
26820 failed=`expr $failed + 1`
26821fi
26822
26823
cristy8b350f62009-11-15 23:12:43 +000026824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026825$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026826if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026827 $as_echo_n "(cached) " >&6
26828else
26829 ac_check_lib_save_LIBS=$LIBS
26830LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026832/* end confdefs.h. */
26833
26834/* Override any GCC internal prototype to avoid an error.
26835 Use char because int might match the return type of a GCC
26836 builtin and then its argument prototype would still apply. */
26837#ifdef __cplusplus
26838extern "C"
26839#endif
26840char fftw_execute ();
26841int
26842main ()
26843{
26844return fftw_execute ();
26845 ;
26846 return 0;
26847}
26848_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026849if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026850 ac_cv_lib_fftw3_fftw_execute=yes
26851else
cristy8b350f62009-11-15 23:12:43 +000026852 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026853fi
cristy8b350f62009-11-15 23:12:43 +000026854rm -f core conftest.err conftest.$ac_objext \
26855 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026856LIBS=$ac_check_lib_save_LIBS
26857fi
cristy8b350f62009-11-15 23:12:43 +000026858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026859$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026860if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026861 passed=`expr $passed + 1`
26862else
26863 failed=`expr $failed + 1`
26864fi
26865
cristy8b350f62009-11-15 23:12:43 +000026866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026867$as_echo_n "checking if FFTW package is complete... " >&6; }
26868 if test $passed -gt 0; then
26869 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026871$as_echo "no -- some components failed test" >&6; }
26872 have_fftw='no (failed tests)'
26873 else
26874 FFTW_LIBS='-lfftw3'
26875 LIBS="$FFTW_LIBS $LIBS"
26876
cristy8b350f62009-11-15 23:12:43 +000026877$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026878
cristy8b350f62009-11-15 23:12:43 +000026879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026880$as_echo "yes" >&6; }
26881 have_fftw='yes'
26882 fi
26883 else
cristy8b350f62009-11-15 23:12:43 +000026884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026885$as_echo "no" >&6; }
26886 fi
26887fi
26888 if test "$have_fftw" = 'yes'; then
26889 FFTW_DELEGATE_TRUE=
26890 FFTW_DELEGATE_FALSE='#'
26891else
26892 FFTW_DELEGATE_TRUE='#'
26893 FFTW_DELEGATE_FALSE=
26894fi
26895
26896
26897
26898
26899#
26900# Check for FlashPIX delegate library.
26901#
26902
26903# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026904if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026905 withval=$with_fpx; with_fpx=$withval
26906else
26907 with_fpx='yes'
26908fi
26909
26910
26911if test "$with_fpx" != 'yes'; then
26912 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26913fi
26914
26915have_fpx='no'
26916FPX_LIBS=''
26917if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026919$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026921$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026923$as_echo "" >&6; }
26924 failed=0
26925 passed=0
26926 ac_ext=cpp
26927ac_cpp='$CXXCPP $CPPFLAGS'
26928ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26929ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26930ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26931
26932
cristy8b350f62009-11-15 23:12:43 +000026933ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26934if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026935 passed=`expr $passed + 1`
26936else
26937 failed=`expr $failed + 1`
26938fi
26939
26940
cristy8b350f62009-11-15 23:12:43 +000026941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026942$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026943if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026944 $as_echo_n "(cached) " >&6
26945else
26946 ac_check_lib_save_LIBS=$LIBS
26947LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026949/* end confdefs.h. */
26950
26951/* Override any GCC internal prototype to avoid an error.
26952 Use char because int might match the return type of a GCC
26953 builtin and then its argument prototype would still apply. */
26954#ifdef __cplusplus
26955extern "C"
26956#endif
26957char FPX_OpenImageByFilename ();
26958int
26959main ()
26960{
26961return FPX_OpenImageByFilename ();
26962 ;
26963 return 0;
26964}
26965_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026966if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026967 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26968else
cristy8b350f62009-11-15 23:12:43 +000026969 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026970fi
cristy8b350f62009-11-15 23:12:43 +000026971rm -f core conftest.err conftest.$ac_objext \
26972 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026973LIBS=$ac_check_lib_save_LIBS
26974fi
cristy8b350f62009-11-15 23:12:43 +000026975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026976$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026977if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026978 passed=`expr $passed + 1`
26979else
26980 failed=`expr $failed + 1`
26981fi
26982
26983 ac_ext=c
26984ac_cpp='$CPP $CPPFLAGS'
26985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26987ac_compiler_gnu=$ac_cv_c_compiler_gnu
26988
cristy8b350f62009-11-15 23:12:43 +000026989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026990$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26991 if test $passed -gt 0; then
26992 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026994$as_echo "no -- some components failed test" >&6; }
26995 have_fpx='no (failed tests)'
26996 else
26997 FPX_LIBS='-lfpx'
26998
cristy8b350f62009-11-15 23:12:43 +000026999$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027000
cristy8b350f62009-11-15 23:12:43 +000027001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027002$as_echo "yes" >&6; }
27003 have_fpx='yes'
27004 PERLMAINCC="$CXX"
27005 fi
27006 else
cristy8b350f62009-11-15 23:12:43 +000027007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027008$as_echo "no" >&6; }
27009 fi
27010fi
27011 if test "$have_fpx" = 'yes'; then
27012 FPX_DELEGATE_TRUE=
27013 FPX_DELEGATE_FALSE='#'
27014else
27015 FPX_DELEGATE_TRUE='#'
27016 FPX_DELEGATE_FALSE=
27017fi
27018
27019
27020
27021
27022#
27023# Check for fontconfig delegate library.
27024#
27025
27026# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000027027if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027028 withval=$with_fontconfig; with_fontconfig=$withval
27029else
27030 with_fontconfig=$have_x
27031fi
27032
27033
27034if test "$with_fontconfig" != 'yes'; then
27035 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
27036fi
27037
27038have_fontconfig='no'
27039FONTCONFIG_CFLAGS=""
27040FONTCONFIG_LIBS=""
27041FONTCONFIG_PKG=""
27042if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027044$as_echo "-------------------------------------------------------------" >&6; }
27045
27046pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027048$as_echo_n "checking for FONTCONFIG... " >&6; }
27049
27050if test -n "$FONTCONFIG_CFLAGS"; then
27051 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
27052 elif test -n "$PKG_CONFIG"; then
27053 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027054 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027055 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27056 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27058 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027059 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
27060else
27061 pkg_failed=yes
27062fi
27063 else
27064 pkg_failed=untried
27065fi
27066if test -n "$FONTCONFIG_LIBS"; then
27067 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
27068 elif test -n "$PKG_CONFIG"; then
27069 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027070 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027071 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27072 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27074 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027075 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
27076else
27077 pkg_failed=yes
27078fi
27079 else
27080 pkg_failed=untried
27081fi
27082
27083
27084
27085if test $pkg_failed = yes; then
27086
27087if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27088 _pkg_short_errors_supported=yes
27089else
27090 _pkg_short_errors_supported=no
27091fi
27092 if test $_pkg_short_errors_supported = yes; then
27093 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
27094 else
27095 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
27096 fi
27097 # Put the nasty error message in config.log where it belongs
27098 echo "$FONTCONFIG_PKG_ERRORS" >&5
27099
cristy8b350f62009-11-15 23:12:43 +000027100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027101$as_echo "no" >&6; }
27102 have_fontconfig=no
27103elif test $pkg_failed = untried; then
27104 have_fontconfig=no
27105else
27106 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
27107 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027109$as_echo "yes" >&6; }
27110 have_fontconfig=yes
27111fi
cristy8b350f62009-11-15 23:12:43 +000027112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027113$as_echo "" >&6; }
27114fi
27115
27116if test "$have_fontconfig" = 'yes'; then
27117
cristy8b350f62009-11-15 23:12:43 +000027118$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027119
cristyd09bcf92010-03-25 03:04:45 +000027120 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000027121 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000027122 fi
cristy3ed852e2009-09-05 21:47:34 +000027123fi
27124
27125 if test "$have_fontconfig" = 'yes'; then
27126 FONTCONFIG_DELEGATE_TRUE=
27127 FONTCONFIG_DELEGATE_FALSE='#'
27128else
27129 FONTCONFIG_DELEGATE_TRUE='#'
27130 FONTCONFIG_DELEGATE_FALSE=
27131fi
27132
27133
27134
27135
27136
27137#
27138# Check for freetype delegate library.
27139#
27140
27141# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000027142if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027143 withval=$with_freetype; with_freetype=$withval
27144else
27145 with_freetype='yes'
27146fi
27147
27148
27149
27150if test "$with_freetype" != 'yes'; then
27151 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
27152fi
27153
27154have_freetype='no'
27155FREETYPE_LIBS=''
27156if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027158$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000027160$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027162$as_echo "" >&6; }
27163 failed=0
27164 passed=0
cristy66291112009-10-03 22:44:36 +000027165 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027166 PERSIST_CPPFLAGS="$CPPFLAGS"
27167 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
27168 :
27169 else
27170 freetype_config=''
27171 for ac_prog in freetype-config
27172do
27173 # Extract the first word of "$ac_prog", so it can be a program name with args.
27174set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027176$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027177if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027178 $as_echo_n "(cached) " >&6
27179else
27180 if test -n "$freetype_config"; then
27181 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27182else
27183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27184for as_dir in $PATH
27185do
27186 IFS=$as_save_IFS
27187 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027188 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27190 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027192 break 2
27193 fi
27194done
cristy8b350f62009-11-15 23:12:43 +000027195 done
cristy3ed852e2009-09-05 21:47:34 +000027196IFS=$as_save_IFS
27197
27198fi
27199fi
27200freetype_config=$ac_cv_prog_freetype_config
27201if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027203$as_echo "$freetype_config" >&6; }
27204else
cristy8b350f62009-11-15 23:12:43 +000027205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027206$as_echo "no" >&6; }
27207fi
27208
27209
27210 test -n "$freetype_config" && break
27211done
27212 if test -n "$freetype_config"; then
27213 freetype_cflags=`$freetype_config --cflags`
27214 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027215 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027216 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27217 fi
27218 fi
27219
27220 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027222$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027223if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027224 $as_echo_n "(cached) " >&6
27225else
27226 ac_check_lib_save_LIBS=$LIBS
27227LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027229/* end confdefs.h. */
27230
27231/* Override any GCC internal prototype to avoid an error.
27232 Use char because int might match the return type of a GCC
27233 builtin and then its argument prototype would still apply. */
27234#ifdef __cplusplus
27235extern "C"
27236#endif
27237char FT_Init_FreeType ();
27238int
27239main ()
27240{
27241return FT_Init_FreeType ();
27242 ;
27243 return 0;
27244}
27245_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027246if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027247 ac_cv_lib_freetype_FT_Init_FreeType=yes
27248else
cristy8b350f62009-11-15 23:12:43 +000027249 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027250fi
cristy8b350f62009-11-15 23:12:43 +000027251rm -f core conftest.err conftest.$ac_objext \
27252 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027253LIBS=$ac_check_lib_save_LIBS
27254fi
cristy8b350f62009-11-15 23:12:43 +000027255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027256$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027257if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027258 FREETYPE_LIBS='-lfreetype'
27259fi
27260
27261 if test "$FREETYPE_LIBS" != ''; then
27262 passed=`expr $passed + 1`
27263 else
27264 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027265 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027266 fi
27267 fi
27268
cristy8b350f62009-11-15 23:12:43 +000027269 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27270if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027271 FT2BUILD_H='#include <ft2build.h>'
27272else
27273 ft2build=''
27274fi
27275
27276
cristy8b350f62009-11-15 23:12:43 +000027277 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27278"
27279if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027280 have_freetype_h='yes'
27281else
27282 have_freetype_h='no'
27283fi
27284
27285
27286 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27287 passed=`expr $passed + 1`
27288 else
27289 failed=`expr $failed + 1`
27290 CPPFLAGS="$PERSIST_CPPFLAGS"
27291 fi
27292
cristy8b350f62009-11-15 23:12:43 +000027293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027294$as_echo_n "checking if FreeType package is complete... " >&6; }
27295 if test $passed -gt 0; then
27296 if test $failed -gt 0; then
27297 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027299$as_echo "no -- some components failed test" >&6; }
27300 have_freetype='no (failed tests)'
27301 else
27302 LIBS="$FREETYPE_LIBS $LIBS"
27303
cristy8b350f62009-11-15 23:12:43 +000027304$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027305
27306 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27307
cristy8b350f62009-11-15 23:12:43 +000027308$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027309
27310 fi
cristy8b350f62009-11-15 23:12:43 +000027311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027312$as_echo "yes" >&6; }
27313 have_freetype='yes'
27314 fi
27315 else
cristy8b350f62009-11-15 23:12:43 +000027316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027317$as_echo "no" >&6; }
27318 fi
27319fi
27320 if test "$have_freetype" = 'yes'; then
27321 FREETYPE_DELEGATE_TRUE=
27322 FREETYPE_DELEGATE_FALSE='#'
27323else
27324 FREETYPE_DELEGATE_TRUE='#'
27325 FREETYPE_DELEGATE_FALSE=
27326fi
27327
27328
27329
27330
27331
27332#
27333# Check for Ghostscript library or framework.
27334#
27335# Test for iapi.h & test for gsapi_new_instance in -lgs
27336# or -framework Ghostscript
27337
27338
27339# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027340if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027341 withval=$with_gslib; with_gslib=$withval
27342else
27343 with_gslib='no'
27344fi
27345
27346
cristyb7931f12009-09-25 10:22:21 +000027347gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027348if test "$with_gslib" != 'yes'; then
27349 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27350fi
27351
27352have_gslib='no'
27353GS_LIBS=''
27354if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027356$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027358$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027360$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027361 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027362 failed=0
27363 passed=0
cristy8b350f62009-11-15 23:12:43 +000027364 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27365if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027366 passed=`expr $passed + 1`
27367else
27368 failed=`expr $failed + 1`
27369fi
27370
27371
cristy8b350f62009-11-15 23:12:43 +000027372 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27373if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027374 passed=`expr $passed + 1`
27375else
27376 failed=`expr $failed + 1`
27377fi
27378
27379
cristy8b350f62009-11-15 23:12:43 +000027380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000027381$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027382if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027383 $as_echo_n "(cached) " >&6
27384else
27385 ac_check_framework_save_LIBS=$LIBS
27386LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027388/* end confdefs.h. */
27389
27390/* Override any GCC internal prototype to avoid an error.
27391 Use char because int might match the return type of a GCC
27392 builtin and then its argument prototype would still apply. */
27393#ifdef __cplusplus
27394extern "C"
27395#endif
27396char gsapi_new_instance ();
27397int
27398main ()
27399{
27400return gsapi_new_instance ();
27401 ;
27402 return 0;
27403}
27404_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027405if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027406 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27407else
cristy8b350f62009-11-15 23:12:43 +000027408 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027409fi
cristy8b350f62009-11-15 23:12:43 +000027410rm -f core conftest.err conftest.$ac_objext \
27411 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027412LIBS=$ac_check_framework_save_LIBS
27413fi
cristy8b350f62009-11-15 23:12:43 +000027414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027415$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027416if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027417 framework=`expr $framework + 1`
27418else
cristy8b350f62009-11-15 23:12:43 +000027419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027420$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027421if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027422 $as_echo_n "(cached) " >&6
27423else
27424 ac_check_lib_save_LIBS=$LIBS
27425LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027427/* end confdefs.h. */
27428
27429/* Override any GCC internal prototype to avoid an error.
27430 Use char because int might match the return type of a GCC
27431 builtin and then its argument prototype would still apply. */
27432#ifdef __cplusplus
27433extern "C"
27434#endif
27435char gsapi_new_instance ();
27436int
27437main ()
27438{
27439return gsapi_new_instance ();
27440 ;
27441 return 0;
27442}
27443_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027444if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027445 ac_cv_lib_gs_gsapi_new_instance=yes
27446else
cristy8b350f62009-11-15 23:12:43 +000027447 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027448fi
cristy8b350f62009-11-15 23:12:43 +000027449rm -f core conftest.err conftest.$ac_objext \
27450 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027451LIBS=$ac_check_lib_save_LIBS
27452fi
cristy8b350f62009-11-15 23:12:43 +000027453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027454$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027455if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027456 passed=`expr $passed + 1`
27457else
27458 failed=`expr $failed + 1`
27459fi
27460
27461fi
cristy8b350f62009-11-15 23:12:43 +000027462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027463$as_echo_n "checking if Ghostscript package is complete... " >&6; }
27464 if test $passed -gt 0; then
27465 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027467$as_echo "no -- some components failed test" >&6; }
27468 have_gslib='no (failed tests)'
27469 else
27470 if test $framework -gt 0; then
27471 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000027472 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000027473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000027474$as_echo "yes, using framework." >&6; }
27475 else
cristy8b350f62009-11-15 23:12:43 +000027476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000027477$as_echo "yes, using library." >&6; }
27478 GS_LIBS='-lgs'
27479 fi
27480 LIBS="$GS_LIBS $LIBS"
27481
cristy8b350f62009-11-15 23:12:43 +000027482$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027483
27484 have_gslib='yes'
27485 fi
27486 else
cristy8b350f62009-11-15 23:12:43 +000027487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027488$as_echo "no" >&6; }
27489 fi
27490fi
27491 if test "$have_gslib" = 'yes'; then
27492 GS_DELEGATE_TRUE=
27493 GS_DELEGATE_FALSE='#'
27494else
27495 GS_DELEGATE_TRUE='#'
27496 GS_DELEGATE_FALSE=
27497fi
27498
27499
27500
27501# Set default font search path
27502
27503# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000027504if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027505 withval=$with_fontpath; with_fontpath=$withval
27506else
27507 with_fontpath=''
27508fi
27509
27510
27511if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27512 with_fontpath=''
27513else
27514
27515cat >>confdefs.h <<_ACEOF
27516#define MAGICK_FONT_PATH "$with_fontpath"
27517_ACEOF
27518
27519fi
27520if test "$with_fontpath=" != ''; then
27521 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27522fi
27523
27524# Set Ghostscript font directory
27525
27526# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027527if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027528 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27529else
27530 with_gs_font_dir='default'
27531fi
27532
27533
27534if test "$with_gs_font_dir" != 'default'; then
27535 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27536fi
27537
27538
27539#
27540# Check for GVC delegate library.
27541#
27542
27543# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000027544if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027545 withval=$with_gvc; with_gvc=$withval
27546else
27547 with_gvc='yes'
27548fi
27549
27550
27551if test "$with_gvc" != 'yes'; then
27552 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27553fi
27554
27555GVC_PKG=""
27556if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027558$as_echo "-------------------------------------------------------------" >&6; }
27559
27560pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000027562$as_echo_n "checking for GVC... " >&6; }
27563
27564if test -n "$GVC_CFLAGS"; then
27565 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27566 elif test -n "$PKG_CONFIG"; then
27567 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027568 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027569 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27570 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27572 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027573 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27574else
27575 pkg_failed=yes
27576fi
27577 else
27578 pkg_failed=untried
27579fi
27580if test -n "$GVC_LIBS"; then
27581 pkg_cv_GVC_LIBS="$GVC_LIBS"
27582 elif test -n "$PKG_CONFIG"; then
27583 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027584 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027585 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27586 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27588 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027589 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27590else
27591 pkg_failed=yes
27592fi
27593 else
27594 pkg_failed=untried
27595fi
27596
27597
27598
27599if test $pkg_failed = yes; then
27600
27601if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27602 _pkg_short_errors_supported=yes
27603else
27604 _pkg_short_errors_supported=no
27605fi
27606 if test $_pkg_short_errors_supported = yes; then
27607 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27608 else
27609 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27610 fi
27611 # Put the nasty error message in config.log where it belongs
27612 echo "$GVC_PKG_ERRORS" >&5
27613
cristy8b350f62009-11-15 23:12:43 +000027614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027615$as_echo "no" >&6; }
27616 have_gvc=no
27617elif test $pkg_failed = untried; then
27618 have_gvc=no
27619else
27620 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27621 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000027622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027623$as_echo "yes" >&6; }
27624 have_gvc=yes
27625fi
cristy8b350f62009-11-15 23:12:43 +000027626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027627$as_echo "" >&6; }
27628fi
27629
27630if test "$have_gvc" = 'yes'; then
27631
cristy8b350f62009-11-15 23:12:43 +000027632$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027633
27634 if test "$with_modules" = 'no'; then
27635 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27636 fi
27637fi
27638
27639 if test "$have_gvc" = 'yes'; then
27640 GVC_DELEGATE_TRUE=
27641 GVC_DELEGATE_FALSE='#'
27642else
27643 GVC_DELEGATE_TRUE='#'
27644 GVC_DELEGATE_FALSE=
27645fi
27646
27647
27648
27649
27650
27651#
27652# Check for JBIG delegate library.
27653#
27654
27655
27656# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027657if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027658 withval=$with_jbig; with_jbig=$withval
27659else
27660 with_jbig='yes'
27661fi
27662
27663
27664have_jbig='no'
27665JBIG_LIBS=''
27666if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027668$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027670$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027672$as_echo "" >&6; }
27673 failed=0
27674 passed=0
cristy8b350f62009-11-15 23:12:43 +000027675 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27676if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027677 passed=`expr $passed + 1`
27678else
27679 failed=`expr $failed + 1`
27680fi
27681
27682
cristy8b350f62009-11-15 23:12:43 +000027683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027684$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027685if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027686 $as_echo_n "(cached) " >&6
27687else
27688 ac_check_lib_save_LIBS=$LIBS
27689LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027691/* end confdefs.h. */
27692
27693/* Override any GCC internal prototype to avoid an error.
27694 Use char because int might match the return type of a GCC
27695 builtin and then its argument prototype would still apply. */
27696#ifdef __cplusplus
27697extern "C"
27698#endif
27699char jbg_dec_init ();
27700int
27701main ()
27702{
27703return jbg_dec_init ();
27704 ;
27705 return 0;
27706}
27707_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027708if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027709 ac_cv_lib_jbig_jbg_dec_init=yes
27710else
cristy8b350f62009-11-15 23:12:43 +000027711 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027712fi
cristy8b350f62009-11-15 23:12:43 +000027713rm -f core conftest.err conftest.$ac_objext \
27714 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027715LIBS=$ac_check_lib_save_LIBS
27716fi
cristy8b350f62009-11-15 23:12:43 +000027717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027718$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027719if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027720 passed=`expr $passed + 1`
27721else
27722 failed=`expr $failed + 1`
27723fi
27724
cristy8b350f62009-11-15 23:12:43 +000027725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027726$as_echo_n "checking if JBIG package is complete... " >&6; }
27727 if test $passed -gt 0; then
27728 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027730$as_echo "no -- some components failed test" >&6; }
27731 have_jbig='no (failed tests)'
27732 else
27733 JBIG_LIBS='-ljbig'
27734 LIBS="$JBIG_LIBS $LIBS"
27735
cristy8b350f62009-11-15 23:12:43 +000027736$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027737
cristy8b350f62009-11-15 23:12:43 +000027738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027739$as_echo "yes" >&6; }
27740 have_jbig='yes'
27741 fi
27742 else
cristy8b350f62009-11-15 23:12:43 +000027743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027744$as_echo "no" >&6; }
27745 fi
27746fi
27747 if test "$have_jbig" = 'yes'; then
27748 JBIG_DELEGATE_TRUE=
27749 JBIG_DELEGATE_FALSE='#'
27750else
27751 JBIG_DELEGATE_TRUE='#'
27752 JBIG_DELEGATE_FALSE=
27753fi
27754
27755
27756
27757
27758#
27759# Check for JPEG delegate library.
27760#
27761
27762# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027763if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027764 withval=$with_jpeg; with_jpeg=$withval
27765else
27766 with_jpeg='yes'
27767fi
27768
27769
27770if test "$with_jpeg" != 'yes'; then
27771 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27772fi
27773
27774have_jpeg='no'
27775JPEG_LIBS=''
27776if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027778$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027780$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027782$as_echo "" >&6; }
27783 failed=0
27784 passed=0
cristy8b350f62009-11-15 23:12:43 +000027785 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27786if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027787 passed=`expr $passed + 1`
27788else
27789 failed=`expr $failed + 1`
27790fi
27791
27792
cristy8b350f62009-11-15 23:12:43 +000027793 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27794if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027795 passed=`expr $passed + 1`
27796else
27797 failed=`expr $failed + 1`
27798fi
27799
27800
cristy8b350f62009-11-15 23:12:43 +000027801 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27802if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027803 passed=`expr $passed + 1`
27804else
27805 failed=`expr $failed + 1`
27806fi
27807
27808
cristy8b350f62009-11-15 23:12:43 +000027809 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27810if test "x$ac_cv_header_jpeglib_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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027818$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027819if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027820 $as_echo_n "(cached) " >&6
27821else
27822 ac_check_lib_save_LIBS=$LIBS
27823LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027825/* end confdefs.h. */
27826
27827/* Override any GCC internal prototype to avoid an error.
27828 Use char because int might match the return type of a GCC
27829 builtin and then its argument prototype would still apply. */
27830#ifdef __cplusplus
27831extern "C"
27832#endif
27833char jpeg_read_header ();
27834int
27835main ()
27836{
27837return jpeg_read_header ();
27838 ;
27839 return 0;
27840}
27841_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027842if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027843 ac_cv_lib_jpeg_jpeg_read_header=yes
27844else
cristy8b350f62009-11-15 23:12:43 +000027845 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027846fi
cristy8b350f62009-11-15 23:12:43 +000027847rm -f core conftest.err conftest.$ac_objext \
27848 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027849LIBS=$ac_check_lib_save_LIBS
27850fi
cristy8b350f62009-11-15 23:12:43 +000027851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027852$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027853if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027854 passed=`expr $passed + 1`
27855else
27856 failed=`expr $failed + 1`
27857fi
27858
27859
27860# Test for compatible JPEG library
27861if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027863$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027864if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027865 $as_echo_n "(cached) " >&6
27866else
cristy8b350f62009-11-15 23:12:43 +000027867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027868/* end confdefs.h. */
27869#include <stdio.h>
27870#include <stdlib.h>
27871#include <jpeglib.h>
27872
27873int
27874main ()
27875{
27876
27877#if JPEG_LIB_VERSION < 62
27878#error IJG JPEG library must be version 6b or newer!
27879#endif
27880return 0;
27881
27882 ;
27883 return 0;
27884}
27885_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027886if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027887 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27888else
cristy8b350f62009-11-15 23:12:43 +000027889 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027890fi
cristy3ed852e2009-09-05 21:47:34 +000027891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27892fi
cristy8b350f62009-11-15 23:12:43 +000027893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027894$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27895fi
cristy8b350f62009-11-15 23:12:43 +000027896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027897$as_echo_n "checking if JPEG package is complete... " >&6; }
27898 if test $passed -gt 0; then
27899 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027901$as_echo "no -- some components failed test" >&6; }
27902 have_jpeg='no (failed tests)'
27903 else
27904 JPEG_LIBS='-ljpeg'
27905 LIBS="$JPEG_LIBS $LIBS"
27906
cristy8b350f62009-11-15 23:12:43 +000027907$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027908
cristy8b350f62009-11-15 23:12:43 +000027909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027910$as_echo "yes" >&6; }
27911 have_jpeg='yes'
27912 fi
27913 else
cristy8b350f62009-11-15 23:12:43 +000027914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027915$as_echo "no" >&6; }
27916 fi
27917fi
27918 if test "$have_jpeg" = 'yes'; then
27919 JPEG_DELEGATE_TRUE=
27920 JPEG_DELEGATE_FALSE='#'
27921else
27922 JPEG_DELEGATE_TRUE='#'
27923 JPEG_DELEGATE_FALSE=
27924fi
27925
27926
27927
27928
27929#
27930# Check for JPEG Version 2 delegate library.
27931#
27932
27933# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027934if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027935 withval=$with_jp2; with_jp2=$withval
27936else
27937 with_jp2='yes'
27938fi
27939
27940
27941if test "$with_jp2" != 'yes'; then
27942 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27943fi
27944
27945have_jp2='no'
27946JP2_LIBS=''
27947if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027949$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027951$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027953$as_echo "" >&6; }
27954 failed=0
27955 passed=0
cristy8b350f62009-11-15 23:12:43 +000027956 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27957if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027958 passed=`expr $passed + 1`
27959else
27960 failed=`expr $failed + 1`
27961fi
27962
27963
cristy8b350f62009-11-15 23:12:43 +000027964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027965$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027966if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027967 $as_echo_n "(cached) " >&6
27968else
27969 ac_check_lib_save_LIBS=$LIBS
27970LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027972/* end confdefs.h. */
27973
27974/* Override any GCC internal prototype to avoid an error.
27975 Use char because int might match the return type of a GCC
27976 builtin and then its argument prototype would still apply. */
27977#ifdef __cplusplus
27978extern "C"
27979#endif
27980char jas_stream_fopen ();
27981int
27982main ()
27983{
27984return jas_stream_fopen ();
27985 ;
27986 return 0;
27987}
27988_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027989if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027990 ac_cv_lib_jasper_jas_stream_fopen=yes
27991else
cristy8b350f62009-11-15 23:12:43 +000027992 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027993fi
cristy8b350f62009-11-15 23:12:43 +000027994rm -f core conftest.err conftest.$ac_objext \
27995 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027996LIBS=$ac_check_lib_save_LIBS
27997fi
cristy8b350f62009-11-15 23:12:43 +000027998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027999$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028000if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028001 passed=`expr $passed + 1`
28002else
28003 failed=`expr $failed + 1`
28004fi
28005
cristy8b350f62009-11-15 23:12:43 +000028006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028007$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
28008 if test $passed -gt 0; then
28009 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028011$as_echo "no -- some components failed test" >&6; }
28012 have_jp2='no (failed tests)'
28013 else
28014 JP2_LIBS='-ljasper'
28015 LIBS="$JP2_LIBS $LIBS"
28016
cristy8b350f62009-11-15 23:12:43 +000028017$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028018
cristy8b350f62009-11-15 23:12:43 +000028019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028020$as_echo "yes" >&6; }
28021 have_jp2='yes'
28022 fi
28023 else
cristy8b350f62009-11-15 23:12:43 +000028024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028025$as_echo "no" >&6; }
28026 fi
28027fi
28028 if test "$have_jp2" = 'yes'; then
28029 JP2_DELEGATE_TRUE=
28030 JP2_DELEGATE_FALSE='#'
28031else
28032 JP2_DELEGATE_TRUE='#'
28033 JP2_DELEGATE_FALSE=
28034fi
28035
28036
28037
28038
28039#
28040# Check for LCMS delegate library.
28041#
cristy71203402010-06-18 13:12:03 +000028042# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000028043
28044# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000028045if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028046 withval=$with_lcms; with_lcms=$withval
28047else
28048 with_lcms='yes'
28049fi
28050
cristy71203402010-06-18 13:12:03 +000028051if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000028052 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
28053fi
28054
cristy71203402010-06-18 13:12:03 +000028055# Disable LCMS2.
28056
28057# Check whether --with-lcms2 was given.
28058if test "${with_lcms2+set}" = set; then :
28059 withval=$with_lcms2; with_lcms2=$withval
28060else
28061 with_lcms2='yes'
28062fi
28063
28064if test "$with_lcms2" != 'yes' ; then
28065 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
28066fi
28067
28068have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000028069LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000028070if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028072$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
28074$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028076$as_echo "" >&6; }
28077 failed=0
28078 passed=0
28079 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028080
28081 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000028082 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
28083if test "x$ac_cv_header_lcms2_h" = x""yes; then :
28084 have_lcms_header='yes'
28085fi
28086
28087
28088 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000028089
28090$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
28091
cristy71203402010-06-18 13:12:03 +000028092 passed=`expr $passed + 1`
28093 fi
28094
28095 # Check for <lcms2/lcms2.h)
28096 if test "$have_lcms_header" != 'yes'; then
28097 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
28098if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000028099 have_lcms_header='yes'
28100fi
28101
28102
cristy71203402010-06-18 13:12:03 +000028103 if test "$have_lcms_header" = 'yes'; then
28104 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000028105
cristy71203402010-06-18 13:12:03 +000028106$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000028107
cristy71203402010-06-18 13:12:03 +000028108 fi
cristyd09bcf92010-03-25 03:04:45 +000028109 fi
cristy71203402010-06-18 13:12:03 +000028110
28111 # Failed to find lcms header?
28112 if test "$have_lcms_header" != 'yes'; then
28113 failed=`expr $failed + 1`
28114 fi
28115
28116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
28117$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
28118if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
cristyd09bcf92010-03-25 03:04:45 +000028119 $as_echo_n "(cached) " >&6
28120else
28121 ac_check_lib_save_LIBS=$LIBS
28122LIBS="-llcms2 $LIBS"
28123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28124/* end confdefs.h. */
28125
28126/* Override any GCC internal prototype to avoid an error.
28127 Use char because int might match the return type of a GCC
28128 builtin and then its argument prototype would still apply. */
28129#ifdef __cplusplus
28130extern "C"
28131#endif
cristy71203402010-06-18 13:12:03 +000028132char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028133int
28134main ()
28135{
cristy71203402010-06-18 13:12:03 +000028136return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028137 ;
28138 return 0;
28139}
28140_ACEOF
28141if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028142 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000028143else
cristy71203402010-06-18 13:12:03 +000028144 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000028145fi
28146rm -f core conftest.err conftest.$ac_objext \
28147 conftest$ac_exeext conftest.$ac_ext
28148LIBS=$ac_check_lib_save_LIBS
28149fi
cristy71203402010-06-18 13:12:03 +000028150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
28151$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
28152if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000028153 passed=`expr $passed + 1`
28154else
28155 failed=`expr $failed + 1`
28156fi
28157
cristy71203402010-06-18 13:12:03 +000028158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
28159$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028160 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028161 if test $failed -gt 0; then
28162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000028163$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028164 have_lcms2='no (failed tests)'
28165 else
28166 LCMS_LIBS='-llcms2'
28167 LIBS="$LCMS_LIBS $LIBS"
28168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000028169$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028170 have_lcms2='yes'
28171 fi
cristyd09bcf92010-03-25 03:04:45 +000028172 else
cristy71203402010-06-18 13:12:03 +000028173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000028174$as_echo "no" >&6; }
28175 fi
28176fi
28177
cristy71203402010-06-18 13:12:03 +000028178#
28179# Check for LCMS v1 (1.11 or later)
28180#
28181if test $have_lcms2 = 'yes'; then
28182 with_lcms='no'
28183fi
28184
28185have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000028186if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000028187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28188$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
28190$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28192$as_echo "" >&6; }
28193 failed=0
28194 passed=0
28195 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028196
28197 # Check for <lcms.h>
28198 if test "$have_lcms_header" != 'yes'; then
28199 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristy8b350f62009-11-15 23:12:43 +000028200if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028201 have_lcms_header='yes'
28202fi
28203
28204
cristy71203402010-06-18 13:12:03 +000028205 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028206 passed=`expr $passed + 1`
28207
cristy8b350f62009-11-15 23:12:43 +000028208$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028209
cristy71203402010-06-18 13:12:03 +000028210 fi
28211 fi
28212
28213 # Check for <lcms/lcms.h>
28214 if test "$have_lcms_header" != 'yes'; then
28215 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 +000028216if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028217 have_lcms_header='yes'
28218fi
28219
28220
cristy71203402010-06-18 13:12:03 +000028221 if test "$have_lcms_header" = 'yes'; then
28222 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028223
cristy8b350f62009-11-15 23:12:43 +000028224$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028225
cristy71203402010-06-18 13:12:03 +000028226 fi
cristy3ed852e2009-09-05 21:47:34 +000028227 fi
cristy71203402010-06-18 13:12:03 +000028228
28229 # Failed to find lcms header?
28230 if test "$have_lcms_header" != 'yes'; then
28231 failed=`expr $failed + 1`
28232 fi
28233
28234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28235$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28236if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028237 $as_echo_n "(cached) " >&6
28238else
28239 ac_check_lib_save_LIBS=$LIBS
28240LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028242/* end confdefs.h. */
28243
28244/* Override any GCC internal prototype to avoid an error.
28245 Use char because int might match the return type of a GCC
28246 builtin and then its argument prototype would still apply. */
28247#ifdef __cplusplus
28248extern "C"
28249#endif
cristy71203402010-06-18 13:12:03 +000028250char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028251int
28252main ()
28253{
cristy71203402010-06-18 13:12:03 +000028254return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028255 ;
28256 return 0;
28257}
28258_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028259if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028260 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028261else
cristy71203402010-06-18 13:12:03 +000028262 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028263fi
cristy8b350f62009-11-15 23:12:43 +000028264rm -f core conftest.err conftest.$ac_objext \
28265 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028266LIBS=$ac_check_lib_save_LIBS
28267fi
cristy71203402010-06-18 13:12:03 +000028268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28269$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28270if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028271 passed=`expr $passed + 1`
28272else
28273 failed=`expr $failed + 1`
28274fi
28275
cristy8b350f62009-11-15 23:12:43 +000028276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028277$as_echo_n "checking if LCMS package is complete... " >&6; }
28278 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028279 if test $failed -gt 0; then
28280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028281$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028282 have_lcms='no (failed tests)'
28283 else
28284 LCMS_LIBS='-llcms'
28285 LIBS="$LCMS_LIBS $LIBS"
28286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028287$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028288 have_lcms='yes'
28289 fi
cristy3ed852e2009-09-05 21:47:34 +000028290 else
cristy71203402010-06-18 13:12:03 +000028291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028292$as_echo "no" >&6; }
28293 fi
28294fi
cristy71203402010-06-18 13:12:03 +000028295
28296 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028297 LCMS_DELEGATE_TRUE=
28298 LCMS_DELEGATE_FALSE='#'
28299else
28300 LCMS_DELEGATE_TRUE='#'
28301 LCMS_DELEGATE_FALSE=
28302fi
28303
cristy71203402010-06-18 13:12:03 +000028304if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28305
28306$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28307
28308fi
28309
cristy3ed852e2009-09-05 21:47:34 +000028310
28311
28312
28313#
28314# Check for the LQR (Liquid Rescale) delegate library.
28315#
28316
28317# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028318if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028319 withval=$with_lqr; with_lqr=$withval
28320else
28321 with_lqr='yes'
28322fi
28323
28324
28325if test "$with_lqr" != 'yes'; then
28326 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28327fi
28328
28329have_lqr='no'
28330LQR_CFLAGS=""
28331LQR_LIBS=""
28332LQR_PKG=""
28333if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028335$as_echo "-------------------------------------------------------------" >&6; }
28336
28337pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028339$as_echo_n "checking for LQR... " >&6; }
28340
28341if test -n "$LQR_CFLAGS"; then
28342 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28343 elif test -n "$PKG_CONFIG"; then
28344 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028345 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028346 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28347 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28349 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028350 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28351else
28352 pkg_failed=yes
28353fi
28354 else
28355 pkg_failed=untried
28356fi
28357if test -n "$LQR_LIBS"; then
28358 pkg_cv_LQR_LIBS="$LQR_LIBS"
28359 elif test -n "$PKG_CONFIG"; then
28360 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028361 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028362 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28363 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28365 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028366 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28367else
28368 pkg_failed=yes
28369fi
28370 else
28371 pkg_failed=untried
28372fi
28373
28374
28375
28376if test $pkg_failed = yes; then
28377
28378if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28379 _pkg_short_errors_supported=yes
28380else
28381 _pkg_short_errors_supported=no
28382fi
28383 if test $_pkg_short_errors_supported = yes; then
28384 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28385 else
28386 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28387 fi
28388 # Put the nasty error message in config.log where it belongs
28389 echo "$LQR_PKG_ERRORS" >&5
28390
cristy8b350f62009-11-15 23:12:43 +000028391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028392$as_echo "no" >&6; }
28393 have_lqr=no
28394elif test $pkg_failed = untried; then
28395 have_lqr=no
28396else
28397 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28398 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028400$as_echo "yes" >&6; }
28401 have_lqr=yes
28402fi
cristy8b350f62009-11-15 23:12:43 +000028403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028404$as_echo "" >&6; }
28405fi
28406
28407if test "$have_lqr" = 'yes'; then
28408
cristy8b350f62009-11-15 23:12:43 +000028409$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028410
28411 CFLAGS="$LQR_CFLAGS $CFLAGS"
28412fi
28413
28414 if test "$have_lqr" = 'yes'; then
28415 LQR_DELEGATE_TRUE=
28416 LQR_DELEGATE_FALSE='#'
28417else
28418 LQR_DELEGATE_TRUE='#'
28419 LQR_DELEGATE_FALSE=
28420fi
28421
28422
28423
28424
28425
28426#
28427# Check for the OpenEXR delegate library.
28428#
28429
28430# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000028431if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028432 withval=$with_openexr; with_openexr=$withval
28433else
28434 with_openexr='yes'
28435fi
28436
28437
28438if test "$with_openexr" != 'yes'; then
28439 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28440fi
28441
28442have_openexr='no'
28443OPENEXR_CFLAGS=""
28444OPENEXR_LIBS=""
28445OPENEXR_PKG=""
28446if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028448$as_echo "-------------------------------------------------------------" >&6; }
28449
28450pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028452$as_echo_n "checking for OPENEXR... " >&6; }
28453
28454if test -n "$OPENEXR_CFLAGS"; then
28455 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28456 elif test -n "$PKG_CONFIG"; then
28457 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028458 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028459 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28460 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28462 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028463 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28464else
28465 pkg_failed=yes
28466fi
28467 else
28468 pkg_failed=untried
28469fi
28470if test -n "$OPENEXR_LIBS"; then
28471 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28472 elif test -n "$PKG_CONFIG"; then
28473 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028474 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028475 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28476 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28478 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028479 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28480else
28481 pkg_failed=yes
28482fi
28483 else
28484 pkg_failed=untried
28485fi
28486
28487
28488
28489if test $pkg_failed = yes; then
28490
28491if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28492 _pkg_short_errors_supported=yes
28493else
28494 _pkg_short_errors_supported=no
28495fi
28496 if test $_pkg_short_errors_supported = yes; then
28497 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28498 else
28499 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28500 fi
28501 # Put the nasty error message in config.log where it belongs
28502 echo "$OPENEXR_PKG_ERRORS" >&5
28503
cristy8b350f62009-11-15 23:12:43 +000028504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028505$as_echo "no" >&6; }
28506 have_openexr=no
28507elif test $pkg_failed = untried; then
28508 have_openexr=no
28509else
28510 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28511 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028513$as_echo "yes" >&6; }
28514 have_openexr=yes
28515fi
cristy8b350f62009-11-15 23:12:43 +000028516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028517$as_echo "" >&6; }
28518fi
28519
28520if test "$have_openexr" = 'yes'; then
28521
cristy8b350f62009-11-15 23:12:43 +000028522$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028523
28524 if test "$with_modules" = 'no'; then
28525 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28526 fi
28527fi
28528
28529 if test "$have_openexr" = 'yes'; then
28530 OPENEXR_DELEGATE_TRUE=
28531 OPENEXR_DELEGATE_FALSE='#'
28532else
28533 OPENEXR_DELEGATE_TRUE='#'
28534 OPENEXR_DELEGATE_FALSE=
28535fi
28536
28537
28538
28539
28540
28541#
28542# Check for PNG delegate library.
28543#
28544
28545# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000028546if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028547 withval=$with_png; with_png=$withval
28548else
28549 with_png='yes'
28550fi
28551
28552
28553if test "$with_png" != 'yes'; then
28554 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28555fi
28556
28557have_png='no'
28558PNG_LIBS=''
28559if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028561$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028563$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028565$as_echo "" >&6; }
28566 failed=0
28567 passed=0
cristy8b350f62009-11-15 23:12:43 +000028568 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28569if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028570 passed=`expr $passed + 1`
28571else
28572 failed=`expr $failed + 1`
28573fi
28574
28575
cristy8b350f62009-11-15 23:12:43 +000028576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000028577$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028578if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028579 $as_echo_n "(cached) " >&6
28580else
28581 ac_check_lib_save_LIBS=$LIBS
28582LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028584/* end confdefs.h. */
28585
28586/* Override any GCC internal prototype to avoid an error.
28587 Use char because int might match the return type of a GCC
28588 builtin and then its argument prototype would still apply. */
28589#ifdef __cplusplus
28590extern "C"
28591#endif
28592char png_get_io_ptr ();
28593int
28594main ()
28595{
28596return png_get_io_ptr ();
28597 ;
28598 return 0;
28599}
28600_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028601if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028602 ac_cv_lib_png_png_get_io_ptr=yes
28603else
cristy8b350f62009-11-15 23:12:43 +000028604 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000028605fi
cristy8b350f62009-11-15 23:12:43 +000028606rm -f core conftest.err conftest.$ac_objext \
28607 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028608LIBS=$ac_check_lib_save_LIBS
28609fi
cristy8b350f62009-11-15 23:12:43 +000028610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000028611$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028612if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028613 passed=`expr $passed + 1`
28614else
28615 failed=`expr $failed + 1`
28616fi
28617
cristy8b350f62009-11-15 23:12:43 +000028618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028619$as_echo_n "checking if PNG package is complete... " >&6; }
28620 if test $passed -gt 0; then
28621 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028623$as_echo "no -- some components failed test" >&6; }
28624 have_png='no (failed tests)'
28625 else
28626 PNG_LIBS='-lpng'
28627 LIBS="$PNG_LIBS $LIBS"
28628
cristy8b350f62009-11-15 23:12:43 +000028629$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028630
cristy8b350f62009-11-15 23:12:43 +000028631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028632$as_echo "yes" >&6; }
28633 have_png='yes'
28634 fi
28635 else
cristy8b350f62009-11-15 23:12:43 +000028636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028637$as_echo "no" >&6; }
28638 fi
28639fi
28640 if test "$have_png" = 'yes'; then
28641 PNG_DELEGATE_TRUE=
28642 PNG_DELEGATE_FALSE='#'
28643else
28644 PNG_DELEGATE_TRUE='#'
28645 PNG_DELEGATE_FALSE=
28646fi
28647
28648
28649
28650
28651#
28652# Check for RSVG delegate library.
28653#
28654
28655# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000028656if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028657 withval=$with_rsvg; with_rsvg=$withval
28658else
28659 with_rsvg=$have_x
28660fi
28661
28662
28663if test "$with_rsvg" != 'yes'; then
28664 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28665fi
28666
28667have_rsvg='no'
28668have_cairo='no'
28669RSVG_CFLAGS=""
28670RSVG_LIBS=""
28671RSVG_PKG=""
28672if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028674$as_echo "-------------------------------------------------------------" >&6; }
28675
28676pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028678$as_echo_n "checking for RSVG... " >&6; }
28679
28680if test -n "$RSVG_CFLAGS"; then
28681 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28682 elif test -n "$PKG_CONFIG"; then
28683 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028684 { { $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 +000028685 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28686 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28688 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028689 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28690else
28691 pkg_failed=yes
28692fi
28693 else
28694 pkg_failed=untried
28695fi
28696if test -n "$RSVG_LIBS"; then
28697 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28698 elif test -n "$PKG_CONFIG"; then
28699 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028700 { { $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 +000028701 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28702 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28704 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028705 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28706else
28707 pkg_failed=yes
28708fi
28709 else
28710 pkg_failed=untried
28711fi
28712
28713
28714
28715if test $pkg_failed = yes; then
28716
28717if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28718 _pkg_short_errors_supported=yes
28719else
28720 _pkg_short_errors_supported=no
28721fi
28722 if test $_pkg_short_errors_supported = yes; then
28723 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28724 else
28725 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28726 fi
28727 # Put the nasty error message in config.log where it belongs
28728 echo "$RSVG_PKG_ERRORS" >&5
28729
cristy8b350f62009-11-15 23:12:43 +000028730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028731$as_echo "no" >&6; }
28732 have_rsvg=no
28733elif test $pkg_failed = untried; then
28734 have_rsvg=no
28735else
28736 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28737 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028739$as_echo "yes" >&6; }
28740 have_rsvg=yes
28741fi
cristy8b350f62009-11-15 23:12:43 +000028742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028743$as_echo "" >&6; }
28744
28745pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028747$as_echo_n "checking for CAIRO_SVG... " >&6; }
28748
28749if test -n "$CAIRO_SVG_CFLAGS"; then
28750 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28751 elif test -n "$PKG_CONFIG"; then
28752 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028753 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028754 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28755 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28757 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028758 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28759else
28760 pkg_failed=yes
28761fi
28762 else
28763 pkg_failed=untried
28764fi
28765if test -n "$CAIRO_SVG_LIBS"; then
28766 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28767 elif test -n "$PKG_CONFIG"; then
28768 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028769 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028770 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28771 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28773 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028774 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28775else
28776 pkg_failed=yes
28777fi
28778 else
28779 pkg_failed=untried
28780fi
28781
28782
28783
28784if test $pkg_failed = yes; then
28785
28786if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28787 _pkg_short_errors_supported=yes
28788else
28789 _pkg_short_errors_supported=no
28790fi
28791 if test $_pkg_short_errors_supported = yes; then
28792 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28793 else
28794 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28795 fi
28796 # Put the nasty error message in config.log where it belongs
28797 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28798
cristy8b350f62009-11-15 23:12:43 +000028799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028800$as_echo "no" >&6; }
28801 have_cairo=no
28802elif test $pkg_failed = untried; then
28803 have_cairo=no
28804else
28805 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28806 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028808$as_echo "yes" >&6; }
28809 have_cairo=yes
28810fi
cristy8b350f62009-11-15 23:12:43 +000028811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028812$as_echo "" >&6; }
28813fi
28814
28815if test "$have_rsvg" = 'yes'; then
28816
cristy8b350f62009-11-15 23:12:43 +000028817$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028818
28819 if test "$with_modules" = 'no'; then
28820 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28821 fi
28822fi
28823
28824if test "$have_cairo" = 'yes'; then
28825
cristy8b350f62009-11-15 23:12:43 +000028826$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028827
28828 if test "$with_modules" = 'no'; then
28829 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28830 fi
28831fi
28832
28833 if test "$have_rsvg" = 'yes'; then
28834 RSVG_DELEGATE_TRUE=
28835 RSVG_DELEGATE_FALSE='#'
28836else
28837 RSVG_DELEGATE_TRUE='#'
28838 RSVG_DELEGATE_FALSE=
28839fi
28840
28841 if test "$have_cairo" = 'yes'; then
28842 CAIRO_DELEGATE_TRUE=
28843 CAIRO_DELEGATE_FALSE='#'
28844else
28845 CAIRO_DELEGATE_TRUE='#'
28846 CAIRO_DELEGATE_FALSE=
28847fi
28848
28849
28850
28851
28852
28853#
28854# Check for TIFF delegate library.
28855#
28856
28857# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028858if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028859 withval=$with_tiff; with_tiff=$withval
28860else
28861 with_tiff='yes'
28862fi
28863
28864
28865if test "$with_tiff" != 'yes'; then
28866 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28867fi
28868
28869have_tiff='no'
28870TIFF_LIBS=''
28871if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028873$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028875$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028877$as_echo "" >&6; }
28878 failed=0
28879 passed=0
cristy8b350f62009-11-15 23:12:43 +000028880 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28881if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028882 passed=`expr $passed + 1`
28883else
28884 failed=`expr $failed + 1`
28885fi
28886
28887
cristy8b350f62009-11-15 23:12:43 +000028888 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28889if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028890 passed=`expr $passed + 1`
28891else
28892 failed=`expr $failed + 1`
28893fi
28894
28895
cristy8b350f62009-11-15 23:12:43 +000028896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028897$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028898if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028899 $as_echo_n "(cached) " >&6
28900else
28901 ac_check_lib_save_LIBS=$LIBS
28902LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028904/* end confdefs.h. */
28905
28906/* Override any GCC internal prototype to avoid an error.
28907 Use char because int might match the return type of a GCC
28908 builtin and then its argument prototype would still apply. */
28909#ifdef __cplusplus
28910extern "C"
28911#endif
28912char TIFFOpen ();
28913int
28914main ()
28915{
28916return TIFFOpen ();
28917 ;
28918 return 0;
28919}
28920_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028921if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028922 ac_cv_lib_tiff_TIFFOpen=yes
28923else
cristy8b350f62009-11-15 23:12:43 +000028924 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028925fi
cristy8b350f62009-11-15 23:12:43 +000028926rm -f core conftest.err conftest.$ac_objext \
28927 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028928LIBS=$ac_check_lib_save_LIBS
28929fi
cristy8b350f62009-11-15 23:12:43 +000028930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028931$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028932if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028933 passed=`expr $passed + 1`
28934else
28935 failed=`expr $failed + 1`
28936fi
28937
cristy8b350f62009-11-15 23:12:43 +000028938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028939$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028940if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028941 $as_echo_n "(cached) " >&6
28942else
28943 ac_check_lib_save_LIBS=$LIBS
28944LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028946/* end confdefs.h. */
28947
28948/* Override any GCC internal prototype to avoid an error.
28949 Use char because int might match the return type of a GCC
28950 builtin and then its argument prototype would still apply. */
28951#ifdef __cplusplus
28952extern "C"
28953#endif
28954char TIFFClientOpen ();
28955int
28956main ()
28957{
28958return TIFFClientOpen ();
28959 ;
28960 return 0;
28961}
28962_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028963if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028964 ac_cv_lib_tiff_TIFFClientOpen=yes
28965else
cristy8b350f62009-11-15 23:12:43 +000028966 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028967fi
cristy8b350f62009-11-15 23:12:43 +000028968rm -f core conftest.err conftest.$ac_objext \
28969 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028970LIBS=$ac_check_lib_save_LIBS
28971fi
cristy8b350f62009-11-15 23:12:43 +000028972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028973$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028974if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028975 passed=`expr $passed + 1`
28976else
28977 failed=`expr $failed + 1`
28978fi
28979
cristy8b350f62009-11-15 23:12:43 +000028980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028981$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028982if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028983 $as_echo_n "(cached) " >&6
28984else
28985 ac_check_lib_save_LIBS=$LIBS
28986LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028988/* end confdefs.h. */
28989
28990/* Override any GCC internal prototype to avoid an error.
28991 Use char because int might match the return type of a GCC
28992 builtin and then its argument prototype would still apply. */
28993#ifdef __cplusplus
28994extern "C"
28995#endif
28996char TIFFIsByteSwapped ();
28997int
28998main ()
28999{
29000return TIFFIsByteSwapped ();
29001 ;
29002 return 0;
29003}
29004_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029005if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029006 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
29007else
cristy8b350f62009-11-15 23:12:43 +000029008 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000029009fi
cristy8b350f62009-11-15 23:12:43 +000029010rm -f core conftest.err conftest.$ac_objext \
29011 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029012LIBS=$ac_check_lib_save_LIBS
29013fi
cristy8b350f62009-11-15 23:12:43 +000029014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000029015$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029016if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029017 passed=`expr $passed + 1`
29018else
29019 failed=`expr $failed + 1`
29020fi
29021
cristy8b350f62009-11-15 23:12:43 +000029022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029023$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029024if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029025 $as_echo_n "(cached) " >&6
29026else
29027 ac_check_lib_save_LIBS=$LIBS
29028LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029030/* end confdefs.h. */
29031
29032/* Override any GCC internal prototype to avoid an error.
29033 Use char because int might match the return type of a GCC
29034 builtin and then its argument prototype would still apply. */
29035#ifdef __cplusplus
29036extern "C"
29037#endif
29038char TIFFReadRGBATile ();
29039int
29040main ()
29041{
29042return TIFFReadRGBATile ();
29043 ;
29044 return 0;
29045}
29046_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029047if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029048 ac_cv_lib_tiff_TIFFReadRGBATile=yes
29049else
cristy8b350f62009-11-15 23:12:43 +000029050 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000029051fi
cristy8b350f62009-11-15 23:12:43 +000029052rm -f core conftest.err conftest.$ac_objext \
29053 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029054LIBS=$ac_check_lib_save_LIBS
29055fi
cristy8b350f62009-11-15 23:12:43 +000029056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000029057$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029058if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029059 passed=`expr $passed + 1`
29060else
29061 failed=`expr $failed + 1`
29062fi
29063
cristy8b350f62009-11-15 23:12:43 +000029064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029065$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029066if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029067 $as_echo_n "(cached) " >&6
29068else
29069 ac_check_lib_save_LIBS=$LIBS
29070LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029072/* end confdefs.h. */
29073
29074/* Override any GCC internal prototype to avoid an error.
29075 Use char because int might match the return type of a GCC
29076 builtin and then its argument prototype would still apply. */
29077#ifdef __cplusplus
29078extern "C"
29079#endif
29080char TIFFReadRGBAStrip ();
29081int
29082main ()
29083{
29084return TIFFReadRGBAStrip ();
29085 ;
29086 return 0;
29087}
29088_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029089if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029090 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29091else
cristy8b350f62009-11-15 23:12:43 +000029092 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000029093fi
cristy8b350f62009-11-15 23:12:43 +000029094rm -f core conftest.err conftest.$ac_objext \
29095 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029096LIBS=$ac_check_lib_save_LIBS
29097fi
cristy8b350f62009-11-15 23:12:43 +000029098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000029099$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029100if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029101 passed=`expr $passed + 1`
29102else
29103 failed=`expr $failed + 1`
29104fi
29105
cristy8b350f62009-11-15 23:12:43 +000029106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029107$as_echo_n "checking if TIFF package is complete... " >&6; }
29108 if test $passed -gt 0; then
29109 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029111$as_echo "no -- some components failed test" >&6; }
29112 have_tiff='no (failed tests)'
29113 else
29114 TIFF_LIBS='-ltiff'
29115 LIBS="$TIFF_LIBS $LIBS"
29116
cristy8b350f62009-11-15 23:12:43 +000029117$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029118
cristy8b350f62009-11-15 23:12:43 +000029119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029120$as_echo "yes" >&6; }
29121 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000029122 for ac_header in tiffconf.h
29123do :
29124 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
29125if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029126 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029127#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000029128_ACEOF
29129
29130fi
29131
29132done
29133
cristy8b350f62009-11-15 23:12:43 +000029134 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000029135 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29136 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000029137do :
29138 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29139ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29140eval as_val=\$$as_ac_var
29141 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029142 cat >>confdefs.h <<_ACEOF
29143#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29144_ACEOF
29145
29146fi
29147done
29148
29149 fi
29150 else
cristy8b350f62009-11-15 23:12:43 +000029151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029152$as_echo "no" >&6; }
29153 fi
29154fi
29155 if test "$have_tiff" = 'yes'; then
29156 TIFF_DELEGATE_TRUE=
29157 TIFF_DELEGATE_FALSE='#'
29158else
29159 TIFF_DELEGATE_TRUE='#'
29160 TIFF_DELEGATE_FALSE=
29161fi
29162
29163
29164
29165
29166#
29167# Set Windows font directory.
29168#
29169
29170# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029171if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029172 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29173else
29174 with_windows_font_dir=''
29175fi
29176
29177if test "$with_windows_font_dir" != '' ; then
29178 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29179fi
29180
29181
29182#
29183# Check for WMF delegate library.
29184#
29185
29186# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000029187if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029188 withval=$with_wmf; with_wmf=$withval
29189else
cristy8d63d1d2010-01-06 20:38:37 +000029190 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000029191fi
29192
29193
29194if test "$with_wmf" != 'yes'; then
29195 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29196fi
29197
29198have_wmf='no'
29199WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000029200if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029202$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029204$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029206$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000029207 failed=0
29208 passed=0
29209 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29210if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29211 passed=`expr $passed + 1`
29212else
29213 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029214fi
29215
29216
cristy735e8942010-04-02 20:32:57 +000029217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29218$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29219if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029220 $as_echo_n "(cached) " >&6
29221else
29222 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000029223LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029225/* end confdefs.h. */
29226
29227/* Override any GCC internal prototype to avoid an error.
29228 Use char because int might match the return type of a GCC
29229 builtin and then its argument prototype would still apply. */
29230#ifdef __cplusplus
29231extern "C"
29232#endif
cristy735e8942010-04-02 20:32:57 +000029233char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029234int
29235main ()
29236{
cristy735e8942010-04-02 20:32:57 +000029237return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029238 ;
29239 return 0;
29240}
29241_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029242if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000029243 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000029244else
cristy735e8942010-04-02 20:32:57 +000029245 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000029246fi
cristy8b350f62009-11-15 23:12:43 +000029247rm -f core conftest.err conftest.$ac_objext \
29248 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029249LIBS=$ac_check_lib_save_LIBS
29250fi
cristy735e8942010-04-02 20:32:57 +000029251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29252$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29253if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29254 passed=`expr $passed + 1`
29255else
29256 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029257fi
29258
cristy735e8942010-04-02 20:32:57 +000029259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29260$as_echo_n "checking if WMF package is complete... " >&6; }
29261 if test $passed -gt 0; then
29262 if test $failed -gt 0; then
29263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29264$as_echo "no -- some components failed test" >&6; }
29265 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000029266 else
cristy735e8942010-04-02 20:32:57 +000029267 WMF_LIBS='-lwmf -lwmflite'
29268 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029269
cristy8b350f62009-11-15 23:12:43 +000029270$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029271
cristy735e8942010-04-02 20:32:57 +000029272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029273$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000029274 have_wmf='yes'
29275 fi
cristy3ed852e2009-09-05 21:47:34 +000029276 else
cristy8b350f62009-11-15 23:12:43 +000029277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029278$as_echo "no" >&6; }
29279 fi
29280fi
29281 if test "$have_wmf" = 'yes'; then
29282 WMF_DELEGATE_TRUE=
29283 WMF_DELEGATE_FALSE='#'
29284else
29285 WMF_DELEGATE_TRUE='#'
29286 WMF_DELEGATE_FALSE=
29287fi
29288
29289
29290
29291
29292
cristy735e8942010-04-02 20:32:57 +000029293
cristy3ed852e2009-09-05 21:47:34 +000029294#
29295# Check for XML delegate library.
29296#
29297
29298# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000029299if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029300 withval=$with_xml; with_xml=$withval
29301else
29302 with_xml=$have_x
29303fi
29304
29305
29306if test "$with_xml" != 'yes' ; then
29307 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29308fi
29309
29310have_xml='no'
29311XML_LIBS=''
29312if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029314$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000029316$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029318$as_echo "" >&6; }
29319 PERSIST_LDFLAGS=$LDFLAGS
29320 PERSIST_CPPFLAGS=$CPPFLAGS
29321 xml2_config=''
29322 for ac_prog in xml2-config
29323do
29324 # Extract the first word of "$ac_prog", so it can be a program name with args.
29325set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029327$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029328if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029329 $as_echo_n "(cached) " >&6
29330else
29331 if test -n "$xml2_config"; then
29332 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29333else
29334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29335for as_dir in $PATH
29336do
29337 IFS=$as_save_IFS
29338 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029339 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29341 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029343 break 2
29344 fi
29345done
cristy8b350f62009-11-15 23:12:43 +000029346 done
cristy3ed852e2009-09-05 21:47:34 +000029347IFS=$as_save_IFS
29348
29349fi
29350fi
29351xml2_config=$ac_cv_prog_xml2_config
29352if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000029353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000029354$as_echo "$xml2_config" >&6; }
29355else
cristy8b350f62009-11-15 23:12:43 +000029356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029357$as_echo "no" >&6; }
29358fi
29359
29360
29361 test -n "$xml2_config" && break
29362done
29363 if test -n "$xml2_config"; then
29364 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29365 # the shared library installed under /usr/lib, whereas the package
29366 # installs itself under $prefix/libxml and $prefix/lib.
29367 xml2_prefix=`xml2-config --prefix`
29368 if test -d "${xml2_prefix}/include/libxml2"; then
29369 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29370 fi
29371 if test "${xml2_prefix}" != '/usr'; then
29372 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29373 fi
29374 fi
29375 failed=0
29376 passed=0
cristy8b350f62009-11-15 23:12:43 +000029377 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29378if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029379 passed=`expr $passed + 1`
29380else
29381 failed=`expr $failed + 1`
29382fi
29383
29384
cristy8b350f62009-11-15 23:12:43 +000029385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029386$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029387if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029388 $as_echo_n "(cached) " >&6
29389else
29390 ac_check_lib_save_LIBS=$LIBS
29391LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029393/* end confdefs.h. */
29394
29395/* Override any GCC internal prototype to avoid an error.
29396 Use char because int might match the return type of a GCC
29397 builtin and then its argument prototype would still apply. */
29398#ifdef __cplusplus
29399extern "C"
29400#endif
29401char xmlParseExternalEntity ();
29402int
29403main ()
29404{
29405return xmlParseExternalEntity ();
29406 ;
29407 return 0;
29408}
29409_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029410if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029411 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29412else
cristy8b350f62009-11-15 23:12:43 +000029413 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000029414fi
cristy8b350f62009-11-15 23:12:43 +000029415rm -f core conftest.err conftest.$ac_objext \
29416 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029417LIBS=$ac_check_lib_save_LIBS
29418fi
cristy8b350f62009-11-15 23:12:43 +000029419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000029420$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029421if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029422 passed=`expr $passed + 1`
29423else
29424 failed=`expr $failed + 1`
29425fi
29426
cristy8b350f62009-11-15 23:12:43 +000029427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029428$as_echo_n "checking if XML package is complete... " >&6; }
29429 if test $passed -gt 0; then
29430 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029432$as_echo "no -- some components failed test" >&6; }
29433 have_xml='no (failed tests)'
29434 LDFLAGS="$PERSIST_LDFLAGS"
29435 CPPFLAGS="$PERSIST_CPPFLAGS"
29436 else
29437 XML_LIBS='-lxml2'
29438 LIBS="$XML_LIBS $LIBS"
29439
cristy8b350f62009-11-15 23:12:43 +000029440$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029441
cristy8b350f62009-11-15 23:12:43 +000029442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029443$as_echo "yes" >&6; }
29444 have_xml='yes'
29445 fi
29446 else
cristy8b350f62009-11-15 23:12:43 +000029447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029448$as_echo "no" >&6; }
29449 fi
29450fi
29451 if test "$have_xml" = 'yes'; then
29452 XML_DELEGATE_TRUE=
29453 XML_DELEGATE_FALSE='#'
29454else
29455 XML_DELEGATE_TRUE='#'
29456 XML_DELEGATE_FALSE=
29457fi
29458
29459
29460
29461
29462# Substitute compiler name to build/link PerlMagick
29463#
29464
29465
29466#
29467# Configure install Paths
29468#
29469
29470# Subdirectory under lib to place ImageMagick lib files
29471LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29472
29473cat >>confdefs.h <<_ACEOF
29474#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29475_ACEOF
29476
29477
29478# Path to ImageMagick bin directory
29479EXECUTABLE_PATH="${BIN_DIR}"
29480DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29481case "${build_os}" in
29482 mingw* )
29483 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29484 ;;
29485esac
29486
29487cat >>confdefs.h <<_ACEOF
29488#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29489_ACEOF
29490
29491
29492
29493# Path to ImageMagick lib
29494LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29495DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29496case "${build_os}" in
29497 mingw* )
29498 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29499 ;;
29500esac
29501
29502cat >>confdefs.h <<_ACEOF
29503#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29504_ACEOF
29505
29506
29507
29508# Subdirectory under lib to place ImageMagick configuration files
29509CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29510
29511cat >>confdefs.h <<_ACEOF
29512#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29513_ACEOF
29514
29515CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29516DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29517case "${build_os}" in
29518 mingw* )
29519 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29520 ;;
29521esac
29522
29523cat >>confdefs.h <<_ACEOF
29524#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29525_ACEOF
29526
29527
29528
29529#
29530# Subdirectory under lib to place ImageMagick coder module files
29531CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29532
29533cat >>confdefs.h <<_ACEOF
29534#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29535_ACEOF
29536
29537CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29538DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29539case "${build_os}" in
29540 mingw* )
29541 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29542 ;;
29543esac
29544
29545cat >>confdefs.h <<_ACEOF
29546#define CODER_PATH "$DEFINE_CODER_PATH"
29547_ACEOF
29548
29549
29550
29551#
29552# Subdirectory under lib to place ImageMagick filter module files
29553FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29554
29555cat >>confdefs.h <<_ACEOF
29556#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29557_ACEOF
29558
29559FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29560DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29561case "${build_os}" in
29562 mingw* )
29563 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29564 ;;
29565esac
29566
29567cat >>confdefs.h <<_ACEOF
29568#define FILTER_PATH "$DEFINE_FILTER_PATH"
29569_ACEOF
29570
29571
29572
29573#
29574# Path to ImageMagick documentation files
29575DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29576DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29577DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29578case "${build_os}" in
29579 mingw* )
29580 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29581 ;;
29582esac
29583
29584cat >>confdefs.h <<_ACEOF
29585#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29586_ACEOF
29587
29588
29589
29590#
29591# Path to ImageMagick share files
29592SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29593SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29594DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29595case "${build_os}" in
29596 mingw* )
29597 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29598 ;;
29599esac
29600
29601cat >>confdefs.h <<_ACEOF
29602#define SHARE_PATH "$DEFINE_SHARE_PATH"
29603_ACEOF
29604
29605
29606
29607# Subdirectory under share to place ImageMagick configuration files
29608SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29609
29610cat >>confdefs.h <<_ACEOF
29611#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29612_ACEOF
29613
29614SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29615DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29616case "${build_os}" in
29617 mingw* )
29618 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29619 ;;
29620esac
29621
29622cat >>confdefs.h <<_ACEOF
29623#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29624_ACEOF
29625
29626
29627
29628#
29629# program_transform_name is formed for use in a Makefile, so create a
29630# modified version for use in a shell script.
29631configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29632
29633# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000029634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029635$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029637$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029639$as_echo "" >&6; }
29640AutotraceDecodeDelegateDefault='autotrace'
29641AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000029642BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000029643BZIPDelegateDefault='bzip2'
29644BrowseDelegateDefault='xdg-open'
29645CGMDecodeDelegateDefault='ralcgm'
29646CatDelegateDefault='cat'
29647DNGDecodeDelegateDefault='ufraw-batch'
29648GVCDecodeDelegateDefault='dot'
29649DVIDecodeDelegateDefault='dvips'
29650EchoDelegateDefault='echo'
29651EditorDelegateDefault='xterm'
29652FIGDecodeDelegateDefault='fig2dev'
29653ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29654DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29655MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29656GnuplotDecodeDelegateDefault='gnuplot'
29657HDRDecodeDelegateDefault='ra_pfm'
29658HPGLDecodeDelegateDefault='hp2xx'
29659HTMLDecodeDelegateDefault='html2ps'
29660ILBMDecodeDelegateDefault='ilbmtoppm'
29661ILBMEncodeDelegateDefault='ppmtoilbm'
29662LPDelegateDefault='lp'
29663LPRDelegateDefault='lpr'
29664LZWDecodeDelegateDefault='uncompress'
29665LZWEncodeDelegateDefault='compress'
29666LaunchDelegateDefault='gimp'
29667MANDelegateDefault='groff'
29668MPEGDecodeDelegateDefault='ffmpeg'
29669MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000029670MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000029671MVDelegateDefault='mv'
29672PCLDelegateDefault='pcl6'
29673PGPDecodeDelegateDefault='pgpv'
29674POVDelegateDefault='povray'
29675if test "$native_win32_build" = 'yes'; then
29676 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029677elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029678 PSDelegateDefault='gsc'
29679else
29680 PSDelegateDefault='gs'
29681fi
29682RLEEncodeDelegateDefault='rawtorle'
29683RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029684RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029685SCANDecodeDelegateDefault='scanimage'
29686TXTDelegateDefault='enscript'
29687WMFDecodeDelegateDefault='wmf2eps'
29688WWWDecodeDelegateDefault='curl'
29689XPSDelegateDefault='gxps'
29690ZipDelegateDefault='gzip'
29691
29692# Search for delegates
29693# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29694set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029696$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029697if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029698 $as_echo_n "(cached) " >&6
29699else
29700 case $AutotraceDecodeDelegate in
29701 [\\/]* | ?:[\\/]*)
29702 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29703 ;;
29704 *)
29705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29706for as_dir in $PATH
29707do
29708 IFS=$as_save_IFS
29709 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029710 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29712 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029714 break 2
29715 fi
29716done
cristy8b350f62009-11-15 23:12:43 +000029717 done
cristy3ed852e2009-09-05 21:47:34 +000029718IFS=$as_save_IFS
29719
29720 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29721 ;;
29722esac
29723fi
29724AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29725if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029727$as_echo "$AutotraceDecodeDelegate" >&6; }
29728else
cristy8b350f62009-11-15 23:12:43 +000029729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029730$as_echo "no" >&6; }
29731fi
29732
29733
29734# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29735set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029737$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029738if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029739 $as_echo_n "(cached) " >&6
29740else
29741 case $AVIDecodeDelegate in
29742 [\\/]* | ?:[\\/]*)
29743 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29744 ;;
29745 *)
29746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29747for as_dir in $PATH
29748do
29749 IFS=$as_save_IFS
29750 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029751 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29753 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029755 break 2
29756 fi
29757done
cristy8b350f62009-11-15 23:12:43 +000029758 done
cristy3ed852e2009-09-05 21:47:34 +000029759IFS=$as_save_IFS
29760
29761 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29762 ;;
29763esac
29764fi
29765AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29766if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029768$as_echo "$AVIDecodeDelegate" >&6; }
29769else
cristy8b350f62009-11-15 23:12:43 +000029770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029771$as_echo "no" >&6; }
29772fi
29773
29774
29775# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29776set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029778$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029779if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029780 $as_echo_n "(cached) " >&6
29781else
29782 case $BlenderDecodeDelegate in
29783 [\\/]* | ?:[\\/]*)
29784 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29785 ;;
29786 *)
29787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29788for as_dir in $PATH
29789do
29790 IFS=$as_save_IFS
29791 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029792 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29794 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029796 break 2
29797 fi
29798done
cristy8b350f62009-11-15 23:12:43 +000029799 done
cristy3ed852e2009-09-05 21:47:34 +000029800IFS=$as_save_IFS
29801
29802 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29803 ;;
29804esac
29805fi
29806BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29807if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029809$as_echo "$BlenderDecodeDelegate" >&6; }
29810else
cristy8b350f62009-11-15 23:12:43 +000029811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029812$as_echo "no" >&6; }
29813fi
29814
29815
29816# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29817set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029819$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029820if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029821 $as_echo_n "(cached) " >&6
29822else
29823 case $BZIPDelegate in
29824 [\\/]* | ?:[\\/]*)
29825 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29826 ;;
29827 *)
29828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29829for as_dir in $PATH
29830do
29831 IFS=$as_save_IFS
29832 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029833 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29835 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029837 break 2
29838 fi
29839done
cristy8b350f62009-11-15 23:12:43 +000029840 done
cristy3ed852e2009-09-05 21:47:34 +000029841IFS=$as_save_IFS
29842
29843 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29844 ;;
29845esac
29846fi
29847BZIPDelegate=$ac_cv_path_BZIPDelegate
29848if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029850$as_echo "$BZIPDelegate" >&6; }
29851else
cristy8b350f62009-11-15 23:12:43 +000029852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029853$as_echo "no" >&6; }
29854fi
29855
29856
29857# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29858set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029860$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029861if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029862 $as_echo_n "(cached) " >&6
29863else
29864 case $BrowseDelegate in
29865 [\\/]* | ?:[\\/]*)
29866 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29867 ;;
29868 *)
29869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29870for as_dir in $PATH
29871do
29872 IFS=$as_save_IFS
29873 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029874 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29876 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029878 break 2
29879 fi
29880done
cristy8b350f62009-11-15 23:12:43 +000029881 done
cristy3ed852e2009-09-05 21:47:34 +000029882IFS=$as_save_IFS
29883
29884 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29885 ;;
29886esac
29887fi
29888BrowseDelegate=$ac_cv_path_BrowseDelegate
29889if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029891$as_echo "$BrowseDelegate" >&6; }
29892else
cristy8b350f62009-11-15 23:12:43 +000029893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029894$as_echo "no" >&6; }
29895fi
29896
29897
29898# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29899set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029901$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029902if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029903 $as_echo_n "(cached) " >&6
29904else
29905 case $CGMDecodeDelegate in
29906 [\\/]* | ?:[\\/]*)
29907 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29908 ;;
29909 *)
29910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29911for as_dir in $PATH
29912do
29913 IFS=$as_save_IFS
29914 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029915 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29917 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029919 break 2
29920 fi
29921done
cristy8b350f62009-11-15 23:12:43 +000029922 done
cristy3ed852e2009-09-05 21:47:34 +000029923IFS=$as_save_IFS
29924
29925 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29926 ;;
29927esac
29928fi
29929CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29930if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029932$as_echo "$CGMDecodeDelegate" >&6; }
29933else
cristy8b350f62009-11-15 23:12:43 +000029934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029935$as_echo "no" >&6; }
29936fi
29937
29938
29939# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29940set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029942$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029943if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029944 $as_echo_n "(cached) " >&6
29945else
29946 case $CatDelegate in
29947 [\\/]* | ?:[\\/]*)
29948 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29949 ;;
29950 *)
29951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29952for as_dir in $PATH
29953do
29954 IFS=$as_save_IFS
29955 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029956 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29958 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029960 break 2
29961 fi
29962done
cristy8b350f62009-11-15 23:12:43 +000029963 done
cristy3ed852e2009-09-05 21:47:34 +000029964IFS=$as_save_IFS
29965
29966 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29967 ;;
29968esac
29969fi
29970CatDelegate=$ac_cv_path_CatDelegate
29971if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029973$as_echo "$CatDelegate" >&6; }
29974else
cristy8b350f62009-11-15 23:12:43 +000029975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029976$as_echo "no" >&6; }
29977fi
29978
29979
29980# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29981set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029983$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029984if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029985 $as_echo_n "(cached) " >&6
29986else
29987 case $DNGDecodeDelegate in
29988 [\\/]* | ?:[\\/]*)
29989 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29990 ;;
29991 *)
29992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29993for as_dir in $PATH
29994do
29995 IFS=$as_save_IFS
29996 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029997 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29999 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030001 break 2
30002 fi
30003done
cristy8b350f62009-11-15 23:12:43 +000030004 done
cristy3ed852e2009-09-05 21:47:34 +000030005IFS=$as_save_IFS
30006
30007 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
30008 ;;
30009esac
30010fi
30011DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
30012if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030014$as_echo "$DNGDecodeDelegate" >&6; }
30015else
cristy8b350f62009-11-15 23:12:43 +000030016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030017$as_echo "no" >&6; }
30018fi
30019
30020
30021# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
30022set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030024$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030025if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030026 $as_echo_n "(cached) " >&6
30027else
30028 case $GVCDecodeDelegate in
30029 [\\/]* | ?:[\\/]*)
30030 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
30031 ;;
30032 *)
30033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30034for as_dir in $PATH
30035do
30036 IFS=$as_save_IFS
30037 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030038 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30040 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030042 break 2
30043 fi
30044done
cristy8b350f62009-11-15 23:12:43 +000030045 done
cristy3ed852e2009-09-05 21:47:34 +000030046IFS=$as_save_IFS
30047
30048 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
30049 ;;
30050esac
30051fi
30052GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
30053if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030055$as_echo "$GVCDecodeDelegate" >&6; }
30056else
cristy8b350f62009-11-15 23:12:43 +000030057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030058$as_echo "no" >&6; }
30059fi
30060
30061
30062# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
30063set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030065$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030066if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030067 $as_echo_n "(cached) " >&6
30068else
30069 case $DVIDecodeDelegate in
30070 [\\/]* | ?:[\\/]*)
30071 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
30072 ;;
30073 *)
30074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30075for as_dir in $PATH
30076do
30077 IFS=$as_save_IFS
30078 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030079 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30081 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030083 break 2
30084 fi
30085done
cristy8b350f62009-11-15 23:12:43 +000030086 done
cristy3ed852e2009-09-05 21:47:34 +000030087IFS=$as_save_IFS
30088
30089 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30090 ;;
30091esac
30092fi
30093DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30094if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030096$as_echo "$DVIDecodeDelegate" >&6; }
30097else
cristy8b350f62009-11-15 23:12:43 +000030098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030099$as_echo "no" >&6; }
30100fi
30101
30102
30103# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30104set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030106$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030107if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030108 $as_echo_n "(cached) " >&6
30109else
30110 case $EchoDelegate in
30111 [\\/]* | ?:[\\/]*)
30112 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30113 ;;
30114 *)
30115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30116for as_dir in $PATH
30117do
30118 IFS=$as_save_IFS
30119 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030120 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30122 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030124 break 2
30125 fi
30126done
cristy8b350f62009-11-15 23:12:43 +000030127 done
cristy3ed852e2009-09-05 21:47:34 +000030128IFS=$as_save_IFS
30129
30130 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30131 ;;
30132esac
30133fi
30134EchoDelegate=$ac_cv_path_EchoDelegate
30135if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030137$as_echo "$EchoDelegate" >&6; }
30138else
cristy8b350f62009-11-15 23:12:43 +000030139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030140$as_echo "no" >&6; }
30141fi
30142
30143
30144# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30145set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030147$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030148if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030149 $as_echo_n "(cached) " >&6
30150else
30151 case $EditorDelegate in
30152 [\\/]* | ?:[\\/]*)
30153 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30154 ;;
30155 *)
30156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30157for as_dir in $PATH
30158do
30159 IFS=$as_save_IFS
30160 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030161 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30163 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030165 break 2
30166 fi
30167done
cristy8b350f62009-11-15 23:12:43 +000030168 done
cristy3ed852e2009-09-05 21:47:34 +000030169IFS=$as_save_IFS
30170
30171 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30172 ;;
30173esac
30174fi
30175EditorDelegate=$ac_cv_path_EditorDelegate
30176if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030178$as_echo "$EditorDelegate" >&6; }
30179else
cristy8b350f62009-11-15 23:12:43 +000030180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030181$as_echo "no" >&6; }
30182fi
30183
30184
30185# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30186set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030188$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030189if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030190 $as_echo_n "(cached) " >&6
30191else
30192 case $FIGDecodeDelegate in
30193 [\\/]* | ?:[\\/]*)
30194 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30195 ;;
30196 *)
30197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30198for as_dir in $PATH
30199do
30200 IFS=$as_save_IFS
30201 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030202 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30204 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030206 break 2
30207 fi
30208done
cristy8b350f62009-11-15 23:12:43 +000030209 done
cristy3ed852e2009-09-05 21:47:34 +000030210IFS=$as_save_IFS
30211
30212 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30213 ;;
30214esac
30215fi
30216FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30217if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030219$as_echo "$FIGDecodeDelegate" >&6; }
30220else
cristy8b350f62009-11-15 23:12:43 +000030221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030222$as_echo "no" >&6; }
30223fi
30224
30225
30226# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30227set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030229$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030230if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030231 $as_echo_n "(cached) " >&6
30232else
30233 case $ConvertDelegate in
30234 [\\/]* | ?:[\\/]*)
30235 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30236 ;;
30237 *)
30238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30239for as_dir in $PATH
30240do
30241 IFS=$as_save_IFS
30242 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030243 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30245 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030247 break 2
30248 fi
30249done
cristy8b350f62009-11-15 23:12:43 +000030250 done
cristy3ed852e2009-09-05 21:47:34 +000030251IFS=$as_save_IFS
30252
30253 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30254 ;;
30255esac
30256fi
30257ConvertDelegate=$ac_cv_path_ConvertDelegate
30258if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030260$as_echo "$ConvertDelegate" >&6; }
30261else
cristy8b350f62009-11-15 23:12:43 +000030262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030263$as_echo "no" >&6; }
30264fi
30265
30266
30267# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30268set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030270$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030271if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030272 $as_echo_n "(cached) " >&6
30273else
30274 case $DisplayDelegate in
30275 [\\/]* | ?:[\\/]*)
30276 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30277 ;;
30278 *)
30279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30280for as_dir in $PATH
30281do
30282 IFS=$as_save_IFS
30283 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030284 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30286 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030288 break 2
30289 fi
30290done
cristy8b350f62009-11-15 23:12:43 +000030291 done
cristy3ed852e2009-09-05 21:47:34 +000030292IFS=$as_save_IFS
30293
30294 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30295 ;;
30296esac
30297fi
30298DisplayDelegate=$ac_cv_path_DisplayDelegate
30299if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030301$as_echo "$DisplayDelegate" >&6; }
30302else
cristy8b350f62009-11-15 23:12:43 +000030303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030304$as_echo "no" >&6; }
30305fi
30306
30307
30308# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30309set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030311$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030312if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030313 $as_echo_n "(cached) " >&6
30314else
30315 case $MogrifyDelegate in
30316 [\\/]* | ?:[\\/]*)
30317 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30318 ;;
30319 *)
30320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30321for as_dir in $PATH
30322do
30323 IFS=$as_save_IFS
30324 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030325 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30327 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030329 break 2
30330 fi
30331done
cristy8b350f62009-11-15 23:12:43 +000030332 done
cristy3ed852e2009-09-05 21:47:34 +000030333IFS=$as_save_IFS
30334
30335 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30336 ;;
30337esac
30338fi
30339MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30340if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030342$as_echo "$MogrifyDelegate" >&6; }
30343else
cristy8b350f62009-11-15 23:12:43 +000030344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030345$as_echo "no" >&6; }
30346fi
30347
30348
30349# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30350set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030352$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030353if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030354 $as_echo_n "(cached) " >&6
30355else
30356 case $GnuplotDecodeDelegate in
30357 [\\/]* | ?:[\\/]*)
30358 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30359 ;;
30360 *)
30361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30362for as_dir in $PATH
30363do
30364 IFS=$as_save_IFS
30365 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030366 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30368 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030370 break 2
30371 fi
30372done
cristy8b350f62009-11-15 23:12:43 +000030373 done
cristy3ed852e2009-09-05 21:47:34 +000030374IFS=$as_save_IFS
30375
30376 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30377 ;;
30378esac
30379fi
30380GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30381if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030383$as_echo "$GnuplotDecodeDelegate" >&6; }
30384else
cristy8b350f62009-11-15 23:12:43 +000030385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030386$as_echo "no" >&6; }
30387fi
30388
30389
30390# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30391set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030393$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030394if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030395 $as_echo_n "(cached) " >&6
30396else
30397 case $HDRDecodeDelegate in
30398 [\\/]* | ?:[\\/]*)
30399 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30400 ;;
30401 *)
30402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30403for as_dir in $PATH
30404do
30405 IFS=$as_save_IFS
30406 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030407 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30409 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030411 break 2
30412 fi
30413done
cristy8b350f62009-11-15 23:12:43 +000030414 done
cristy3ed852e2009-09-05 21:47:34 +000030415IFS=$as_save_IFS
30416
30417 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30418 ;;
30419esac
30420fi
30421HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30422if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030424$as_echo "$HDRDecodeDelegate" >&6; }
30425else
cristy8b350f62009-11-15 23:12:43 +000030426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030427$as_echo "no" >&6; }
30428fi
30429
30430
30431# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30432set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030434$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030435if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030436 $as_echo_n "(cached) " >&6
30437else
30438 case $HPGLDecodeDelegate in
30439 [\\/]* | ?:[\\/]*)
30440 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30441 ;;
30442 *)
30443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30444for as_dir in $PATH
30445do
30446 IFS=$as_save_IFS
30447 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030448 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30450 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030452 break 2
30453 fi
30454done
cristy8b350f62009-11-15 23:12:43 +000030455 done
cristy3ed852e2009-09-05 21:47:34 +000030456IFS=$as_save_IFS
30457
30458 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30459 ;;
30460esac
30461fi
30462HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30463if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030465$as_echo "$HPGLDecodeDelegate" >&6; }
30466else
cristy8b350f62009-11-15 23:12:43 +000030467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030468$as_echo "no" >&6; }
30469fi
30470
30471
30472# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30473set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030475$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030476if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030477 $as_echo_n "(cached) " >&6
30478else
30479 case $HTMLDecodeDelegate in
30480 [\\/]* | ?:[\\/]*)
30481 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30482 ;;
30483 *)
30484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30485for as_dir in $PATH
30486do
30487 IFS=$as_save_IFS
30488 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030489 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30491 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030493 break 2
30494 fi
30495done
cristy8b350f62009-11-15 23:12:43 +000030496 done
cristy3ed852e2009-09-05 21:47:34 +000030497IFS=$as_save_IFS
30498
30499 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30500 ;;
30501esac
30502fi
30503HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30504if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030506$as_echo "$HTMLDecodeDelegate" >&6; }
30507else
cristy8b350f62009-11-15 23:12:43 +000030508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030509$as_echo "no" >&6; }
30510fi
30511
30512
30513# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30514set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030516$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030517if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030518 $as_echo_n "(cached) " >&6
30519else
30520 case $ILBMDecodeDelegate in
30521 [\\/]* | ?:[\\/]*)
30522 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30523 ;;
30524 *)
30525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30526for as_dir in $PATH
30527do
30528 IFS=$as_save_IFS
30529 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030530 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30532 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030534 break 2
30535 fi
30536done
cristy8b350f62009-11-15 23:12:43 +000030537 done
cristy3ed852e2009-09-05 21:47:34 +000030538IFS=$as_save_IFS
30539
30540 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30541 ;;
30542esac
30543fi
30544ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30545if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030547$as_echo "$ILBMDecodeDelegate" >&6; }
30548else
cristy8b350f62009-11-15 23:12:43 +000030549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030550$as_echo "no" >&6; }
30551fi
30552
30553
30554# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30555set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030557$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030558if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030559 $as_echo_n "(cached) " >&6
30560else
30561 case $ILBMEncodeDelegate in
30562 [\\/]* | ?:[\\/]*)
30563 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30564 ;;
30565 *)
30566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30567for as_dir in $PATH
30568do
30569 IFS=$as_save_IFS
30570 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030571 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30573 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030575 break 2
30576 fi
30577done
cristy8b350f62009-11-15 23:12:43 +000030578 done
cristy3ed852e2009-09-05 21:47:34 +000030579IFS=$as_save_IFS
30580
30581 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30582 ;;
30583esac
30584fi
30585ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30586if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030588$as_echo "$ILBMEncodeDelegate" >&6; }
30589else
cristy8b350f62009-11-15 23:12:43 +000030590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030591$as_echo "no" >&6; }
30592fi
30593
30594
30595# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30596set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030598$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030599if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030600 $as_echo_n "(cached) " >&6
30601else
30602 case $LPDelegate in
30603 [\\/]* | ?:[\\/]*)
30604 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30605 ;;
30606 *)
30607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30608for as_dir in $PATH
30609do
30610 IFS=$as_save_IFS
30611 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030612 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30614 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030616 break 2
30617 fi
30618done
cristy8b350f62009-11-15 23:12:43 +000030619 done
cristy3ed852e2009-09-05 21:47:34 +000030620IFS=$as_save_IFS
30621
30622 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30623 ;;
30624esac
30625fi
30626LPDelegate=$ac_cv_path_LPDelegate
30627if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030629$as_echo "$LPDelegate" >&6; }
30630else
cristy8b350f62009-11-15 23:12:43 +000030631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030632$as_echo "no" >&6; }
30633fi
30634
30635
30636# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30637set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030639$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030640if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030641 $as_echo_n "(cached) " >&6
30642else
30643 case $LPRDelegate in
30644 [\\/]* | ?:[\\/]*)
30645 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30646 ;;
30647 *)
30648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30649for as_dir in $PATH
30650do
30651 IFS=$as_save_IFS
30652 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030653 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30655 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030657 break 2
30658 fi
30659done
cristy8b350f62009-11-15 23:12:43 +000030660 done
cristy3ed852e2009-09-05 21:47:34 +000030661IFS=$as_save_IFS
30662
30663 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30664 ;;
30665esac
30666fi
30667LPRDelegate=$ac_cv_path_LPRDelegate
30668if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030670$as_echo "$LPRDelegate" >&6; }
30671else
cristy8b350f62009-11-15 23:12:43 +000030672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030673$as_echo "no" >&6; }
30674fi
30675
30676
30677# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30678set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030680$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030681if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030682 $as_echo_n "(cached) " >&6
30683else
30684 case $LZWDecodeDelegate in
30685 [\\/]* | ?:[\\/]*)
30686 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30687 ;;
30688 *)
30689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30690for as_dir in $PATH
30691do
30692 IFS=$as_save_IFS
30693 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030694 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30696 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030698 break 2
30699 fi
30700done
cristy8b350f62009-11-15 23:12:43 +000030701 done
cristy3ed852e2009-09-05 21:47:34 +000030702IFS=$as_save_IFS
30703
30704 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30705 ;;
30706esac
30707fi
30708LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30709if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030711$as_echo "$LZWDecodeDelegate" >&6; }
30712else
cristy8b350f62009-11-15 23:12:43 +000030713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030714$as_echo "no" >&6; }
30715fi
30716
30717
30718# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30719set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030721$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030722if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030723 $as_echo_n "(cached) " >&6
30724else
30725 case $LZWEncodeDelegate in
30726 [\\/]* | ?:[\\/]*)
30727 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30728 ;;
30729 *)
30730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30731for as_dir in $PATH
30732do
30733 IFS=$as_save_IFS
30734 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030735 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30737 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030739 break 2
30740 fi
30741done
cristy8b350f62009-11-15 23:12:43 +000030742 done
cristy3ed852e2009-09-05 21:47:34 +000030743IFS=$as_save_IFS
30744
30745 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30746 ;;
30747esac
30748fi
30749LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30750if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030752$as_echo "$LZWEncodeDelegate" >&6; }
30753else
cristy8b350f62009-11-15 23:12:43 +000030754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030755$as_echo "no" >&6; }
30756fi
30757
30758
30759# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30760set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030762$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030763if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030764 $as_echo_n "(cached) " >&6
30765else
30766 case $LaunchDelegate in
30767 [\\/]* | ?:[\\/]*)
30768 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30769 ;;
30770 *)
30771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30772for as_dir in $PATH
30773do
30774 IFS=$as_save_IFS
30775 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030776 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30778 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030780 break 2
30781 fi
30782done
cristy8b350f62009-11-15 23:12:43 +000030783 done
cristy3ed852e2009-09-05 21:47:34 +000030784IFS=$as_save_IFS
30785
30786 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30787 ;;
30788esac
30789fi
30790LaunchDelegate=$ac_cv_path_LaunchDelegate
30791if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030793$as_echo "$LaunchDelegate" >&6; }
30794else
cristy8b350f62009-11-15 23:12:43 +000030795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030796$as_echo "no" >&6; }
30797fi
30798
30799
30800# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30801set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030803$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030804if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030805 $as_echo_n "(cached) " >&6
30806else
30807 case $MANDelegate in
30808 [\\/]* | ?:[\\/]*)
30809 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30810 ;;
30811 *)
30812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30813for as_dir in $PATH
30814do
30815 IFS=$as_save_IFS
30816 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030817 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30819 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030821 break 2
30822 fi
30823done
cristy8b350f62009-11-15 23:12:43 +000030824 done
cristy3ed852e2009-09-05 21:47:34 +000030825IFS=$as_save_IFS
30826
30827 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30828 ;;
30829esac
30830fi
30831MANDelegate=$ac_cv_path_MANDelegate
30832if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030834$as_echo "$MANDelegate" >&6; }
30835else
cristy8b350f62009-11-15 23:12:43 +000030836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030837$as_echo "no" >&6; }
30838fi
30839
30840
30841# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30842set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030844$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030845if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030846 $as_echo_n "(cached) " >&6
30847else
30848 case $MPEGDecodeDelegate in
30849 [\\/]* | ?:[\\/]*)
30850 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30851 ;;
30852 *)
30853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30854for as_dir in $PATH
30855do
30856 IFS=$as_save_IFS
30857 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030858 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30860 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030862 break 2
30863 fi
30864done
cristy8b350f62009-11-15 23:12:43 +000030865 done
cristy3ed852e2009-09-05 21:47:34 +000030866IFS=$as_save_IFS
30867
30868 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30869 ;;
30870esac
30871fi
30872MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30873if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030875$as_echo "$MPEGDecodeDelegate" >&6; }
30876else
cristy8b350f62009-11-15 23:12:43 +000030877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030878$as_echo "no" >&6; }
30879fi
30880
30881
30882# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30883set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030885$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030886if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030887 $as_echo_n "(cached) " >&6
30888else
30889 case $MPEGEncodeDelegate in
30890 [\\/]* | ?:[\\/]*)
30891 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30892 ;;
30893 *)
30894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30895for as_dir in $PATH
30896do
30897 IFS=$as_save_IFS
30898 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030899 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30901 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030903 break 2
30904 fi
30905done
cristy8b350f62009-11-15 23:12:43 +000030906 done
cristy3ed852e2009-09-05 21:47:34 +000030907IFS=$as_save_IFS
30908
30909 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30910 ;;
30911esac
30912fi
30913MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30914if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030916$as_echo "$MPEGEncodeDelegate" >&6; }
30917else
cristy8b350f62009-11-15 23:12:43 +000030918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030919$as_echo "no" >&6; }
30920fi
30921
30922
cristy935c86e2010-06-05 23:50:07 +000030923# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30924set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30926$as_echo_n "checking for $ac_word... " >&6; }
30927if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30928 $as_echo_n "(cached) " >&6
30929else
30930 case $MrSIDDecodeDelegate in
30931 [\\/]* | ?:[\\/]*)
30932 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30933 ;;
30934 *)
30935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30936for as_dir in $PATH
30937do
30938 IFS=$as_save_IFS
30939 test -z "$as_dir" && as_dir=.
30940 for ac_exec_ext in '' $ac_executable_extensions; do
30941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30942 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30944 break 2
30945 fi
30946done
30947 done
30948IFS=$as_save_IFS
30949
30950 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
30951 ;;
30952esac
30953fi
30954MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
30955if test -n "$MrSIDDecodeDelegate"; then
30956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
30957$as_echo "$MrSIDDecodeDelegate" >&6; }
30958else
30959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30960$as_echo "no" >&6; }
30961fi
30962
30963
cristy3ed852e2009-09-05 21:47:34 +000030964# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30965set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030967$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030968if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030969 $as_echo_n "(cached) " >&6
30970else
30971 case $MVDelegate in
30972 [\\/]* | ?:[\\/]*)
30973 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30974 ;;
30975 *)
30976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30977for as_dir in $PATH
30978do
30979 IFS=$as_save_IFS
30980 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030981 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30983 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030985 break 2
30986 fi
30987done
cristy8b350f62009-11-15 23:12:43 +000030988 done
cristy3ed852e2009-09-05 21:47:34 +000030989IFS=$as_save_IFS
30990
30991 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30992 ;;
30993esac
30994fi
30995MVDelegate=$ac_cv_path_MVDelegate
30996if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030998$as_echo "$MVDelegate" >&6; }
30999else
cristy8b350f62009-11-15 23:12:43 +000031000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031001$as_echo "no" >&6; }
31002fi
31003
31004
31005# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
31006set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031008$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031009if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031010 $as_echo_n "(cached) " >&6
31011else
31012 case $PCLDelegate in
31013 [\\/]* | ?:[\\/]*)
31014 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
31015 ;;
31016 *)
31017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31018for as_dir in $PATH
31019do
31020 IFS=$as_save_IFS
31021 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031022 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31024 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031026 break 2
31027 fi
31028done
cristy8b350f62009-11-15 23:12:43 +000031029 done
cristy3ed852e2009-09-05 21:47:34 +000031030IFS=$as_save_IFS
31031
31032 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
31033 ;;
31034esac
31035fi
31036PCLDelegate=$ac_cv_path_PCLDelegate
31037if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031039$as_echo "$PCLDelegate" >&6; }
31040else
cristy8b350f62009-11-15 23:12:43 +000031041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031042$as_echo "no" >&6; }
31043fi
31044
31045
31046# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
31047set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031049$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031050if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031051 $as_echo_n "(cached) " >&6
31052else
31053 case $PGPDecodeDelegate in
31054 [\\/]* | ?:[\\/]*)
31055 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
31056 ;;
31057 *)
31058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31059for as_dir in $PATH
31060do
31061 IFS=$as_save_IFS
31062 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031063 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31065 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031067 break 2
31068 fi
31069done
cristy8b350f62009-11-15 23:12:43 +000031070 done
cristy3ed852e2009-09-05 21:47:34 +000031071IFS=$as_save_IFS
31072
31073 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
31074 ;;
31075esac
31076fi
31077PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
31078if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031080$as_echo "$PGPDecodeDelegate" >&6; }
31081else
cristy8b350f62009-11-15 23:12:43 +000031082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031083$as_echo "no" >&6; }
31084fi
31085
31086
31087# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31088set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031090$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031091if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031092 $as_echo_n "(cached) " >&6
31093else
31094 case $POVDelegate in
31095 [\\/]* | ?:[\\/]*)
31096 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31097 ;;
31098 *)
31099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31100for as_dir in $PATH
31101do
31102 IFS=$as_save_IFS
31103 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031104 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31106 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031108 break 2
31109 fi
31110done
cristy8b350f62009-11-15 23:12:43 +000031111 done
cristy3ed852e2009-09-05 21:47:34 +000031112IFS=$as_save_IFS
31113
31114 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31115 ;;
31116esac
31117fi
31118POVDelegate=$ac_cv_path_POVDelegate
31119if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031121$as_echo "$POVDelegate" >&6; }
31122else
cristy8b350f62009-11-15 23:12:43 +000031123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031124$as_echo "no" >&6; }
31125fi
31126
31127
31128for ac_prog in gsx gsc "$PSDelegateDefault"
31129do
31130 # Extract the first word of "$ac_prog", so it can be a program name with args.
31131set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031133$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031134if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031135 $as_echo_n "(cached) " >&6
31136else
31137 case $PSDelegate in
31138 [\\/]* | ?:[\\/]*)
31139 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31140 ;;
31141 *)
31142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31143for as_dir in $PATH
31144do
31145 IFS=$as_save_IFS
31146 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031147 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31149 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031151 break 2
31152 fi
31153done
cristy8b350f62009-11-15 23:12:43 +000031154 done
cristy3ed852e2009-09-05 21:47:34 +000031155IFS=$as_save_IFS
31156
31157 ;;
31158esac
31159fi
31160PSDelegate=$ac_cv_path_PSDelegate
31161if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031163$as_echo "$PSDelegate" >&6; }
31164else
cristy8b350f62009-11-15 23:12:43 +000031165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031166$as_echo "no" >&6; }
31167fi
31168
31169
31170 test -n "$PSDelegate" && break
31171done
31172test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31173
31174# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31175set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031177$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031178if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031179 $as_echo_n "(cached) " >&6
31180else
31181 case $RLEEncodeDelegate in
31182 [\\/]* | ?:[\\/]*)
31183 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31184 ;;
31185 *)
31186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31187for as_dir in $PATH
31188do
31189 IFS=$as_save_IFS
31190 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031191 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31193 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031195 break 2
31196 fi
31197done
cristy8b350f62009-11-15 23:12:43 +000031198 done
cristy3ed852e2009-09-05 21:47:34 +000031199IFS=$as_save_IFS
31200
31201 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31202 ;;
31203esac
31204fi
31205RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31206if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031208$as_echo "$RLEEncodeDelegate" >&6; }
31209else
cristy8b350f62009-11-15 23:12:43 +000031210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031211$as_echo "no" >&6; }
31212fi
31213
31214
31215# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31216set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031218$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031219if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031220 $as_echo_n "(cached) " >&6
31221else
31222 case $RMDelegate in
31223 [\\/]* | ?:[\\/]*)
31224 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31225 ;;
31226 *)
31227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31228for as_dir in $PATH
31229do
31230 IFS=$as_save_IFS
31231 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031232 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31234 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031236 break 2
31237 fi
31238done
cristy8b350f62009-11-15 23:12:43 +000031239 done
cristy3ed852e2009-09-05 21:47:34 +000031240IFS=$as_save_IFS
31241
31242 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31243 ;;
31244esac
31245fi
31246RMDelegate=$ac_cv_path_RMDelegate
31247if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031249$as_echo "$RMDelegate" >&6; }
31250else
cristy8b350f62009-11-15 23:12:43 +000031251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031252$as_echo "no" >&6; }
31253fi
31254
31255
cristy4689cf02010-02-17 21:15:45 +000031256# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31257set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31259$as_echo_n "checking for $ac_word... " >&6; }
31260if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31261 $as_echo_n "(cached) " >&6
31262else
31263 case $RSVGDecodeDelegate in
31264 [\\/]* | ?:[\\/]*)
31265 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31266 ;;
31267 *)
31268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31269for as_dir in $PATH
31270do
31271 IFS=$as_save_IFS
31272 test -z "$as_dir" && as_dir=.
31273 for ac_exec_ext in '' $ac_executable_extensions; do
31274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31275 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31277 break 2
31278 fi
31279done
31280 done
31281IFS=$as_save_IFS
31282
31283 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31284 ;;
31285esac
31286fi
31287RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31288if test -n "$RSVGDecodeDelegate"; then
31289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31290$as_echo "$RSVGDecodeDelegate" >&6; }
31291else
31292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31293$as_echo "no" >&6; }
31294fi
31295
31296
cristy3ed852e2009-09-05 21:47:34 +000031297# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31298set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031300$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031301if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031302 $as_echo_n "(cached) " >&6
31303else
31304 case $SCANDecodeDelegate in
31305 [\\/]* | ?:[\\/]*)
31306 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31307 ;;
31308 *)
31309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31310for as_dir in $PATH
31311do
31312 IFS=$as_save_IFS
31313 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031314 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31316 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031318 break 2
31319 fi
31320done
cristy8b350f62009-11-15 23:12:43 +000031321 done
cristy3ed852e2009-09-05 21:47:34 +000031322IFS=$as_save_IFS
31323
31324 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31325 ;;
31326esac
31327fi
31328SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31329if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031331$as_echo "$SCANDecodeDelegate" >&6; }
31332else
cristy8b350f62009-11-15 23:12:43 +000031333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031334$as_echo "no" >&6; }
31335fi
31336
31337
31338# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31339set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031341$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031342if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031343 $as_echo_n "(cached) " >&6
31344else
31345 case $TXTDelegate in
31346 [\\/]* | ?:[\\/]*)
31347 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31348 ;;
31349 *)
31350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31351for as_dir in $PATH
31352do
31353 IFS=$as_save_IFS
31354 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031355 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31357 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031359 break 2
31360 fi
31361done
cristy8b350f62009-11-15 23:12:43 +000031362 done
cristy3ed852e2009-09-05 21:47:34 +000031363IFS=$as_save_IFS
31364
31365 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31366 ;;
31367esac
31368fi
31369TXTDelegate=$ac_cv_path_TXTDelegate
31370if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031372$as_echo "$TXTDelegate" >&6; }
31373else
cristy8b350f62009-11-15 23:12:43 +000031374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031375$as_echo "no" >&6; }
31376fi
31377
31378
31379# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31380set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031382$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031383if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031384 $as_echo_n "(cached) " >&6
31385else
31386 case $WMFDecodeDelegate in
31387 [\\/]* | ?:[\\/]*)
31388 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31389 ;;
31390 *)
31391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31392for as_dir in $PATH
31393do
31394 IFS=$as_save_IFS
31395 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031396 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31398 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031400 break 2
31401 fi
31402done
cristy8b350f62009-11-15 23:12:43 +000031403 done
cristy3ed852e2009-09-05 21:47:34 +000031404IFS=$as_save_IFS
31405
31406 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31407 ;;
31408esac
31409fi
31410WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31411if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031413$as_echo "$WMFDecodeDelegate" >&6; }
31414else
cristy8b350f62009-11-15 23:12:43 +000031415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031416$as_echo "no" >&6; }
31417fi
31418
31419
31420# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31421set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031423$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031424if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031425 $as_echo_n "(cached) " >&6
31426else
31427 case $WWWDecodeDelegate in
31428 [\\/]* | ?:[\\/]*)
31429 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31430 ;;
31431 *)
31432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31433for as_dir in $PATH
31434do
31435 IFS=$as_save_IFS
31436 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031437 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31439 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031441 break 2
31442 fi
31443done
cristy8b350f62009-11-15 23:12:43 +000031444 done
cristy3ed852e2009-09-05 21:47:34 +000031445IFS=$as_save_IFS
31446
31447 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31448 ;;
31449esac
31450fi
31451WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31452if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031454$as_echo "$WWWDecodeDelegate" >&6; }
31455else
cristy8b350f62009-11-15 23:12:43 +000031456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031457$as_echo "no" >&6; }
31458fi
31459
31460
31461# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31462set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031464$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031465if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031466 $as_echo_n "(cached) " >&6
31467else
31468 case $XPSDelegate in
31469 [\\/]* | ?:[\\/]*)
31470 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31471 ;;
31472 *)
31473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31474for as_dir in $PATH
31475do
31476 IFS=$as_save_IFS
31477 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031478 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31480 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031482 break 2
31483 fi
31484done
cristy8b350f62009-11-15 23:12:43 +000031485 done
cristy3ed852e2009-09-05 21:47:34 +000031486IFS=$as_save_IFS
31487
31488 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31489 ;;
31490esac
31491fi
31492XPSDelegate=$ac_cv_path_XPSDelegate
31493if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031495$as_echo "$XPSDelegate" >&6; }
31496else
cristy8b350f62009-11-15 23:12:43 +000031497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031498$as_echo "no" >&6; }
31499fi
31500
31501
31502# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31503set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031505$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031506if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031507 $as_echo_n "(cached) " >&6
31508else
31509 case $ZipDelegate in
31510 [\\/]* | ?:[\\/]*)
31511 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31512 ;;
31513 *)
31514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31515for as_dir in $PATH
31516do
31517 IFS=$as_save_IFS
31518 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031519 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31521 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031523 break 2
31524 fi
31525done
cristy8b350f62009-11-15 23:12:43 +000031526 done
cristy3ed852e2009-09-05 21:47:34 +000031527IFS=$as_save_IFS
31528
31529 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31530 ;;
31531esac
31532fi
31533ZipDelegate=$ac_cv_path_ZipDelegate
31534if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031536$as_echo "$ZipDelegate" >&6; }
31537else
cristy8b350f62009-11-15 23:12:43 +000031538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031539$as_echo "no" >&6; }
31540fi
31541
31542
31543
31544# Prefer lpr to lp; lp needs options tacked on.
31545if test "$LPRDelegate" != no; then
31546 PrintDelegate="$LPRDelegate"
31547else
31548 PrintDelegate="$LPDelegate -c -s"
31549fi
31550
31551
31552# Installed ImageMagick utiltity paths
31553ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31554DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31555MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31556
31557# Set delegate booleans
31558have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31559have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31560have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31561have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31562have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31563have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000031564have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000031565have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31566have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31567have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31568have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31569have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31570
31571#
31572# Test for font directories
31573#
31574type_include_files=''
31575
cristy430a7312010-01-21 20:44:04 +000031576# Dejavu fonts.
31577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31578$as_echo_n "checking for Dejavu fonts directory... " >&6; }
31579dejavu_font_dir=''
31580if test "${with_dejavu_font_dir}" != 'default'; then
31581 dejavu_font_dir="${with_dejavu_font_dir}/"
31582else
31583 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31584 if test -f "${font_dir}DejaVuSerif.ttf"; then
31585 dejavu_font_dir="${font_dir}"
31586 break 1
31587 fi
31588 done
31589fi
31590if test "${dejavu_font_dir}x" != 'x'; then
31591 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31593$as_echo "$dejavu_font_dir" >&6; }
31594else
31595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31596$as_echo "not found!" >&6; };
31597fi
31598
31599
cristy3ed852e2009-09-05 21:47:34 +000031600# Windows
31601windows_font_dir=''
31602if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31603 windows_font_dir="${with_windows_font_dir}/"
31604fi
cristy430a7312010-01-21 20:44:04 +000031605if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031606 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31607 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31608 fi
31609 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31610 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31611 fi
31612 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31613 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31614 fi
31615fi
cristy430a7312010-01-21 20:44:04 +000031616if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031617 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31618fi
31619
31620
31621# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000031622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000031623$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31624ghostscript_font_dir=''
31625if test "${with_gs_font_dir}" != 'default'; then
31626 ghostscript_font_dir="${with_gs_font_dir}/"
31627else
31628 if test "${native_win32_build}" = 'yes'; then
31629 # Native Windows Build
31630 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31631 if test -f "${font_dir}a010013l.pfb"; then
31632 ghostscript_font_dir="$font_dir"
31633 break 1
31634 fi
31635 done
31636 if test "${PSDelegate}" != 'gswin32c'; then
31637 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31638 fi
31639 else
31640 # Linux / Mac OS X / Unix Build
31641 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
31642 if test -f "${font_dir}a010013l.pfb"; then
31643 ghostscript_font_dir="${font_dir}"
31644 break 1
31645 fi
31646 done
31647 if test "${ghostscript_font_dir}x" = 'x'; then
31648 if test "$PSDelegate" != 'gs'; then
31649 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31650 fi
31651 fi
31652 fi
31653fi
31654if test "${ghostscript_font_dir}x" != 'x'; then
31655 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000031656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000031657$as_echo "$ghostscript_font_dir" >&6; }
31658else
cristy8b350f62009-11-15 23:12:43 +000031659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000031660$as_echo "not found!" >&6; };
31661fi
31662
31663case "${build_os}" in
31664 mingw* )
31665 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31666 ;;
31667esac
31668
31669
31670
31671#
31672# Handle case where user doesn't want frozen paths
31673#
31674if test "$with_frozenpaths" != 'yes'; then
31675 # Re-set delegate definitions to default (no paths)
31676 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31677 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31678 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31679 BZIPDelegate="$BZIPDelegateDefault"
31680 BrowseDelegate="$BrowseDelegateDefault"
31681 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31682 CatDelegate="$CatDelegateDefault"
31683 ConvertDelegate="$ConvertDelegateDefault"
31684 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31685 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31686 EchoDelegate="$EchoDelegateDefault"
31687 EditorDelegate="$EditorDelegateDefault"
31688 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31689 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31690 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31691 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31692 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31693 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31694 LPDelegate="$LPDelegateDefault"
31695 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31696 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31697 LaunchDelegate="$LaunchDelegateDefault"
31698 MANDelegate="$MANDelegateDefault"
31699 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31700 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031701 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000031702 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31703 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031704 PCLDelegate="$PCLDelegateDefault"
31705 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31706 POVDelegate="$POVDelegateDefault"
31707 PSDelegate="$PSDelegateDefault"
31708 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31709 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31710 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031711 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031712 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31713 ShowImageDelegate="$ShowImageDelegateDefault"
31714 TXTDelegate="$TXTDelegateDefault"
31715 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31716 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31717 XPSDelegate="$XPSDelegateDefault"
31718 ZipDelegate="$ZipDelegateDefault"
31719fi
31720
31721# Delegate substitutions
31722
31723
31724
31725
31726
31727
31728
31729
31730
31731
31732
31733
31734
31735
31736
31737
31738
31739
31740
31741
31742
31743
31744
31745
31746
31747
31748
31749
31750
31751
31752
31753
31754
31755
31756
31757
31758
31759
31760
31761
31762
31763
cristy935c86e2010-06-05 23:50:07 +000031764
cristy3ed852e2009-09-05 21:47:34 +000031765#
31766# RPM support.
31767#
31768RPM=''
31769for ac_prog in gnutar gtar tar
31770do
31771 # Extract the first word of "$ac_prog", so it can be a program name with args.
31772set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031774$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031775if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031776 $as_echo_n "(cached) " >&6
31777else
31778 if test -n "$TAR"; then
31779 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31780else
31781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31782for as_dir in $PATH
31783do
31784 IFS=$as_save_IFS
31785 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031786 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31788 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031790 break 2
31791 fi
31792done
cristy8b350f62009-11-15 23:12:43 +000031793 done
cristy3ed852e2009-09-05 21:47:34 +000031794IFS=$as_save_IFS
31795
31796fi
31797fi
31798TAR=$ac_cv_prog_TAR
31799if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031801$as_echo "$TAR" >&6; }
31802else
cristy8b350f62009-11-15 23:12:43 +000031803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031804$as_echo "no" >&6; }
31805fi
31806
31807
31808 test -n "$TAR" && break
31809done
31810
31811for ac_prog in perl
31812do
31813 # Extract the first word of "$ac_prog", so it can be a program name with args.
31814set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031816$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031817if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031818 $as_echo_n "(cached) " >&6
31819else
31820 if test -n "$PERL"; then
31821 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31822else
31823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31824for as_dir in $PATH
31825do
31826 IFS=$as_save_IFS
31827 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031828 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31830 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031832 break 2
31833 fi
31834done
cristy8b350f62009-11-15 23:12:43 +000031835 done
cristy3ed852e2009-09-05 21:47:34 +000031836IFS=$as_save_IFS
31837
31838fi
31839fi
31840PERL=$ac_cv_prog_PERL
31841if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031843$as_echo "$PERL" >&6; }
31844else
cristy8b350f62009-11-15 23:12:43 +000031845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031846$as_echo "no" >&6; }
31847fi
31848
31849
31850 test -n "$PERL" && break
31851done
31852
31853for ac_prog in rpmbuild rpm
31854do
31855 # Extract the first word of "$ac_prog", so it can be a program name with args.
31856set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031858$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031859if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031860 $as_echo_n "(cached) " >&6
31861else
31862 if test -n "$RPM"; then
31863 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31864else
31865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31866for as_dir in $PATH
31867do
31868 IFS=$as_save_IFS
31869 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031870 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31872 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031874 break 2
31875 fi
31876done
cristy8b350f62009-11-15 23:12:43 +000031877 done
cristy3ed852e2009-09-05 21:47:34 +000031878IFS=$as_save_IFS
31879
31880fi
31881fi
31882RPM=$ac_cv_prog_RPM
31883if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000031884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000031885$as_echo "$RPM" >&6; }
31886else
cristy8b350f62009-11-15 23:12:43 +000031887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031888$as_echo "no" >&6; }
31889fi
31890
31891
31892 test -n "$RPM" && break
31893done
31894
31895
31896ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31897
31898
31899AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31900
31901
31902AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31903
31904
31905AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31906
31907
31908 if test "x$RPM" != "x" ; then
31909 RPM_DELEGATE_TRUE=
31910 RPM_DELEGATE_FALSE='#'
31911else
31912 RPM_DELEGATE_TRUE='#'
31913 RPM_DELEGATE_FALSE=
31914fi
31915
31916
31917#
31918# 7ZIP support (http://p7zip.sourceforge.net/)
31919#
31920P7ZIP=''
31921for ac_prog in 7za
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_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031928 $as_echo_n "(cached) " >&6
31929else
31930 if test -n "$P7ZIP"; then
31931 ac_cv_prog_P7ZIP="$P7ZIP" # 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_P7ZIP="$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
31950P7ZIP=$ac_cv_prog_P7ZIP
31951if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031953$as_echo "$P7ZIP" >&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 "$P7ZIP" && break
31961done
31962
31963
31964 if test "x$P7ZIP" != "x" ; then
31965 P7ZIP_DELEGATE_TRUE=
31966 P7ZIP_DELEGATE_FALSE='#'
31967else
31968 P7ZIP_DELEGATE_TRUE='#'
31969 P7ZIP_DELEGATE_FALSE=
31970fi
31971
31972
31973#
31974# ZIP support (http://www.info-zip.org/Zip.html)
31975#
31976ZIP=''
31977for ac_prog in zip
31978do
31979 # Extract the first word of "$ac_prog", so it can be a program name with args.
31980set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031982$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031983if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031984 $as_echo_n "(cached) " >&6
31985else
31986 if test -n "$ZIP"; then
31987 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31988else
31989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31990for as_dir in $PATH
31991do
31992 IFS=$as_save_IFS
31993 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031994 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31996 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031998 break 2
31999 fi
32000done
cristy8b350f62009-11-15 23:12:43 +000032001 done
cristy3ed852e2009-09-05 21:47:34 +000032002IFS=$as_save_IFS
32003
32004fi
32005fi
32006ZIP=$ac_cv_prog_ZIP
32007if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032009$as_echo "$ZIP" >&6; }
32010else
cristy8b350f62009-11-15 23:12:43 +000032011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032012$as_echo "no" >&6; }
32013fi
32014
32015
32016 test -n "$ZIP" && break
32017done
32018
32019
32020 if test "x$ZIP" != "x" ; then
32021 ZIP_DELEGATE_TRUE=
32022 ZIP_DELEGATE_FALSE='#'
32023else
32024 ZIP_DELEGATE_TRUE='#'
32025 ZIP_DELEGATE_FALSE=
32026fi
32027
32028
32029#
32030# GhostPCL related configuration.
32031#
32032PCLColorDevice=ppmraw
32033PCLCMYKDevice=bmpsep8
32034PCLMonoDevice=pbmraw
32035if test -z "$PCLVersion"; then
32036 PCLVersion='unknown'
32037fi
32038if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032040$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032042$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032044$as_echo "" >&6; }
32045 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000032046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032047$as_echo_n "checking for pcl color device... " >&6; }
32048 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32049 :
32050 else
32051 PCLColorDevice=ppmraw
32052 fi
cristy8b350f62009-11-15 23:12:43 +000032053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032054$as_echo "$PCLColorDevice" >&6; }
32055
32056 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032058$as_echo_n "checking for pcl CMYK device... " >&6; }
32059 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32060 :
32061 else
32062 PCLCMYKDevice=$PCLColorDevice
32063 fi
cristy8b350f62009-11-15 23:12:43 +000032064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032065$as_echo "$PCLCMYKDevice" >&6; }
32066
32067 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032069$as_echo_n "checking for pcl mono device... " >&6; }
32070 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32071 :
32072 else
32073 PCLMonoDevice=$PCLColorDevice
32074 fi
cristy8b350f62009-11-15 23:12:43 +000032075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032076$as_echo "$PCLMonoDevice" >&6; }
32077fi
32078
32079
32080
32081
32082
32083
32084#
32085# GhostXPS related configuration.
32086#
32087XPSColorDevice=ppmraw
32088XPSCMYKDevice=bmpsep8
32089XPSMonoDevice=pbmraw
32090if test -z "$XPSVersion"; then
32091 XPSVersion='unknown'
32092fi
32093if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032095$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032097$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032099$as_echo "" >&6; }
32100 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032102$as_echo_n "checking for xps color device... " >&6; }
32103 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32104 :
32105 else
32106 XPSColorDevice=ppmraw
32107 fi
cristy8b350f62009-11-15 23:12:43 +000032108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032109$as_echo "$XPSColorDevice" >&6; }
32110
32111 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032113$as_echo_n "checking for xps CMYK device... " >&6; }
32114 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32115 :
32116 else
32117 XPSCMYKDevice=$XPSColorDevice
32118 fi
cristy8b350f62009-11-15 23:12:43 +000032119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032120$as_echo "$XPSCMYKDevice" >&6; }
32121
32122 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032124$as_echo_n "checking for xps mono device... " >&6; }
32125 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32126 :
32127 else
32128 XPSMonoDevice=$XPSColorDevice
32129 fi
cristy8b350f62009-11-15 23:12:43 +000032130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032131$as_echo "$XPSMonoDevice" >&6; }
32132fi
32133
32134
32135
32136
32137
32138
32139#
32140# Ghostscript related configuration.
32141#
32142if test "$have_png" = 'yes'; then
32143 GSAlphaDevice=pngalpha
32144else
32145 GSAlphaDevice=pnmraw
32146fi
32147GSColorDevice=pnmraw
32148GSCMYKDevice=pam
32149GSMonoDevice=pbmraw
32150GSPDFDevice=pdfwrite
32151GSPSDevice=pswrite
32152GSEPSDevice=epswrite
32153GSVersion='unknown'
32154if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032156$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032158$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032160$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032162$as_echo_n "checking for Ghostscript version... " >&6; }
32163 if GSVersion=`$PSDelegate --version`; then
32164 :
32165 else
32166 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32167 fi
cristy8b350f62009-11-15 23:12:43 +000032168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032169$as_echo "$GSVersion" >&6; }
32170
32171 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032173$as_echo_n "checking for gs alpha device... " >&6; }
32174 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32175 :
32176 else
32177 GSAlphaDevice=pnmraw
32178 fi
cristy8b350f62009-11-15 23:12:43 +000032179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032180$as_echo "$GSAlphaDevice" >&6; }
32181
32182 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032184$as_echo_n "checking for gs color device... " >&6; }
32185 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32186 :
32187 else
32188 GSColorDevice=pnmraw
32189 fi
cristy8b350f62009-11-15 23:12:43 +000032190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032191$as_echo "$GSColorDevice" >&6; }
32192
32193 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032195$as_echo_n "checking for gs CMYK device... " >&6; }
32196 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32197 :
32198 else
32199 GSCMYKDevice=bmpsep8
32200 fi
cristy8b350f62009-11-15 23:12:43 +000032201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032202$as_echo "$GSCMYKDevice" >&6; }
32203
32204 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032206$as_echo_n "checking for gs mono device... " >&6; }
32207 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32208 :
32209 else
32210 GSMonoDevice=$GSColorDevice
32211 fi
cristy8b350f62009-11-15 23:12:43 +000032212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032213$as_echo "$GSMonoDevice" >&6; }
32214
32215 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000032216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032217$as_echo_n "checking for gs PDF writing device... " >&6; }
32218 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32219 :
32220 else
32221 GSPDFDevice=nodevice
32222 fi
cristy8b350f62009-11-15 23:12:43 +000032223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032224$as_echo "$GSPDFDevice" >&6; }
32225
32226 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000032227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032228$as_echo_n "checking for gs PS writing device... " >&6; }
32229 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32230 :
32231 else
32232 GSPSDevice=nodevice
32233 fi
cristy8b350f62009-11-15 23:12:43 +000032234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032235$as_echo "$GSPSDevice" >&6; }
32236
32237 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000032238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032239$as_echo_n "checking for gs EPS writing device... " >&6; }
32240 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32241 :
32242 else
32243 GSEPSDevice=nodevice
32244 fi
cristy8b350f62009-11-15 23:12:43 +000032245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032246$as_echo "$GSEPSDevice" >&6; }
32247fi
32248
32249
32250
32251
32252
32253
32254
32255
32256
32257
32258#
32259# PerlMagick-related configuration
32260#
32261
32262# Look for PERL if PerlMagick requested
32263# If name/path of desired PERL interpreter is specified, look for that one first
32264have_perl='no'
32265if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000032266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032267$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032269$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032271$as_echo "" >&6; }
32272 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032274$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032275if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032276 $as_echo_n "(cached) " >&6
32277else
32278 ac_cv_path_PERL="$with_perl"
32279fi
cristy8b350f62009-11-15 23:12:43 +000032280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032281$as_echo "$ac_cv_path_PERL" >&6; };
32282 PERL=$ac_cv_path_PERL
32283 have_perl="$ac_cv_path_PERL"
32284 else
32285 for ac_prog in perl perl5
32286do
32287 # Extract the first word of "$ac_prog", so it can be a program name with args.
32288set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032290$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032291if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032292 $as_echo_n "(cached) " >&6
32293else
32294 case $PERL in
32295 [\\/]* | ?:[\\/]*)
32296 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32297 ;;
32298 *)
32299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32300for as_dir in $PATH
32301do
32302 IFS=$as_save_IFS
32303 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032304 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32306 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032308 break 2
32309 fi
32310done
cristy8b350f62009-11-15 23:12:43 +000032311 done
cristy3ed852e2009-09-05 21:47:34 +000032312IFS=$as_save_IFS
32313
32314 ;;
32315esac
32316fi
32317PERL=$ac_cv_path_PERL
32318if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032320$as_echo "$PERL" >&6; }
32321else
cristy8b350f62009-11-15 23:12:43 +000032322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032323$as_echo "no" >&6; }
32324fi
32325
32326
32327 test -n "$PERL" && break
32328done
32329 if test "$ac_cv_path_PERL"; then
32330 have_perl="$ac_cv_path_PERL"
32331 fi
32332 fi
32333fi
32334
cristy949301e2010-01-06 01:38:40 +000032335if test "$with_perl" != 'yes' ; then
32336 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32337fi
32338
32339PERL_SUPPORTS_DESTDIR='no'
32340
cristy3ed852e2009-09-05 21:47:34 +000032341with_perl_static='no'
32342with_perl_dynamic='no'
32343if test "$have_perl" != 'no'; then
32344 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32345 with_perl_static='yes'
32346 fi
32347 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32348 with_perl_dynamic='yes'
32349 fi
32350 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy964cb7f2010-04-25 23:18:00 +000032351
32352
32353
32354
32355 if test -n "$PERL"; then :
32356
32357 ax_perl_version="5.8.1"
32358
32359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32360$as_echo_n "checking for perl version... " >&6; }
32361
32362 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32363
32364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32365$as_echo "$perl_version" >&6; }
32366
32367 PERL_VERSION=$perl_version
32368
32369
32370
32371
32372
32373 # Used to indicate true or false condition
32374 ax_compare_version=false
32375
32376 # Convert the two version strings to be compared into a format that
32377 # allows a simple string comparison. The end result is that a version
32378 # string of the form 1.12.5-r617 will be converted to the form
32379 # 0001001200050617. In other words, each number is zero padded to four
32380 # digits, and non digits are removed.
32381
32382 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32383 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32384 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32385 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32386 -e 's/[^0-9]//g'`
32387
32388
32389 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32390 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32391 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32392 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32393 -e 's/[^0-9]//g'`
32394
32395
32396 ax_compare_version=`echo "x$ax_compare_version_A
32397x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32398
32399
32400
32401 if test "$ax_compare_version" = "true" ; then
32402
32403 :
32404 PERL_SUPPORTS_DESTDIR='yes'
32405
32406 else
32407 :
32408 PERL_SUPPORTS_DESTDIR='no'
32409
cristy3ed852e2009-09-05 21:47:34 +000032410 fi
cristy3ed852e2009-09-05 21:47:34 +000032411
cristy964cb7f2010-04-25 23:18:00 +000032412
cristy3ed852e2009-09-05 21:47:34 +000032413else
cristy3ed852e2009-09-05 21:47:34 +000032414
cristy964cb7f2010-04-25 23:18:00 +000032415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32416$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32417 PERL_SUPPORTS_DESTDIR='no'
cristy3ed852e2009-09-05 21:47:34 +000032418
32419fi
32420
cristy3ed852e2009-09-05 21:47:34 +000032421fi
32422 if test "$have_perl" != 'no'; then
32423 WITH_PERL_TRUE=
32424 WITH_PERL_FALSE='#'
32425else
32426 WITH_PERL_TRUE='#'
32427 WITH_PERL_FALSE=
32428fi
32429
32430 if test $with_perl_static = 'yes'; then
32431 WITH_PERL_STATIC_TRUE=
32432 WITH_PERL_STATIC_FALSE='#'
32433else
32434 WITH_PERL_STATIC_TRUE='#'
32435 WITH_PERL_STATIC_FALSE=
32436fi
32437
32438 if test $with_perl_dynamic = 'yes'; then
32439 WITH_PERL_DYNAMIC_TRUE=
32440 WITH_PERL_DYNAMIC_FALSE='#'
32441else
32442 WITH_PERL_DYNAMIC_TRUE='#'
32443 WITH_PERL_DYNAMIC_FALSE=
32444fi
32445
32446
32447
32448# Determine path to pick up MagickCore library from for use with building PerlMagick
32449MAGICKCORE_PATH="${LIB_DIR}"
32450if test $with_perl_static = 'yes'; then
32451 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32452 libtool_objdir=$objdir
32453
32454 # Linker search path to library, followed by -lMagickCore
32455 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32456fi
32457
32458
32459# Create a simple string containing format names for all delegate libraries
32460DELEGATES=''
32461if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32462if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32463if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32464if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32465if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32466if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32467if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32468if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32469if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32470if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32471if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32472if test "$have_jpeg" = 'yes'; then
32473 DELEGATES="$DELEGATES jpeg";
32474 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32475fi
32476if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000032477if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000032478if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32479if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32480if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32481if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32482if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32483if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32484if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32485if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32486if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32487if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32488if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32489
32490
32491
32492#
32493# Handle special compiler flags
32494#
32495
32496# Add '-p' if prof source profiling support enabled
32497if test "$enable_prof" = 'yes'; then
32498 CFLAGS="-p $CFLAGS"
32499 CXXFLAGS="-p $CXXFLAGS"
32500 LDFLAGS="-p $LDFLAGS"
32501fi
32502
32503# Add '-pg' if gprof source profiling support enabled
32504if test "$enable_gprof" = 'yes'; then
32505 CFLAGS="-pg $CFLAGS"
32506 CXXFLAGS="-pg $CXXFLAGS"
32507 LDFLAGS="-pg $LDFLAGS"
32508fi
32509
32510# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32511# This is a gcc-specific feature
32512if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032514$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032515if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032516 $as_echo_n "(cached) " >&6
32517else
32518 ac_check_lib_save_LIBS=$LIBS
32519LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032521/* end confdefs.h. */
32522
32523/* Override any GCC internal prototype to avoid an error.
32524 Use char because int might match the return type of a GCC
32525 builtin and then its argument prototype would still apply. */
32526#ifdef __cplusplus
32527extern "C"
32528#endif
32529char _gcov_init ();
32530int
32531main ()
32532{
32533return _gcov_init ();
32534 ;
32535 return 0;
32536}
32537_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032538if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032539 ac_cv_lib_gcov__gcov_init=yes
32540else
cristy8b350f62009-11-15 23:12:43 +000032541 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032542fi
cristy8b350f62009-11-15 23:12:43 +000032543rm -f core conftest.err conftest.$ac_objext \
32544 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032545LIBS=$ac_check_lib_save_LIBS
32546fi
cristy8b350f62009-11-15 23:12:43 +000032547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032548$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032549if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032550 cat >>confdefs.h <<_ACEOF
32551#define HAVE_LIBGCOV 1
32552_ACEOF
32553
32554 LIBS="-lgcov $LIBS"
32555
32556fi
32557
cristy8b350f62009-11-15 23:12:43 +000032558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032559$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032560if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032561 $as_echo_n "(cached) " >&6
32562else
32563 ac_check_lib_save_LIBS=$LIBS
32564LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032566/* end confdefs.h. */
32567
32568/* Override any GCC internal prototype to avoid an error.
32569 Use char because int might match the return type of a GCC
32570 builtin and then its argument prototype would still apply. */
32571#ifdef __cplusplus
32572extern "C"
32573#endif
32574char __gcov_init ();
32575int
32576main ()
32577{
32578return __gcov_init ();
32579 ;
32580 return 0;
32581}
32582_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032583if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032584 ac_cv_lib_gcov___gcov_init=yes
32585else
cristy8b350f62009-11-15 23:12:43 +000032586 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032587fi
cristy8b350f62009-11-15 23:12:43 +000032588rm -f core conftest.err conftest.$ac_objext \
32589 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032590LIBS=$ac_check_lib_save_LIBS
32591fi
cristy8b350f62009-11-15 23:12:43 +000032592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032593$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032594if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032595 cat >>confdefs.h <<_ACEOF
32596#define HAVE_LIBGCOV 1
32597_ACEOF
32598
32599 LIBS="-lgcov $LIBS"
32600
32601fi
32602
32603 case "$target_os" in
32604 darwin*)
32605 OSX_GCOV_LDFLAG="-Wl,-single_module"
32606 ;;
32607 *)
32608 OSX_GCOV_LDFLAG=""
32609 ;;
32610 esac
32611
32612 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32613 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32614 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32615fi
32616
32617#
32618# Build library dependency list for libMagickCore
32619#
32620
32621MAGICK_LIBLTDL='' # Libltdl for build
32622MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32623MAGICK_LTDLDEPS='' # extra libltdl dependencies
32624if test "$with_ltdl" != 'no'
32625then
32626 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32627 MAGICK_API_LIBLTDL='-lltdl'
32628 fi
32629 MAGICK_LIBLTDL=${LIBLTDL}
32630 MAGICK_LTDLDEPS=${LTDLDEPS}
32631fi
32632
32633
32634
32635if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000032636 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 +000032637else
cristy2e8b51d2009-10-17 18:26:15 +000032638 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 +000032639fi
32640
32641
32642#
32643# Remove extraneous spaces from output variables (asthetic)
32644#
32645X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32646X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32647X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32648X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32649
32650CC=`echo $CC | sed -e 's/ */ /g'`
32651CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32652CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32653CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32654DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32655DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32656LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32657TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32658MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32659#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32660
32661# Pass only user-provided LIBS as "global" libraries
32662LIBS=$USER_LIBS
32663
32664#AC_SUBST(CPPFLAGS)
32665
32666#AC_SUBST(LDFLAGS)
32667#AC_SUBST(X_PRE_LIBS)
32668#AC_SUBST(X_LIBS)
32669#AC_SUBST(X_EXTRA_LIBS)
32670
32671MAGICK_CFLAGS=$CFLAGS
32672MAGICK_CXXFLAGS="$CXXFLAGS"
32673MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32674MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32675MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32676MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32677
32678
32679
32680
32681
32682
32683
32684
32685# Set configured scripts to executable.
32686ac_config_commands="$ac_config_commands default"
32687
32688ac_config_commands="$ac_config_commands MagickCore-config.in"
32689
32690ac_config_commands="$ac_config_commands Magick-config.in"
32691
32692ac_config_commands="$ac_config_commands MagickWand-config.in"
32693
32694ac_config_commands="$ac_config_commands Wand-config.in"
32695
32696ac_config_commands="$ac_config_commands Magick++-config.in"
32697
32698ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32699
32700
cristy8b350f62009-11-15 23:12:43 +000032701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032702$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032704$as_echo "Update ImageMagick configuration" >&6; }
32705cat >confcache <<\_ACEOF
32706# This file is a shell script that caches the results of configure
32707# tests run on this system so they can be shared between configure
32708# scripts and configure runs, see configure's option --config-cache.
32709# It is not useful on other systems. If it contains results you don't
32710# want to keep, you may remove or edit it.
32711#
32712# config.status only pays attention to the cache file if you give it
32713# the --recheck option to rerun configure.
32714#
32715# `ac_cv_env_foo' variables (set or unset) will be overridden when
32716# loading this file, other *unset* `ac_cv_foo' will be assigned the
32717# following values.
32718
32719_ACEOF
32720
32721# The following way of writing the cache mishandles newlines in values,
32722# but we know of no workaround that is simple, portable, and efficient.
32723# So, we kill variables containing newlines.
32724# Ultrix sh set writes to stderr and can't be redirected directly,
32725# and sets the high bit in the cache file unless we assign to the vars.
32726(
32727 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32728 eval ac_val=\$$ac_var
32729 case $ac_val in #(
32730 *${as_nl}*)
32731 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032732 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032733$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32734 esac
32735 case $ac_var in #(
32736 _ | IFS | as_nl) ;; #(
32737 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032738 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032739 esac ;;
32740 esac
32741 done
32742
32743 (set) 2>&1 |
32744 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32745 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032746 # `set' does not quote correctly, so add quotes: double-quote
32747 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032748 sed -n \
32749 "s/'/'\\\\''/g;
32750 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32751 ;; #(
32752 *)
32753 # `set' quotes correctly as required by POSIX, so do not add quotes.
32754 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32755 ;;
32756 esac |
32757 sort
32758) |
32759 sed '
32760 /^ac_cv_env_/b end
32761 t clear
32762 :clear
32763 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32764 t end
32765 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32766 :end' >>confcache
32767if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32768 if test -w "$cache_file"; then
32769 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032770 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032771$as_echo "$as_me: updating cache $cache_file" >&6;}
32772 cat confcache >$cache_file
32773 else
cristy8b350f62009-11-15 23:12:43 +000032774 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032775$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32776 fi
32777fi
32778rm -f confcache
32779
32780test "x$prefix" = xNONE && prefix=$ac_default_prefix
32781# Let make expand exec_prefix.
32782test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32783
32784DEFS=-DHAVE_CONFIG_H
32785
32786ac_libobjs=
32787ac_ltlibobjs=
32788for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32789 # 1. Remove the extension, and $U if already installed.
32790 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32791 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32792 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32793 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032794 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32795 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032796done
32797LIBOBJS=$ac_libobjs
32798
32799LTLIBOBJS=$ac_ltlibobjs
32800
32801
32802 if test -n "$EXEEXT"; then
32803 am__EXEEXT_TRUE=
32804 am__EXEEXT_FALSE='#'
32805else
32806 am__EXEEXT_TRUE='#'
32807 am__EXEEXT_FALSE=
32808fi
32809
32810if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032811 as_fn_error "conditional \"AMDEP\" was never defined.
32812Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032813fi
32814if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032815 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32816Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032817fi
cristya0b81c32010-01-22 02:54:33 +000032818if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32819 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32820Usually this means the macro was only invoked conditionally." "$LINENO" 5
32821fi
cristy3ed852e2009-09-05 21:47:34 +000032822if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032823 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32824Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032825fi
32826if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032827 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
32828Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032829fi
32830if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032831 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
32832Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032833fi
32834if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032835 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
32836Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032837fi
32838if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032839 as_fn_error "conditional \"USING_CL\" was never defined.
32840Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032841fi
cristyb7c7b8e2010-06-22 14:22:40 +000032842if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32843 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32844Usually this means the macro was only invoked conditionally." "$LINENO" 5
32845fi
cristy3ed852e2009-09-05 21:47:34 +000032846if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032847 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
32848Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032849fi
32850if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032851 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
32852Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032853fi
32854LT_CONFIG_H=config/config.h
32855
32856 _ltdl_libobjs=
32857 _ltdl_ltlibobjs=
32858 if test -n "$_LT_LIBOBJS"; then
32859 # Remove the extension.
32860 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32861 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32862 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32863 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32864 done
32865 fi
32866 ltdl_LIBOBJS=$_ltdl_libobjs
32867
32868 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32869
32870
cristyfa112112010-01-04 17:48:07 +000032871if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
32872 as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
32873Usually this means the macro was only invoked conditionally." "$LINENO" 5
32874fi
cristy3ed852e2009-09-05 21:47:34 +000032875if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032876 as_fn_error "conditional \"WITH_MODULES\" was never defined.
32877Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032878fi
32879if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032880 as_fn_error "conditional \"WITH_LTDL\" was never defined.
32881Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032882fi
32883if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032884 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
32885Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032886fi
32887
32888if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032889 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32890Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032891fi
32892if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032893 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
32894Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032895fi
32896if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032897 as_fn_error "conditional \"HasUMEM\" was never defined.
32898Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032899fi
32900if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032901 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
32902Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032903fi
32904if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032905 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
32906Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032907fi
32908if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032909 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
32910Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032911fi
32912if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032913 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
32914Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032915fi
32916if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032917 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
32918Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032919fi
32920if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032921 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
32922Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032923fi
32924if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032925 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
32926Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032927fi
32928if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032929 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
32930Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032931fi
32932if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032933 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
32934Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032935fi
32936if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032937 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
32938Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032939fi
32940if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032941 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
32942Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032943fi
32944if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032945 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
32946Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032947fi
32948if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032949 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
32950Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032951fi
32952if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032953 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
32954Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032955fi
32956if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032957 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
32958Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032959fi
32960if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032961 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
32962Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032963fi
32964if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032965 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
32966Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032967fi
32968if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032969 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
32970Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032971fi
32972if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032973 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
32974Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032975fi
32976if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032977 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
32978Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032979fi
32980if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032981 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
32982Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032983fi
32984if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032985 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
32986Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032987fi
32988if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032989 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
32990Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032991fi
32992if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032993 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
32994Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032995fi
32996if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032997 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
32998Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032999fi
33000if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000033001 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
33002Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033003fi
33004if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000033005 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
33006Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033007fi
33008if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000033009 as_fn_error "conditional \"WITH_PERL\" was never defined.
33010Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033011fi
33012if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000033013 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
33014Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033015fi
33016if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000033017 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
33018Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033019fi
33020
33021: ${CONFIG_STATUS=./config.status}
33022ac_write_fail=0
33023ac_clean_files_save=$ac_clean_files
33024ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000033025{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000033026$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000033027as_write_fail=0
33028cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033029#! $SHELL
33030# Generated by $as_me.
33031# Run this file to recreate the current configuration.
33032# Compiler output produced by configure, useful for debugging
33033# configure, is in config.log if it exists.
33034
33035debug=false
33036ac_cs_recheck=false
33037ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000033038
cristy8b350f62009-11-15 23:12:43 +000033039SHELL=\${CONFIG_SHELL-$SHELL}
33040export SHELL
33041_ASEOF
33042cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33043## -------------------- ##
33044## M4sh Initialization. ##
33045## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000033046
33047# Be more Bourne compatible
33048DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000033049if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000033050 emulate sh
33051 NULLCMD=:
33052 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33053 # is contrary to our usage. Disable this feature.
33054 alias -g '${1+"$@"}'='"$@"'
33055 setopt NO_GLOB_SUBST
33056else
cristy8b350f62009-11-15 23:12:43 +000033057 case `(set -o) 2>/dev/null` in #(
33058 *posix*) :
33059 set -o posix ;; #(
33060 *) :
33061 ;;
cristy3ed852e2009-09-05 21:47:34 +000033062esac
cristy3ed852e2009-09-05 21:47:34 +000033063fi
33064
33065
cristy3ed852e2009-09-05 21:47:34 +000033066as_nl='
33067'
33068export as_nl
33069# Printing a long string crashes Solaris 7 /usr/bin/printf.
33070as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33071as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33072as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000033073# Prefer a ksh shell builtin over an external printf program on Solaris,
33074# but without wasting forks for bash or zsh.
33075if test -z "$BASH_VERSION$ZSH_VERSION" \
33076 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33077 as_echo='print -r --'
33078 as_echo_n='print -rn --'
33079elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000033080 as_echo='printf %s\n'
33081 as_echo_n='printf %s'
33082else
33083 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33084 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33085 as_echo_n='/usr/ucb/echo -n'
33086 else
33087 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33088 as_echo_n_body='eval
33089 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000033090 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000033091 *"$as_nl"*)
33092 expr "X$arg" : "X\\(.*\\)$as_nl";
33093 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33094 esac;
33095 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33096 '
33097 export as_echo_n_body
33098 as_echo_n='sh -c $as_echo_n_body as_echo'
33099 fi
33100 export as_echo_body
33101 as_echo='sh -c $as_echo_body as_echo'
33102fi
33103
33104# The user is always right.
33105if test "${PATH_SEPARATOR+set}" != set; then
33106 PATH_SEPARATOR=:
33107 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33108 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33109 PATH_SEPARATOR=';'
33110 }
33111fi
33112
cristy3ed852e2009-09-05 21:47:34 +000033113
33114# IFS
33115# We need space, tab and new line, in precisely that order. Quoting is
33116# there to prevent editors from complaining about space-tab.
33117# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33118# splitting by setting IFS to empty value.)
33119IFS=" "" $as_nl"
33120
33121# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000033122case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033123 *[\\/]* ) as_myself=$0 ;;
33124 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33125for as_dir in $PATH
33126do
33127 IFS=$as_save_IFS
33128 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033129 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33130 done
cristy3ed852e2009-09-05 21:47:34 +000033131IFS=$as_save_IFS
33132
33133 ;;
33134esac
33135# We did not find ourselves, most probably we were run as `sh COMMAND'
33136# in which case we are not to be found in the path.
33137if test "x$as_myself" = x; then
33138 as_myself=$0
33139fi
33140if test ! -f "$as_myself"; then
33141 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033142 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033143fi
33144
cristy8b350f62009-11-15 23:12:43 +000033145# Unset variables that we do not need and which cause bugs (e.g. in
33146# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33147# suppresses any "Segmentation fault" message there. '((' could
33148# trigger a bug in pdksh 5.2.14.
33149for as_var in BASH_ENV ENV MAIL MAILPATH
33150do eval test x\${$as_var+set} = xset \
33151 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033152done
33153PS1='$ '
33154PS2='> '
33155PS4='+ '
33156
33157# NLS nuisances.
33158LC_ALL=C
33159export LC_ALL
33160LANGUAGE=C
33161export LANGUAGE
33162
cristy8b350f62009-11-15 23:12:43 +000033163# CDPATH.
33164(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33165
33166
33167# as_fn_error ERROR [LINENO LOG_FD]
33168# ---------------------------------
33169# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33170# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33171# script with status $?, using 1 if that was 0.
33172as_fn_error ()
33173{
33174 as_status=$?; test $as_status -eq 0 && as_status=1
33175 if test "$3"; then
33176 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33177 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
33178 fi
33179 $as_echo "$as_me: error: $1" >&2
33180 as_fn_exit $as_status
33181} # as_fn_error
33182
33183
33184# as_fn_set_status STATUS
33185# -----------------------
33186# Set $? to STATUS, without forking.
33187as_fn_set_status ()
33188{
33189 return $1
33190} # as_fn_set_status
33191
33192# as_fn_exit STATUS
33193# -----------------
33194# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33195as_fn_exit ()
33196{
33197 set +e
33198 as_fn_set_status $1
33199 exit $1
33200} # as_fn_exit
33201
33202# as_fn_unset VAR
33203# ---------------
33204# Portably unset VAR.
33205as_fn_unset ()
33206{
33207 { eval $1=; unset $1;}
33208}
33209as_unset=as_fn_unset
33210# as_fn_append VAR VALUE
33211# ----------------------
33212# Append the text in VALUE to the end of the definition contained in VAR. Take
33213# advantage of any shell optimizations that allow amortized linear growth over
33214# repeated appends, instead of the typical quadratic growth present in naive
33215# implementations.
33216if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33217 eval 'as_fn_append ()
33218 {
33219 eval $1+=\$2
33220 }'
33221else
33222 as_fn_append ()
33223 {
33224 eval $1=\$$1\$2
33225 }
33226fi # as_fn_append
33227
33228# as_fn_arith ARG...
33229# ------------------
33230# Perform arithmetic evaluation on the ARGs, and store the result in the
33231# global $as_val. Take advantage of shells that can avoid forks. The arguments
33232# must be portable across $(()) and expr.
33233if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33234 eval 'as_fn_arith ()
33235 {
33236 as_val=$(( $* ))
33237 }'
33238else
33239 as_fn_arith ()
33240 {
33241 as_val=`expr "$@" || test $? -eq 1`
33242 }
33243fi # as_fn_arith
33244
33245
cristy3ed852e2009-09-05 21:47:34 +000033246if expr a : '\(a\)' >/dev/null 2>&1 &&
33247 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33248 as_expr=expr
33249else
33250 as_expr=false
33251fi
33252
33253if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33254 as_basename=basename
33255else
33256 as_basename=false
33257fi
33258
cristy8b350f62009-11-15 23:12:43 +000033259if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33260 as_dirname=dirname
33261else
33262 as_dirname=false
33263fi
cristy3ed852e2009-09-05 21:47:34 +000033264
cristy3ed852e2009-09-05 21:47:34 +000033265as_me=`$as_basename -- "$0" ||
33266$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33267 X"$0" : 'X\(//\)$' \| \
33268 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33269$as_echo X/"$0" |
33270 sed '/^.*\/\([^/][^/]*\)\/*$/{
33271 s//\1/
33272 q
33273 }
33274 /^X\/\(\/\/\)$/{
33275 s//\1/
33276 q
33277 }
33278 /^X\/\(\/\).*/{
33279 s//\1/
33280 q
33281 }
33282 s/.*/./; q'`
33283
cristy8b350f62009-11-15 23:12:43 +000033284# Avoid depending upon Character Ranges.
33285as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33286as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33287as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33288as_cr_digits='0123456789'
33289as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000033290
33291ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000033292case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000033293-n*)
cristy8b350f62009-11-15 23:12:43 +000033294 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000033295 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000033296 xy) ECHO_C='\c';;
33297 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33298 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000033299 esac;;
33300*)
33301 ECHO_N='-n';;
33302esac
cristy3ed852e2009-09-05 21:47:34 +000033303
33304rm -f conf$$ conf$$.exe conf$$.file
33305if test -d conf$$.dir; then
33306 rm -f conf$$.dir/conf$$.file
33307else
33308 rm -f conf$$.dir
33309 mkdir conf$$.dir 2>/dev/null
33310fi
33311if (echo >conf$$.file) 2>/dev/null; then
33312 if ln -s conf$$.file conf$$ 2>/dev/null; then
33313 as_ln_s='ln -s'
33314 # ... but there are two gotchas:
33315 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33316 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33317 # In both cases, we have to default to `cp -p'.
33318 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33319 as_ln_s='cp -p'
33320 elif ln conf$$.file conf$$ 2>/dev/null; then
33321 as_ln_s=ln
33322 else
33323 as_ln_s='cp -p'
33324 fi
33325else
33326 as_ln_s='cp -p'
33327fi
33328rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33329rmdir conf$$.dir 2>/dev/null
33330
cristy8b350f62009-11-15 23:12:43 +000033331
33332# as_fn_mkdir_p
33333# -------------
33334# Create "$as_dir" as a directory, including parents if necessary.
33335as_fn_mkdir_p ()
33336{
33337
33338 case $as_dir in #(
33339 -*) as_dir=./$as_dir;;
33340 esac
33341 test -d "$as_dir" || eval $as_mkdir_p || {
33342 as_dirs=
33343 while :; do
33344 case $as_dir in #(
33345 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33346 *) as_qdir=$as_dir;;
33347 esac
33348 as_dirs="'$as_qdir' $as_dirs"
33349 as_dir=`$as_dirname -- "$as_dir" ||
33350$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33351 X"$as_dir" : 'X\(//\)[^/]' \| \
33352 X"$as_dir" : 'X\(//\)$' \| \
33353 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33354$as_echo X"$as_dir" |
33355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33356 s//\1/
33357 q
33358 }
33359 /^X\(\/\/\)[^/].*/{
33360 s//\1/
33361 q
33362 }
33363 /^X\(\/\/\)$/{
33364 s//\1/
33365 q
33366 }
33367 /^X\(\/\).*/{
33368 s//\1/
33369 q
33370 }
33371 s/.*/./; q'`
33372 test -d "$as_dir" && break
33373 done
33374 test -z "$as_dirs" || eval "mkdir $as_dirs"
33375 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
33376
33377
33378} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033379if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033380 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000033381else
33382 test -d ./-p && rmdir ./-p
33383 as_mkdir_p=false
33384fi
33385
33386if test -x / >/dev/null 2>&1; then
33387 as_test_x='test -x'
33388else
33389 if ls -dL / >/dev/null 2>&1; then
33390 as_ls_L_option=L
33391 else
33392 as_ls_L_option=
33393 fi
33394 as_test_x='
33395 eval sh -c '\''
33396 if test -d "$1"; then
33397 test -d "$1/.";
33398 else
cristy8b350f62009-11-15 23:12:43 +000033399 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000033400 -*)set "./$1";;
33401 esac;
cristy8b350f62009-11-15 23:12:43 +000033402 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000033403 ???[sx]*):;;*)false;;esac;fi
33404 '\'' sh
33405 '
33406fi
33407as_executable_p=$as_test_x
33408
33409# Sed expression to map a string onto a valid CPP name.
33410as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33411
33412# Sed expression to map a string onto a valid variable name.
33413as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33414
33415
33416exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000033417## ----------------------------------- ##
33418## Main body of $CONFIG_STATUS script. ##
33419## ----------------------------------- ##
33420_ASEOF
33421test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033422
cristy8b350f62009-11-15 23:12:43 +000033423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33424# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000033425# report actual input values of CONFIG_FILES etc. instead of their
33426# values after options handling.
33427ac_log="
cristy664b8d72010-05-17 13:53:36 +000033428This file was extended by ImageMagick $as_me 6.6.2, which was
cristycd4c5312009-11-22 01:19:08 +000033429generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000033430
33431 CONFIG_FILES = $CONFIG_FILES
33432 CONFIG_HEADERS = $CONFIG_HEADERS
33433 CONFIG_LINKS = $CONFIG_LINKS
33434 CONFIG_COMMANDS = $CONFIG_COMMANDS
33435 $ $0 $@
33436
33437on `(hostname || uname -n) 2>/dev/null | sed 1q`
33438"
33439
33440_ACEOF
33441
33442case $ac_config_files in *"
33443"*) set x $ac_config_files; shift; ac_config_files=$*;;
33444esac
33445
33446case $ac_config_headers in *"
33447"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33448esac
33449
33450
33451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33452# Files that config.status was made for.
33453config_files="$ac_config_files"
33454config_headers="$ac_config_headers"
33455config_commands="$ac_config_commands"
33456
33457_ACEOF
33458
33459cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33460ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000033461\`$as_me' instantiates files and other configuration actions
33462from templates according to the current configuration. Unless the files
33463and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000033464
cristy8b350f62009-11-15 23:12:43 +000033465Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000033466
33467 -h, --help print this help, then exit
33468 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000033469 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000033470 -q, --quiet, --silent
33471 do not print progress messages
33472 -d, --debug don't remove temporary files
33473 --recheck update $as_me by reconfiguring in the same conditions
33474 --file=FILE[:TEMPLATE]
33475 instantiate the configuration file FILE
33476 --header=FILE[:TEMPLATE]
33477 instantiate the configuration header FILE
33478
33479Configuration files:
33480$config_files
33481
33482Configuration headers:
33483$config_headers
33484
33485Configuration commands:
33486$config_commands
33487
cristy8b350f62009-11-15 23:12:43 +000033488Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000033489
33490_ACEOF
33491cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000033492ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000033493ac_cs_version="\\
cristy664b8d72010-05-17 13:53:36 +000033494ImageMagick config.status 6.6.2
cristycd4c5312009-11-22 01:19:08 +000033495configured by $0, generated by GNU Autoconf 2.65,
33496 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000033497
cristy8b350f62009-11-15 23:12:43 +000033498Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033499This config.status script is free software; the Free Software Foundation
33500gives unlimited permission to copy, distribute and modify it."
33501
33502ac_pwd='$ac_pwd'
33503srcdir='$srcdir'
33504INSTALL='$INSTALL'
33505MKDIR_P='$MKDIR_P'
33506AWK='$AWK'
33507test -n "\$AWK" || AWK=awk
33508_ACEOF
33509
33510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33511# The default lists apply if the user does not specify any file.
33512ac_need_defaults=:
33513while test $# != 0
33514do
33515 case $1 in
33516 --*=*)
33517 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33518 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33519 ac_shift=:
33520 ;;
33521 *)
33522 ac_option=$1
33523 ac_optarg=$2
33524 ac_shift=shift
33525 ;;
33526 esac
33527
33528 case $ac_option in
33529 # Handling of the options.
33530 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33531 ac_cs_recheck=: ;;
33532 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33533 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000033534 --config | --confi | --conf | --con | --co | --c )
33535 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000033536 --debug | --debu | --deb | --de | --d | -d )
33537 debug=: ;;
33538 --file | --fil | --fi | --f )
33539 $ac_shift
33540 case $ac_optarg in
33541 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33542 esac
cristy8b350f62009-11-15 23:12:43 +000033543 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033544 ac_need_defaults=false;;
33545 --header | --heade | --head | --hea )
33546 $ac_shift
33547 case $ac_optarg in
33548 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33549 esac
cristy8b350f62009-11-15 23:12:43 +000033550 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033551 ac_need_defaults=false;;
33552 --he | --h)
33553 # Conflict between --help and --header
cristy8b350f62009-11-15 23:12:43 +000033554 as_fn_error "ambiguous option: \`$1'
33555Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000033556 --help | --hel | -h )
33557 $as_echo "$ac_cs_usage"; exit ;;
33558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33559 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33560 ac_cs_silent=: ;;
33561
33562 # This is an error.
cristy8b350f62009-11-15 23:12:43 +000033563 -*) as_fn_error "unrecognized option: \`$1'
33564Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000033565
cristy8b350f62009-11-15 23:12:43 +000033566 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000033567 ac_need_defaults=false ;;
33568
33569 esac
33570 shift
33571done
33572
33573ac_configure_extra_args=
33574
33575if $ac_cs_silent; then
33576 exec 6>/dev/null
33577 ac_configure_extra_args="$ac_configure_extra_args --silent"
33578fi
33579
33580_ACEOF
33581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33582if \$ac_cs_recheck; then
33583 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33584 shift
33585 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33586 CONFIG_SHELL='$SHELL'
33587 export CONFIG_SHELL
33588 exec "\$@"
33589fi
33590
33591_ACEOF
33592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33593exec 5>>config.log
33594{
33595 echo
33596 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33597## Running $as_me. ##
33598_ASBOX
33599 $as_echo "$ac_log"
33600} >&5
33601
33602_ACEOF
33603cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33604#
33605# INIT-COMMANDS
33606#
33607PACKAGE="$PACKAGE"
33608AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33609
33610
33611# The HP-UX ksh and POSIX shell print the target directory to stdout
33612# if CDPATH is set.
33613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33614
33615sed_quote_subst='$sed_quote_subst'
33616double_quote_subst='$double_quote_subst'
33617delay_variable_subst='$delay_variable_subst'
cristyb7c7b8e2010-06-22 14:22:40 +000033618SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
33619Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
33620GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
33621EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
33622FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
33623LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
33624macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
33625macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
33626AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
33627DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33628OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
33629enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
33630enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
33631pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
33632enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
33633host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
33634host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
33635host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
33636build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
33637build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
33638build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
33639NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
33640LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
33641max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
33642ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
33643exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
33644lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
33645lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
33646lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
33647reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
33648reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33649deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
33650file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
33651AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
33652AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33653STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
33654RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
33655old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33656old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33657old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33658CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
33659CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33660compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
33661GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
33662lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
33663lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
33664lt_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"`'
33665lt_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"`'
33666objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
33667SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
33668ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
33669MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
33670lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
33671lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
33672lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
33673lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
33674lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
33675need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
33676DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
33677NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
33678LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
33679OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33680OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
33681libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
33682shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33683extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33684archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
33685enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
33686export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33687whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33688compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
33689old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33690old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33691archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33692archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33693module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33694module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33695with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
33696allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33697no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33698hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33699hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
33700hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
33701hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
33702hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
33703hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
33704hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33705hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
33706inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
33707link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
33708fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
33709always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
33710export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33711exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33712include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33713prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33714file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
33715variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
33716need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33717need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
33718version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
33719runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33720shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33721shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
33722libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33723library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
33724soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33725postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33726postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33727finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33728finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
33729hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
33730sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33731sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33732hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
33733enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
33734enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
33735enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
33736old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
33737striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
33738compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
33739predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33740postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33741predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
33742postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
33743compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
33744LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33745old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33746compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33747GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33748lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33749lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33750lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33751lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33752lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33753archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33754enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33755export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33756whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33757compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33758old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33759old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33760archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33761archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33762module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33763module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33764with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33765allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33766no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33767hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33768hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33769hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33770hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33771hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33772hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33773hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33774hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33775inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33776link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33777fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33778always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33779export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33780exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33781include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33782prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33783file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33784hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33785compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33786predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33787postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33788predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33789postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33790compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000033791
33792LTCC='$LTCC'
33793LTCFLAGS='$LTCFLAGS'
33794compiler='$compiler_DEFAULT'
33795
33796# Quote evaled strings.
33797for var in SED \
33798GREP \
33799EGREP \
33800FGREP \
33801LD \
33802NM \
33803LN_S \
33804lt_SP2NL \
33805lt_NL2SP \
33806reload_flag \
33807deplibs_check_method \
33808file_magic_cmd \
33809AR \
33810AR_FLAGS \
33811STRIP \
33812RANLIB \
33813CC \
33814CFLAGS \
33815compiler \
33816lt_cv_sys_global_symbol_pipe \
33817lt_cv_sys_global_symbol_to_cdecl \
33818lt_cv_sys_global_symbol_to_c_name_address \
33819lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyb7c7b8e2010-06-22 14:22:40 +000033820SHELL \
33821ECHO \
cristy3ed852e2009-09-05 21:47:34 +000033822lt_prog_compiler_no_builtin_flag \
33823lt_prog_compiler_wl \
33824lt_prog_compiler_pic \
33825lt_prog_compiler_static \
33826lt_cv_prog_compiler_c_o \
33827need_locks \
33828DSYMUTIL \
33829NMEDIT \
33830LIPO \
33831OTOOL \
33832OTOOL64 \
33833shrext_cmds \
33834export_dynamic_flag_spec \
33835whole_archive_flag_spec \
33836compiler_needs_object \
33837with_gnu_ld \
33838allow_undefined_flag \
33839no_undefined_flag \
33840hardcode_libdir_flag_spec \
33841hardcode_libdir_flag_spec_ld \
33842hardcode_libdir_separator \
33843fix_srcfile_path \
33844exclude_expsyms \
33845include_expsyms \
33846file_list_spec \
33847variables_saved_for_relink \
33848libname_spec \
33849library_names_spec \
33850soname_spec \
33851finish_eval \
33852old_striplib \
33853striplib \
33854compiler_lib_search_dirs \
33855predep_objects \
33856postdep_objects \
33857predeps \
33858postdeps \
33859compiler_lib_search_path \
33860LD_CXX \
33861compiler_CXX \
33862lt_prog_compiler_no_builtin_flag_CXX \
33863lt_prog_compiler_wl_CXX \
33864lt_prog_compiler_pic_CXX \
33865lt_prog_compiler_static_CXX \
33866lt_cv_prog_compiler_c_o_CXX \
33867export_dynamic_flag_spec_CXX \
33868whole_archive_flag_spec_CXX \
33869compiler_needs_object_CXX \
33870with_gnu_ld_CXX \
33871allow_undefined_flag_CXX \
33872no_undefined_flag_CXX \
33873hardcode_libdir_flag_spec_CXX \
33874hardcode_libdir_flag_spec_ld_CXX \
33875hardcode_libdir_separator_CXX \
33876fix_srcfile_path_CXX \
33877exclude_expsyms_CXX \
33878include_expsyms_CXX \
33879file_list_spec_CXX \
33880compiler_lib_search_dirs_CXX \
33881predep_objects_CXX \
33882postdep_objects_CXX \
33883predeps_CXX \
33884postdeps_CXX \
33885compiler_lib_search_path_CXX; do
cristyb7c7b8e2010-06-22 14:22:40 +000033886 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000033887 *[\\\\\\\`\\"\\\$]*)
cristyb7c7b8e2010-06-22 14:22:40 +000033888 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033889 ;;
33890 *)
33891 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33892 ;;
33893 esac
33894done
33895
33896# Double-quote double-evaled strings.
33897for var in reload_cmds \
33898old_postinstall_cmds \
33899old_postuninstall_cmds \
33900old_archive_cmds \
33901extract_expsyms_cmds \
33902old_archive_from_new_cmds \
33903old_archive_from_expsyms_cmds \
33904archive_cmds \
33905archive_expsym_cmds \
33906module_cmds \
33907module_expsym_cmds \
33908export_symbols_cmds \
33909prelink_cmds \
33910postinstall_cmds \
33911postuninstall_cmds \
33912finish_cmds \
33913sys_lib_search_path_spec \
33914sys_lib_dlsearch_path_spec \
33915old_archive_cmds_CXX \
33916old_archive_from_new_cmds_CXX \
33917old_archive_from_expsyms_cmds_CXX \
33918archive_cmds_CXX \
33919archive_expsym_cmds_CXX \
33920module_cmds_CXX \
33921module_expsym_cmds_CXX \
33922export_symbols_cmds_CXX \
33923prelink_cmds_CXX; do
cristyb7c7b8e2010-06-22 14:22:40 +000033924 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000033925 *[\\\\\\\`\\"\\\$]*)
cristyb7c7b8e2010-06-22 14:22:40 +000033926 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 +000033927 ;;
33928 *)
33929 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33930 ;;
33931 esac
33932done
33933
cristyb7c7b8e2010-06-22 14:22:40 +000033934# Fix-up fallback echo if it was mangled by the above quoting rules.
33935case \$lt_ECHO in
33936*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
33937 ;;
33938esac
33939
cristy3ed852e2009-09-05 21:47:34 +000033940ac_aux_dir='$ac_aux_dir'
33941xsi_shell='$xsi_shell'
33942lt_shell_append='$lt_shell_append'
33943
33944# See if we are running on zsh, and set the options which allow our
33945# commands through without removal of \ escapes INIT.
33946if test -n "\${ZSH_VERSION+set}" ; then
33947 setopt NO_GLOB_SUBST
33948fi
33949
33950
33951 PACKAGE='$PACKAGE'
33952 VERSION='$VERSION'
33953 TIMESTAMP='$TIMESTAMP'
33954 RM='$RM'
33955 ofile='$ofile'
33956
33957
33958
33959
33960
33961
33962_ACEOF
33963
33964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33965
33966# Handling of arguments.
33967for ac_config_target in $ac_config_targets
33968do
33969 case $ac_config_target in
33970 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33971 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33972 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33973 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33974 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33975 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33976 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000033977 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000033978 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33979 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33980 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33981 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33982 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33983 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33984 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33985 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33986 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33987 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33988 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33989 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33990 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33991 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33992 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33993 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33994 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33995 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33996 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33997 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33998 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33999 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
34000 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
34001 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
34002 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
34003 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
34004 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
34005 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
34006 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
34007 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
34008 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
34009 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
34010 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
34011 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34012 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34013 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34014 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
34015 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
34016 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
34017 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
34018 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
34019 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
34020
cristy8b350f62009-11-15 23:12:43 +000034021 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034022 esac
34023done
34024
34025
34026# If the user did not use the arguments to specify the items to instantiate,
34027# then the envvar interface is used. Set only those that are not.
34028# We use the long form for the default assignment because of an extremely
34029# bizarre bug on SunOS 4.1.3.
34030if $ac_need_defaults; then
34031 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34032 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34033 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34034fi
34035
34036# Have a temporary directory for convenience. Make it in the build tree
34037# simply because there is no reason against having it here, and in addition,
34038# creating and moving files from /tmp can sometimes cause problems.
34039# Hook for its removal unless debugging.
34040# Note that there is a small window in which the directory will not be cleaned:
34041# after its creation but before its name has been assigned to `$tmp'.
34042$debug ||
34043{
34044 tmp=
34045 trap 'exit_status=$?
34046 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34047' 0
cristy8b350f62009-11-15 23:12:43 +000034048 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000034049}
34050# Create a (secure) tmp directory for tmp files.
34051
34052{
34053 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34054 test -n "$tmp" && test -d "$tmp"
34055} ||
34056{
34057 tmp=./conf$$-$RANDOM
34058 (umask 077 && mkdir "$tmp")
cristy8b350f62009-11-15 23:12:43 +000034059} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034060
34061# Set up the scripts for CONFIG_FILES section.
34062# No need to generate them if there are no CONFIG_FILES.
34063# This happens for instance with `./config.status config.h'.
34064if test -n "$CONFIG_FILES"; then
34065
34066
cristy8b350f62009-11-15 23:12:43 +000034067ac_cr=`echo X | tr X '\015'`
34068# On cygwin, bash can eat \r inside `` if the user requested igncr.
34069# But we know of no other shell where ac_cr would be empty at this
34070# point, so we can use a bashism as a fallback.
34071if test "x$ac_cr" = x; then
34072 eval ac_cr=\$\'\\r\'
34073fi
cristy3ed852e2009-09-05 21:47:34 +000034074ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34075if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy8b350f62009-11-15 23:12:43 +000034076 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000034077else
34078 ac_cs_awk_cr=$ac_cr
34079fi
34080
34081echo 'BEGIN {' >"$tmp/subs1.awk" &&
34082_ACEOF
34083
34084
34085{
34086 echo "cat >conf$$subs.awk <<_ACEOF" &&
34087 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34088 echo "_ACEOF"
34089} >conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000034090 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034091ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
34092ac_delim='%!_!# '
34093for ac_last_try in false false false false false :; do
34094 . ./conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000034095 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034096
34097 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34098 if test $ac_delim_n = $ac_delim_num; then
34099 break
34100 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000034101 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034102 else
34103 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34104 fi
34105done
34106rm -f conf$$subs.sh
34107
34108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34109cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34110_ACEOF
34111sed -n '
34112h
34113s/^/S["/; s/!.*/"]=/
34114p
34115g
34116s/^[^!]*!//
34117:repl
34118t repl
34119s/'"$ac_delim"'$//
34120t delim
34121:nl
34122h
cristycd4c5312009-11-22 01:19:08 +000034123s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034124t more1
34125s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34126p
34127n
34128b repl
34129:more1
34130s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34131p
34132g
34133s/.\{148\}//
34134t nl
34135:delim
34136h
cristycd4c5312009-11-22 01:19:08 +000034137s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034138t more2
34139s/["\\]/\\&/g; s/^/"/; s/$/"/
34140p
34141b
34142:more2
34143s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34144p
34145g
34146s/.\{148\}//
34147t delim
34148' <conf$$subs.awk | sed '
34149/^[^""]/{
34150 N
34151 s/\n//
34152}
34153' >>$CONFIG_STATUS || ac_write_fail=1
34154rm -f conf$$subs.awk
34155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34156_ACAWK
34157cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34158 for (key in S) S_is_set[key] = 1
34159 FS = ""
34160
34161}
34162{
34163 line = $ 0
34164 nfields = split(line, field, "@")
34165 substed = 0
34166 len = length(field[1])
34167 for (i = 2; i < nfields; i++) {
34168 key = field[i]
34169 keylen = length(key)
34170 if (S_is_set[key]) {
34171 value = S[key]
34172 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34173 len += length(value) + length(field[++i])
34174 substed = 1
34175 } else
34176 len += 1 + keylen
34177 }
34178
34179 print line
34180}
34181
34182_ACAWK
34183_ACEOF
34184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34185if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34186 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34187else
34188 cat
34189fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy8b350f62009-11-15 23:12:43 +000034190 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034191_ACEOF
34192
34193# VPATH may cause trouble with some makes, so we remove $(srcdir),
34194# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34195# trailing colons and then remove the whole line if VPATH becomes empty
34196# (actually we leave an empty line to preserve line numbers).
34197if test "x$srcdir" = x.; then
34198 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34199s/:*\$(srcdir):*/:/
34200s/:*\${srcdir}:*/:/
34201s/:*@srcdir@:*/:/
34202s/^\([^=]*=[ ]*\):*/\1/
34203s/:*$//
34204s/^[^=]*=[ ]*$//
34205}'
34206fi
34207
34208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34209fi # test -n "$CONFIG_FILES"
34210
34211# Set up the scripts for CONFIG_HEADERS section.
34212# No need to generate them if there are no CONFIG_HEADERS.
34213# This happens for instance with `./config.status Makefile'.
34214if test -n "$CONFIG_HEADERS"; then
34215cat >"$tmp/defines.awk" <<\_ACAWK ||
34216BEGIN {
34217_ACEOF
34218
34219# Transform confdefs.h into an awk script `defines.awk', embedded as
34220# here-document in config.status, that substitutes the proper values into
34221# config.h.in to produce config.h.
34222
34223# Create a delimiter string that does not exist in confdefs.h, to ease
34224# handling of long lines.
34225ac_delim='%!_!# '
34226for ac_last_try in false false :; do
34227 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34228 if test -z "$ac_t"; then
34229 break
34230 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000034231 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034232 else
34233 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34234 fi
34235done
34236
34237# For the awk script, D is an array of macro values keyed by name,
34238# likewise P contains macro parameters if any. Preserve backslash
34239# newline sequences.
34240
34241ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34242sed -n '
34243s/.\{148\}/&'"$ac_delim"'/g
34244t rset
34245:rset
34246s/^[ ]*#[ ]*define[ ][ ]*/ /
34247t def
34248d
34249:def
34250s/\\$//
34251t bsnl
34252s/["\\]/\\&/g
34253s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34254D["\1"]=" \3"/p
34255s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34256d
34257:bsnl
34258s/["\\]/\\&/g
34259s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34260D["\1"]=" \3\\\\\\n"\\/p
34261t cont
34262s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34263t cont
34264d
34265:cont
34266n
34267s/.\{148\}/&'"$ac_delim"'/g
34268t clear
34269:clear
34270s/\\$//
34271t bsnlc
34272s/["\\]/\\&/g; s/^/"/; s/$/"/p
34273d
34274:bsnlc
34275s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34276b cont
34277' <confdefs.h | sed '
34278s/'"$ac_delim"'/"\\\
34279"/g' >>$CONFIG_STATUS || ac_write_fail=1
34280
34281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34282 for (key in D) D_is_set[key] = 1
34283 FS = ""
34284}
34285/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34286 line = \$ 0
34287 split(line, arg, " ")
34288 if (arg[1] == "#") {
34289 defundef = arg[2]
34290 mac1 = arg[3]
34291 } else {
34292 defundef = substr(arg[1], 2)
34293 mac1 = arg[2]
34294 }
34295 split(mac1, mac2, "(") #)
34296 macro = mac2[1]
34297 prefix = substr(line, 1, index(line, defundef) - 1)
34298 if (D_is_set[macro]) {
34299 # Preserve the white space surrounding the "#".
34300 print prefix "define", macro P[macro] D[macro]
34301 next
34302 } else {
34303 # Replace #undef with comments. This is necessary, for example,
34304 # in the case of _POSIX_SOURCE, which is predefined and required
34305 # on some systems where configure will not decide to define it.
34306 if (defundef == "undef") {
34307 print "/*", prefix defundef, macro, "*/"
34308 next
34309 }
34310 }
34311}
34312{ print }
34313_ACAWK
34314_ACEOF
34315cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy8b350f62009-11-15 23:12:43 +000034316 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034317fi # test -n "$CONFIG_HEADERS"
34318
34319
34320eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34321shift
34322for ac_tag
34323do
34324 case $ac_tag in
34325 :[FHLC]) ac_mode=$ac_tag; continue;;
34326 esac
34327 case $ac_mode$ac_tag in
34328 :[FHL]*:*);;
cristy8b350f62009-11-15 23:12:43 +000034329 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034330 :[FH]-) ac_tag=-:-;;
34331 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34332 esac
34333 ac_save_IFS=$IFS
34334 IFS=:
34335 set x $ac_tag
34336 IFS=$ac_save_IFS
34337 shift
34338 ac_file=$1
34339 shift
34340
34341 case $ac_mode in
34342 :L) ac_source=$1;;
34343 :[FH])
34344 ac_file_inputs=
34345 for ac_f
34346 do
34347 case $ac_f in
34348 -) ac_f="$tmp/stdin";;
34349 *) # Look for the file first in the build tree, then in the source tree
34350 # (if the path is not absolute). The absolute path cannot be DOS-style,
34351 # because $ac_f cannot contain `:'.
34352 test -f "$ac_f" ||
34353 case $ac_f in
34354 [\\/$]*) false;;
34355 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34356 esac ||
cristy8b350f62009-11-15 23:12:43 +000034357 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034358 esac
34359 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000034360 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000034361 done
34362
34363 # Let's still pretend it is `configure' which instantiates (i.e., don't
34364 # use $as_me), people would be surprised to read:
34365 # /* config.h. Generated by config.status. */
34366 configure_input='Generated from '`
34367 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34368 `' by configure.'
34369 if test x"$ac_file" != x-; then
34370 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000034371 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034372$as_echo "$as_me: creating $ac_file" >&6;}
34373 fi
34374 # Neutralize special characters interpreted by sed in replacement strings.
34375 case $configure_input in #(
34376 *\&* | *\|* | *\\* )
34377 ac_sed_conf_input=`$as_echo "$configure_input" |
34378 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34379 *) ac_sed_conf_input=$configure_input;;
34380 esac
34381
34382 case $ac_tag in
34383 *:-:* | *:-) cat >"$tmp/stdin" \
cristy8b350f62009-11-15 23:12:43 +000034384 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000034385 esac
34386 ;;
34387 esac
34388
34389 ac_dir=`$as_dirname -- "$ac_file" ||
34390$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34391 X"$ac_file" : 'X\(//\)[^/]' \| \
34392 X"$ac_file" : 'X\(//\)$' \| \
34393 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34394$as_echo X"$ac_file" |
34395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34396 s//\1/
34397 q
34398 }
34399 /^X\(\/\/\)[^/].*/{
34400 s//\1/
34401 q
34402 }
34403 /^X\(\/\/\)$/{
34404 s//\1/
34405 q
34406 }
34407 /^X\(\/\).*/{
34408 s//\1/
34409 q
34410 }
34411 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034412 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034413 ac_builddir=.
34414
34415case "$ac_dir" in
34416.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34417*)
34418 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34419 # A ".." for each directory in $ac_dir_suffix.
34420 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34421 case $ac_top_builddir_sub in
34422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34424 esac ;;
34425esac
34426ac_abs_top_builddir=$ac_pwd
34427ac_abs_builddir=$ac_pwd$ac_dir_suffix
34428# for backward compatibility:
34429ac_top_builddir=$ac_top_build_prefix
34430
34431case $srcdir in
34432 .) # We are building in place.
34433 ac_srcdir=.
34434 ac_top_srcdir=$ac_top_builddir_sub
34435 ac_abs_top_srcdir=$ac_pwd ;;
34436 [\\/]* | ?:[\\/]* ) # Absolute name.
34437 ac_srcdir=$srcdir$ac_dir_suffix;
34438 ac_top_srcdir=$srcdir
34439 ac_abs_top_srcdir=$srcdir ;;
34440 *) # Relative name.
34441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34442 ac_top_srcdir=$ac_top_build_prefix$srcdir
34443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34444esac
34445ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34446
34447
34448 case $ac_mode in
34449 :F)
34450 #
34451 # CONFIG_FILE
34452 #
34453
34454 case $INSTALL in
34455 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34456 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34457 esac
34458 ac_MKDIR_P=$MKDIR_P
34459 case $MKDIR_P in
34460 [\\/$]* | ?:[\\/]* ) ;;
34461 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34462 esac
34463_ACEOF
34464
34465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34466# If the template does not know about datarootdir, expand it.
34467# FIXME: This hack should be removed a few years after 2.60.
34468ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000034469ac_sed_dataroot='
34470/datarootdir/ {
34471 p
34472 q
34473}
34474/@datadir@/p
34475/@docdir@/p
34476/@infodir@/p
34477/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000034478/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000034479case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34480*datarootdir*) ac_datarootdir_seen=yes;;
34481*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000034482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000034483$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34484_ACEOF
34485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34486 ac_datarootdir_hack='
34487 s&@datadir@&$datadir&g
34488 s&@docdir@&$docdir&g
34489 s&@infodir@&$infodir&g
34490 s&@localedir@&$localedir&g
34491 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000034492 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000034493esac
34494_ACEOF
34495
34496# Neutralize VPATH when `$srcdir' = `.'.
34497# Shell code in configure.ac might set extrasub.
34498# FIXME: do we really want to maintain this feature?
34499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34500ac_sed_extra="$ac_vpsub
34501$extrasub
34502_ACEOF
34503cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34504:t
34505/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34506s|@configure_input@|$ac_sed_conf_input|;t t
34507s&@top_builddir@&$ac_top_builddir_sub&;t t
34508s&@top_build_prefix@&$ac_top_build_prefix&;t t
34509s&@srcdir@&$ac_srcdir&;t t
34510s&@abs_srcdir@&$ac_abs_srcdir&;t t
34511s&@top_srcdir@&$ac_top_srcdir&;t t
34512s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34513s&@builddir@&$ac_builddir&;t t
34514s&@abs_builddir@&$ac_abs_builddir&;t t
34515s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34516s&@INSTALL@&$ac_INSTALL&;t t
34517s&@MKDIR_P@&$ac_MKDIR_P&;t t
34518$ac_datarootdir_hack
34519"
34520eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy8b350f62009-11-15 23:12:43 +000034521 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034522
34523test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34524 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34525 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000034526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy3ed852e2009-09-05 21:47:34 +000034527which seems to be undefined. Please make sure it is defined." >&5
34528$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34529which seems to be undefined. Please make sure it is defined." >&2;}
34530
34531 rm -f "$tmp/stdin"
34532 case $ac_file in
34533 -) cat "$tmp/out" && rm -f "$tmp/out";;
34534 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34535 esac \
cristy8b350f62009-11-15 23:12:43 +000034536 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034537 ;;
34538 :H)
34539 #
34540 # CONFIG_HEADER
34541 #
34542 if test x"$ac_file" != x-; then
34543 {
34544 $as_echo "/* $configure_input */" \
34545 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34546 } >"$tmp/config.h" \
cristy8b350f62009-11-15 23:12:43 +000034547 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034548 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000034549 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034550$as_echo "$as_me: $ac_file is unchanged" >&6;}
34551 else
34552 rm -f "$ac_file"
34553 mv "$tmp/config.h" "$ac_file" \
cristy8b350f62009-11-15 23:12:43 +000034554 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034555 fi
34556 else
34557 $as_echo "/* $configure_input */" \
34558 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy8b350f62009-11-15 23:12:43 +000034559 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034560 fi
34561# Compute "$ac_file"'s index in $config_headers.
34562_am_arg="$ac_file"
34563_am_stamp_count=1
34564for _am_header in $config_headers :; do
34565 case $_am_header in
34566 $_am_arg | $_am_arg:* )
34567 break ;;
34568 * )
34569 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34570 esac
34571done
34572echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34573$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34574 X"$_am_arg" : 'X\(//\)[^/]' \| \
34575 X"$_am_arg" : 'X\(//\)$' \| \
34576 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34577$as_echo X"$_am_arg" |
34578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34579 s//\1/
34580 q
34581 }
34582 /^X\(\/\/\)[^/].*/{
34583 s//\1/
34584 q
34585 }
34586 /^X\(\/\/\)$/{
34587 s//\1/
34588 q
34589 }
34590 /^X\(\/\).*/{
34591 s//\1/
34592 q
34593 }
34594 s/.*/./; q'`/stamp-h$_am_stamp_count
34595 ;;
34596
cristy8b350f62009-11-15 23:12:43 +000034597 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000034598$as_echo "$as_me: executing $ac_file commands" >&6;}
34599 ;;
34600 esac
34601
34602
34603 case $ac_file$ac_mode in
34604 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34605ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34606ac_prefix_conf_PKG=`echo MagickCore`
34607ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34608ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34609ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34610if test ".$ac_prefix_conf_INP" = "."; then
34611 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34612 case "$ac_file" in
34613 *.h) ac_prefix_conf_INP=$ac_file ;;
34614 *)
34615 esac
34616 test ".$ac_prefix_conf_INP" != "." && break
34617 done
34618fi
34619if test ".$ac_prefix_conf_INP" = "."; then
34620 case "$ac_prefix_conf_OUT" in
34621 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34622 ;;
34623 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34624 ;;
34625 *) ac_prefix_conf_INP=config.h
34626 ;;
34627 esac
34628fi
34629if test -z "$ac_prefix_conf_PKG" ; then
cristy8b350f62009-11-15 23:12:43 +000034630 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034631else
34632 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34633 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34634 fi fi
cristy8b350f62009-11-15 23:12:43 +000034635 { $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 +000034636$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34637 if test -f $ac_prefix_conf_INP ; then
34638 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34639 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034640 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34641 echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034642 echo "#endif/" >>conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034643 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34644 echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034645 echo "#endif/" >> conftest.prefix
34646 # now executing _script on _DEF input to create _OUT output file
34647 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34648 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34649 echo ' ' >>$tmp/pconfig.h
34650 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34651
34652 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34653 echo ' ' >>$tmp/pconfig.h
34654 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34655 echo "#endif" >>$tmp/pconfig.h
34656 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034657 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034658$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34659 else
34660 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34661$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34662 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34663 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34664 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34665$as_echo X"$ac_prefix_conf_OUT" |
34666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34667 s//\1/
34668 q
34669 }
34670 /^X\(\/\/\)[^/].*/{
34671 s//\1/
34672 q
34673 }
34674 /^X\(\/\/\)$/{
34675 s//\1/
34676 q
34677 }
34678 /^X\(\/\).*/{
34679 s//\1/
34680 q
34681 }
34682 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034683 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034684 rm -f "$ac_prefix_conf_OUT"
34685 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34686 fi
34687 cp conftest.prefix _configs.sed
34688 else
cristy8b350f62009-11-15 23:12:43 +000034689 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 +000034690 fi
34691 rm -f conftest.*
34692fi
34693 ;;
34694 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34695 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34696 # are listed without --file. Let's play safe and only enable the eval
34697 # if we detect the quoting.
34698 case $CONFIG_FILES in
34699 *\'*) eval set x "$CONFIG_FILES" ;;
34700 *) set x $CONFIG_FILES ;;
34701 esac
34702 shift
34703 for mf
34704 do
34705 # Strip MF so we end up with the name of the file.
34706 mf=`echo "$mf" | sed -e 's/:.*$//'`
34707 # Check whether this is an Automake generated Makefile or not.
34708 # We used to match only the files named `Makefile.in', but
34709 # some people rename them; so instead we look at the file content.
34710 # Grep'ing the first line is not enough: some people post-process
34711 # each Makefile.in and add a new line on top of each file to say so.
34712 # Grep'ing the whole file is not good either: AIX grep has a line
34713 # limit of 2048, but all sed's we know have understand at least 4000.
34714 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34715 dirpart=`$as_dirname -- "$mf" ||
34716$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34717 X"$mf" : 'X\(//\)[^/]' \| \
34718 X"$mf" : 'X\(//\)$' \| \
34719 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34720$as_echo X"$mf" |
34721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34722 s//\1/
34723 q
34724 }
34725 /^X\(\/\/\)[^/].*/{
34726 s//\1/
34727 q
34728 }
34729 /^X\(\/\/\)$/{
34730 s//\1/
34731 q
34732 }
34733 /^X\(\/\).*/{
34734 s//\1/
34735 q
34736 }
34737 s/.*/./; q'`
34738 else
34739 continue
34740 fi
34741 # Extract the definition of DEPDIR, am__include, and am__quote
34742 # from the Makefile without running `make'.
34743 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34744 test -z "$DEPDIR" && continue
34745 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34746 test -z "am__include" && continue
34747 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34748 # When using ansi2knr, U may be empty or an underscore; expand it
34749 U=`sed -n 's/^U = //p' < "$mf"`
34750 # Find all dependency output files, they are included files with
34751 # $(DEPDIR) in their names. We invoke sed twice because it is the
34752 # simplest approach to changing $(DEPDIR) to its actual value in the
34753 # expansion.
34754 for file in `sed -n "
34755 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34756 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34757 # Make sure the directory exists.
34758 test -f "$dirpart/$file" && continue
34759 fdir=`$as_dirname -- "$file" ||
34760$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34761 X"$file" : 'X\(//\)[^/]' \| \
34762 X"$file" : 'X\(//\)$' \| \
34763 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34764$as_echo X"$file" |
34765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34766 s//\1/
34767 q
34768 }
34769 /^X\(\/\/\)[^/].*/{
34770 s//\1/
34771 q
34772 }
34773 /^X\(\/\/\)$/{
34774 s//\1/
34775 q
34776 }
34777 /^X\(\/\).*/{
34778 s//\1/
34779 q
34780 }
34781 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034782 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034783 # echo "creating $dirpart/$file"
34784 echo '# dummy' > "$dirpart/$file"
34785 done
34786 done
34787}
34788 ;;
34789 "libtool":C)
34790
34791 # See if we are running on zsh, and set the options which allow our
34792 # commands through without removal of \ escapes.
34793 if test -n "${ZSH_VERSION+set}" ; then
34794 setopt NO_GLOB_SUBST
34795 fi
34796
34797 cfgfile="${ofile}T"
34798 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34799 $RM "$cfgfile"
34800
34801 cat <<_LT_EOF >> "$cfgfile"
34802#! $SHELL
34803
34804# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34805# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34806# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34807# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34808#
34809# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristyb7c7b8e2010-06-22 14:22:40 +000034810# 2006, 2007, 2008 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000034811# Written by Gordon Matzigkeit, 1996
34812#
34813# This file is part of GNU Libtool.
34814#
34815# GNU Libtool is free software; you can redistribute it and/or
34816# modify it under the terms of the GNU General Public License as
34817# published by the Free Software Foundation; either version 2 of
34818# the License, or (at your option) any later version.
34819#
34820# As a special exception to the GNU General Public License,
34821# if you distribute this file as part of a program or library that
34822# is built using GNU Libtool, you may include this file under the
34823# same distribution terms that you use for the rest of that program.
34824#
34825# GNU Libtool is distributed in the hope that it will be useful,
34826# but WITHOUT ANY WARRANTY; without even the implied warranty of
34827# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34828# GNU General Public License for more details.
34829#
34830# You should have received a copy of the GNU General Public License
34831# along with GNU Libtool; see the file COPYING. If not, a copy
34832# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34833# obtained by writing to the Free Software Foundation, Inc.,
34834# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34835
34836
34837# The names of the tagged configurations supported by this script.
34838available_tags="CXX "
34839
34840# ### BEGIN LIBTOOL CONFIG
34841
34842# A sed program that does not truncate output.
34843SED=$lt_SED
34844
34845# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34846Xsed="\$SED -e 1s/^X//"
34847
34848# A grep program that handles long lines.
34849GREP=$lt_GREP
34850
34851# An ERE matcher.
34852EGREP=$lt_EGREP
34853
34854# A literal string matcher.
34855FGREP=$lt_FGREP
34856
34857# Which release of libtool.m4 was used?
34858macro_version=$macro_version
34859macro_revision=$macro_revision
34860
34861# Assembler program.
cristy18304f92009-11-22 15:48:26 +000034862AS=$AS
cristy3ed852e2009-09-05 21:47:34 +000034863
34864# DLL creation program.
cristy18304f92009-11-22 15:48:26 +000034865DLLTOOL=$DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000034866
34867# Object dumper program.
cristy18304f92009-11-22 15:48:26 +000034868OBJDUMP=$OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000034869
34870# Whether or not to build shared libraries.
34871build_libtool_libs=$enable_shared
34872
34873# Whether or not to build static libraries.
34874build_old_libs=$enable_static
34875
34876# What type of objects to build.
34877pic_mode=$pic_mode
34878
34879# Whether or not to optimize for fast installation.
34880fast_install=$enable_fast_install
34881
34882# The host system.
34883host_alias=$host_alias
34884host=$host
34885host_os=$host_os
34886
34887# The build system.
34888build_alias=$build_alias
34889build=$build
34890build_os=$build_os
34891
34892# A BSD- or MS-compatible name lister.
34893NM=$lt_NM
34894
34895# Whether we need soft or hard links.
34896LN_S=$lt_LN_S
34897
34898# What is the maximum length of a command?
34899max_cmd_len=$max_cmd_len
34900
34901# Object file suffix (normally "o").
34902objext=$ac_objext
34903
34904# Executable file suffix (normally "").
34905exeext=$exeext
34906
34907# whether the shell understands "unset".
34908lt_unset=$lt_unset
34909
34910# turn spaces into newlines.
34911SP2NL=$lt_lt_SP2NL
34912
34913# turn newlines into spaces.
34914NL2SP=$lt_lt_NL2SP
34915
cristyb7c7b8e2010-06-22 14:22:40 +000034916# How to create reloadable object files.
34917reload_flag=$lt_reload_flag
34918reload_cmds=$lt_reload_cmds
34919
cristy3ed852e2009-09-05 21:47:34 +000034920# Method to check whether dependent libraries are shared objects.
34921deplibs_check_method=$lt_deplibs_check_method
34922
34923# Command to use when deplibs_check_method == "file_magic".
34924file_magic_cmd=$lt_file_magic_cmd
34925
34926# The archiver.
34927AR=$lt_AR
34928AR_FLAGS=$lt_AR_FLAGS
34929
34930# A symbol stripping program.
34931STRIP=$lt_STRIP
34932
34933# Commands used to install an old-style archive.
34934RANLIB=$lt_RANLIB
34935old_postinstall_cmds=$lt_old_postinstall_cmds
34936old_postuninstall_cmds=$lt_old_postuninstall_cmds
34937
34938# A C compiler.
34939LTCC=$lt_CC
34940
34941# LTCC compiler flags.
34942LTCFLAGS=$lt_CFLAGS
34943
34944# Take the output of nm and produce a listing of raw symbols and C names.
34945global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34946
34947# Transform the output of nm in a proper C declaration.
34948global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34949
34950# Transform the output of nm in a C name address pair.
34951global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34952
34953# Transform the output of nm in a C name address pair when lib prefix is needed.
34954global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34955
34956# The name of the directory that contains temporary libtool files.
34957objdir=$objdir
34958
cristyb7c7b8e2010-06-22 14:22:40 +000034959# Shell to use when invoking shell scripts.
34960SHELL=$lt_SHELL
34961
34962# An echo program that does not interpret backslashes.
34963ECHO=$lt_ECHO
34964
cristy3ed852e2009-09-05 21:47:34 +000034965# Used to examine libraries when file_magic_cmd begins with "file".
34966MAGIC_CMD=$MAGIC_CMD
34967
34968# Must we lock files when doing compilation?
34969need_locks=$lt_need_locks
34970
34971# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34972DSYMUTIL=$lt_DSYMUTIL
34973
34974# Tool to change global to local symbols on Mac OS X.
34975NMEDIT=$lt_NMEDIT
34976
34977# Tool to manipulate fat objects and archives on Mac OS X.
34978LIPO=$lt_LIPO
34979
34980# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34981OTOOL=$lt_OTOOL
34982
34983# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34984OTOOL64=$lt_OTOOL64
34985
34986# Old archive suffix (normally "a").
34987libext=$libext
34988
34989# Shared library suffix (normally ".so").
34990shrext_cmds=$lt_shrext_cmds
34991
34992# The commands to extract the exported symbol list from a shared archive.
34993extract_expsyms_cmds=$lt_extract_expsyms_cmds
34994
34995# Variables whose values should be saved in libtool wrapper scripts and
34996# restored at link time.
34997variables_saved_for_relink=$lt_variables_saved_for_relink
34998
34999# Do we need the "lib" prefix for modules?
35000need_lib_prefix=$need_lib_prefix
35001
35002# Do we need a version for libraries?
35003need_version=$need_version
35004
35005# Library versioning type.
35006version_type=$version_type
35007
35008# Shared library runtime path variable.
35009runpath_var=$runpath_var
35010
35011# Shared library path variable.
35012shlibpath_var=$shlibpath_var
35013
35014# Is shlibpath searched before the hard-coded library search path?
35015shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35016
35017# Format of library name prefix.
35018libname_spec=$lt_libname_spec
35019
35020# List of archive names. First name is the real one, the rest are links.
35021# The last name is the one that the linker finds with -lNAME
35022library_names_spec=$lt_library_names_spec
35023
35024# The coded name of the library, if different from the real name.
35025soname_spec=$lt_soname_spec
35026
35027# Command to use after installation of a shared archive.
35028postinstall_cmds=$lt_postinstall_cmds
35029
35030# Command to use after uninstallation of a shared archive.
35031postuninstall_cmds=$lt_postuninstall_cmds
35032
35033# Commands used to finish a libtool library installation in a directory.
35034finish_cmds=$lt_finish_cmds
35035
35036# As "finish_cmds", except a single script fragment to be evaled but
35037# not shown.
35038finish_eval=$lt_finish_eval
35039
35040# Whether we should hardcode library paths into libraries.
35041hardcode_into_libs=$hardcode_into_libs
35042
35043# Compile-time system search path for libraries.
35044sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35045
35046# Run-time system search path for libraries.
35047sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35048
35049# Whether dlopen is supported.
35050dlopen_support=$enable_dlopen
35051
35052# Whether dlopen of programs is supported.
35053dlopen_self=$enable_dlopen_self
35054
35055# Whether dlopen of statically linked programs is supported.
35056dlopen_self_static=$enable_dlopen_self_static
35057
35058# Commands to strip libraries.
35059old_striplib=$lt_old_striplib
35060striplib=$lt_striplib
35061
35062
35063# The linker used to build libraries.
35064LD=$lt_LD
35065
35066# Commands used to build an old-style archive.
35067old_archive_cmds=$lt_old_archive_cmds
35068
35069# A language specific compiler.
35070CC=$lt_compiler
35071
35072# Is the compiler the GNU compiler?
35073with_gcc=$GCC
35074
35075# Compiler flag to turn off builtin functions.
35076no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35077
35078# How to pass a linker flag through the compiler.
35079wl=$lt_lt_prog_compiler_wl
35080
35081# Additional compiler flags for building library objects.
35082pic_flag=$lt_lt_prog_compiler_pic
35083
35084# Compiler flag to prevent dynamic linking.
35085link_static_flag=$lt_lt_prog_compiler_static
35086
35087# Does compiler simultaneously support -c and -o options?
35088compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35089
35090# Whether or not to add -lc for building shared libraries.
35091build_libtool_need_lc=$archive_cmds_need_lc
35092
35093# Whether or not to disallow shared libs when runtime libs are static.
35094allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35095
35096# Compiler flag to allow reflexive dlopens.
35097export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35098
35099# Compiler flag to generate shared objects directly from archives.
35100whole_archive_flag_spec=$lt_whole_archive_flag_spec
35101
35102# Whether the compiler copes with passing no objects directly.
35103compiler_needs_object=$lt_compiler_needs_object
35104
35105# Create an old-style archive from a shared archive.
35106old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35107
35108# Create a temporary old-style archive to link instead of a shared archive.
35109old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35110
35111# Commands used to build a shared archive.
35112archive_cmds=$lt_archive_cmds
35113archive_expsym_cmds=$lt_archive_expsym_cmds
35114
35115# Commands used to build a loadable module if different from building
35116# a shared archive.
35117module_cmds=$lt_module_cmds
35118module_expsym_cmds=$lt_module_expsym_cmds
35119
35120# Whether we are building with GNU ld or not.
35121with_gnu_ld=$lt_with_gnu_ld
35122
35123# Flag that allows shared libraries with undefined symbols to be built.
35124allow_undefined_flag=$lt_allow_undefined_flag
35125
35126# Flag that enforces no undefined symbols.
35127no_undefined_flag=$lt_no_undefined_flag
35128
35129# Flag to hardcode \$libdir into a binary during linking.
35130# This must work even if \$libdir does not exist
35131hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35132
35133# If ld is used when linking, flag to hardcode \$libdir into a binary
35134# during linking. This must work even if \$libdir does not exist.
35135hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35136
35137# Whether we need a single "-rpath" flag with a separated argument.
35138hardcode_libdir_separator=$lt_hardcode_libdir_separator
35139
35140# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35141# DIR into the resulting binary.
35142hardcode_direct=$hardcode_direct
35143
35144# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35145# DIR into the resulting binary and the resulting library dependency is
35146# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35147# library is relocated.
35148hardcode_direct_absolute=$hardcode_direct_absolute
35149
35150# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35151# into the resulting binary.
35152hardcode_minus_L=$hardcode_minus_L
35153
35154# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35155# into the resulting binary.
35156hardcode_shlibpath_var=$hardcode_shlibpath_var
35157
35158# Set to "yes" if building a shared library automatically hardcodes DIR
35159# into the library and all subsequent libraries and executables linked
35160# against it.
35161hardcode_automatic=$hardcode_automatic
35162
35163# Set to yes if linker adds runtime paths of dependent libraries
35164# to runtime path list.
35165inherit_rpath=$inherit_rpath
35166
35167# Whether libtool must link a program against all its dependency libraries.
35168link_all_deplibs=$link_all_deplibs
35169
35170# Fix the shell variable \$srcfile for the compiler.
35171fix_srcfile_path=$lt_fix_srcfile_path
35172
35173# Set to "yes" if exported symbols are required.
35174always_export_symbols=$always_export_symbols
35175
35176# The commands to list exported symbols.
35177export_symbols_cmds=$lt_export_symbols_cmds
35178
35179# Symbols that should not be listed in the preloaded symbols.
35180exclude_expsyms=$lt_exclude_expsyms
35181
35182# Symbols that must always be exported.
35183include_expsyms=$lt_include_expsyms
35184
35185# Commands necessary for linking programs (against libraries) with templates.
35186prelink_cmds=$lt_prelink_cmds
35187
35188# Specify filename containing input files.
35189file_list_spec=$lt_file_list_spec
35190
35191# How to hardcode a shared library path into an executable.
35192hardcode_action=$hardcode_action
35193
35194# The directories searched by this compiler when creating a shared library.
35195compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35196
35197# Dependencies to place before and after the objects being linked to
35198# create a shared library.
35199predep_objects=$lt_predep_objects
35200postdep_objects=$lt_postdep_objects
35201predeps=$lt_predeps
35202postdeps=$lt_postdeps
35203
35204# The library search path used internally by the compiler when linking
35205# a shared library.
35206compiler_lib_search_path=$lt_compiler_lib_search_path
35207
35208# ### END LIBTOOL CONFIG
35209
35210_LT_EOF
35211
35212 case $host_os in
35213 aix3*)
35214 cat <<\_LT_EOF >> "$cfgfile"
35215# AIX sometimes has problems with the GCC collect2 program. For some
35216# reason, if we set the COLLECT_NAMES environment variable, the problems
35217# vanish in a puff of smoke.
35218if test "X${COLLECT_NAMES+set}" != Xset; then
35219 COLLECT_NAMES=
35220 export COLLECT_NAMES
35221fi
35222_LT_EOF
35223 ;;
35224 esac
35225
35226
35227ltmain="$ac_aux_dir/ltmain.sh"
35228
35229
35230 # We use sed instead of cat because bash on DJGPP gets confused if
35231 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35232 # text mode, it properly converts lines to CR/LF. This bash problem
35233 # is reportedly fixed, but why not run on old versions too?
35234 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35235 || (rm -f "$cfgfile"; exit 1)
35236
35237 case $xsi_shell in
35238 yes)
35239 cat << \_LT_EOF >> "$cfgfile"
35240
35241# func_dirname file append nondir_replacement
35242# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35243# otherwise set result to NONDIR_REPLACEMENT.
35244func_dirname ()
35245{
35246 case ${1} in
35247 */*) func_dirname_result="${1%/*}${2}" ;;
35248 * ) func_dirname_result="${3}" ;;
35249 esac
35250}
35251
35252# func_basename file
35253func_basename ()
35254{
35255 func_basename_result="${1##*/}"
35256}
35257
35258# func_dirname_and_basename file append nondir_replacement
35259# perform func_basename and func_dirname in a single function
35260# call:
35261# dirname: Compute the dirname of FILE. If nonempty,
35262# add APPEND to the result, otherwise set result
35263# to NONDIR_REPLACEMENT.
35264# value returned in "$func_dirname_result"
35265# basename: Compute filename of FILE.
35266# value retuned in "$func_basename_result"
35267# Implementation must be kept synchronized with func_dirname
35268# and func_basename. For efficiency, we do not delegate to
35269# those functions but instead duplicate the functionality here.
35270func_dirname_and_basename ()
35271{
35272 case ${1} in
35273 */*) func_dirname_result="${1%/*}${2}" ;;
35274 * ) func_dirname_result="${3}" ;;
35275 esac
35276 func_basename_result="${1##*/}"
35277}
35278
35279# func_stripname prefix suffix name
35280# strip PREFIX and SUFFIX off of NAME.
35281# PREFIX and SUFFIX must not contain globbing or regex special
35282# characters, hashes, percent signs, but SUFFIX may contain a leading
35283# dot (in which case that matches only a dot).
35284func_stripname ()
35285{
35286 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35287 # positional parameters, so assign one to ordinary parameter first.
35288 func_stripname_result=${3}
35289 func_stripname_result=${func_stripname_result#"${1}"}
35290 func_stripname_result=${func_stripname_result%"${2}"}
35291}
35292
35293# func_opt_split
35294func_opt_split ()
35295{
35296 func_opt_split_opt=${1%%=*}
35297 func_opt_split_arg=${1#*=}
35298}
35299
35300# func_lo2o object
35301func_lo2o ()
35302{
35303 case ${1} in
35304 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35305 *) func_lo2o_result=${1} ;;
35306 esac
35307}
35308
35309# func_xform libobj-or-source
35310func_xform ()
35311{
35312 func_xform_result=${1%.*}.lo
35313}
35314
35315# func_arith arithmetic-term...
35316func_arith ()
35317{
35318 func_arith_result=$(( $* ))
35319}
35320
35321# func_len string
35322# STRING may not start with a hyphen.
35323func_len ()
35324{
35325 func_len_result=${#1}
35326}
35327
35328_LT_EOF
35329 ;;
35330 *) # Bourne compatible functions.
35331 cat << \_LT_EOF >> "$cfgfile"
35332
35333# func_dirname file append nondir_replacement
35334# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35335# otherwise set result to NONDIR_REPLACEMENT.
35336func_dirname ()
35337{
35338 # Extract subdirectory from the argument.
cristyb7c7b8e2010-06-22 14:22:40 +000035339 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000035340 if test "X$func_dirname_result" = "X${1}"; then
35341 func_dirname_result="${3}"
35342 else
35343 func_dirname_result="$func_dirname_result${2}"
35344 fi
35345}
35346
35347# func_basename file
35348func_basename ()
35349{
cristyb7c7b8e2010-06-22 14:22:40 +000035350 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000035351}
35352
35353
35354# func_stripname prefix suffix name
35355# strip PREFIX and SUFFIX off of NAME.
35356# PREFIX and SUFFIX must not contain globbing or regex special
35357# characters, hashes, percent signs, but SUFFIX may contain a leading
35358# dot (in which case that matches only a dot).
35359# func_strip_suffix prefix name
35360func_stripname ()
35361{
35362 case ${2} in
cristyb7c7b8e2010-06-22 14:22:40 +000035363 .*) func_stripname_result=`$ECHO "X${3}" \
35364 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
35365 *) func_stripname_result=`$ECHO "X${3}" \
35366 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000035367 esac
35368}
35369
35370# sed scripts:
35371my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35372my_sed_long_arg='1s/^-[^=]*=//'
35373
35374# func_opt_split
35375func_opt_split ()
35376{
cristyb7c7b8e2010-06-22 14:22:40 +000035377 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
35378 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000035379}
35380
35381# func_lo2o object
35382func_lo2o ()
35383{
cristyb7c7b8e2010-06-22 14:22:40 +000035384 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000035385}
35386
35387# func_xform libobj-or-source
35388func_xform ()
35389{
cristyb7c7b8e2010-06-22 14:22:40 +000035390 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000035391}
35392
35393# func_arith arithmetic-term...
35394func_arith ()
35395{
35396 func_arith_result=`expr "$@"`
35397}
35398
35399# func_len string
35400# STRING may not start with a hyphen.
35401func_len ()
35402{
35403 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35404}
35405
35406_LT_EOF
35407esac
35408
35409case $lt_shell_append in
35410 yes)
35411 cat << \_LT_EOF >> "$cfgfile"
35412
35413# func_append var value
35414# Append VALUE to the end of shell variable VAR.
35415func_append ()
35416{
35417 eval "$1+=\$2"
35418}
35419_LT_EOF
35420 ;;
35421 *)
35422 cat << \_LT_EOF >> "$cfgfile"
35423
35424# func_append var value
35425# Append VALUE to the end of shell variable VAR.
35426func_append ()
35427{
35428 eval "$1=\$$1\$2"
35429}
35430
35431_LT_EOF
35432 ;;
35433 esac
35434
35435
35436 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35437 || (rm -f "$cfgfile"; exit 1)
35438
35439 mv -f "$cfgfile" "$ofile" ||
35440 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35441 chmod +x "$ofile"
35442
35443
35444 cat <<_LT_EOF >> "$ofile"
35445
35446# ### BEGIN LIBTOOL TAG CONFIG: CXX
35447
35448# The linker used to build libraries.
35449LD=$lt_LD_CXX
35450
35451# Commands used to build an old-style archive.
35452old_archive_cmds=$lt_old_archive_cmds_CXX
35453
35454# A language specific compiler.
35455CC=$lt_compiler_CXX
35456
35457# Is the compiler the GNU compiler?
35458with_gcc=$GCC_CXX
35459
35460# Compiler flag to turn off builtin functions.
35461no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35462
35463# How to pass a linker flag through the compiler.
35464wl=$lt_lt_prog_compiler_wl_CXX
35465
35466# Additional compiler flags for building library objects.
35467pic_flag=$lt_lt_prog_compiler_pic_CXX
35468
35469# Compiler flag to prevent dynamic linking.
35470link_static_flag=$lt_lt_prog_compiler_static_CXX
35471
35472# Does compiler simultaneously support -c and -o options?
35473compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35474
35475# Whether or not to add -lc for building shared libraries.
35476build_libtool_need_lc=$archive_cmds_need_lc_CXX
35477
35478# Whether or not to disallow shared libs when runtime libs are static.
35479allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35480
35481# Compiler flag to allow reflexive dlopens.
35482export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35483
35484# Compiler flag to generate shared objects directly from archives.
35485whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35486
35487# Whether the compiler copes with passing no objects directly.
35488compiler_needs_object=$lt_compiler_needs_object_CXX
35489
35490# Create an old-style archive from a shared archive.
35491old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35492
35493# Create a temporary old-style archive to link instead of a shared archive.
35494old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35495
35496# Commands used to build a shared archive.
35497archive_cmds=$lt_archive_cmds_CXX
35498archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35499
35500# Commands used to build a loadable module if different from building
35501# a shared archive.
35502module_cmds=$lt_module_cmds_CXX
35503module_expsym_cmds=$lt_module_expsym_cmds_CXX
35504
35505# Whether we are building with GNU ld or not.
35506with_gnu_ld=$lt_with_gnu_ld_CXX
35507
35508# Flag that allows shared libraries with undefined symbols to be built.
35509allow_undefined_flag=$lt_allow_undefined_flag_CXX
35510
35511# Flag that enforces no undefined symbols.
35512no_undefined_flag=$lt_no_undefined_flag_CXX
35513
35514# Flag to hardcode \$libdir into a binary during linking.
35515# This must work even if \$libdir does not exist
35516hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35517
35518# If ld is used when linking, flag to hardcode \$libdir into a binary
35519# during linking. This must work even if \$libdir does not exist.
35520hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35521
35522# Whether we need a single "-rpath" flag with a separated argument.
35523hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35524
35525# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35526# DIR into the resulting binary.
35527hardcode_direct=$hardcode_direct_CXX
35528
35529# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35530# DIR into the resulting binary and the resulting library dependency is
35531# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35532# library is relocated.
35533hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35534
35535# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35536# into the resulting binary.
35537hardcode_minus_L=$hardcode_minus_L_CXX
35538
35539# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35540# into the resulting binary.
35541hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35542
35543# Set to "yes" if building a shared library automatically hardcodes DIR
35544# into the library and all subsequent libraries and executables linked
35545# against it.
35546hardcode_automatic=$hardcode_automatic_CXX
35547
35548# Set to yes if linker adds runtime paths of dependent libraries
35549# to runtime path list.
35550inherit_rpath=$inherit_rpath_CXX
35551
35552# Whether libtool must link a program against all its dependency libraries.
35553link_all_deplibs=$link_all_deplibs_CXX
35554
35555# Fix the shell variable \$srcfile for the compiler.
35556fix_srcfile_path=$lt_fix_srcfile_path_CXX
35557
35558# Set to "yes" if exported symbols are required.
35559always_export_symbols=$always_export_symbols_CXX
35560
35561# The commands to list exported symbols.
35562export_symbols_cmds=$lt_export_symbols_cmds_CXX
35563
35564# Symbols that should not be listed in the preloaded symbols.
35565exclude_expsyms=$lt_exclude_expsyms_CXX
35566
35567# Symbols that must always be exported.
35568include_expsyms=$lt_include_expsyms_CXX
35569
35570# Commands necessary for linking programs (against libraries) with templates.
35571prelink_cmds=$lt_prelink_cmds_CXX
35572
35573# Specify filename containing input files.
35574file_list_spec=$lt_file_list_spec_CXX
35575
35576# How to hardcode a shared library path into an executable.
35577hardcode_action=$hardcode_action_CXX
35578
35579# The directories searched by this compiler when creating a shared library.
35580compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35581
35582# Dependencies to place before and after the objects being linked to
35583# create a shared library.
35584predep_objects=$lt_predep_objects_CXX
35585postdep_objects=$lt_postdep_objects_CXX
35586predeps=$lt_predeps_CXX
35587postdeps=$lt_postdeps_CXX
35588
35589# The library search path used internally by the compiler when linking
35590# a shared library.
35591compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35592
35593# ### END LIBTOOL TAG CONFIG: CXX
35594_LT_EOF
35595
35596 ;;
35597 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35598 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35599 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35600 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35601 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35602 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35603
35604 esac
35605done # for ac_tag
35606
35607
cristy8b350f62009-11-15 23:12:43 +000035608as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000035609_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000035610ac_clean_files=$ac_clean_files_save
35611
35612test $ac_write_fail = 0 ||
cristy8b350f62009-11-15 23:12:43 +000035613 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035614
35615
35616# configure is writing to config.log, and then calls config.status.
35617# config.status does its own redirection, appending to config.log.
35618# Unfortunately, on DOS this fails, as config.log is still kept open
35619# by configure, so config.status won't be able to write to it; its
35620# output is simply discarded. So we exec the FD to /dev/null,
35621# effectively closing config.log, so it can be properly (re)opened and
35622# appended to by config.status. When coming back to configure, we
35623# need to make the FD available again.
35624if test "$no_create" != yes; then
35625 ac_cs_success=:
35626 ac_config_status_args=
35627 test "$silent" = yes &&
35628 ac_config_status_args="$ac_config_status_args --quiet"
35629 exec 5>/dev/null
35630 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35631 exec 5>>config.log
35632 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35633 # would make configure fail if this is the last instruction.
cristy8b350f62009-11-15 23:12:43 +000035634 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000035635fi
35636if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000035637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000035638$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35639fi
35640
35641
35642rm -f magick-version
35643
cristy430a7312010-01-21 20:44:04 +000035644result_dejavu_font_dir='none'
35645if test "${dejavu_font_dir}x" != 'x'; then
35646 result_dejavu_font_dir=$dejavu_font_dir
35647fi
35648
cristy3ed852e2009-09-05 21:47:34 +000035649result_ghostscript_font_dir='none'
35650if test "${ghostscript_font_dir}x" != 'x'; then
35651 result_ghostscript_font_dir=$ghostscript_font_dir
35652fi
35653
35654result_windows_font_dir='none'
35655if test "${windows_font_dir}x" != 'x'; then
35656 result_windows_font_dir=${windows_font_dir}
35657fi
35658
cristy8b350f62009-11-15 23:12:43 +000035659{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000035660ImageMagick is configured as follows. Please verify that this configuration
35661matches your expectations.
35662
35663Host system type: $host
35664Build system type: $build
35665
35666 Option Value
35667-------------------------------------------------------------------------------
35668Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35669Static libraries --enable-static=$enable_static $libtool_build_static_libs
35670Module support --with-modules=$with_modules $with_modules
35671GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35672Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35673High Dynamic Range Imagery
35674 --enable-hdri=$enable_hdri $enable_hdri
35675
35676Delegate Configuration:
35677BZLIB --with-bzlib=$with_bzlib $have_bzlib
35678Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035679Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035680DJVU --with-djvu=$with_djvu $have_djvu
35681DPS --with-dps=$with_dps $have_dps
35682FFTW --with-fftw=$with_fftw $have_fftw
35683FlashPIX --with-fpx=$with_fpx $have_fpx
35684FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35685FreeType --with-freetype=$with_freetype $have_freetype
35686GhostPCL None $PCLDelegate ($PCLVersion)
35687GhostXPS None $XPSDelegate ($XPSVersion)
35688Ghostscript None $PSDelegate ($GSVersion)
35689Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35690Ghostscript lib --with-gslib=$with_gslib $have_gslib
35691Graphviz --with-gvc=$with_gvc $have_gvc
35692JBIG --with-jbig=$with_jbig $have_jbig
35693JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35694JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035695LCMS v1 --with-lcms=$with_lcms $have_lcms
35696LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035697LQR --with-lqr=$with_lqr $have_lqr
35698Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35699OpenEXR --with-openexr=$with_openexr $have_openexr
35700PERL --with-perl=$with_perl $have_perl
35701PNG --with-png=$with_png $have_png
35702RSVG --with-rsvg=$with_rsvg $have_rsvg
35703TIFF --with-tiff=$with_tiff $have_tiff
35704Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35705WMF --with-wmf=$with_wmf $have_wmf
35706X11 --with-x=$with_x $have_x
35707XML --with-xml=$with_xml $have_xml
35708ZLIB --with-zlib=$with_zlib $have_zlib
35709
35710X11 Configuration:
35711 X_CFLAGS = $X_CFLAGS
35712 X_PRE_LIBS = $X_PRE_LIBS
35713 X_LIBS = $X_LIBS
35714 X_EXTRA_LIBS = $X_EXTRA_LIBS
35715
35716Options used to compile and link:
35717 PREFIX = $PREFIX_DIR
35718 EXEC-PREFIX = $EXEC_PREFIX_DIR
35719 VERSION = $PACKAGE_VERSION
35720 CC = $CC
35721 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035722 CPPFLAGS = $MAGICK_CPPFLAGS
35723 PCFLAGS = $MAGICK_PCFLAGS
35724 DEFS = $DEFS
35725 LDFLAGS = $LDFLAGS
35726 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35727 LIBS = $MAGICK_LIBS
35728 CXX = $CXX
35729 CXXFLAGS = $CXXFLAGS
35730" >&5
35731$as_echo "
35732ImageMagick is configured as follows. Please verify that this configuration
35733matches your expectations.
35734
35735Host system type: $host
35736Build system type: $build
35737
35738 Option Value
35739-------------------------------------------------------------------------------
35740Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35741Static libraries --enable-static=$enable_static $libtool_build_static_libs
35742Module support --with-modules=$with_modules $with_modules
35743GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35744Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35745High Dynamic Range Imagery
35746 --enable-hdri=$enable_hdri $enable_hdri
35747
35748Delegate Configuration:
35749BZLIB --with-bzlib=$with_bzlib $have_bzlib
35750Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035751Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035752DJVU --with-djvu=$with_djvu $have_djvu
35753DPS --with-dps=$with_dps $have_dps
35754FFTW --with-fftw=$with_fftw $have_fftw
35755FlashPIX --with-fpx=$with_fpx $have_fpx
35756FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35757FreeType --with-freetype=$with_freetype $have_freetype
35758GhostPCL None $PCLDelegate ($PCLVersion)
35759GhostXPS None $XPSDelegate ($XPSVersion)
35760Ghostscript None $PSDelegate ($GSVersion)
35761Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35762Ghostscript lib --with-gslib=$with_gslib $have_gslib
35763Graphviz --with-gvc=$with_gvc $have_gvc
35764JBIG --with-jbig=$with_jbig $have_jbig
35765JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35766JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035767LCMS v1 --with-lcms=$with_lcms $have_lcms
35768LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035769LQR --with-lqr=$with_lqr $have_lqr
35770Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35771OpenEXR --with-openexr=$with_openexr $have_openexr
35772PERL --with-perl=$with_perl $have_perl
35773PNG --with-png=$with_png $have_png
35774RSVG --with-rsvg=$with_rsvg $have_rsvg
35775TIFF --with-tiff=$with_tiff $have_tiff
35776Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35777WMF --with-wmf=$with_wmf $have_wmf
35778X11 --with-x=$with_x $have_x
35779XML --with-xml=$with_xml $have_xml
35780ZLIB --with-zlib=$with_zlib $have_zlib
35781
35782X11 Configuration:
35783 X_CFLAGS = $X_CFLAGS
35784 X_PRE_LIBS = $X_PRE_LIBS
35785 X_LIBS = $X_LIBS
35786 X_EXTRA_LIBS = $X_EXTRA_LIBS
35787
35788Options used to compile and link:
35789 PREFIX = $PREFIX_DIR
35790 EXEC-PREFIX = $EXEC_PREFIX_DIR
35791 VERSION = $PACKAGE_VERSION
35792 CC = $CC
35793 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035794 CPPFLAGS = $MAGICK_CPPFLAGS
35795 PCFLAGS = $MAGICK_PCFLAGS
35796 DEFS = $DEFS
35797 LDFLAGS = $LDFLAGS
35798 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35799 LIBS = $MAGICK_LIBS
35800 CXX = $CXX
35801 CXXFLAGS = $CXXFLAGS
35802" >&6; }