blob: 9b55590724cd89d34585e860d8db0bd78a8fc012 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy89effd22009-11-24 20:56:45 +00003# Generated by GNU Autoconf 2.65 for ImageMagick 6.5.8.
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
cristy18304f92009-11-22 15:48:26 +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
cristy18304f92009-11-22 15:48:26 +0000531
532
533# Check that we are running under the correct shell.
cristy3ed852e2009-09-05 21:47:34 +0000534SHELL=${CONFIG_SHELL-/bin/sh}
535
cristy18304f92009-11-22 15:48:26 +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'
cristy89effd22009-11-24 20:56:45 +0000708PACKAGE_VERSION='6.5.8'
709PACKAGE_STRING='ImageMagick 6.5.8'
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
776GSVersion
777GSPSDevice
778GSPDFDevice
779GSMonoDevice
780GSEPSDevice
781GSColorDevice
782GSCMYKDevice
783GSAlphaDevice
784XPSVersion
785XPSCMYKDevice
786XPSColorDevice
787XPSMonoDevice
788PCLVersion
789PCLCMYKDevice
790PCLColorDevice
791PCLMonoDevice
792ZIP_DELEGATE_FALSE
793ZIP_DELEGATE_TRUE
794ZIP
795P7ZIP_DELEGATE_FALSE
796P7ZIP_DELEGATE_TRUE
797P7ZIP
798RPM_DELEGATE_FALSE
799RPM_DELEGATE_TRUE
800RPM
801PERL
802TAR
803ShowImageDelegate
804type_include_files
805ghostscript_font_dir
806windows_font_dir
807PrintDelegate
808ZipDelegate
809XPSDelegate
810WWWDecodeDelegate
811WMFDecodeDelegate
812TXTDelegate
813SCANDecodeDelegate
814RMDelegate
815RLEEncodeDelegate
816PSDelegate
817POVDelegate
818PGPDecodeDelegate
819PCLDelegate
820MVDelegate
821MPEGEncodeDelegate
822MPEGDecodeDelegate
823MANDelegate
824LaunchDelegate
825LZWEncodeDelegate
826LZWDecodeDelegate
827LPRDelegate
828LPDelegate
829ILBMEncodeDelegate
830ILBMDecodeDelegate
831HTMLDecodeDelegate
832HPGLDecodeDelegate
833HDRDecodeDelegate
834GnuplotDecodeDelegate
835MogrifyDelegate
836DisplayDelegate
837ConvertDelegate
838FIGDecodeDelegate
839EditorDelegate
840EchoDelegate
841DVIDecodeDelegate
842GVCDecodeDelegate
843DNGDecodeDelegate
844CatDelegate
845CGMDecodeDelegate
846BrowseDelegate
847BZIPDelegate
848BlenderDecodeDelegate
849AVIDecodeDelegate
850AutotraceDecodeDelegate
851SHARE_CONFIGURE_PATH
852SHARE_PATH
853DOCUMENTATION_PATH
854FILTER_PATH
855CODER_PATH
856CONFIGURE_PATH
857LIBRARY_PATH
858EXECUTABLE_PATH
859PERLMAINCC
860XML_LIBS
861XML_DELEGATE_FALSE
862XML_DELEGATE_TRUE
863xml2_config
864WMF_LIBS_DEPS
865WMF_LIBS
866WMF_DELEGATE_FALSE
867WMF_DELEGATE_TRUE
868TIFF_LIBS
869TIFF_DELEGATE_FALSE
870TIFF_DELEGATE_TRUE
871CAIRO_DELEGATE_FALSE
872CAIRO_DELEGATE_TRUE
873RSVG_DELEGATE_FALSE
874RSVG_DELEGATE_TRUE
875CAIRO_SVG_LIBS
876CAIRO_SVG_CFLAGS
877RSVG_LIBS
878RSVG_CFLAGS
879PNG_LIBS
880PNG_DELEGATE_FALSE
881PNG_DELEGATE_TRUE
882OPENEXR_DELEGATE_FALSE
883OPENEXR_DELEGATE_TRUE
884OPENEXR_LIBS
885OPENEXR_CFLAGS
886LQR_DELEGATE_FALSE
887LQR_DELEGATE_TRUE
888LQR_LIBS
889LQR_CFLAGS
890LCMS_LIBS
891LCMS_DELEGATE_FALSE
892LCMS_DELEGATE_TRUE
893JP2_LIBS
894JP2_DELEGATE_FALSE
895JP2_DELEGATE_TRUE
896JPEG_LIBS
897JPEG_DELEGATE_FALSE
898JPEG_DELEGATE_TRUE
899JBIG_LIBS
900JBIG_DELEGATE_FALSE
901JBIG_DELEGATE_TRUE
902GVC_DELEGATE_FALSE
903GVC_DELEGATE_TRUE
904GVC_LIBS
905GVC_CFLAGS
906GS_LIBS
907GS_DELEGATE_FALSE
908GS_DELEGATE_TRUE
909FREETYPE_LIBS
910FREETYPE_DELEGATE_FALSE
911FREETYPE_DELEGATE_TRUE
912freetype_config
913FONTCONFIG_DELEGATE_FALSE
914FONTCONFIG_DELEGATE_TRUE
915FONTCONFIG_LIBS
916FONTCONFIG_CFLAGS
917FPX_LIBS
918FPX_DELEGATE_FALSE
919FPX_DELEGATE_TRUE
920FFTW_LIBS
921FFTW_DELEGATE_FALSE
922FFTW_DELEGATE_TRUE
923DJVU_LIBS
924DJVU_DELEGATE_FALSE
925DJVU_DELEGATE_TRUE
926DPS_LIBS
927DPS_DELEGATE_FALSE
928DPS_DELEGATE_TRUE
929AUTOTRACE_DELEGATE_FALSE
930AUTOTRACE_DELEGATE_TRUE
931AUTOTRACE_LIBS
932AUTOTRACE_CFLAGS
933LIB_DL
934ZLIB_LIBS
935ZLIB_DELEGATE_FALSE
936ZLIB_DELEGATE_TRUE
937XEXT_LIBS
938X11_LIBS
939X11_DELEGATE_FALSE
940X11_DELEGATE_TRUE
941X_EXTRA_LIBS
942X_LIBS
943X_PRE_LIBS
944X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000945XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000946BZLIB_LIBS
947BZLIB_DELEGATE_FALSE
948BZLIB_DELEGATE_TRUE
949MATH_LIBS
950CCMALLOCDelegate
951UMEM_LIBS
952HasUMEM_FALSE
953HasUMEM_TRUE
954THREAD_LIBS
955GOMP_LIBS
956WITH_MAGICK_PLUS_PLUS_FALSE
957WITH_MAGICK_PLUS_PLUS_TRUE
958OPENMP_CXXFLAGS
959POW_LIB
960LIBOBJS
961UINTPTR_T
962UINTMAX_T
963UINT64_T
964INT64_T
965UINT32_T
966INT32_T
967UINT16_T
968INT16_T
969UINT8_T
970INT8_T
971LIBRARY_EXTRA_CPPFLAGS
972MODULE_EXTRA_CPPFLAGS
973LIBSTDCLDFLAGS
974PERL_MAKE_OPTIONS
975QUANTUM_DEPTH
976MAINT
977MAINTAINER_MODE_FALSE
978MAINTAINER_MODE_TRUE
979MAGICK_HDRI
980DLLDFLAGS
981WITH_LTDL_FALSE
982WITH_LTDL_TRUE
983WITH_MODULES_FALSE
984WITH_MODULES_TRUE
985LTCXXLIBOPTS
986LTDLOPEN
987LT_CONFIG_H
988CONVENIENCE_LTDL_FALSE
989CONVENIENCE_LTDL_TRUE
990INSTALL_LTDL_FALSE
991INSTALL_LTDL_TRUE
992ARGZ_H
993sys_symbol_underscore
994LIBADD_DL
995LT_DLPREOPEN
996LIBADD_DLD_LINK
997LIBADD_SHL_LOAD
998LIBADD_DLOPEN
999LT_DLLOADERS
1000INCLTDL
1001LTDLINCL
1002LTDLDEPS
1003LIBLTDL
1004LIBTOOL_DEPS
1005CXXCPP
1006OTOOL64
1007OTOOL
1008LIPO
1009NMEDIT
1010DSYMUTIL
cristy18304f92009-11-22 15:48:26 +00001011lt_ECHO
cristy3ed852e2009-09-05 21:47:34 +00001012AR
1013NM
1014ac_ct_DUMPBIN
1015DUMPBIN
1016LIBTOOL
1017OBJDUMP
1018DLLTOOL
1019AS
1020LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00001021CL_LIBS
1022CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +00001023OPENMP_CFLAGS
1024PTHREAD_CFLAGS
1025PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +00001026PTHREAD_CC
1027acx_pthread_config
1028WinPathScript
1029USING_CL_FALSE
1030USING_CL_TRUE
1031CYGWIN_BUILD_FALSE
1032CYGWIN_BUILD_TRUE
1033WIN32_NATIVE_BUILD_FALSE
1034WIN32_NATIVE_BUILD_TRUE
1035WINGDI32_DELEGATE_FALSE
1036WINGDI32_DELEGATE_TRUE
1037GDI32_LIBS
1038PKG_CONFIG
1039LN_S
cristy3ed852e2009-09-05 21:47:34 +00001040RANLIB
1041LD
1042FGREP
1043EGREP
1044GREP
1045SED
1046CPP
cristy95646052009-11-28 23:05:30 +00001047am__fastdepCXX_FALSE
1048am__fastdepCXX_TRUE
1049CXXDEPMODE
1050ac_ct_CXX
1051CXXFLAGS
1052CXX
cristy3ed852e2009-09-05 21:47:34 +00001053am__fastdepCC_FALSE
1054am__fastdepCC_TRUE
1055CCDEPMODE
1056AMDEPBACKSLASH
1057AMDEP_FALSE
1058AMDEP_TRUE
1059am__quote
1060am__include
1061DEPDIR
1062OBJEXT
1063EXEEXT
1064ac_ct_CC
1065CPPFLAGS
1066LDFLAGS
1067CFLAGS
1068CC
1069DIRSEP
1070MAGICK_FILTER_MODULE_PATH
1071MAGICK_CONFIGURE_BUILD_PATH
1072MAGICK_CONFIGURE_SRC_PATH
1073MAGICK_CODER_MODULE_PATH
1074MAN_DIR
1075INFO_DIR
1076PERSISTINCLUDE_DIR
1077INCLUDE_DIR
1078LIB_DIR
1079LOCALSTATE_DIR
1080SHAREDSTATE_DIR
1081SYSCONF_DIR
1082DATA_DIR
1083LIBEXEC_DIR
1084SBIN_DIR
1085BIN_DIR
1086EXEC_PREFIX_DIR
1087PREFIX_DIR
1088CONFIG_STATUS_DEPENDENCIES
1089MAGICK_LIB_VERSION_NUMBER
1090MAGICK_LIB_VERSION_TEXT
1091MAGICK_LIB_VERSION
1092AM_BACKSLASH
1093AM_DEFAULT_VERBOSITY
1094am__untar
1095am__tar
1096AMTAR
1097am__leading_dot
1098SET_MAKE
1099AWK
1100mkdir_p
1101MKDIR_P
1102INSTALL_STRIP_PROGRAM
1103STRIP
1104install_sh
1105MAKEINFO
1106AUTOHEADER
1107AUTOMAKE
1108AUTOCONF
1109ACLOCAL
1110VERSION
1111PACKAGE
1112CYGPATH_W
1113am__isrc
1114INSTALL_DATA
1115INSTALL_SCRIPT
1116INSTALL_PROGRAM
1117PACKAGE_LIB_SUBVERSION
1118PACKAGE_RELEASE_DATE
1119PACKAGE_LIB_VERSION_NUMBER
1120PACKAGE_LIB_VERSION
1121PACKAGE_CHANGE_DATE
1122PACKAGE_RELEASE
1123MAGICK_LIBRARY_AGE
1124MAGICK_LIBRARY_REVISION
1125MAGICK_LIBRARY_CURRENT
1126target_os
1127target_vendor
1128target_cpu
1129target
1130host_os
1131host_vendor
1132host_cpu
1133host
1134build_os
1135build_vendor
1136build_cpu
1137build
1138CONFIGURE_ARGS
1139DISTCHECK_CONFIG_FLAGS
1140target_alias
1141host_alias
1142build_alias
1143LIBS
1144ECHO_T
1145ECHO_N
1146ECHO_C
1147DEFS
1148mandir
1149localedir
1150libdir
1151psdir
1152pdfdir
1153dvidir
1154htmldir
1155infodir
1156docdir
1157oldincludedir
1158includedir
1159localstatedir
1160sharedstatedir
1161sysconfdir
1162datadir
1163datarootdir
1164libexecdir
1165sbindir
1166bindir
1167program_transform_name
1168prefix
1169exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001170PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001171PACKAGE_BUGREPORT
1172PACKAGE_STRING
1173PACKAGE_VERSION
1174PACKAGE_TARNAME
1175PACKAGE_NAME
1176PATH_SEPARATOR
1177SHELL'
1178ac_subst_files=''
1179ac_user_opts='
1180enable_option_checking
1181enable_silent_rules
1182enable_dependency_tracking
1183with_gnu_ld
1184with_maximum_compile_warnings
1185with_dmalloc
1186enable_bounds_checking
1187enable_osx_universal_binary
1188with_threads
1189enable_openmp
1190enable_largefile
1191enable_shared
1192enable_static
1193with_pic
1194enable_fast_install
1195enable_libtool_lock
1196with_included_ltdl
1197with_ltdl_include
1198with_ltdl_lib
1199enable_ltdl_install
1200with_modules
1201enable_delegate_build
1202enable_deprecated
1203enable_installed
1204enable_cipher
1205enable_embeddable
1206enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001207enable_assert
1208enable_maintainer_mode
1209enable_ccmalloc
1210enable_efence
1211enable_prof
1212enable_gprof
1213enable_gcov
1214with_method_prefix
1215with_quantum_depth
1216with_cache
1217with_frozenpaths
1218with_magick_plus_plus
1219with_perl
1220with_perl_options
1221with_umem
1222with_libstdc
1223with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001224with_x
cristy3ed852e2009-09-05 21:47:34 +00001225with_zlib
1226with_autotrace
1227with_dps
1228with_djvu
1229with_fftw
1230with_fpx
1231with_fontconfig
1232with_freetype
1233with_gslib
1234with_fontpath
1235with_gs_font_dir
1236with_gvc
1237with_jbig
1238with_jpeg
1239with_jp2
1240with_lcms
1241with_lqr
1242with_openexr
1243with_png
1244with_rsvg
1245with_tiff
1246with_windows_font_dir
1247with_wmf
1248with_xml
1249'
1250 ac_precious_vars='build_alias
1251host_alias
1252target_alias
1253CC
1254CFLAGS
1255LDFLAGS
1256LIBS
1257CPPFLAGS
cristy3ed852e2009-09-05 21:47:34 +00001258CXX
1259CXXFLAGS
1260CCC
cristy95646052009-11-28 23:05:30 +00001261CPP
cristy3ed852e2009-09-05 21:47:34 +00001262PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001263CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001264XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001265AUTOTRACE_CFLAGS
1266AUTOTRACE_LIBS
1267FONTCONFIG_CFLAGS
1268FONTCONFIG_LIBS
1269GVC_CFLAGS
1270GVC_LIBS
1271LQR_CFLAGS
1272LQR_LIBS
1273OPENEXR_CFLAGS
1274OPENEXR_LIBS
1275RSVG_CFLAGS
1276RSVG_LIBS
1277CAIRO_SVG_CFLAGS
1278CAIRO_SVG_LIBS'
1279
1280
1281# Initialize some variables set by options.
1282ac_init_help=
1283ac_init_version=false
1284ac_unrecognized_opts=
1285ac_unrecognized_sep=
1286# The variables have the same names as the options, with
1287# dashes changed to underlines.
1288cache_file=/dev/null
1289exec_prefix=NONE
1290no_create=
1291no_recursion=
1292prefix=NONE
1293program_prefix=NONE
1294program_suffix=NONE
1295program_transform_name=s,x,x,
1296silent=
1297site=
1298srcdir=
1299verbose=
1300x_includes=NONE
1301x_libraries=NONE
1302
1303# Installation directory options.
1304# These are left unexpanded so users can "make install exec_prefix=/foo"
1305# and all the variables that are supposed to be based on exec_prefix
1306# by default will actually change.
1307# Use braces instead of parens because sh, perl, etc. also accept them.
1308# (The list follows the same order as the GNU Coding Standards.)
1309bindir='${exec_prefix}/bin'
1310sbindir='${exec_prefix}/sbin'
1311libexecdir='${exec_prefix}/libexec'
1312datarootdir='${prefix}/share'
1313datadir='${datarootdir}'
1314sysconfdir='${prefix}/etc'
1315sharedstatedir='${prefix}/com'
1316localstatedir='${prefix}/var'
1317includedir='${prefix}/include'
1318oldincludedir='/usr/include'
1319docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1320infodir='${datarootdir}/info'
1321htmldir='${docdir}'
1322dvidir='${docdir}'
1323pdfdir='${docdir}'
1324psdir='${docdir}'
1325libdir='${exec_prefix}/lib'
1326localedir='${datarootdir}/locale'
1327mandir='${datarootdir}/man'
1328
1329ac_prev=
1330ac_dashdash=
1331for ac_option
1332do
1333 # If the previous option needs an argument, assign it.
1334 if test -n "$ac_prev"; then
1335 eval $ac_prev=\$ac_option
1336 ac_prev=
1337 continue
1338 fi
1339
1340 case $ac_option in
1341 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1342 *) ac_optarg=yes ;;
1343 esac
1344
1345 # Accept the important Cygnus configure options, so we can diagnose typos.
1346
1347 case $ac_dashdash$ac_option in
1348 --)
1349 ac_dashdash=yes ;;
1350
1351 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1352 ac_prev=bindir ;;
1353 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1354 bindir=$ac_optarg ;;
1355
1356 -build | --build | --buil | --bui | --bu)
1357 ac_prev=build_alias ;;
1358 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1359 build_alias=$ac_optarg ;;
1360
1361 -cache-file | --cache-file | --cache-fil | --cache-fi \
1362 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1363 ac_prev=cache_file ;;
1364 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1365 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1366 cache_file=$ac_optarg ;;
1367
1368 --config-cache | -C)
1369 cache_file=config.cache ;;
1370
1371 -datadir | --datadir | --datadi | --datad)
1372 ac_prev=datadir ;;
1373 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1374 datadir=$ac_optarg ;;
1375
1376 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1377 | --dataroo | --dataro | --datar)
1378 ac_prev=datarootdir ;;
1379 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1380 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1381 datarootdir=$ac_optarg ;;
1382
1383 -disable-* | --disable-*)
1384 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1385 # Reject names that are not valid shell variable names.
1386 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001387 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001388 ac_useropt_orig=$ac_useropt
1389 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1390 case $ac_user_opts in
1391 *"
1392"enable_$ac_useropt"
1393"*) ;;
1394 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1395 ac_unrecognized_sep=', ';;
1396 esac
1397 eval enable_$ac_useropt=no ;;
1398
1399 -docdir | --docdir | --docdi | --doc | --do)
1400 ac_prev=docdir ;;
1401 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1402 docdir=$ac_optarg ;;
1403
1404 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1405 ac_prev=dvidir ;;
1406 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1407 dvidir=$ac_optarg ;;
1408
1409 -enable-* | --enable-*)
1410 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1411 # Reject names that are not valid shell variable names.
1412 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001413 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001414 ac_useropt_orig=$ac_useropt
1415 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1416 case $ac_user_opts in
1417 *"
1418"enable_$ac_useropt"
1419"*) ;;
1420 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1421 ac_unrecognized_sep=', ';;
1422 esac
1423 eval enable_$ac_useropt=\$ac_optarg ;;
1424
1425 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1426 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1427 | --exec | --exe | --ex)
1428 ac_prev=exec_prefix ;;
1429 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1430 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1431 | --exec=* | --exe=* | --ex=*)
1432 exec_prefix=$ac_optarg ;;
1433
1434 -gas | --gas | --ga | --g)
1435 # Obsolete; use --with-gas.
1436 with_gas=yes ;;
1437
1438 -help | --help | --hel | --he | -h)
1439 ac_init_help=long ;;
1440 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1441 ac_init_help=recursive ;;
1442 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1443 ac_init_help=short ;;
1444
1445 -host | --host | --hos | --ho)
1446 ac_prev=host_alias ;;
1447 -host=* | --host=* | --hos=* | --ho=*)
1448 host_alias=$ac_optarg ;;
1449
1450 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1451 ac_prev=htmldir ;;
1452 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1453 | --ht=*)
1454 htmldir=$ac_optarg ;;
1455
1456 -includedir | --includedir | --includedi | --included | --include \
1457 | --includ | --inclu | --incl | --inc)
1458 ac_prev=includedir ;;
1459 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1460 | --includ=* | --inclu=* | --incl=* | --inc=*)
1461 includedir=$ac_optarg ;;
1462
1463 -infodir | --infodir | --infodi | --infod | --info | --inf)
1464 ac_prev=infodir ;;
1465 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1466 infodir=$ac_optarg ;;
1467
1468 -libdir | --libdir | --libdi | --libd)
1469 ac_prev=libdir ;;
1470 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1471 libdir=$ac_optarg ;;
1472
1473 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1474 | --libexe | --libex | --libe)
1475 ac_prev=libexecdir ;;
1476 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1477 | --libexe=* | --libex=* | --libe=*)
1478 libexecdir=$ac_optarg ;;
1479
1480 -localedir | --localedir | --localedi | --localed | --locale)
1481 ac_prev=localedir ;;
1482 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1483 localedir=$ac_optarg ;;
1484
1485 -localstatedir | --localstatedir | --localstatedi | --localstated \
1486 | --localstate | --localstat | --localsta | --localst | --locals)
1487 ac_prev=localstatedir ;;
1488 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1489 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1490 localstatedir=$ac_optarg ;;
1491
1492 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1493 ac_prev=mandir ;;
1494 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1495 mandir=$ac_optarg ;;
1496
1497 -nfp | --nfp | --nf)
1498 # Obsolete; use --without-fp.
1499 with_fp=no ;;
1500
1501 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1502 | --no-cr | --no-c | -n)
1503 no_create=yes ;;
1504
1505 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1506 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1507 no_recursion=yes ;;
1508
1509 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1510 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1511 | --oldin | --oldi | --old | --ol | --o)
1512 ac_prev=oldincludedir ;;
1513 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1514 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1515 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1516 oldincludedir=$ac_optarg ;;
1517
1518 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1519 ac_prev=prefix ;;
1520 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1521 prefix=$ac_optarg ;;
1522
1523 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1524 | --program-pre | --program-pr | --program-p)
1525 ac_prev=program_prefix ;;
1526 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1527 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1528 program_prefix=$ac_optarg ;;
1529
1530 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1531 | --program-suf | --program-su | --program-s)
1532 ac_prev=program_suffix ;;
1533 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1534 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1535 program_suffix=$ac_optarg ;;
1536
1537 -program-transform-name | --program-transform-name \
1538 | --program-transform-nam | --program-transform-na \
1539 | --program-transform-n | --program-transform- \
1540 | --program-transform | --program-transfor \
1541 | --program-transfo | --program-transf \
1542 | --program-trans | --program-tran \
1543 | --progr-tra | --program-tr | --program-t)
1544 ac_prev=program_transform_name ;;
1545 -program-transform-name=* | --program-transform-name=* \
1546 | --program-transform-nam=* | --program-transform-na=* \
1547 | --program-transform-n=* | --program-transform-=* \
1548 | --program-transform=* | --program-transfor=* \
1549 | --program-transfo=* | --program-transf=* \
1550 | --program-trans=* | --program-tran=* \
1551 | --progr-tra=* | --program-tr=* | --program-t=*)
1552 program_transform_name=$ac_optarg ;;
1553
1554 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1555 ac_prev=pdfdir ;;
1556 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1557 pdfdir=$ac_optarg ;;
1558
1559 -psdir | --psdir | --psdi | --psd | --ps)
1560 ac_prev=psdir ;;
1561 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1562 psdir=$ac_optarg ;;
1563
1564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1565 | -silent | --silent | --silen | --sile | --sil)
1566 silent=yes ;;
1567
1568 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1569 ac_prev=sbindir ;;
1570 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1571 | --sbi=* | --sb=*)
1572 sbindir=$ac_optarg ;;
1573
1574 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1575 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1576 | --sharedst | --shareds | --shared | --share | --shar \
1577 | --sha | --sh)
1578 ac_prev=sharedstatedir ;;
1579 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1580 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1581 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1582 | --sha=* | --sh=*)
1583 sharedstatedir=$ac_optarg ;;
1584
1585 -site | --site | --sit)
1586 ac_prev=site ;;
1587 -site=* | --site=* | --sit=*)
1588 site=$ac_optarg ;;
1589
1590 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1591 ac_prev=srcdir ;;
1592 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1593 srcdir=$ac_optarg ;;
1594
1595 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1596 | --syscon | --sysco | --sysc | --sys | --sy)
1597 ac_prev=sysconfdir ;;
1598 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1599 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1600 sysconfdir=$ac_optarg ;;
1601
1602 -target | --target | --targe | --targ | --tar | --ta | --t)
1603 ac_prev=target_alias ;;
1604 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1605 target_alias=$ac_optarg ;;
1606
1607 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1608 verbose=yes ;;
1609
1610 -version | --version | --versio | --versi | --vers | -V)
1611 ac_init_version=: ;;
1612
1613 -with-* | --with-*)
1614 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1615 # Reject names that are not valid shell variable names.
1616 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001617 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001618 ac_useropt_orig=$ac_useropt
1619 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1620 case $ac_user_opts in
1621 *"
1622"with_$ac_useropt"
1623"*) ;;
1624 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1625 ac_unrecognized_sep=', ';;
1626 esac
1627 eval with_$ac_useropt=\$ac_optarg ;;
1628
1629 -without-* | --without-*)
1630 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1631 # Reject names that are not valid shell variable names.
1632 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001633 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001634 ac_useropt_orig=$ac_useropt
1635 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1636 case $ac_user_opts in
1637 *"
1638"with_$ac_useropt"
1639"*) ;;
1640 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1641 ac_unrecognized_sep=', ';;
1642 esac
1643 eval with_$ac_useropt=no ;;
1644
1645 --x)
1646 # Obsolete; use --with-x.
1647 with_x=yes ;;
1648
1649 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1650 | --x-incl | --x-inc | --x-in | --x-i)
1651 ac_prev=x_includes ;;
1652 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1653 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1654 x_includes=$ac_optarg ;;
1655
1656 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1657 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1658 ac_prev=x_libraries ;;
1659 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1660 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1661 x_libraries=$ac_optarg ;;
1662
cristy8b350f62009-11-15 23:12:43 +00001663 -*) as_fn_error "unrecognized option: \`$ac_option'
1664Try \`$0 --help' for more information."
cristy3ed852e2009-09-05 21:47:34 +00001665 ;;
1666
1667 *=*)
1668 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1669 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001670 case $ac_envvar in #(
1671 '' | [0-9]* | *[!_$as_cr_alnum]* )
1672 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1673 esac
cristy3ed852e2009-09-05 21:47:34 +00001674 eval $ac_envvar=\$ac_optarg
1675 export $ac_envvar ;;
1676
1677 *)
1678 # FIXME: should be removed in autoconf 3.0.
1679 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1680 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1681 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1682 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1683 ;;
1684
1685 esac
1686done
1687
1688if test -n "$ac_prev"; then
1689 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy8b350f62009-11-15 23:12:43 +00001690 as_fn_error "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001691fi
1692
1693if test -n "$ac_unrecognized_opts"; then
1694 case $enable_option_checking in
1695 no) ;;
cristy8b350f62009-11-15 23:12:43 +00001696 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001697 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1698 esac
1699fi
1700
1701# Check all directory arguments for consistency.
1702for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1703 datadir sysconfdir sharedstatedir localstatedir includedir \
1704 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1705 libdir localedir mandir
1706do
1707 eval ac_val=\$$ac_var
1708 # Remove trailing slashes.
1709 case $ac_val in
1710 */ )
1711 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1712 eval $ac_var=\$ac_val;;
1713 esac
1714 # Be sure to have absolute directory names.
1715 case $ac_val in
1716 [\\/$]* | ?:[\\/]* ) continue;;
1717 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1718 esac
cristy8b350f62009-11-15 23:12:43 +00001719 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001720done
1721
1722# There might be people who depend on the old broken behavior: `$host'
1723# used to hold the argument of --host etc.
1724# FIXME: To remove some day.
1725build=$build_alias
1726host=$host_alias
1727target=$target_alias
1728
1729# FIXME: To remove some day.
1730if test "x$host_alias" != x; then
1731 if test "x$build_alias" = x; then
1732 cross_compiling=maybe
1733 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1734 If a cross compiler is detected then cross compile mode will be used." >&2
1735 elif test "x$build_alias" != "x$host_alias"; then
1736 cross_compiling=yes
1737 fi
1738fi
1739
1740ac_tool_prefix=
1741test -n "$host_alias" && ac_tool_prefix=$host_alias-
1742
1743test "$silent" = yes && exec 6>/dev/null
1744
1745
1746ac_pwd=`pwd` && test -n "$ac_pwd" &&
1747ac_ls_di=`ls -di .` &&
1748ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy8b350f62009-11-15 23:12:43 +00001749 as_fn_error "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001750test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy8b350f62009-11-15 23:12:43 +00001751 as_fn_error "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001752
1753
1754# Find the source files, if location was not specified.
1755if test -z "$srcdir"; then
1756 ac_srcdir_defaulted=yes
1757 # Try the directory containing this script, then the parent directory.
1758 ac_confdir=`$as_dirname -- "$as_myself" ||
1759$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1760 X"$as_myself" : 'X\(//\)[^/]' \| \
1761 X"$as_myself" : 'X\(//\)$' \| \
1762 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1763$as_echo X"$as_myself" |
1764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1765 s//\1/
1766 q
1767 }
1768 /^X\(\/\/\)[^/].*/{
1769 s//\1/
1770 q
1771 }
1772 /^X\(\/\/\)$/{
1773 s//\1/
1774 q
1775 }
1776 /^X\(\/\).*/{
1777 s//\1/
1778 q
1779 }
1780 s/.*/./; q'`
1781 srcdir=$ac_confdir
1782 if test ! -r "$srcdir/$ac_unique_file"; then
1783 srcdir=..
1784 fi
1785else
1786 ac_srcdir_defaulted=no
1787fi
1788if test ! -r "$srcdir/$ac_unique_file"; then
1789 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy8b350f62009-11-15 23:12:43 +00001790 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001791fi
1792ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1793ac_abs_confdir=`(
cristy8b350f62009-11-15 23:12:43 +00001794 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001795 pwd)`
1796# When building in place, set srcdir=.
1797if test "$ac_abs_confdir" = "$ac_pwd"; then
1798 srcdir=.
1799fi
1800# Remove unnecessary trailing slashes from srcdir.
1801# Double slashes in file names in object file debugging info
1802# mess up M-x gdb in Emacs.
1803case $srcdir in
1804*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1805esac
1806for ac_var in $ac_precious_vars; do
1807 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1808 eval ac_env_${ac_var}_value=\$${ac_var}
1809 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1810 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1811done
1812
1813#
1814# Report the --help message.
1815#
1816if test "$ac_init_help" = "long"; then
1817 # Omit some internal or obsolete options to make the list less imposing.
1818 # This message is too long to be a string in the A/UX 3.1 sh.
1819 cat <<_ACEOF
cristy89effd22009-11-24 20:56:45 +00001820\`configure' configures ImageMagick 6.5.8 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001821
1822Usage: $0 [OPTION]... [VAR=VALUE]...
1823
1824To assign environment variables (e.g., CC, CFLAGS...), specify them as
1825VAR=VALUE. See below for descriptions of some of the useful variables.
1826
1827Defaults for the options are specified in brackets.
1828
1829Configuration:
1830 -h, --help display this help and exit
1831 --help=short display options specific to this package
1832 --help=recursive display the short help of all the included packages
1833 -V, --version display version information and exit
1834 -q, --quiet, --silent do not print \`checking...' messages
1835 --cache-file=FILE cache test results in FILE [disabled]
1836 -C, --config-cache alias for \`--cache-file=config.cache'
1837 -n, --no-create do not create output files
1838 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1839
1840Installation directories:
1841 --prefix=PREFIX install architecture-independent files in PREFIX
1842 [$ac_default_prefix]
1843 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1844 [PREFIX]
1845
1846By default, \`make install' will install all the files in
1847\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1848an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1849for instance \`--prefix=\$HOME'.
1850
1851For better control, use the options below.
1852
1853Fine tuning of the installation directories:
1854 --bindir=DIR user executables [EPREFIX/bin]
1855 --sbindir=DIR system admin executables [EPREFIX/sbin]
1856 --libexecdir=DIR program executables [EPREFIX/libexec]
1857 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1858 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1859 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1860 --libdir=DIR object code libraries [EPREFIX/lib]
1861 --includedir=DIR C header files [PREFIX/include]
1862 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1863 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1864 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1865 --infodir=DIR info documentation [DATAROOTDIR/info]
1866 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1867 --mandir=DIR man documentation [DATAROOTDIR/man]
1868 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1869 --htmldir=DIR html documentation [DOCDIR]
1870 --dvidir=DIR dvi documentation [DOCDIR]
1871 --pdfdir=DIR pdf documentation [DOCDIR]
1872 --psdir=DIR ps documentation [DOCDIR]
1873_ACEOF
1874
1875 cat <<\_ACEOF
1876
1877Program names:
1878 --program-prefix=PREFIX prepend PREFIX to installed program names
1879 --program-suffix=SUFFIX append SUFFIX to installed program names
1880 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1881
1882X features:
1883 --x-includes=DIR X include files are in DIR
1884 --x-libraries=DIR X library files are in DIR
1885
1886System types:
1887 --build=BUILD configure for building on BUILD [guessed]
1888 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1889 --target=TARGET configure for building compilers for TARGET [HOST]
1890_ACEOF
1891fi
1892
1893if test -n "$ac_init_help"; then
1894 case $ac_init_help in
cristy89effd22009-11-24 20:56:45 +00001895 short | recursive ) echo "Configuration of ImageMagick 6.5.8:";;
cristy3ed852e2009-09-05 21:47:34 +00001896 esac
1897 cat <<\_ACEOF
1898
1899Optional Features:
1900 --disable-option-checking ignore unrecognized --enable/--with options
1901 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1902 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1903 --enable-silent-rules less verbose build output (undo: `make V=1')
1904 --disable-silent-rules verbose build output (undo: `make V=0')
1905 --disable-dependency-tracking speeds up one-time build
1906 --enable-dependency-tracking do not reject slow dependency extractors
1907 --bounds-checking enable run-time bounds-checking
1908 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001909 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001910 --disable-openmp do not use OpenMP
1911 --disable-largefile omit support for large files
1912 --enable-shared[=PKGS] build shared libraries [default=yes]
1913 --enable-static[=PKGS] build static libraries [default=yes]
1914 --enable-fast-install[=PKGS]
1915 optimize for fast installation [default=yes]
1916 --disable-libtool-lock avoid locking (might break parallel builds)
1917 --enable-ltdl-install install libltdl
1918 --enable-delegate-build look for delegate libraries in build directory
1919 --disable-deprecated exclude deprecated methods in MagickCore and
1920 MagickWand API's
1921 --disable-installed Formally install ImageMagick under PREFIX
1922 --disable-cipher disable enciphering and deciphering image pixels
1923 --enable-embeddable enable self-contained, embeddable,
1924 zero-configuration ImageMagick
1925 --enable-hdri accurately represent the wide range of intensity
1926 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001927 --disable-assert disable assert() statements in build
1928 --enable-maintainer-mode enable make rules and dependencies not useful
1929 (and sometimes confusing) to the casual installer
1930 --enable-ccmalloc enable 'ccmalloc' memory debug support
1931 --enable-efence enable 'efence' memory debug support
1932 --enable-prof enable 'prof' profiling support
1933 --enable-gprof enable 'gprof' profiling support
1934 --enable-gcov enable 'gcov' profiling support
1935
1936Optional Packages:
1937 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1938 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1939 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1940 --without-maximum-compile-warnings
1941 Disable maximum warning verbosity
1942 --with-dmalloc use dmalloc, as in
1943 http://www.dmalloc.com/dmalloc.tar.gz
1944 --without-threads disable threads support
1945 --with-pic try to use only PIC/non-PIC objects [default=use
1946 both]
1947 --with-included-ltdl use the GNU ltdl sources included here
1948 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1949 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1950 --with-modules enable building dynamically loadable modules
1951 --with-method-prefix=PREFIX
1952 prefix MagickCore API methods
1953 --with-quantum-depth=DEPTH
1954 number of bits in a pixel quantum (default 16)
1955 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1956 memory)
1957 --with-frozenpaths freeze delegate paths
1958 --without-magick-plus-plus
1959 disable build/install of Magick++
1960 --with-perl enable build/install of PerlMagick
1961 --with-perl-options=OPTIONS
1962 options to pass on command-line when generating
1963 PerlMagick's build file
1964 --with-umem enable umem memory allocation library support
1965 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1966 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001967 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001968 --without-zlib disable ZLIB support
1969 --with-autotrace enable autotrace support
1970 --without-dps disable Display Postscript support
1971 --without-djvu disable DjVu support
1972 --without-fftw disable FFTW support
1973 --without-fpx disable FlashPIX support
1974 --without-fontconfig disable fontconfig support
1975 --without-freetype disable Freetype support
1976 --without-gslib enable Ghostscript library support
1977 --with-fontpath=DIR prepend to default font search path
1978 --with-gs-font-dir=DIR Ghostscript font directory
1979 --without-gvc disable GVC support
1980 --without-jbig disable JBIG support
1981 --without-jpeg disable JPEG support
1982 --without-jp2 disable JPEG-2000 support
1983 --without-lcms disable LCMS support
1984 --without-lqr disable Liquid Rescale support (experimental)
1985 --without-openexr disable OpenEXR support
1986 --without-png disable PNG support
1987 --without-rsvg disable RSVG support
1988 --without-tiff disable TIFF support
1989 --with-windows-font-dir=DIR
1990 directory containing MS-Windows fonts
1991 --without-wmf disable WMF support
1992 --without-xml disable XML support
1993
1994Some influential environment variables:
1995 CC C compiler command
1996 CFLAGS C compiler flags
1997 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1998 nonstandard directory <lib dir>
1999 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002000 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002001 you have headers in a nonstandard directory <include dir>
cristy3ed852e2009-09-05 21:47:34 +00002002 CXX C++ compiler command
2003 CXXFLAGS C++ compiler flags
cristy95646052009-11-28 23:05:30 +00002004 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002005 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00002006 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00002007 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00002008 AUTOTRACE_CFLAGS
2009 C compiler flags for AUTOTRACE, overriding pkg-config
2010 AUTOTRACE_LIBS
2011 linker flags for AUTOTRACE, overriding pkg-config
2012 FONTCONFIG_CFLAGS
2013 C compiler flags for FONTCONFIG, overriding pkg-config
2014 FONTCONFIG_LIBS
2015 linker flags for FONTCONFIG, overriding pkg-config
2016 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2017 GVC_LIBS linker flags for GVC, overriding pkg-config
2018 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2019 LQR_LIBS linker flags for LQR, overriding pkg-config
2020 OPENEXR_CFLAGS
2021 C compiler flags for OPENEXR, overriding pkg-config
2022 OPENEXR_LIBS
2023 linker flags for OPENEXR, overriding pkg-config
2024 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2025 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2026 CAIRO_SVG_CFLAGS
2027 C compiler flags for CAIRO_SVG, overriding pkg-config
2028 CAIRO_SVG_LIBS
2029 linker flags for CAIRO_SVG, overriding pkg-config
2030
2031Use these variables to override the choices made by `configure' or to help
2032it to find libraries and programs with nonstandard names/locations.
2033
2034Report bugs to <http://www.imagemagick.org>.
2035_ACEOF
2036ac_status=$?
2037fi
2038
2039if test "$ac_init_help" = "recursive"; then
2040 # If there are subdirs, report their specific --help.
2041 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2042 test -d "$ac_dir" ||
2043 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2044 continue
2045 ac_builddir=.
2046
2047case "$ac_dir" in
2048.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2049*)
2050 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2051 # A ".." for each directory in $ac_dir_suffix.
2052 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2053 case $ac_top_builddir_sub in
2054 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2055 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2056 esac ;;
2057esac
2058ac_abs_top_builddir=$ac_pwd
2059ac_abs_builddir=$ac_pwd$ac_dir_suffix
2060# for backward compatibility:
2061ac_top_builddir=$ac_top_build_prefix
2062
2063case $srcdir in
2064 .) # We are building in place.
2065 ac_srcdir=.
2066 ac_top_srcdir=$ac_top_builddir_sub
2067 ac_abs_top_srcdir=$ac_pwd ;;
2068 [\\/]* | ?:[\\/]* ) # Absolute name.
2069 ac_srcdir=$srcdir$ac_dir_suffix;
2070 ac_top_srcdir=$srcdir
2071 ac_abs_top_srcdir=$srcdir ;;
2072 *) # Relative name.
2073 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2074 ac_top_srcdir=$ac_top_build_prefix$srcdir
2075 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2076esac
2077ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2078
2079 cd "$ac_dir" || { ac_status=$?; continue; }
2080 # Check for guested configure.
2081 if test -f "$ac_srcdir/configure.gnu"; then
2082 echo &&
2083 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2084 elif test -f "$ac_srcdir/configure"; then
2085 echo &&
2086 $SHELL "$ac_srcdir/configure" --help=recursive
2087 else
2088 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2089 fi || ac_status=$?
2090 cd "$ac_pwd" || { ac_status=$?; break; }
2091 done
2092fi
2093
2094test -n "$ac_init_help" && exit $ac_status
2095if $ac_init_version; then
2096 cat <<\_ACEOF
cristy89effd22009-11-24 20:56:45 +00002097ImageMagick configure 6.5.8
cristycd4c5312009-11-22 01:19:08 +00002098generated by GNU Autoconf 2.65
cristy3ed852e2009-09-05 21:47:34 +00002099
cristy8b350f62009-11-15 23:12:43 +00002100Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002101This configure script is free software; the Free Software Foundation
2102gives unlimited permission to copy, distribute and modify it.
2103_ACEOF
2104 exit
2105fi
cristy8b350f62009-11-15 23:12:43 +00002106
2107## ------------------------ ##
2108## Autoconf initialization. ##
2109## ------------------------ ##
2110
2111# ac_fn_c_try_compile LINENO
2112# --------------------------
2113# Try to compile conftest.$ac_ext, and return whether this succeeded.
2114ac_fn_c_try_compile ()
2115{
2116 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117 rm -f conftest.$ac_objext
2118 if { { ac_try="$ac_compile"
2119case "(($ac_try" in
2120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2122esac
2123eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2124$as_echo "$ac_try_echo"; } >&5
2125 (eval "$ac_compile") 2>conftest.err
2126 ac_status=$?
2127 if test -s conftest.err; then
2128 grep -v '^ *+' conftest.err >conftest.er1
2129 cat conftest.er1 >&5
2130 mv -f conftest.er1 conftest.err
2131 fi
2132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2133 test $ac_status = 0; } && {
2134 test -z "$ac_c_werror_flag" ||
2135 test ! -s conftest.err
2136 } && test -s conftest.$ac_objext; then :
2137 ac_retval=0
2138else
2139 $as_echo "$as_me: failed program was:" >&5
2140sed 's/^/| /' conftest.$ac_ext >&5
2141
2142 ac_retval=1
2143fi
2144 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002145 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002146
2147} # ac_fn_c_try_compile
2148
cristy8b350f62009-11-15 23:12:43 +00002149# ac_fn_cxx_try_compile LINENO
2150# ----------------------------
2151# Try to compile conftest.$ac_ext, and return whether this succeeded.
2152ac_fn_cxx_try_compile ()
2153{
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 rm -f conftest.$ac_objext
2156 if { { ac_try="$ac_compile"
2157case "(($ac_try" in
2158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159 *) ac_try_echo=$ac_try;;
2160esac
2161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2162$as_echo "$ac_try_echo"; } >&5
2163 (eval "$ac_compile") 2>conftest.err
2164 ac_status=$?
2165 if test -s conftest.err; then
2166 grep -v '^ *+' conftest.err >conftest.er1
2167 cat conftest.er1 >&5
2168 mv -f conftest.er1 conftest.err
2169 fi
2170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2171 test $ac_status = 0; } && {
2172 test -z "$ac_cxx_werror_flag" ||
2173 test ! -s conftest.err
2174 } && test -s conftest.$ac_objext; then :
2175 ac_retval=0
2176else
2177 $as_echo "$as_me: failed program was:" >&5
2178sed 's/^/| /' conftest.$ac_ext >&5
2179
2180 ac_retval=1
2181fi
2182 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002183 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002184
2185} # ac_fn_cxx_try_compile
2186
cristy95646052009-11-28 23:05:30 +00002187# ac_fn_c_try_cpp LINENO
2188# ----------------------
2189# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2190ac_fn_c_try_cpp ()
2191{
2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193 if { { ac_try="$ac_cpp conftest.$ac_ext"
2194case "(($ac_try" in
2195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2196 *) ac_try_echo=$ac_try;;
2197esac
2198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2199$as_echo "$ac_try_echo"; } >&5
2200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2201 ac_status=$?
2202 if test -s conftest.err; then
2203 grep -v '^ *+' conftest.err >conftest.er1
2204 cat conftest.er1 >&5
2205 mv -f conftest.er1 conftest.err
2206 fi
2207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2208 test $ac_status = 0; } >/dev/null && {
2209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2210 test ! -s conftest.err
2211 }; then :
2212 ac_retval=0
2213else
2214 $as_echo "$as_me: failed program was:" >&5
2215sed 's/^/| /' conftest.$ac_ext >&5
2216
2217 ac_retval=1
2218fi
2219 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2220 as_fn_set_status $ac_retval
2221
2222} # ac_fn_c_try_cpp
2223
cristy8b350f62009-11-15 23:12:43 +00002224# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2225# -------------------------------------------------------
2226# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2227# the include files in INCLUDES and setting the cache variable VAR
2228# accordingly.
2229ac_fn_c_check_header_mongrel ()
2230{
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2234$as_echo_n "checking for $2... " >&6; }
2235if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2236 $as_echo_n "(cached) " >&6
2237fi
2238eval ac_res=\$$3
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240$as_echo "$ac_res" >&6; }
2241else
2242 # Is the header compilable?
2243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2244$as_echo_n "checking $2 usability... " >&6; }
2245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246/* end confdefs.h. */
2247$4
2248#include <$2>
2249_ACEOF
2250if ac_fn_c_try_compile "$LINENO"; then :
2251 ac_header_compiler=yes
2252else
2253 ac_header_compiler=no
2254fi
2255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2257$as_echo "$ac_header_compiler" >&6; }
2258
2259# Is the header present?
2260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2261$as_echo_n "checking $2 presence... " >&6; }
2262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263/* end confdefs.h. */
2264#include <$2>
2265_ACEOF
2266if ac_fn_c_try_cpp "$LINENO"; then :
2267 ac_header_preproc=yes
2268else
2269 ac_header_preproc=no
2270fi
2271rm -f conftest.err conftest.$ac_ext
2272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2273$as_echo "$ac_header_preproc" >&6; }
2274
2275# So? What about this header?
2276case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2277 yes:no: )
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2279$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2281$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2282 ;;
2283 no:yes:* )
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2285$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2287$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2289$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2291$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2293$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2294( cat <<\_ASBOX
2295## ----------------------------------------- ##
2296## Report this to http://www.imagemagick.org ##
2297## ----------------------------------------- ##
2298_ASBOX
2299 ) | sed "s/^/$as_me: WARNING: /" >&2
2300 ;;
2301esac
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2303$as_echo_n "checking for $2... " >&6; }
2304if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2305 $as_echo_n "(cached) " >&6
2306else
2307 eval "$3=\$ac_header_compiler"
2308fi
2309eval ac_res=\$$3
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311$as_echo "$ac_res" >&6; }
2312fi
2313 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2314
2315} # ac_fn_c_check_header_mongrel
2316
2317# ac_fn_c_try_run LINENO
2318# ----------------------
2319# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2320# that executables *can* be run.
2321ac_fn_c_try_run ()
2322{
2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324 if { { ac_try="$ac_link"
2325case "(($ac_try" in
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2328esac
2329eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2330$as_echo "$ac_try_echo"; } >&5
2331 (eval "$ac_link") 2>&5
2332 ac_status=$?
2333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2334 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2335 { { case "(($ac_try" in
2336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337 *) ac_try_echo=$ac_try;;
2338esac
2339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2340$as_echo "$ac_try_echo"; } >&5
2341 (eval "$ac_try") 2>&5
2342 ac_status=$?
2343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2344 test $ac_status = 0; }; }; then :
2345 ac_retval=0
2346else
2347 $as_echo "$as_me: program exited with status $ac_status" >&5
2348 $as_echo "$as_me: failed program was:" >&5
2349sed 's/^/| /' conftest.$ac_ext >&5
2350
2351 ac_retval=$ac_status
2352fi
2353 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2354 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002355 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002356
2357} # ac_fn_c_try_run
2358
2359# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2360# -------------------------------------------------------
2361# Tests whether HEADER exists and can be compiled using the include files in
2362# INCLUDES, setting the cache variable VAR accordingly.
2363ac_fn_c_check_header_compile ()
2364{
2365 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2367$as_echo_n "checking for $2... " >&6; }
2368if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2369 $as_echo_n "(cached) " >&6
2370else
2371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372/* end confdefs.h. */
2373$4
2374#include <$2>
2375_ACEOF
2376if ac_fn_c_try_compile "$LINENO"; then :
2377 eval "$3=yes"
2378else
2379 eval "$3=no"
2380fi
2381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382fi
2383eval ac_res=\$$3
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2385$as_echo "$ac_res" >&6; }
2386 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2387
2388} # ac_fn_c_check_header_compile
2389
2390# ac_fn_c_try_link LINENO
2391# -----------------------
2392# Try to link conftest.$ac_ext, and return whether this succeeded.
2393ac_fn_c_try_link ()
2394{
2395 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2396 rm -f conftest.$ac_objext conftest$ac_exeext
2397 if { { ac_try="$ac_link"
2398case "(($ac_try" in
2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400 *) ac_try_echo=$ac_try;;
2401esac
2402eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2403$as_echo "$ac_try_echo"; } >&5
2404 (eval "$ac_link") 2>conftest.err
2405 ac_status=$?
2406 if test -s conftest.err; then
2407 grep -v '^ *+' conftest.err >conftest.er1
2408 cat conftest.er1 >&5
2409 mv -f conftest.er1 conftest.err
2410 fi
2411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2412 test $ac_status = 0; } && {
2413 test -z "$ac_c_werror_flag" ||
2414 test ! -s conftest.err
2415 } && test -s conftest$ac_exeext && {
2416 test "$cross_compiling" = yes ||
2417 $as_test_x conftest$ac_exeext
2418 }; then :
2419 ac_retval=0
2420else
2421 $as_echo "$as_me: failed program was:" >&5
2422sed 's/^/| /' conftest.$ac_ext >&5
2423
2424 ac_retval=1
2425fi
2426 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2427 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2428 # interfere with the next link command; also delete a directory that is
2429 # left behind by Apple's compiler. We do this before executing the actions.
2430 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2431 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002432 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002433
2434} # ac_fn_c_try_link
2435
2436# ac_fn_c_check_func LINENO FUNC VAR
2437# ----------------------------------
2438# Tests whether FUNC exists, setting the cache variable VAR accordingly
2439ac_fn_c_check_func ()
2440{
2441 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2443$as_echo_n "checking for $2... " >&6; }
2444if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2445 $as_echo_n "(cached) " >&6
2446else
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448/* end confdefs.h. */
2449/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2451#define $2 innocuous_$2
2452
2453/* System header to define __stub macros and hopefully few prototypes,
2454 which can conflict with char $2 (); below.
2455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2456 <limits.h> exists even on freestanding compilers. */
2457
2458#ifdef __STDC__
2459# include <limits.h>
2460#else
2461# include <assert.h>
2462#endif
2463
2464#undef $2
2465
2466/* Override any GCC internal prototype to avoid an error.
2467 Use char because int might match the return type of a GCC
2468 builtin and then its argument prototype would still apply. */
2469#ifdef __cplusplus
2470extern "C"
2471#endif
2472char $2 ();
2473/* The GNU C library defines this for functions which it implements
2474 to always fail with ENOSYS. Some functions are actually named
2475 something starting with __ and the normal name is an alias. */
2476#if defined __stub_$2 || defined __stub___$2
2477choke me
2478#endif
2479
2480int
2481main ()
2482{
2483return $2 ();
2484 ;
2485 return 0;
2486}
2487_ACEOF
2488if ac_fn_c_try_link "$LINENO"; then :
2489 eval "$3=yes"
2490else
2491 eval "$3=no"
2492fi
2493rm -f core conftest.err conftest.$ac_objext \
2494 conftest$ac_exeext conftest.$ac_ext
2495fi
2496eval ac_res=\$$3
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2498$as_echo "$ac_res" >&6; }
2499 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2500
2501} # ac_fn_c_check_func
2502
2503# ac_fn_cxx_try_cpp LINENO
2504# ------------------------
2505# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2506ac_fn_cxx_try_cpp ()
2507{
2508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2509 if { { ac_try="$ac_cpp conftest.$ac_ext"
2510case "(($ac_try" in
2511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512 *) ac_try_echo=$ac_try;;
2513esac
2514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2515$as_echo "$ac_try_echo"; } >&5
2516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2517 ac_status=$?
2518 if test -s conftest.err; then
2519 grep -v '^ *+' conftest.err >conftest.er1
2520 cat conftest.er1 >&5
2521 mv -f conftest.er1 conftest.err
2522 fi
2523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2524 test $ac_status = 0; } >/dev/null && {
2525 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2526 test ! -s conftest.err
2527 }; then :
2528 ac_retval=0
2529else
2530 $as_echo "$as_me: failed program was:" >&5
2531sed 's/^/| /' conftest.$ac_ext >&5
2532
2533 ac_retval=1
2534fi
2535 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002536 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002537
2538} # ac_fn_cxx_try_cpp
2539
2540# ac_fn_cxx_try_link LINENO
2541# -------------------------
2542# Try to link conftest.$ac_ext, and return whether this succeeded.
2543ac_fn_cxx_try_link ()
2544{
2545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2546 rm -f conftest.$ac_objext conftest$ac_exeext
2547 if { { ac_try="$ac_link"
2548case "(($ac_try" in
2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550 *) ac_try_echo=$ac_try;;
2551esac
2552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2553$as_echo "$ac_try_echo"; } >&5
2554 (eval "$ac_link") 2>conftest.err
2555 ac_status=$?
2556 if test -s conftest.err; then
2557 grep -v '^ *+' conftest.err >conftest.er1
2558 cat conftest.er1 >&5
2559 mv -f conftest.er1 conftest.err
2560 fi
2561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2562 test $ac_status = 0; } && {
2563 test -z "$ac_cxx_werror_flag" ||
2564 test ! -s conftest.err
2565 } && test -s conftest$ac_exeext && {
2566 test "$cross_compiling" = yes ||
2567 $as_test_x conftest$ac_exeext
2568 }; then :
2569 ac_retval=0
2570else
2571 $as_echo "$as_me: failed program was:" >&5
2572sed 's/^/| /' conftest.$ac_ext >&5
2573
2574 ac_retval=1
2575fi
2576 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2577 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2578 # interfere with the next link command; also delete a directory that is
2579 # left behind by Apple's compiler. We do this before executing the actions.
2580 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2581 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002582 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002583
2584} # ac_fn_cxx_try_link
2585
2586# ac_fn_c_check_decl LINENO SYMBOL VAR
2587# ------------------------------------
2588# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2589ac_fn_c_check_decl ()
2590{
2591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2593$as_echo_n "checking whether $2 is declared... " >&6; }
2594if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2595 $as_echo_n "(cached) " >&6
2596else
2597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598/* end confdefs.h. */
2599$4
2600int
2601main ()
2602{
2603#ifndef $2
2604 (void) $2;
2605#endif
2606
2607 ;
2608 return 0;
2609}
2610_ACEOF
2611if ac_fn_c_try_compile "$LINENO"; then :
2612 eval "$3=yes"
2613else
2614 eval "$3=no"
2615fi
2616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617fi
2618eval ac_res=\$$3
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2620$as_echo "$ac_res" >&6; }
2621 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2622
2623} # ac_fn_c_check_decl
2624
2625# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2626# -------------------------------------------
2627# Tests whether TYPE exists after having included INCLUDES, setting cache
2628# variable VAR accordingly.
2629ac_fn_c_check_type ()
2630{
2631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2633$as_echo_n "checking for $2... " >&6; }
2634if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2635 $as_echo_n "(cached) " >&6
2636else
2637 eval "$3=no"
2638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639/* end confdefs.h. */
2640$4
2641int
2642main ()
2643{
2644if (sizeof ($2))
2645 return 0;
2646 ;
2647 return 0;
2648}
2649_ACEOF
2650if ac_fn_c_try_compile "$LINENO"; then :
2651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652/* end confdefs.h. */
2653$4
2654int
2655main ()
2656{
2657if (sizeof (($2)))
2658 return 0;
2659 ;
2660 return 0;
2661}
2662_ACEOF
2663if ac_fn_c_try_compile "$LINENO"; then :
2664
2665else
2666 eval "$3=yes"
2667fi
2668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2669fi
2670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2671fi
2672eval ac_res=\$$3
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2674$as_echo "$ac_res" >&6; }
2675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2676
2677} # ac_fn_c_check_type
2678
2679# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2680# --------------------------------------------
2681# Tries to find the compile-time value of EXPR in a program that includes
2682# INCLUDES, setting VAR accordingly. Returns whether the value could be
2683# computed
2684ac_fn_c_compute_int ()
2685{
2686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2687 if test "$cross_compiling" = yes; then
2688 # Depending upon the size, compute the lo and hi bounds.
2689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2690/* end confdefs.h. */
2691$4
2692int
2693main ()
2694{
2695static int test_array [1 - 2 * !(($2) >= 0)];
2696test_array [0] = 0
2697
2698 ;
2699 return 0;
2700}
2701_ACEOF
2702if ac_fn_c_try_compile "$LINENO"; then :
2703 ac_lo=0 ac_mid=0
2704 while :; do
2705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2706/* end confdefs.h. */
2707$4
2708int
2709main ()
2710{
2711static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2712test_array [0] = 0
2713
2714 ;
2715 return 0;
2716}
2717_ACEOF
2718if ac_fn_c_try_compile "$LINENO"; then :
2719 ac_hi=$ac_mid; break
2720else
2721 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2722 if test $ac_lo -le $ac_mid; then
2723 ac_lo= ac_hi=
2724 break
2725 fi
2726 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2727fi
2728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2729 done
2730else
2731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2732/* end confdefs.h. */
2733$4
2734int
2735main ()
2736{
2737static int test_array [1 - 2 * !(($2) < 0)];
2738test_array [0] = 0
2739
2740 ;
2741 return 0;
2742}
2743_ACEOF
2744if ac_fn_c_try_compile "$LINENO"; then :
2745 ac_hi=-1 ac_mid=-1
2746 while :; do
2747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2748/* end confdefs.h. */
2749$4
2750int
2751main ()
2752{
2753static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2754test_array [0] = 0
2755
2756 ;
2757 return 0;
2758}
2759_ACEOF
2760if ac_fn_c_try_compile "$LINENO"; then :
2761 ac_lo=$ac_mid; break
2762else
2763 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2764 if test $ac_mid -le $ac_hi; then
2765 ac_lo= ac_hi=
2766 break
2767 fi
2768 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2769fi
2770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 done
2772else
2773 ac_lo= ac_hi=
2774fi
2775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2776fi
2777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2778# Binary search between lo and hi bounds.
2779while test "x$ac_lo" != "x$ac_hi"; do
2780 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2782/* end confdefs.h. */
2783$4
2784int
2785main ()
2786{
2787static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2788test_array [0] = 0
2789
2790 ;
2791 return 0;
2792}
2793_ACEOF
2794if ac_fn_c_try_compile "$LINENO"; then :
2795 ac_hi=$ac_mid
2796else
2797 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2798fi
2799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2800done
2801case $ac_lo in #((
2802?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2803'') ac_retval=1 ;;
2804esac
2805 else
2806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807/* end confdefs.h. */
2808$4
2809static long int longval () { return $2; }
2810static unsigned long int ulongval () { return $2; }
2811#include <stdio.h>
2812#include <stdlib.h>
2813int
2814main ()
2815{
2816
2817 FILE *f = fopen ("conftest.val", "w");
2818 if (! f)
2819 return 1;
2820 if (($2) < 0)
2821 {
2822 long int i = longval ();
2823 if (i != ($2))
2824 return 1;
2825 fprintf (f, "%ld", i);
2826 }
2827 else
2828 {
2829 unsigned long int i = ulongval ();
2830 if (i != ($2))
2831 return 1;
2832 fprintf (f, "%lu", i);
2833 }
2834 /* Do not output a trailing newline, as this causes \r\n confusion
2835 on some platforms. */
2836 return ferror (f) || fclose (f) != 0;
2837
2838 ;
2839 return 0;
2840}
2841_ACEOF
2842if ac_fn_c_try_run "$LINENO"; then :
2843 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2844else
2845 ac_retval=1
2846fi
2847rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2848 conftest.$ac_objext conftest.beam conftest.$ac_ext
2849rm -f conftest.val
2850
2851 fi
2852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002853 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002854
2855} # ac_fn_c_compute_int
2856
2857# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2858# ---------------------------------------------------------
2859# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2860# the include files in INCLUDES and setting the cache variable VAR
2861# accordingly.
2862ac_fn_cxx_check_header_mongrel ()
2863{
2864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2865 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2867$as_echo_n "checking for $2... " >&6; }
2868if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2869 $as_echo_n "(cached) " >&6
2870fi
2871eval ac_res=\$$3
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2873$as_echo "$ac_res" >&6; }
2874else
2875 # Is the header compilable?
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2877$as_echo_n "checking $2 usability... " >&6; }
2878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2879/* end confdefs.h. */
2880$4
2881#include <$2>
2882_ACEOF
2883if ac_fn_cxx_try_compile "$LINENO"; then :
2884 ac_header_compiler=yes
2885else
2886 ac_header_compiler=no
2887fi
2888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2890$as_echo "$ac_header_compiler" >&6; }
2891
2892# Is the header present?
2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2894$as_echo_n "checking $2 presence... " >&6; }
2895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2896/* end confdefs.h. */
2897#include <$2>
2898_ACEOF
2899if ac_fn_cxx_try_cpp "$LINENO"; then :
2900 ac_header_preproc=yes
2901else
2902 ac_header_preproc=no
2903fi
2904rm -f conftest.err conftest.$ac_ext
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2906$as_echo "$ac_header_preproc" >&6; }
2907
2908# So? What about this header?
2909case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2910 yes:no: )
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2912$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2914$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2915 ;;
2916 no:yes:* )
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2918$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2920$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2922$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2924$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2926$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2927( cat <<\_ASBOX
2928## ----------------------------------------- ##
2929## Report this to http://www.imagemagick.org ##
2930## ----------------------------------------- ##
2931_ASBOX
2932 ) | sed "s/^/$as_me: WARNING: /" >&2
2933 ;;
2934esac
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2936$as_echo_n "checking for $2... " >&6; }
2937if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2938 $as_echo_n "(cached) " >&6
2939else
2940 eval "$3=\$ac_header_compiler"
2941fi
2942eval ac_res=\$$3
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2944$as_echo "$ac_res" >&6; }
2945fi
2946 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2947
2948} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002949cat >config.log <<_ACEOF
2950This file contains any messages produced by compilers while
2951running configure, to aid debugging if configure makes a mistake.
2952
cristy89effd22009-11-24 20:56:45 +00002953It was created by ImageMagick $as_me 6.5.8, which was
cristycd4c5312009-11-22 01:19:08 +00002954generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002955
2956 $ $0 $@
2957
2958_ACEOF
2959exec 5>>config.log
2960{
2961cat <<_ASUNAME
2962## --------- ##
2963## Platform. ##
2964## --------- ##
2965
2966hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2967uname -m = `(uname -m) 2>/dev/null || echo unknown`
2968uname -r = `(uname -r) 2>/dev/null || echo unknown`
2969uname -s = `(uname -s) 2>/dev/null || echo unknown`
2970uname -v = `(uname -v) 2>/dev/null || echo unknown`
2971
2972/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2973/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2974
2975/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2976/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2977/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2978/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2979/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2980/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2981/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2982
2983_ASUNAME
2984
2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986for as_dir in $PATH
2987do
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002990 $as_echo "PATH: $as_dir"
2991 done
cristy3ed852e2009-09-05 21:47:34 +00002992IFS=$as_save_IFS
2993
2994} >&5
2995
2996cat >&5 <<_ACEOF
2997
2998
2999## ----------- ##
3000## Core tests. ##
3001## ----------- ##
3002
3003_ACEOF
3004
3005
3006# Keep a trace of the command line.
3007# Strip out --no-create and --no-recursion so they do not pile up.
3008# Strip out --silent because we don't want to record it for future runs.
3009# Also quote any args containing shell meta-characters.
3010# Make two passes to allow for proper duplicate-argument suppression.
3011ac_configure_args=
3012ac_configure_args0=
3013ac_configure_args1=
3014ac_must_keep_next=false
3015for ac_pass in 1 2
3016do
3017 for ac_arg
3018 do
3019 case $ac_arg in
3020 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3022 | -silent | --silent | --silen | --sile | --sil)
3023 continue ;;
3024 *\'*)
3025 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3026 esac
3027 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003028 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003029 2)
cristy8b350f62009-11-15 23:12:43 +00003030 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003031 if test $ac_must_keep_next = true; then
3032 ac_must_keep_next=false # Got value, back to normal.
3033 else
3034 case $ac_arg in
3035 *=* | --config-cache | -C | -disable-* | --disable-* \
3036 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3037 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3038 | -with-* | --with-* | -without-* | --without-* | --x)
3039 case "$ac_configure_args0 " in
3040 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3041 esac
3042 ;;
3043 -* ) ac_must_keep_next=true ;;
3044 esac
3045 fi
cristy8b350f62009-11-15 23:12:43 +00003046 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003047 ;;
3048 esac
3049 done
3050done
cristy8b350f62009-11-15 23:12:43 +00003051{ ac_configure_args0=; unset ac_configure_args0;}
3052{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003053
3054# When interrupted or exit'd, cleanup temporary files, and complete
3055# config.log. We remove comments because anyway the quotes in there
3056# would cause problems or look ugly.
3057# WARNING: Use '\'' to represent an apostrophe within the trap.
3058# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3059trap 'exit_status=$?
3060 # Save into config.log some information that might help in debugging.
3061 {
3062 echo
3063
3064 cat <<\_ASBOX
3065## ---------------- ##
3066## Cache variables. ##
3067## ---------------- ##
3068_ASBOX
3069 echo
3070 # The following way of writing the cache mishandles newlines in values,
3071(
3072 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3073 eval ac_val=\$$ac_var
3074 case $ac_val in #(
3075 *${as_nl}*)
3076 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003077 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003078$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3079 esac
3080 case $ac_var in #(
3081 _ | IFS | as_nl) ;; #(
3082 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003083 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003084 esac ;;
3085 esac
3086 done
3087 (set) 2>&1 |
3088 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3089 *${as_nl}ac_space=\ *)
3090 sed -n \
3091 "s/'\''/'\''\\\\'\'''\''/g;
3092 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3093 ;; #(
3094 *)
3095 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3096 ;;
3097 esac |
3098 sort
3099)
3100 echo
3101
3102 cat <<\_ASBOX
3103## ----------------- ##
3104## Output variables. ##
3105## ----------------- ##
3106_ASBOX
3107 echo
3108 for ac_var in $ac_subst_vars
3109 do
3110 eval ac_val=\$$ac_var
3111 case $ac_val in
3112 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3113 esac
3114 $as_echo "$ac_var='\''$ac_val'\''"
3115 done | sort
3116 echo
3117
3118 if test -n "$ac_subst_files"; then
3119 cat <<\_ASBOX
3120## ------------------- ##
3121## File substitutions. ##
3122## ------------------- ##
3123_ASBOX
3124 echo
3125 for ac_var in $ac_subst_files
3126 do
3127 eval ac_val=\$$ac_var
3128 case $ac_val in
3129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3130 esac
3131 $as_echo "$ac_var='\''$ac_val'\''"
3132 done | sort
3133 echo
3134 fi
3135
3136 if test -s confdefs.h; then
3137 cat <<\_ASBOX
3138## ----------- ##
3139## confdefs.h. ##
3140## ----------- ##
3141_ASBOX
3142 echo
3143 cat confdefs.h
3144 echo
3145 fi
3146 test "$ac_signal" != 0 &&
3147 $as_echo "$as_me: caught signal $ac_signal"
3148 $as_echo "$as_me: exit $exit_status"
3149 } >&5
3150 rm -f core *.core core.conftest.* &&
3151 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3152 exit $exit_status
3153' 0
3154for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003155 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003156done
3157ac_signal=0
3158
3159# confdefs.h avoids OS command line length limits that DEFS can exceed.
3160rm -f -r conftest* confdefs.h
3161
cristy8b350f62009-11-15 23:12:43 +00003162$as_echo "/* confdefs.h */" > confdefs.h
3163
cristy3ed852e2009-09-05 21:47:34 +00003164# Predefined preprocessor variables.
3165
3166cat >>confdefs.h <<_ACEOF
3167#define PACKAGE_NAME "$PACKAGE_NAME"
3168_ACEOF
3169
cristy3ed852e2009-09-05 21:47:34 +00003170cat >>confdefs.h <<_ACEOF
3171#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3172_ACEOF
3173
cristy3ed852e2009-09-05 21:47:34 +00003174cat >>confdefs.h <<_ACEOF
3175#define PACKAGE_VERSION "$PACKAGE_VERSION"
3176_ACEOF
3177
cristy3ed852e2009-09-05 21:47:34 +00003178cat >>confdefs.h <<_ACEOF
3179#define PACKAGE_STRING "$PACKAGE_STRING"
3180_ACEOF
3181
cristy3ed852e2009-09-05 21:47:34 +00003182cat >>confdefs.h <<_ACEOF
3183#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3184_ACEOF
3185
cristy8b350f62009-11-15 23:12:43 +00003186cat >>confdefs.h <<_ACEOF
3187#define PACKAGE_URL "$PACKAGE_URL"
3188_ACEOF
3189
cristy3ed852e2009-09-05 21:47:34 +00003190
3191# Let the site file select an alternate cache file if it wants to.
3192# Prefer an explicitly selected file to automatically selected ones.
3193ac_site_file1=NONE
3194ac_site_file2=NONE
3195if test -n "$CONFIG_SITE"; then
3196 ac_site_file1=$CONFIG_SITE
3197elif test "x$prefix" != xNONE; then
3198 ac_site_file1=$prefix/share/config.site
3199 ac_site_file2=$prefix/etc/config.site
3200else
3201 ac_site_file1=$ac_default_prefix/share/config.site
3202 ac_site_file2=$ac_default_prefix/etc/config.site
3203fi
3204for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3205do
3206 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003207 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003209$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3210 sed 's/^/| /' "$ac_site_file" >&5
3211 . "$ac_site_file"
3212 fi
3213done
3214
3215if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003216 # Some versions of bash will fail to source /dev/null (special files
3217 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3218 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003219 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003220$as_echo "$as_me: loading cache $cache_file" >&6;}
3221 case $cache_file in
3222 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3223 *) . "./$cache_file";;
3224 esac
3225 fi
3226else
cristy8b350f62009-11-15 23:12:43 +00003227 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003228$as_echo "$as_me: creating cache $cache_file" >&6;}
3229 >$cache_file
3230fi
3231
cristycd4c5312009-11-22 01:19:08 +00003232as_fn_append ac_header_list " stdlib.h"
3233as_fn_append ac_header_list " unistd.h"
3234as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003235# Check that the precious variables saved in the cache have kept the same
3236# value.
3237ac_cache_corrupted=false
3238for ac_var in $ac_precious_vars; do
3239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3240 eval ac_new_set=\$ac_env_${ac_var}_set
3241 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3242 eval ac_new_val=\$ac_env_${ac_var}_value
3243 case $ac_old_set,$ac_new_set in
3244 set,)
cristy8b350f62009-11-15 23:12:43 +00003245 { $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 +00003246$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3247 ac_cache_corrupted=: ;;
3248 ,set)
cristy8b350f62009-11-15 23:12:43 +00003249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003250$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3251 ac_cache_corrupted=: ;;
3252 ,);;
3253 *)
3254 if test "x$ac_old_val" != "x$ac_new_val"; then
3255 # differences in whitespace do not lead to failure.
3256 ac_old_val_w=`echo x $ac_old_val`
3257 ac_new_val_w=`echo x $ac_new_val`
3258 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003260$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3261 ac_cache_corrupted=:
3262 else
cristy8b350f62009-11-15 23:12:43 +00003263 { $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 +00003264$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3265 eval $ac_var=\$ac_old_val
3266 fi
cristy8b350f62009-11-15 23:12:43 +00003267 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003268$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003269 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003270$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3271 fi;;
3272 esac
3273 # Pass precious variables to config.status.
3274 if test "$ac_new_set" = set; then
3275 case $ac_new_val in
3276 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3277 *) ac_arg=$ac_var=$ac_new_val ;;
3278 esac
3279 case " $ac_configure_args " in
3280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003281 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003282 esac
3283 fi
3284done
3285if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003289$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003290 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003291fi
cristy8b350f62009-11-15 23:12:43 +00003292## -------------------- ##
3293## Main body of script. ##
3294## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003295
3296ac_ext=c
3297ac_cpp='$CPP $CPPFLAGS'
3298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300ac_compiler_gnu=$ac_cv_c_compiler_gnu
3301
3302
3303
3304ac_aux_dir=
3305for ac_dir in config "$srcdir"/config; do
cristy8b350f62009-11-15 23:12:43 +00003306 for ac_t in install-sh install.sh shtool; do
3307 if test -f "$ac_dir/$ac_t"; then
3308 ac_aux_dir=$ac_dir
3309 ac_install_sh="$ac_aux_dir/$ac_t -c"
3310 break 2
3311 fi
3312 done
cristy3ed852e2009-09-05 21:47:34 +00003313done
3314if test -z "$ac_aux_dir"; then
cristy8b350f62009-11-15 23:12:43 +00003315 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003316fi
3317
3318# These three variables are undocumented and unsupported,
3319# and are intended to be withdrawn in a future Autoconf release.
3320# They can cause serious problems if a builder's source tree is in a directory
3321# whose full name contains unusual characters.
3322ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3323ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3324ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3325
3326
3327
3328
3329ac_config_headers="$ac_config_headers config/config.h"
3330
3331ac_config_commands="$ac_config_commands magick/magick-config.h"
3332
3333ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox 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"
3334
3335
3336#
3337# Save initial user-tunable values
3338#
3339USER_LIBS=$LIBS
3340for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3341 eval isset=\${$var+set}
3342 if test "$isset" = 'set'; then
3343 eval val=$`echo $var`
3344 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3345 fi
3346done
3347
3348
3349CONFIGURE_ARGS="$0 ${ac_configure_args}"
3350
3351
3352# Source file containing package/library versioning information.
3353. ${srcdir}/version.sh
3354
3355echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3356# Make sure we can run config.sub.
3357$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy8b350f62009-11-15 23:12:43 +00003358 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003359
cristy8b350f62009-11-15 23:12:43 +00003360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003361$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003362if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003363 $as_echo_n "(cached) " >&6
3364else
3365 ac_build_alias=$build_alias
3366test "x$ac_build_alias" = x &&
3367 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3368test "x$ac_build_alias" = x &&
cristy8b350f62009-11-15 23:12:43 +00003369 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003370ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003371 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003372
3373fi
cristy8b350f62009-11-15 23:12:43 +00003374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003375$as_echo "$ac_cv_build" >&6; }
3376case $ac_cv_build in
3377*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003378*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003379esac
3380build=$ac_cv_build
3381ac_save_IFS=$IFS; IFS='-'
3382set x $ac_cv_build
3383shift
3384build_cpu=$1
3385build_vendor=$2
3386shift; shift
3387# Remember, the first character of IFS is used to create $*,
3388# except with old shells:
3389build_os=$*
3390IFS=$ac_save_IFS
3391case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3392
3393
cristy8b350f62009-11-15 23:12:43 +00003394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003395$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003396if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003397 $as_echo_n "(cached) " >&6
3398else
3399 if test "x$host_alias" = x; then
3400 ac_cv_host=$ac_cv_build
3401else
3402 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003403 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003404fi
3405
3406fi
cristy8b350f62009-11-15 23:12:43 +00003407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003408$as_echo "$ac_cv_host" >&6; }
3409case $ac_cv_host in
3410*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003411*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003412esac
3413host=$ac_cv_host
3414ac_save_IFS=$IFS; IFS='-'
3415set x $ac_cv_host
3416shift
3417host_cpu=$1
3418host_vendor=$2
3419shift; shift
3420# Remember, the first character of IFS is used to create $*,
3421# except with old shells:
3422host_os=$*
3423IFS=$ac_save_IFS
3424case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3425
3426
cristy8b350f62009-11-15 23:12:43 +00003427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003428$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003429if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003430 $as_echo_n "(cached) " >&6
3431else
3432 if test "x$target_alias" = x; then
3433 ac_cv_target=$ac_cv_host
3434else
3435 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003436 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003437fi
3438
3439fi
cristy8b350f62009-11-15 23:12:43 +00003440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003441$as_echo "$ac_cv_target" >&6; }
3442case $ac_cv_target in
3443*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003444*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003445esac
3446target=$ac_cv_target
3447ac_save_IFS=$IFS; IFS='-'
3448set x $ac_cv_target
3449shift
3450target_cpu=$1
3451target_vendor=$2
3452shift; shift
3453# Remember, the first character of IFS is used to create $*,
3454# except with old shells:
3455target_os=$*
3456IFS=$ac_save_IFS
3457case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3458
3459
3460# The aliases save the names the user supplied, while $host etc.
3461# will get canonicalized.
3462test -n "$target_alias" &&
3463 test "$program_prefix$program_suffix$program_transform_name" = \
3464 NONENONEs,x,x, &&
3465 program_prefix=${target_alias}-
3466
3467# Substitute library versioning
3468
3469
3470# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003472$as_echo_n "checking whether build environment is sane... " >&6; }
3473# Just in case
3474sleep 1
3475echo timestamp > conftest.file
3476# Reject unsafe characters in $srcdir or the absolute working directory
3477# name. Accept space and tab only in the latter.
3478am_lf='
3479'
3480case `pwd` in
3481 *[\\\"\#\$\&\'\`$am_lf]*)
cristy8b350f62009-11-15 23:12:43 +00003482 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003483esac
3484case $srcdir in
3485 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy8b350f62009-11-15 23:12:43 +00003486 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003487esac
3488
3489# Do `set' in a subshell so we don't clobber the current shell's
3490# arguments. Must try -L first in case configure is actually a
3491# symlink; some systems play weird games with the mod time of symlinks
3492# (eg FreeBSD returns the mod time of the symlink's containing
3493# directory).
3494if (
3495 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3496 if test "$*" = "X"; then
3497 # -L didn't work.
3498 set X `ls -t "$srcdir/configure" conftest.file`
3499 fi
3500 rm -f conftest.file
3501 if test "$*" != "X $srcdir/configure conftest.file" \
3502 && test "$*" != "X conftest.file $srcdir/configure"; then
3503
3504 # If neither matched, then we have a broken ls. This can happen
3505 # if, for instance, CONFIG_SHELL is bash and it inherits a
3506 # broken ls alias from the environment. This has actually
3507 # happened. Such a system could not be considered "sane".
cristy8b350f62009-11-15 23:12:43 +00003508 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3509alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003510 fi
3511
3512 test "$2" = conftest.file
3513 )
3514then
3515 # Ok.
3516 :
3517else
cristy8b350f62009-11-15 23:12:43 +00003518 as_fn_error "newly created file is older than distributed files!
3519Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003520fi
cristy8b350f62009-11-15 23:12:43 +00003521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003522$as_echo "yes" >&6; }
3523
3524am__api_version='1.11'
3525
3526# Find a good install program. We prefer a C program (faster),
3527# so one script is as good as another. But avoid the broken or
3528# incompatible versions:
3529# SysV /etc/install, /usr/sbin/install
3530# SunOS /usr/etc/install
3531# IRIX /sbin/install
3532# AIX /bin/install
3533# AmigaOS /C/install, which installs bootblocks on floppy discs
3534# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3535# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3536# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3537# OS/2's system install, which has a completely different semantic
3538# ./install, which can be erroneously created by make from ./install.sh.
3539# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003541$as_echo_n "checking for a BSD-compatible install... " >&6; }
3542if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003543if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003544 $as_echo_n "(cached) " >&6
3545else
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547for as_dir in $PATH
3548do
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003551 # Account for people who put trailing slashes in PATH elements.
3552case $as_dir/ in #((
3553 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003554 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003555 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003556 /usr/ucb/* ) ;;
3557 *)
3558 # OSF1 and SCO ODT 3.0 have their own names for install.
3559 # Don't use installbsd from OSF since it installs stuff as root
3560 # by default.
3561 for ac_prog in ginstall scoinst install; do
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3564 if test $ac_prog = install &&
3565 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3566 # AIX install. It has an incompatible calling convention.
3567 :
3568 elif test $ac_prog = install &&
3569 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3570 # program-specific install script used by HP pwplus--don't use.
3571 :
3572 else
3573 rm -rf conftest.one conftest.two conftest.dir
3574 echo one > conftest.one
3575 echo two > conftest.two
3576 mkdir conftest.dir
3577 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3578 test -s conftest.one && test -s conftest.two &&
3579 test -s conftest.dir/conftest.one &&
3580 test -s conftest.dir/conftest.two
3581 then
3582 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3583 break 3
3584 fi
3585 fi
3586 fi
3587 done
3588 done
3589 ;;
3590esac
3591
cristy8b350f62009-11-15 23:12:43 +00003592 done
cristy3ed852e2009-09-05 21:47:34 +00003593IFS=$as_save_IFS
3594
3595rm -rf conftest.one conftest.two conftest.dir
3596
3597fi
3598 if test "${ac_cv_path_install+set}" = set; then
3599 INSTALL=$ac_cv_path_install
3600 else
3601 # As a last resort, use the slow shell script. Don't cache a
3602 # value for INSTALL within a source directory, because that will
3603 # break other packages using the cache if that directory is
3604 # removed, or if the value is a relative name.
3605 INSTALL=$ac_install_sh
3606 fi
3607fi
cristy8b350f62009-11-15 23:12:43 +00003608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003609$as_echo "$INSTALL" >&6; }
3610
3611# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3612# It thinks the first close brace ends the variable substitution.
3613test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3614
3615test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3616
3617test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3618
3619test "$program_prefix" != NONE &&
3620 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3621# Use a double $ so make ignores it.
3622test "$program_suffix" != NONE &&
3623 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3624# Double any \ or $.
3625# By default was `s,x,x', remove it if useless.
3626ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3627program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3628
3629# expand $ac_aux_dir to an absolute path
3630am_aux_dir=`cd $ac_aux_dir && pwd`
3631
3632if test x"${MISSING+set}" != xset; then
3633 case $am_aux_dir in
3634 *\ * | *\ *)
3635 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3636 *)
3637 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3638 esac
3639fi
3640# Use eval to expand $SHELL
3641if eval "$MISSING --run true"; then
3642 am_missing_run="$MISSING --run "
3643else
3644 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003646$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3647fi
3648
3649if test x"${install_sh}" != xset; then
3650 case $am_aux_dir in
3651 *\ * | *\ *)
3652 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3653 *)
3654 install_sh="\${SHELL} $am_aux_dir/install-sh"
3655 esac
3656fi
3657
3658# Installed binaries are usually stripped using `strip' when the user
3659# run `make install-strip'. However `strip' might not be the right
3660# tool to use in cross-compilation environments, therefore Automake
3661# will honor the `STRIP' environment variable to overrule this program.
3662if test "$cross_compiling" != no; then
3663 if test -n "$ac_tool_prefix"; then
3664 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3665set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003667$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003668if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003669 $as_echo_n "(cached) " >&6
3670else
3671 if test -n "$STRIP"; then
3672 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3673else
3674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675for as_dir in $PATH
3676do
3677 IFS=$as_save_IFS
3678 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003679 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003683 break 2
3684 fi
3685done
cristy8b350f62009-11-15 23:12:43 +00003686 done
cristy3ed852e2009-09-05 21:47:34 +00003687IFS=$as_save_IFS
3688
3689fi
3690fi
3691STRIP=$ac_cv_prog_STRIP
3692if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003694$as_echo "$STRIP" >&6; }
3695else
cristy8b350f62009-11-15 23:12:43 +00003696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003697$as_echo "no" >&6; }
3698fi
3699
3700
3701fi
3702if test -z "$ac_cv_prog_STRIP"; then
3703 ac_ct_STRIP=$STRIP
3704 # Extract the first word of "strip", so it can be a program name with args.
3705set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003707$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003708if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003709 $as_echo_n "(cached) " >&6
3710else
3711 if test -n "$ac_ct_STRIP"; then
3712 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3713else
3714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715for as_dir in $PATH
3716do
3717 IFS=$as_save_IFS
3718 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003719 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3721 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003723 break 2
3724 fi
3725done
cristy8b350f62009-11-15 23:12:43 +00003726 done
cristy3ed852e2009-09-05 21:47:34 +00003727IFS=$as_save_IFS
3728
3729fi
3730fi
3731ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3732if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003734$as_echo "$ac_ct_STRIP" >&6; }
3735else
cristy8b350f62009-11-15 23:12:43 +00003736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003737$as_echo "no" >&6; }
3738fi
3739
3740 if test "x$ac_ct_STRIP" = x; then
3741 STRIP=":"
3742 else
3743 case $cross_compiling:$ac_tool_warned in
3744yes:)
cristy8b350f62009-11-15 23:12:43 +00003745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3747ac_tool_warned=yes ;;
3748esac
3749 STRIP=$ac_ct_STRIP
3750 fi
3751else
3752 STRIP="$ac_cv_prog_STRIP"
3753fi
3754
3755fi
3756INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3757
cristy8b350f62009-11-15 23:12:43 +00003758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003759$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3760if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003761 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003762 $as_echo_n "(cached) " >&6
3763else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3766do
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003769 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3772 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3773 'mkdir (GNU coreutils) '* | \
3774 'mkdir (coreutils) '* | \
3775 'mkdir (fileutils) '4.1*)
3776 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3777 break 3;;
3778 esac
3779 done
3780 done
cristy8b350f62009-11-15 23:12:43 +00003781 done
cristy3ed852e2009-09-05 21:47:34 +00003782IFS=$as_save_IFS
3783
3784fi
3785
cristycd4c5312009-11-22 01:19:08 +00003786 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003787 if test "${ac_cv_path_mkdir+set}" = set; then
3788 MKDIR_P="$ac_cv_path_mkdir -p"
3789 else
3790 # As a last resort, use the slow shell script. Don't cache a
3791 # value for MKDIR_P within a source directory, because that will
3792 # break other packages using the cache if that directory is
3793 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003794 MKDIR_P="$ac_install_sh -d"
3795 fi
3796fi
cristy8b350f62009-11-15 23:12:43 +00003797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003798$as_echo "$MKDIR_P" >&6; }
3799
3800mkdir_p="$MKDIR_P"
3801case $mkdir_p in
3802 [\\/$]* | ?:[\\/]*) ;;
3803 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3804esac
3805
3806for ac_prog in gawk mawk nawk awk
3807do
3808 # Extract the first word of "$ac_prog", so it can be a program name with args.
3809set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003811$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003812if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003813 $as_echo_n "(cached) " >&6
3814else
3815 if test -n "$AWK"; then
3816 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3817else
3818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819for as_dir in $PATH
3820do
3821 IFS=$as_save_IFS
3822 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003823 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3825 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003827 break 2
3828 fi
3829done
cristy8b350f62009-11-15 23:12:43 +00003830 done
cristy3ed852e2009-09-05 21:47:34 +00003831IFS=$as_save_IFS
3832
3833fi
3834fi
3835AWK=$ac_cv_prog_AWK
3836if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003838$as_echo "$AWK" >&6; }
3839else
cristy8b350f62009-11-15 23:12:43 +00003840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003841$as_echo "no" >&6; }
3842fi
3843
3844
3845 test -n "$AWK" && break
3846done
3847
cristy8b350f62009-11-15 23:12:43 +00003848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003849$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3850set x ${MAKE-make}
3851ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00003852if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003853 $as_echo_n "(cached) " >&6
3854else
3855 cat >conftest.make <<\_ACEOF
3856SHELL = /bin/sh
3857all:
3858 @echo '@@@%%%=$(MAKE)=@@@%%%'
3859_ACEOF
3860# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3861case `${MAKE-make} -f conftest.make 2>/dev/null` in
3862 *@@@%%%=?*=@@@%%%*)
3863 eval ac_cv_prog_make_${ac_make}_set=yes;;
3864 *)
3865 eval ac_cv_prog_make_${ac_make}_set=no;;
3866esac
3867rm -f conftest.make
3868fi
3869if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003871$as_echo "yes" >&6; }
3872 SET_MAKE=
3873else
cristy8b350f62009-11-15 23:12:43 +00003874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003875$as_echo "no" >&6; }
3876 SET_MAKE="MAKE=${MAKE-make}"
3877fi
3878
3879rm -rf .tst 2>/dev/null
3880mkdir .tst 2>/dev/null
3881if test -d .tst; then
3882 am__leading_dot=.
3883else
3884 am__leading_dot=_
3885fi
3886rmdir .tst 2>/dev/null
3887
3888if test "`cd $srcdir && pwd`" != "`pwd`"; then
3889 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3890 # is not polluted with repeated "-I."
3891 am__isrc=' -I$(srcdir)'
3892 # test to see if srcdir already configured
3893 if test -f $srcdir/config.status; then
cristy8b350f62009-11-15 23:12:43 +00003894 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003895 fi
3896fi
3897
3898# test whether we have cygpath
3899if test -z "$CYGPATH_W"; then
3900 if (cygpath --version) >/dev/null 2>/dev/null; then
3901 CYGPATH_W='cygpath -w'
3902 else
3903 CYGPATH_W=echo
3904 fi
3905fi
3906
3907
3908# Define the identity of the package.
3909 PACKAGE=$PACKAGE_NAME
3910 VERSION="${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3911
3912
3913# Some tools Automake needs.
3914
3915ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3916
3917
3918AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3919
3920
3921AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3922
3923
3924AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3925
3926
3927MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3928
3929# We need awk for the "check" target. The system "awk" is bad on
3930# some platforms.
3931# Always define AMTAR for backward compatibility.
3932
3933AMTAR=${AMTAR-"${am_missing_run}tar"}
3934
3935am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3936
3937
3938
3939
3940
3941
3942# Enable support for silent build rules
3943# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00003944if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003945 enableval=$enable_silent_rules;
3946fi
3947
3948case $enable_silent_rules in
3949yes) AM_DEFAULT_VERBOSITY=0;;
3950no) AM_DEFAULT_VERBOSITY=1;;
3951*) AM_DEFAULT_VERBOSITY=0;;
3952esac
3953AM_BACKSLASH='\'
3954
3955
3956MAGICK_LIB_VERSION="0x"
3957if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3958 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3959fi
3960MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3961if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3962 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3963fi
3964MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3965if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3966 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3967fi
3968MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3969
3970
3971# Definition used to define MagickLibVersionText in version.h
3972MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3973
3974
3975# Definition used to define MagickLibVersionNumber in version.h
3976MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3977
3978
3979# Regenerate config.status if ChangeLog or version.sh is updated.
3980CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3981
3982
3983PERLMAINCC=$CC
3984
3985MAGICK_CFLAGS=''
3986MAGICK_CPPFLAGS=$CPPFLAGS_USER
3987MAGICK_PCFLAGS=$CPPFLAGS_USER
3988MAGICK_LDFLAGS=''
3989MAGICK_LIBS=''
3990
3991#
cristy679ed8e2009-12-05 02:37:41 +00003992# Standards compliance definitions
3993#
3994
3995$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3996
3997
3998$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
3999
4000
4001#
cristy3ed852e2009-09-05 21:47:34 +00004002# Evaluate shell variable equivalents to Makefile directory variables
4003#
4004if test "x$prefix" = xNONE; then
4005 prefix=$ac_default_prefix
4006fi
4007# Let make expand exec_prefix.
4008if test "x$exec_prefix" = xNONE; then
4009 exec_prefix='${prefix}'
4010fi
4011
4012#
4013eval "eval PREFIX_DIR=${prefix}"
4014
4015eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4016
4017eval "eval BIN_DIR=$bindir"
4018
4019eval "eval SBIN_DIR=$sbindir"
4020
4021eval "eval LIBEXEC_DIR=$libexecdir"
4022
4023eval "eval DATA_DIR=$datadir"
4024
4025eval "eval SYSCONF_DIR=$sysconfdir"
4026
4027eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4028
4029eval "eval LOCALSTATE_DIR=$localstatedir"
4030
4031eval "eval LIB_DIR=$libdir"
4032
4033eval "eval INCLUDE_DIR=$includedir"
4034
4035eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4036
4037eval "eval INFO_DIR=$infodir"
4038
4039eval "eval MAN_DIR=$mandir"
4040
4041
4042# Get full paths to source and build directories
4043srcdirfull="`cd $srcdir && pwd`"
4044builddir="`pwd`"
4045
4046#
4047# Compute variables useful for running uninstalled software.
4048#
4049MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4050MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4051MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4052MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4053DIRSEP=':'
4054case "${build_os}" in
4055 mingw* )
4056 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4057 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4058 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4059 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4060 DIRSEP=';'
4061 ;;
4062esac
4063case "${host_os}" in
4064 mingw* )
4065 DIRSEP=';'
4066 ;;
4067esac
4068
4069
4070
4071
4072
4073
4074# Check for programs
4075ac_ext=c
4076ac_cpp='$CPP $CPPFLAGS'
4077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080if test -n "$ac_tool_prefix"; then
4081 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4082set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004084$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004085if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004086 $as_echo_n "(cached) " >&6
4087else
4088 if test -n "$CC"; then
4089 ac_cv_prog_CC="$CC" # Let the user override the test.
4090else
4091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092for as_dir in $PATH
4093do
4094 IFS=$as_save_IFS
4095 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004096 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4098 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004100 break 2
4101 fi
4102done
cristy8b350f62009-11-15 23:12:43 +00004103 done
cristy3ed852e2009-09-05 21:47:34 +00004104IFS=$as_save_IFS
4105
4106fi
4107fi
4108CC=$ac_cv_prog_CC
4109if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004111$as_echo "$CC" >&6; }
4112else
cristy8b350f62009-11-15 23:12:43 +00004113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004114$as_echo "no" >&6; }
4115fi
4116
4117
4118fi
4119if test -z "$ac_cv_prog_CC"; then
4120 ac_ct_CC=$CC
4121 # Extract the first word of "gcc", so it can be a program name with args.
4122set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004124$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004125if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004126 $as_echo_n "(cached) " >&6
4127else
4128 if test -n "$ac_ct_CC"; then
4129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4130else
4131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132for as_dir in $PATH
4133do
4134 IFS=$as_save_IFS
4135 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004136 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4138 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004140 break 2
4141 fi
4142done
cristy8b350f62009-11-15 23:12:43 +00004143 done
cristy3ed852e2009-09-05 21:47:34 +00004144IFS=$as_save_IFS
4145
4146fi
4147fi
4148ac_ct_CC=$ac_cv_prog_ac_ct_CC
4149if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004151$as_echo "$ac_ct_CC" >&6; }
4152else
cristy8b350f62009-11-15 23:12:43 +00004153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004154$as_echo "no" >&6; }
4155fi
4156
4157 if test "x$ac_ct_CC" = x; then
4158 CC=""
4159 else
4160 case $cross_compiling:$ac_tool_warned in
4161yes:)
cristy8b350f62009-11-15 23:12:43 +00004162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4164ac_tool_warned=yes ;;
4165esac
4166 CC=$ac_ct_CC
4167 fi
4168else
4169 CC="$ac_cv_prog_CC"
4170fi
4171
4172if test -z "$CC"; then
4173 if test -n "$ac_tool_prefix"; then
4174 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4175set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004177$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004178if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004179 $as_echo_n "(cached) " >&6
4180else
4181 if test -n "$CC"; then
4182 ac_cv_prog_CC="$CC" # Let the user override the test.
4183else
4184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185for as_dir in $PATH
4186do
4187 IFS=$as_save_IFS
4188 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004189 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4191 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004193 break 2
4194 fi
4195done
cristy8b350f62009-11-15 23:12:43 +00004196 done
cristy3ed852e2009-09-05 21:47:34 +00004197IFS=$as_save_IFS
4198
4199fi
4200fi
4201CC=$ac_cv_prog_CC
4202if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004204$as_echo "$CC" >&6; }
4205else
cristy8b350f62009-11-15 23:12:43 +00004206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004207$as_echo "no" >&6; }
4208fi
4209
4210
4211 fi
4212fi
4213if test -z "$CC"; then
4214 # Extract the first word of "cc", so it can be a program name with args.
4215set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004217$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004218if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004219 $as_echo_n "(cached) " >&6
4220else
4221 if test -n "$CC"; then
4222 ac_cv_prog_CC="$CC" # Let the user override the test.
4223else
4224 ac_prog_rejected=no
4225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226for as_dir in $PATH
4227do
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004230 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4232 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4233 ac_prog_rejected=yes
4234 continue
4235 fi
4236 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004238 break 2
4239 fi
4240done
cristy8b350f62009-11-15 23:12:43 +00004241 done
cristy3ed852e2009-09-05 21:47:34 +00004242IFS=$as_save_IFS
4243
4244if test $ac_prog_rejected = yes; then
4245 # We found a bogon in the path, so make sure we never use it.
4246 set dummy $ac_cv_prog_CC
4247 shift
4248 if test $# != 0; then
4249 # We chose a different compiler from the bogus one.
4250 # However, it has the same basename, so the bogon will be chosen
4251 # first if we set CC to just the basename; use the full file name.
4252 shift
4253 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4254 fi
4255fi
4256fi
4257fi
4258CC=$ac_cv_prog_CC
4259if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004261$as_echo "$CC" >&6; }
4262else
cristy8b350f62009-11-15 23:12:43 +00004263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004264$as_echo "no" >&6; }
4265fi
4266
4267
4268fi
4269if test -z "$CC"; then
4270 if test -n "$ac_tool_prefix"; then
4271 for ac_prog in cl.exe
4272 do
4273 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4274set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004276$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004277if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004278 $as_echo_n "(cached) " >&6
4279else
4280 if test -n "$CC"; then
4281 ac_cv_prog_CC="$CC" # Let the user override the test.
4282else
4283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284for as_dir in $PATH
4285do
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004288 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004292 break 2
4293 fi
4294done
cristy8b350f62009-11-15 23:12:43 +00004295 done
cristy3ed852e2009-09-05 21:47:34 +00004296IFS=$as_save_IFS
4297
4298fi
4299fi
4300CC=$ac_cv_prog_CC
4301if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004303$as_echo "$CC" >&6; }
4304else
cristy8b350f62009-11-15 23:12:43 +00004305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004306$as_echo "no" >&6; }
4307fi
4308
4309
4310 test -n "$CC" && break
4311 done
4312fi
4313if test -z "$CC"; then
4314 ac_ct_CC=$CC
4315 for ac_prog in cl.exe
4316do
4317 # Extract the first word of "$ac_prog", so it can be a program name with args.
4318set dummy $ac_prog; 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_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004322 $as_echo_n "(cached) " >&6
4323else
4324 if test -n "$ac_ct_CC"; then
4325 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$ac_prog"
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
4344ac_ct_CC=$ac_cv_prog_ac_ct_CC
4345if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004347$as_echo "$ac_ct_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 test -n "$ac_ct_CC" && break
4355done
4356
4357 if test "x$ac_ct_CC" = x; then
4358 CC=""
4359 else
4360 case $cross_compiling:$ac_tool_warned in
4361yes:)
cristy8b350f62009-11-15 23:12:43 +00004362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4364ac_tool_warned=yes ;;
4365esac
4366 CC=$ac_ct_CC
4367 fi
4368fi
4369
4370fi
4371
4372
cristy8b350f62009-11-15 23:12:43 +00004373test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004375as_fn_error "no acceptable C compiler found in \$PATH
4376See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004377
4378# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004379$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004380set X $ac_compile
4381ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004382for ac_option in --version -v -V -qversion; do
4383 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004384case "(($ac_try" in
4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386 *) ac_try_echo=$ac_try;;
4387esac
cristy8b350f62009-11-15 23:12:43 +00004388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4389$as_echo "$ac_try_echo"; } >&5
4390 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004391 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004392 if test -s conftest.err; then
4393 sed '10a\
4394... rest of stderr output deleted ...
4395 10q' conftest.err >conftest.er1
4396 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004397 fi
cristycd4c5312009-11-22 01:19:08 +00004398 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4400 test $ac_status = 0; }
4401done
cristy3ed852e2009-09-05 21:47:34 +00004402
cristy8b350f62009-11-15 23:12:43 +00004403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004404/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004405
cristy3ed852e2009-09-05 21:47:34 +00004406int
4407main ()
4408{
4409
4410 ;
4411 return 0;
4412}
4413_ACEOF
4414ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004415ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004416# Try to create an executable without -o first, disregard a.out.
4417# It will help us diagnose broken compilers, and finding out an intuition
4418# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4420$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004421ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4422
4423# The possible output files:
4424ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4425
4426ac_rmfiles=
4427for ac_file in $ac_files
4428do
4429 case $ac_file in
4430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4431 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4432 esac
4433done
4434rm -f $ac_rmfiles
4435
cristy8b350f62009-11-15 23:12:43 +00004436if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004437case "(($ac_try" in
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4440esac
cristy8b350f62009-11-15 23:12:43 +00004441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4442$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004443 (eval "$ac_link_default") 2>&5
4444 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004447 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4448# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4449# in a Makefile. We should not override ac_cv_exeext if it was cached,
4450# so that the user can short-circuit this test for compilers unknown to
4451# Autoconf.
4452for ac_file in $ac_files ''
4453do
4454 test -f "$ac_file" || continue
4455 case $ac_file in
4456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4457 ;;
4458 [ab].out )
4459 # We found the default executable, but exeext='' is most
4460 # certainly right.
4461 break;;
4462 *.* )
cristy8b350f62009-11-15 23:12:43 +00004463 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004464 then :; else
4465 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4466 fi
4467 # We set ac_cv_exeext here because the later test for it is not
4468 # safe: cross compilers may not add the suffix if given an `-o'
4469 # argument, so we may need to know it at that point already.
4470 # Even if this section looks crufty: it has the advantage of
4471 # actually working.
4472 break;;
4473 * )
4474 break;;
4475 esac
4476done
4477test "$ac_cv_exeext" = no && ac_cv_exeext=
4478
4479else
4480 ac_file=''
4481fi
cristy8b350f62009-11-15 23:12:43 +00004482if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484$as_echo "no" >&6; }
4485$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004486sed 's/^/| /' conftest.$ac_ext >&5
4487
cristy8b350f62009-11-15 23:12:43 +00004488{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004490{ as_fn_set_status 77
4491as_fn_error "C compiler cannot create executables
4492See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00004493else
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4495$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004496fi
cristycd4c5312009-11-22 01:19:08 +00004497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4498$as_echo_n "checking for C compiler default output file name... " >&6; }
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4500$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004501ac_exeext=$ac_cv_exeext
4502
cristycd4c5312009-11-22 01:19:08 +00004503rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004504ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004506$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004507if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004508case "(($ac_try" in
4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4511esac
cristy8b350f62009-11-15 23:12:43 +00004512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4513$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004514 (eval "$ac_link") 2>&5
4515 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4517 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004518 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4519# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4520# work properly (i.e., refer to `conftest.exe'), while it won't with
4521# `rm'.
4522for ac_file in conftest.exe conftest conftest.*; do
4523 test -f "$ac_file" || continue
4524 case $ac_file in
4525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4526 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4527 break;;
4528 * ) break;;
4529 esac
4530done
4531else
cristy8b350f62009-11-15 23:12:43 +00004532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004534as_fn_error "cannot compute suffix of executables: cannot compile and link
4535See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004536fi
cristycd4c5312009-11-22 01:19:08 +00004537rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004539$as_echo "$ac_cv_exeext" >&6; }
4540
4541rm -f conftest.$ac_ext
4542EXEEXT=$ac_cv_exeext
4543ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545/* end confdefs.h. */
4546#include <stdio.h>
4547int
4548main ()
4549{
4550FILE *f = fopen ("conftest.out", "w");
4551 return ferror (f) || fclose (f) != 0;
4552
4553 ;
4554 return 0;
4555}
4556_ACEOF
4557ac_clean_files="$ac_clean_files conftest.out"
4558# Check that the compiler produces executables we can run. If not, either
4559# the compiler is broken, or we cross compile.
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4561$as_echo_n "checking whether we are cross compiling... " >&6; }
4562if test "$cross_compiling" != yes; then
4563 { { ac_try="$ac_link"
4564case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4567esac
4568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4569$as_echo "$ac_try_echo"; } >&5
4570 (eval "$ac_link") 2>&5
4571 ac_status=$?
4572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4573 test $ac_status = 0; }
4574 if { ac_try='./conftest$ac_cv_exeext'
4575 { { case "(($ac_try" in
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4578esac
4579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4580$as_echo "$ac_try_echo"; } >&5
4581 (eval "$ac_try") 2>&5
4582 ac_status=$?
4583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4584 test $ac_status = 0; }; }; then
4585 cross_compiling=no
4586 else
4587 if test "$cross_compiling" = maybe; then
4588 cross_compiling=yes
4589 else
4590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4592as_fn_error "cannot run C compiled programs.
4593If you meant to cross compile, use \`--host'.
4594See \`config.log' for more details." "$LINENO" 5; }
4595 fi
4596 fi
4597fi
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4599$as_echo "$cross_compiling" >&6; }
4600
4601rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4602ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004604$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004605if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004606 $as_echo_n "(cached) " >&6
4607else
cristy8b350f62009-11-15 23:12:43 +00004608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004609/* end confdefs.h. */
4610
4611int
4612main ()
4613{
4614
4615 ;
4616 return 0;
4617}
4618_ACEOF
4619rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004620if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004621case "(($ac_try" in
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4624esac
cristy8b350f62009-11-15 23:12:43 +00004625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004627 (eval "$ac_compile") 2>&5
4628 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004631 for ac_file in conftest.o conftest.obj conftest.*; do
4632 test -f "$ac_file" || continue;
4633 case $ac_file in
4634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4635 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4636 break;;
4637 esac
4638done
4639else
4640 $as_echo "$as_me: failed program was:" >&5
4641sed 's/^/| /' conftest.$ac_ext >&5
4642
cristy8b350f62009-11-15 23:12:43 +00004643{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004645as_fn_error "cannot compute suffix of object files: cannot compile
4646See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004647fi
cristy3ed852e2009-09-05 21:47:34 +00004648rm -f conftest.$ac_cv_objext conftest.$ac_ext
4649fi
cristy8b350f62009-11-15 23:12:43 +00004650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004651$as_echo "$ac_cv_objext" >&6; }
4652OBJEXT=$ac_cv_objext
4653ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004655$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004656if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004657 $as_echo_n "(cached) " >&6
4658else
cristy8b350f62009-11-15 23:12:43 +00004659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004660/* end confdefs.h. */
4661
4662int
4663main ()
4664{
4665#ifndef __GNUC__
4666 choke me
4667#endif
4668
4669 ;
4670 return 0;
4671}
4672_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004673if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004674 ac_compiler_gnu=yes
4675else
cristy8b350f62009-11-15 23:12:43 +00004676 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004677fi
cristy3ed852e2009-09-05 21:47:34 +00004678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679ac_cv_c_compiler_gnu=$ac_compiler_gnu
4680
4681fi
cristy8b350f62009-11-15 23:12:43 +00004682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004683$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4684if test $ac_compiler_gnu = yes; then
4685 GCC=yes
4686else
4687 GCC=
4688fi
4689ac_test_CFLAGS=${CFLAGS+set}
4690ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004692$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004693if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004694 $as_echo_n "(cached) " >&6
4695else
4696 ac_save_c_werror_flag=$ac_c_werror_flag
4697 ac_c_werror_flag=yes
4698 ac_cv_prog_cc_g=no
4699 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004701/* end confdefs.h. */
4702
4703int
4704main ()
4705{
4706
4707 ;
4708 return 0;
4709}
4710_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004711if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004712 ac_cv_prog_cc_g=yes
4713else
cristy8b350f62009-11-15 23:12:43 +00004714 CFLAGS=""
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004716/* end confdefs.h. */
4717
4718int
4719main ()
4720{
4721
4722 ;
4723 return 0;
4724}
4725_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004726if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004727
cristy8b350f62009-11-15 23:12:43 +00004728else
4729 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004730 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004732/* end confdefs.h. */
4733
4734int
4735main ()
4736{
4737
4738 ;
4739 return 0;
4740}
4741_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004742if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004743 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004744fi
cristy3ed852e2009-09-05 21:47:34 +00004745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746fi
cristy3ed852e2009-09-05 21:47:34 +00004747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748fi
cristy3ed852e2009-09-05 21:47:34 +00004749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750 ac_c_werror_flag=$ac_save_c_werror_flag
4751fi
cristy8b350f62009-11-15 23:12:43 +00004752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004753$as_echo "$ac_cv_prog_cc_g" >&6; }
4754if test "$ac_test_CFLAGS" = set; then
4755 CFLAGS=$ac_save_CFLAGS
4756elif test $ac_cv_prog_cc_g = yes; then
4757 if test "$GCC" = yes; then
4758 CFLAGS="-g -O2"
4759 else
4760 CFLAGS="-g"
4761 fi
4762else
4763 if test "$GCC" = yes; then
4764 CFLAGS="-O2"
4765 else
4766 CFLAGS=
4767 fi
4768fi
cristy8b350f62009-11-15 23:12:43 +00004769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004770$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004771if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004772 $as_echo_n "(cached) " >&6
4773else
4774 ac_cv_prog_cc_c89=no
4775ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004777/* end confdefs.h. */
4778#include <stdarg.h>
4779#include <stdio.h>
4780#include <sys/types.h>
4781#include <sys/stat.h>
4782/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4783struct buf { int x; };
4784FILE * (*rcsopen) (struct buf *, struct stat *, int);
4785static char *e (p, i)
4786 char **p;
4787 int i;
4788{
4789 return p[i];
4790}
4791static char *f (char * (*g) (char **, int), char **p, ...)
4792{
4793 char *s;
4794 va_list v;
4795 va_start (v,p);
4796 s = g (p, va_arg (v,int));
4797 va_end (v);
4798 return s;
4799}
4800
4801/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4802 function prototypes and stuff, but not '\xHH' hex character constants.
4803 These don't provoke an error unfortunately, instead are silently treated
4804 as 'x'. The following induces an error, until -std is added to get
4805 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4806 array size at least. It's necessary to write '\x00'==0 to get something
4807 that's true only with -std. */
4808int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4809
4810/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4811 inside strings and character constants. */
4812#define FOO(x) 'x'
4813int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4814
4815int test (int i, double x);
4816struct s1 {int (*f) (int a);};
4817struct s2 {int (*f) (double a);};
4818int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4819int argc;
4820char **argv;
4821int
4822main ()
4823{
4824return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4825 ;
4826 return 0;
4827}
4828_ACEOF
4829for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4830 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4831do
4832 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004833 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004834 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004835fi
cristy3ed852e2009-09-05 21:47:34 +00004836rm -f core conftest.err conftest.$ac_objext
4837 test "x$ac_cv_prog_cc_c89" != "xno" && break
4838done
4839rm -f conftest.$ac_ext
4840CC=$ac_save_CC
4841
4842fi
4843# AC_CACHE_VAL
4844case "x$ac_cv_prog_cc_c89" in
4845 x)
cristy8b350f62009-11-15 23:12:43 +00004846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004847$as_echo "none needed" >&6; } ;;
4848 xno)
cristy8b350f62009-11-15 23:12:43 +00004849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004850$as_echo "unsupported" >&6; } ;;
4851 *)
4852 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004854$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4855esac
cristy8b350f62009-11-15 23:12:43 +00004856if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004857
cristy8b350f62009-11-15 23:12:43 +00004858fi
cristy3ed852e2009-09-05 21:47:34 +00004859
4860ac_ext=c
4861ac_cpp='$CPP $CPPFLAGS'
4862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4864ac_compiler_gnu=$ac_cv_c_compiler_gnu
4865DEPDIR="${am__leading_dot}deps"
4866
4867ac_config_commands="$ac_config_commands depfiles"
4868
4869
4870am_make=${MAKE-make}
4871cat > confinc << 'END'
4872am__doit:
4873 @echo this is the am__doit target
4874.PHONY: am__doit
4875END
4876# If we don't find an include directive, just comment out the code.
cristy8b350f62009-11-15 23:12:43 +00004877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
cristy3ed852e2009-09-05 21:47:34 +00004878$as_echo_n "checking for style of include used by $am_make... " >&6; }
4879am__include="#"
4880am__quote=
4881_am_result=none
4882# First try GNU make style include.
4883echo "include confinc" > confmf
4884# Ignore all kinds of additional output from `make'.
4885case `$am_make -s -f confmf 2> /dev/null` in #(
4886*the\ am__doit\ target*)
4887 am__include=include
4888 am__quote=
4889 _am_result=GNU
4890 ;;
4891esac
4892# Now try BSD make style include.
4893if test "$am__include" = "#"; then
4894 echo '.include "confinc"' > confmf
4895 case `$am_make -s -f confmf 2> /dev/null` in #(
4896 *the\ am__doit\ target*)
4897 am__include=.include
4898 am__quote="\""
4899 _am_result=BSD
4900 ;;
4901 esac
4902fi
4903
4904
cristy8b350f62009-11-15 23:12:43 +00004905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
cristy3ed852e2009-09-05 21:47:34 +00004906$as_echo "$_am_result" >&6; }
4907rm -f confinc confmf
4908
4909# Check whether --enable-dependency-tracking was given.
cristy8b350f62009-11-15 23:12:43 +00004910if test "${enable_dependency_tracking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004911 enableval=$enable_dependency_tracking;
4912fi
4913
4914if test "x$enable_dependency_tracking" != xno; then
4915 am_depcomp="$ac_aux_dir/depcomp"
4916 AMDEPBACKSLASH='\'
4917fi
4918 if test "x$enable_dependency_tracking" != xno; then
4919 AMDEP_TRUE=
4920 AMDEP_FALSE='#'
4921else
4922 AMDEP_TRUE='#'
4923 AMDEP_FALSE=
4924fi
4925
4926
4927
4928depcc="$CC" am_compiler_list=
4929
cristy8b350f62009-11-15 23:12:43 +00004930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00004931$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004932if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004933 $as_echo_n "(cached) " >&6
4934else
4935 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4936 # We make a subdir and do the tests there. Otherwise we can end up
4937 # making bogus files that we don't know about and never remove. For
4938 # instance it was reported that on HP-UX the gcc test will end up
4939 # making a dummy file named `D' -- because `-MD' means `put the output
4940 # in D'.
4941 mkdir conftest.dir
4942 # Copy depcomp to subdir because otherwise we won't find it if we're
4943 # using a relative directory.
4944 cp "$am_depcomp" conftest.dir
4945 cd conftest.dir
4946 # We will build objects and dependencies in a subdirectory because
4947 # it helps to detect inapplicable dependency modes. For instance
4948 # both Tru64's cc and ICC support -MD to output dependencies as a
4949 # side effect of compilation, but ICC will put the dependencies in
4950 # the current directory while Tru64 will put them in the object
4951 # directory.
4952 mkdir sub
4953
4954 am_cv_CC_dependencies_compiler_type=none
4955 if test "$am_compiler_list" = ""; then
4956 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4957 fi
4958 am__universal=false
4959 case " $depcc " in #(
4960 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4961 esac
4962
4963 for depmode in $am_compiler_list; do
4964 # Setup a source with many dependencies, because some compilers
4965 # like to wrap large dependency lists on column 80 (with \), and
4966 # we should not choose a depcomp mode which is confused by this.
4967 #
4968 # We need to recreate these files for each test, as the compiler may
4969 # overwrite some of them when testing with obscure command lines.
4970 # This happens at least with the AIX C compiler.
4971 : > sub/conftest.c
4972 for i in 1 2 3 4 5 6; do
4973 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4974 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4975 # Solaris 8's {/usr,}/bin/sh.
4976 touch sub/conftst$i.h
4977 done
4978 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4979
4980 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4981 # mode. It turns out that the SunPro C++ compiler does not properly
4982 # handle `-M -o', and we need to detect this. Also, some Intel
4983 # versions had trouble with output in subdirs
4984 am__obj=sub/conftest.${OBJEXT-o}
4985 am__minus_obj="-o $am__obj"
4986 case $depmode in
4987 gcc)
4988 # This depmode causes a compiler race in universal mode.
4989 test "$am__universal" = false || continue
4990 ;;
4991 nosideeffect)
4992 # after this tag, mechanisms are not by side-effect, so they'll
4993 # only be used when explicitly requested
4994 if test "x$enable_dependency_tracking" = xyes; then
4995 continue
4996 else
4997 break
4998 fi
4999 ;;
5000 msvisualcpp | msvcmsys)
5001 # This compiler won't grok `-c -o', but also, the minuso test has
5002 # not run yet. These depmodes are late enough in the game, and
5003 # so weak that their functioning should not be impacted.
5004 am__obj=conftest.${OBJEXT-o}
5005 am__minus_obj=
5006 ;;
5007 none) break ;;
5008 esac
5009 if depmode=$depmode \
5010 source=sub/conftest.c object=$am__obj \
5011 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5012 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5013 >/dev/null 2>conftest.err &&
5014 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5015 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5016 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5017 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5018 # icc doesn't choke on unknown options, it will just issue warnings
5019 # or remarks (even with -Werror). So we grep stderr for any message
5020 # that says an option was ignored or not supported.
5021 # When given -MP, icc 7.0 and 7.1 complain thusly:
5022 # icc: Command line warning: ignoring option '-M'; no argument required
5023 # The diagnosis changed in icc 8.0:
5024 # icc: Command line remark: option '-MP' not supported
5025 if (grep 'ignoring option' conftest.err ||
5026 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5027 am_cv_CC_dependencies_compiler_type=$depmode
5028 break
5029 fi
5030 fi
5031 done
5032
5033 cd ..
5034 rm -rf conftest.dir
5035else
5036 am_cv_CC_dependencies_compiler_type=none
5037fi
5038
5039fi
cristy8b350f62009-11-15 23:12:43 +00005040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00005041$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5042CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5043
5044 if
5045 test "x$enable_dependency_tracking" != xno \
5046 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5047 am__fastdepCC_TRUE=
5048 am__fastdepCC_FALSE='#'
5049else
5050 am__fastdepCC_TRUE='#'
5051 am__fastdepCC_FALSE=
5052fi
5053
5054
cristy95646052009-11-28 23:05:30 +00005055ac_ext=cpp
5056ac_cpp='$CXXCPP $CPPFLAGS'
5057ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5058ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5059ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5060if test -z "$CXX"; then
5061 if test -n "$CCC"; then
5062 CXX=$CCC
5063 else
5064 if test -n "$ac_tool_prefix"; then
5065 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5066 do
5067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5068set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070$as_echo_n "checking for $ac_word... " >&6; }
5071if test "${ac_cv_prog_CXX+set}" = set; then :
5072 $as_echo_n "(cached) " >&6
5073else
5074 if test -n "$CXX"; then
5075 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5076else
5077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078for as_dir in $PATH
5079do
5080 IFS=$as_save_IFS
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 break 2
5087 fi
5088done
5089 done
5090IFS=$as_save_IFS
5091
5092fi
5093fi
5094CXX=$ac_cv_prog_CXX
5095if test -n "$CXX"; then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5097$as_echo "$CXX" >&6; }
5098else
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100$as_echo "no" >&6; }
5101fi
5102
5103
5104 test -n "$CXX" && break
5105 done
5106fi
5107if test -z "$CXX"; then
5108 ac_ct_CXX=$CXX
5109 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5110do
5111 # Extract the first word of "$ac_prog", so it can be a program name with args.
5112set dummy $ac_prog; ac_word=$2
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114$as_echo_n "checking for $ac_word... " >&6; }
5115if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5116 $as_echo_n "(cached) " >&6
5117else
5118 if test -n "$ac_ct_CXX"; then
5119 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5120else
5121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122for as_dir in $PATH
5123do
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128 ac_cv_prog_ac_ct_CXX="$ac_prog"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5131 fi
5132done
5133 done
5134IFS=$as_save_IFS
5135
5136fi
5137fi
5138ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5139if test -n "$ac_ct_CXX"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5141$as_echo "$ac_ct_CXX" >&6; }
5142else
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144$as_echo "no" >&6; }
5145fi
5146
5147
5148 test -n "$ac_ct_CXX" && break
5149done
5150
5151 if test "x$ac_ct_CXX" = x; then
5152 CXX="g++"
5153 else
5154 case $cross_compiling:$ac_tool_warned in
5155yes:)
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5158ac_tool_warned=yes ;;
5159esac
5160 CXX=$ac_ct_CXX
5161 fi
5162fi
5163
5164 fi
5165fi
5166# Provide some information about the compiler.
5167$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5168set X $ac_compile
5169ac_compiler=$2
5170for ac_option in --version -v -V -qversion; do
5171 { { ac_try="$ac_compiler $ac_option >&5"
5172case "(($ac_try" in
5173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5174 *) ac_try_echo=$ac_try;;
5175esac
5176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5177$as_echo "$ac_try_echo"; } >&5
5178 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5179 ac_status=$?
5180 if test -s conftest.err; then
5181 sed '10a\
5182... rest of stderr output deleted ...
5183 10q' conftest.err >conftest.er1
5184 cat conftest.er1 >&5
5185 fi
5186 rm -f conftest.er1 conftest.err
5187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5188 test $ac_status = 0; }
5189done
5190
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5192$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5193if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5194 $as_echo_n "(cached) " >&6
5195else
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197/* end confdefs.h. */
5198
5199int
5200main ()
5201{
5202#ifndef __GNUC__
5203 choke me
5204#endif
5205
5206 ;
5207 return 0;
5208}
5209_ACEOF
5210if ac_fn_cxx_try_compile "$LINENO"; then :
5211 ac_compiler_gnu=yes
5212else
5213 ac_compiler_gnu=no
5214fi
5215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5217
5218fi
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5220$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5221if test $ac_compiler_gnu = yes; then
5222 GXX=yes
5223else
5224 GXX=
5225fi
5226ac_test_CXXFLAGS=${CXXFLAGS+set}
5227ac_save_CXXFLAGS=$CXXFLAGS
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5229$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5230if test "${ac_cv_prog_cxx_g+set}" = set; then :
5231 $as_echo_n "(cached) " >&6
5232else
5233 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5234 ac_cxx_werror_flag=yes
5235 ac_cv_prog_cxx_g=no
5236 CXXFLAGS="-g"
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238/* end confdefs.h. */
5239
5240int
5241main ()
5242{
5243
5244 ;
5245 return 0;
5246}
5247_ACEOF
5248if ac_fn_cxx_try_compile "$LINENO"; then :
5249 ac_cv_prog_cxx_g=yes
5250else
5251 CXXFLAGS=""
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253/* end confdefs.h. */
5254
5255int
5256main ()
5257{
5258
5259 ;
5260 return 0;
5261}
5262_ACEOF
5263if ac_fn_cxx_try_compile "$LINENO"; then :
5264
5265else
5266 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5267 CXXFLAGS="-g"
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269/* end confdefs.h. */
5270
5271int
5272main ()
5273{
5274
5275 ;
5276 return 0;
5277}
5278_ACEOF
5279if ac_fn_cxx_try_compile "$LINENO"; then :
5280 ac_cv_prog_cxx_g=yes
5281fi
5282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283fi
5284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285fi
5286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5288fi
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5290$as_echo "$ac_cv_prog_cxx_g" >&6; }
5291if test "$ac_test_CXXFLAGS" = set; then
5292 CXXFLAGS=$ac_save_CXXFLAGS
5293elif test $ac_cv_prog_cxx_g = yes; then
5294 if test "$GXX" = yes; then
5295 CXXFLAGS="-g -O2"
5296 else
5297 CXXFLAGS="-g"
5298 fi
5299else
5300 if test "$GXX" = yes; then
5301 CXXFLAGS="-O2"
5302 else
5303 CXXFLAGS=
5304 fi
5305fi
5306ac_ext=c
5307ac_cpp='$CPP $CPPFLAGS'
5308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310ac_compiler_gnu=$ac_cv_c_compiler_gnu
5311
5312depcc="$CXX" am_compiler_list=
5313
5314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5315$as_echo_n "checking dependency style of $depcc... " >&6; }
5316if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5317 $as_echo_n "(cached) " >&6
5318else
5319 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5320 # We make a subdir and do the tests there. Otherwise we can end up
5321 # making bogus files that we don't know about and never remove. For
5322 # instance it was reported that on HP-UX the gcc test will end up
5323 # making a dummy file named `D' -- because `-MD' means `put the output
5324 # in D'.
5325 mkdir conftest.dir
5326 # Copy depcomp to subdir because otherwise we won't find it if we're
5327 # using a relative directory.
5328 cp "$am_depcomp" conftest.dir
5329 cd conftest.dir
5330 # We will build objects and dependencies in a subdirectory because
5331 # it helps to detect inapplicable dependency modes. For instance
5332 # both Tru64's cc and ICC support -MD to output dependencies as a
5333 # side effect of compilation, but ICC will put the dependencies in
5334 # the current directory while Tru64 will put them in the object
5335 # directory.
5336 mkdir sub
5337
5338 am_cv_CXX_dependencies_compiler_type=none
5339 if test "$am_compiler_list" = ""; then
5340 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5341 fi
5342 am__universal=false
5343 case " $depcc " in #(
5344 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5345 esac
5346
5347 for depmode in $am_compiler_list; do
5348 # Setup a source with many dependencies, because some compilers
5349 # like to wrap large dependency lists on column 80 (with \), and
5350 # we should not choose a depcomp mode which is confused by this.
5351 #
5352 # We need to recreate these files for each test, as the compiler may
5353 # overwrite some of them when testing with obscure command lines.
5354 # This happens at least with the AIX C compiler.
5355 : > sub/conftest.c
5356 for i in 1 2 3 4 5 6; do
5357 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5358 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5359 # Solaris 8's {/usr,}/bin/sh.
5360 touch sub/conftst$i.h
5361 done
5362 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5363
5364 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5365 # mode. It turns out that the SunPro C++ compiler does not properly
5366 # handle `-M -o', and we need to detect this. Also, some Intel
5367 # versions had trouble with output in subdirs
5368 am__obj=sub/conftest.${OBJEXT-o}
5369 am__minus_obj="-o $am__obj"
5370 case $depmode in
5371 gcc)
5372 # This depmode causes a compiler race in universal mode.
5373 test "$am__universal" = false || continue
5374 ;;
5375 nosideeffect)
5376 # after this tag, mechanisms are not by side-effect, so they'll
5377 # only be used when explicitly requested
5378 if test "x$enable_dependency_tracking" = xyes; then
5379 continue
5380 else
5381 break
5382 fi
5383 ;;
5384 msvisualcpp | msvcmsys)
5385 # This compiler won't grok `-c -o', but also, the minuso test has
5386 # not run yet. These depmodes are late enough in the game, and
5387 # so weak that their functioning should not be impacted.
5388 am__obj=conftest.${OBJEXT-o}
5389 am__minus_obj=
5390 ;;
5391 none) break ;;
5392 esac
5393 if depmode=$depmode \
5394 source=sub/conftest.c object=$am__obj \
5395 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5396 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5397 >/dev/null 2>conftest.err &&
5398 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5399 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5400 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5401 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5402 # icc doesn't choke on unknown options, it will just issue warnings
5403 # or remarks (even with -Werror). So we grep stderr for any message
5404 # that says an option was ignored or not supported.
5405 # When given -MP, icc 7.0 and 7.1 complain thusly:
5406 # icc: Command line warning: ignoring option '-M'; no argument required
5407 # The diagnosis changed in icc 8.0:
5408 # icc: Command line remark: option '-MP' not supported
5409 if (grep 'ignoring option' conftest.err ||
5410 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5411 am_cv_CXX_dependencies_compiler_type=$depmode
5412 break
5413 fi
5414 fi
5415 done
5416
5417 cd ..
5418 rm -rf conftest.dir
5419else
5420 am_cv_CXX_dependencies_compiler_type=none
5421fi
5422
5423fi
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5425$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5426CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5427
5428 if
5429 test "x$enable_dependency_tracking" != xno \
5430 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5431 am__fastdepCXX_TRUE=
5432 am__fastdepCXX_FALSE='#'
5433else
5434 am__fastdepCXX_TRUE='#'
5435 am__fastdepCXX_FALSE=
5436fi
5437
5438
cristy8b350f62009-11-15 23:12:43 +00005439 case $ac_cv_prog_cc_stdc in #(
5440 no) :
5441 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5442 *) :
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00005444$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005445if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005446 $as_echo_n "(cached) " >&6
5447else
5448 ac_cv_prog_cc_c99=no
5449ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005451/* end confdefs.h. */
5452#include <stdarg.h>
5453#include <stdbool.h>
5454#include <stdlib.h>
5455#include <wchar.h>
5456#include <stdio.h>
5457
5458// Check varargs macros. These examples are taken from C99 6.10.3.5.
5459#define debug(...) fprintf (stderr, __VA_ARGS__)
5460#define showlist(...) puts (#__VA_ARGS__)
5461#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5462static void
5463test_varargs_macros (void)
5464{
5465 int x = 1234;
5466 int y = 5678;
5467 debug ("Flag");
5468 debug ("X = %d\n", x);
5469 showlist (The first, second, and third items.);
5470 report (x>y, "x is %d but y is %d", x, y);
5471}
5472
5473// Check long long types.
5474#define BIG64 18446744073709551615ull
5475#define BIG32 4294967295ul
5476#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5477#if !BIG_OK
5478 your preprocessor is broken;
5479#endif
5480#if BIG_OK
5481#else
5482 your preprocessor is broken;
5483#endif
5484static long long int bignum = -9223372036854775807LL;
5485static unsigned long long int ubignum = BIG64;
5486
5487struct incomplete_array
5488{
5489 int datasize;
5490 double data[];
5491};
5492
5493struct named_init {
5494 int number;
5495 const wchar_t *name;
5496 double average;
5497};
5498
5499typedef const char *ccp;
5500
5501static inline int
5502test_restrict (ccp restrict text)
5503{
5504 // See if C++-style comments work.
5505 // Iterate through items via the restricted pointer.
5506 // Also check for declarations in for loops.
5507 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5508 continue;
5509 return 0;
5510}
5511
5512// Check varargs and va_copy.
5513static void
5514test_varargs (const char *format, ...)
5515{
5516 va_list args;
5517 va_start (args, format);
5518 va_list args_copy;
5519 va_copy (args_copy, args);
5520
5521 const char *str;
5522 int number;
5523 float fnumber;
5524
5525 while (*format)
5526 {
5527 switch (*format++)
5528 {
5529 case 's': // string
5530 str = va_arg (args_copy, const char *);
5531 break;
5532 case 'd': // int
5533 number = va_arg (args_copy, int);
5534 break;
5535 case 'f': // float
5536 fnumber = va_arg (args_copy, double);
5537 break;
5538 default:
5539 break;
5540 }
5541 }
5542 va_end (args_copy);
5543 va_end (args);
5544}
5545
5546int
5547main ()
5548{
5549
5550 // Check bool.
5551 _Bool success = false;
5552
5553 // Check restrict.
5554 if (test_restrict ("String literal") == 0)
5555 success = true;
5556 char *restrict newvar = "Another string";
5557
5558 // Check varargs.
5559 test_varargs ("s, d' f .", "string", 65, 34.234);
5560 test_varargs_macros ();
5561
5562 // Check flexible array members.
5563 struct incomplete_array *ia =
5564 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5565 ia->datasize = 10;
5566 for (int i = 0; i < ia->datasize; ++i)
5567 ia->data[i] = i * 1.234;
5568
5569 // Check named initializers.
5570 struct named_init ni = {
5571 .number = 34,
5572 .name = L"Test wide string",
5573 .average = 543.34343,
5574 };
5575
5576 ni.number = 58;
5577
5578 int dynamic_array[ni.number];
5579 dynamic_array[ni.number - 1] = 543;
5580
5581 // work around unused variable warnings
5582 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5583 || dynamic_array[ni.number - 1] != 543);
5584
5585 ;
5586 return 0;
5587}
5588_ACEOF
5589for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5590do
5591 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005592 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005593 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005594fi
cristy3ed852e2009-09-05 21:47:34 +00005595rm -f core conftest.err conftest.$ac_objext
5596 test "x$ac_cv_prog_cc_c99" != "xno" && break
5597done
5598rm -f conftest.$ac_ext
5599CC=$ac_save_CC
5600
5601fi
5602# AC_CACHE_VAL
5603case "x$ac_cv_prog_cc_c99" in
5604 x)
cristy8b350f62009-11-15 23:12:43 +00005605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005606$as_echo "none needed" >&6; } ;;
5607 xno)
cristy8b350f62009-11-15 23:12:43 +00005608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005609$as_echo "unsupported" >&6; } ;;
5610 *)
5611 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00005612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00005613$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5614esac
cristy8b350f62009-11-15 23:12:43 +00005615if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005616 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5617else
cristy8b350f62009-11-15 23:12:43 +00005618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005619$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005620if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005621 $as_echo_n "(cached) " >&6
5622else
5623 ac_cv_prog_cc_c89=no
5624ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005626/* end confdefs.h. */
5627#include <stdarg.h>
5628#include <stdio.h>
5629#include <sys/types.h>
5630#include <sys/stat.h>
5631/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5632struct buf { int x; };
5633FILE * (*rcsopen) (struct buf *, struct stat *, int);
5634static char *e (p, i)
5635 char **p;
5636 int i;
5637{
5638 return p[i];
5639}
5640static char *f (char * (*g) (char **, int), char **p, ...)
5641{
5642 char *s;
5643 va_list v;
5644 va_start (v,p);
5645 s = g (p, va_arg (v,int));
5646 va_end (v);
5647 return s;
5648}
5649
5650/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5651 function prototypes and stuff, but not '\xHH' hex character constants.
5652 These don't provoke an error unfortunately, instead are silently treated
5653 as 'x'. The following induces an error, until -std is added to get
5654 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5655 array size at least. It's necessary to write '\x00'==0 to get something
5656 that's true only with -std. */
5657int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5658
5659/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5660 inside strings and character constants. */
5661#define FOO(x) 'x'
5662int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5663
5664int test (int i, double x);
5665struct s1 {int (*f) (int a);};
5666struct s2 {int (*f) (double a);};
5667int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5668int argc;
5669char **argv;
5670int
5671main ()
5672{
5673return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5674 ;
5675 return 0;
5676}
5677_ACEOF
5678for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5679 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5680do
5681 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005682 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005683 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005684fi
cristy3ed852e2009-09-05 21:47:34 +00005685rm -f core conftest.err conftest.$ac_objext
5686 test "x$ac_cv_prog_cc_c89" != "xno" && break
5687done
5688rm -f conftest.$ac_ext
5689CC=$ac_save_CC
5690
5691fi
5692# AC_CACHE_VAL
5693case "x$ac_cv_prog_cc_c89" in
5694 x)
cristy8b350f62009-11-15 23:12:43 +00005695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005696$as_echo "none needed" >&6; } ;;
5697 xno)
cristy8b350f62009-11-15 23:12:43 +00005698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005699$as_echo "unsupported" >&6; } ;;
5700 *)
5701 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005703$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5704esac
cristy8b350f62009-11-15 23:12:43 +00005705if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005706 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5707else
5708 ac_cv_prog_cc_stdc=no
5709fi
5710
cristy3ed852e2009-09-05 21:47:34 +00005711fi
cristy3ed852e2009-09-05 21:47:34 +00005712 ;;
5713esac
cristy8b350f62009-11-15 23:12:43 +00005714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00005715$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005716 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005717 $as_echo_n "(cached) " >&6
5718fi
5719
cristy8b350f62009-11-15 23:12:43 +00005720 case $ac_cv_prog_cc_stdc in #(
5721 no) :
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5723$as_echo "unsupported" >&6; } ;; #(
5724 '') :
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5726$as_echo "none needed" >&6; } ;; #(
5727 *) :
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00005729$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5730esac
5731
cristy3ed852e2009-09-05 21:47:34 +00005732ac_ext=c
5733ac_cpp='$CPP $CPPFLAGS'
5734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5736ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00005737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00005738$as_echo_n "checking how to run the C preprocessor... " >&6; }
5739# On Suns, sometimes $CPP names a directory.
5740if test -n "$CPP" && test -d "$CPP"; then
5741 CPP=
5742fi
5743if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00005744 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005745 $as_echo_n "(cached) " >&6
5746else
5747 # Double quotes because CPP needs to be expanded
5748 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5749 do
5750 ac_preproc_ok=false
5751for ac_c_preproc_warn_flag in '' yes
5752do
5753 # Use a header file that comes with gcc, so configuring glibc
5754 # with a fresh cross-compiler works.
5755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5756 # <limits.h> exists even on freestanding compilers.
5757 # On the NeXT, cc -E runs the code through the compiler's parser,
5758 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00005759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005760/* end confdefs.h. */
5761#ifdef __STDC__
5762# include <limits.h>
5763#else
5764# include <assert.h>
5765#endif
5766 Syntax error
5767_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005768if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005769
cristy8b350f62009-11-15 23:12:43 +00005770else
cristy3ed852e2009-09-05 21:47:34 +00005771 # Broken: fails on valid input.
5772continue
5773fi
cristy3ed852e2009-09-05 21:47:34 +00005774rm -f conftest.err conftest.$ac_ext
5775
5776 # OK, works on sane cases. Now check whether nonexistent headers
5777 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00005778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005779/* end confdefs.h. */
5780#include <ac_nonexistent.h>
5781_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005782if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005783 # Broken: success on invalid input.
5784continue
5785else
cristy3ed852e2009-09-05 21:47:34 +00005786 # Passes both tests.
5787ac_preproc_ok=:
5788break
5789fi
cristy3ed852e2009-09-05 21:47:34 +00005790rm -f conftest.err conftest.$ac_ext
5791
5792done
5793# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5794rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00005795if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00005796 break
5797fi
5798
5799 done
5800 ac_cv_prog_CPP=$CPP
5801
5802fi
5803 CPP=$ac_cv_prog_CPP
5804else
5805 ac_cv_prog_CPP=$CPP
5806fi
cristy8b350f62009-11-15 23:12:43 +00005807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00005808$as_echo "$CPP" >&6; }
5809ac_preproc_ok=false
5810for ac_c_preproc_warn_flag in '' yes
5811do
5812 # Use a header file that comes with gcc, so configuring glibc
5813 # with a fresh cross-compiler works.
5814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5815 # <limits.h> exists even on freestanding compilers.
5816 # On the NeXT, cc -E runs the code through the compiler's parser,
5817 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00005818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005819/* end confdefs.h. */
5820#ifdef __STDC__
5821# include <limits.h>
5822#else
5823# include <assert.h>
5824#endif
5825 Syntax error
5826_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005827if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005828
cristy8b350f62009-11-15 23:12:43 +00005829else
cristy3ed852e2009-09-05 21:47:34 +00005830 # Broken: fails on valid input.
5831continue
5832fi
cristy3ed852e2009-09-05 21:47:34 +00005833rm -f conftest.err conftest.$ac_ext
5834
5835 # OK, works on sane cases. Now check whether nonexistent headers
5836 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00005837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005838/* end confdefs.h. */
5839#include <ac_nonexistent.h>
5840_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005841if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005842 # Broken: success on invalid input.
5843continue
5844else
cristy3ed852e2009-09-05 21:47:34 +00005845 # Passes both tests.
5846ac_preproc_ok=:
5847break
5848fi
cristy3ed852e2009-09-05 21:47:34 +00005849rm -f conftest.err conftest.$ac_ext
5850
5851done
5852# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5853rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00005854if $ac_preproc_ok; then :
5855
cristy3ed852e2009-09-05 21:47:34 +00005856else
cristy8b350f62009-11-15 23:12:43 +00005857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005858$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00005859as_fn_error "C preprocessor \"$CPP\" fails sanity check
5860See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005861fi
5862
5863ac_ext=c
5864ac_cpp='$CPP $CPPFLAGS'
5865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5867ac_compiler_gnu=$ac_cv_c_compiler_gnu
5868
cristy8b350f62009-11-15 23:12:43 +00005869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00005870$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005871if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005872 $as_echo_n "(cached) " >&6
5873else
5874 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5875 for ac_i in 1 2 3 4 5 6 7; do
5876 ac_script="$ac_script$as_nl$ac_script"
5877 done
5878 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00005879 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00005880 if test -z "$SED"; then
5881 ac_path_SED_found=false
5882 # Loop through the user's path and test for each of PROGNAME-LIST
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884for as_dir in $PATH
5885do
5886 IFS=$as_save_IFS
5887 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005888 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00005889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5891 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5892# Check for GNU ac_path_SED and select it if it is found.
5893 # Check for GNU $ac_path_SED
5894case `"$ac_path_SED" --version 2>&1` in
5895*GNU*)
5896 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5897*)
5898 ac_count=0
5899 $as_echo_n 0123456789 >"conftest.in"
5900 while :
5901 do
5902 cat "conftest.in" "conftest.in" >"conftest.tmp"
5903 mv "conftest.tmp" "conftest.in"
5904 cp "conftest.in" "conftest.nl"
5905 $as_echo '' >> "conftest.nl"
5906 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5907 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005908 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005909 if test $ac_count -gt ${ac_path_SED_max-0}; then
5910 # Best one so far, save it but keep looking for a better one
5911 ac_cv_path_SED="$ac_path_SED"
5912 ac_path_SED_max=$ac_count
5913 fi
5914 # 10*(2^10) chars as input seems more than enough
5915 test $ac_count -gt 10 && break
5916 done
5917 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5918esac
5919
5920 $ac_path_SED_found && break 3
5921 done
5922 done
cristy8b350f62009-11-15 23:12:43 +00005923 done
cristy3ed852e2009-09-05 21:47:34 +00005924IFS=$as_save_IFS
5925 if test -z "$ac_cv_path_SED"; then
cristy8b350f62009-11-15 23:12:43 +00005926 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00005927 fi
5928else
5929 ac_cv_path_SED=$SED
5930fi
5931
5932fi
cristy8b350f62009-11-15 23:12:43 +00005933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00005934$as_echo "$ac_cv_path_SED" >&6; }
5935 SED="$ac_cv_path_SED"
5936 rm -f conftest.sed
5937
5938test -z "$SED" && SED=sed
5939Xsed="$SED -e 1s/^X//"
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
cristy8b350f62009-11-15 23:12:43 +00005951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
cristy3ed852e2009-09-05 21:47:34 +00005952$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005953if test "${ac_cv_path_GREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005954 $as_echo_n "(cached) " >&6
5955else
5956 if test -z "$GREP"; then
5957 ac_path_GREP_found=false
5958 # Loop through the user's path and test for each of PROGNAME-LIST
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5961do
5962 IFS=$as_save_IFS
5963 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005964 for ac_prog in grep ggrep; do
cristy3ed852e2009-09-05 21:47:34 +00005965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5967 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5968# Check for GNU ac_path_GREP and select it if it is found.
5969 # Check for GNU $ac_path_GREP
5970case `"$ac_path_GREP" --version 2>&1` in
5971*GNU*)
5972 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5973*)
5974 ac_count=0
5975 $as_echo_n 0123456789 >"conftest.in"
5976 while :
5977 do
5978 cat "conftest.in" "conftest.in" >"conftest.tmp"
5979 mv "conftest.tmp" "conftest.in"
5980 cp "conftest.in" "conftest.nl"
5981 $as_echo 'GREP' >> "conftest.nl"
5982 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5983 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005984 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005985 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5986 # Best one so far, save it but keep looking for a better one
5987 ac_cv_path_GREP="$ac_path_GREP"
5988 ac_path_GREP_max=$ac_count
5989 fi
5990 # 10*(2^10) chars as input seems more than enough
5991 test $ac_count -gt 10 && break
5992 done
5993 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5994esac
5995
5996 $ac_path_GREP_found && break 3
5997 done
5998 done
cristy8b350f62009-11-15 23:12:43 +00005999 done
cristy3ed852e2009-09-05 21:47:34 +00006000IFS=$as_save_IFS
6001 if test -z "$ac_cv_path_GREP"; then
cristy8b350f62009-11-15 23:12:43 +00006002 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00006003 fi
6004else
6005 ac_cv_path_GREP=$GREP
6006fi
6007
6008fi
cristy8b350f62009-11-15 23:12:43 +00006009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006010$as_echo "$ac_cv_path_GREP" >&6; }
6011 GREP="$ac_cv_path_GREP"
6012
6013
cristy8b350f62009-11-15 23:12:43 +00006014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00006015$as_echo_n "checking for egrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006016if test "${ac_cv_path_EGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006017 $as_echo_n "(cached) " >&6
6018else
6019 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6020 then ac_cv_path_EGREP="$GREP -E"
6021 else
6022 if test -z "$EGREP"; then
6023 ac_path_EGREP_found=false
6024 # Loop through the user's path and test for each of PROGNAME-LIST
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6027do
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006030 for ac_prog in egrep; do
cristy3ed852e2009-09-05 21:47:34 +00006031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6033 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6034# Check for GNU ac_path_EGREP and select it if it is found.
6035 # Check for GNU $ac_path_EGREP
6036case `"$ac_path_EGREP" --version 2>&1` in
6037*GNU*)
6038 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6039*)
6040 ac_count=0
6041 $as_echo_n 0123456789 >"conftest.in"
6042 while :
6043 do
6044 cat "conftest.in" "conftest.in" >"conftest.tmp"
6045 mv "conftest.tmp" "conftest.in"
6046 cp "conftest.in" "conftest.nl"
6047 $as_echo 'EGREP' >> "conftest.nl"
6048 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00006050 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00006051 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6052 # Best one so far, save it but keep looking for a better one
6053 ac_cv_path_EGREP="$ac_path_EGREP"
6054 ac_path_EGREP_max=$ac_count
6055 fi
6056 # 10*(2^10) chars as input seems more than enough
6057 test $ac_count -gt 10 && break
6058 done
6059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6060esac
6061
6062 $ac_path_EGREP_found && break 3
6063 done
6064 done
cristy8b350f62009-11-15 23:12:43 +00006065 done
cristy3ed852e2009-09-05 21:47:34 +00006066IFS=$as_save_IFS
6067 if test -z "$ac_cv_path_EGREP"; then
cristy8b350f62009-11-15 23:12:43 +00006068 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00006069 fi
6070else
6071 ac_cv_path_EGREP=$EGREP
6072fi
6073
6074 fi
6075fi
cristy8b350f62009-11-15 23:12:43 +00006076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006077$as_echo "$ac_cv_path_EGREP" >&6; }
6078 EGREP="$ac_cv_path_EGREP"
6079
6080
cristy8b350f62009-11-15 23:12:43 +00006081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00006082$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006083if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006084 $as_echo_n "(cached) " >&6
6085else
6086 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6087 then ac_cv_path_FGREP="$GREP -F"
6088 else
6089 if test -z "$FGREP"; then
6090 ac_path_FGREP_found=false
6091 # Loop through the user's path and test for each of PROGNAME-LIST
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6094do
6095 IFS=$as_save_IFS
6096 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006097 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00006098 for ac_exec_ext in '' $ac_executable_extensions; do
6099 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6100 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6101# Check for GNU ac_path_FGREP and select it if it is found.
6102 # Check for GNU $ac_path_FGREP
6103case `"$ac_path_FGREP" --version 2>&1` in
6104*GNU*)
6105 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6106*)
6107 ac_count=0
6108 $as_echo_n 0123456789 >"conftest.in"
6109 while :
6110 do
6111 cat "conftest.in" "conftest.in" >"conftest.tmp"
6112 mv "conftest.tmp" "conftest.in"
6113 cp "conftest.in" "conftest.nl"
6114 $as_echo 'FGREP' >> "conftest.nl"
6115 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00006117 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00006118 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6119 # Best one so far, save it but keep looking for a better one
6120 ac_cv_path_FGREP="$ac_path_FGREP"
6121 ac_path_FGREP_max=$ac_count
6122 fi
6123 # 10*(2^10) chars as input seems more than enough
6124 test $ac_count -gt 10 && break
6125 done
6126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6127esac
6128
6129 $ac_path_FGREP_found && break 3
6130 done
6131 done
cristy8b350f62009-11-15 23:12:43 +00006132 done
cristy3ed852e2009-09-05 21:47:34 +00006133IFS=$as_save_IFS
6134 if test -z "$ac_cv_path_FGREP"; then
cristy8b350f62009-11-15 23:12:43 +00006135 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00006136 fi
6137else
6138 ac_cv_path_FGREP=$FGREP
6139fi
6140
6141 fi
6142fi
cristy8b350f62009-11-15 23:12:43 +00006143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006144$as_echo "$ac_cv_path_FGREP" >&6; }
6145 FGREP="$ac_cv_path_FGREP"
6146
6147
6148test -z "$GREP" && GREP=grep
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00006169if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006170 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6171else
6172 with_gnu_ld=no
6173fi
6174
6175ac_prog=ld
6176if test "$GCC" = yes; then
6177 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00006178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00006179$as_echo_n "checking for ld used by $CC... " >&6; }
6180 case $host in
6181 *-*-mingw*)
6182 # gcc leaves a trailing carriage return which upsets mingw
6183 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6184 *)
6185 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6186 esac
6187 case $ac_prog in
6188 # Accept absolute paths.
6189 [\\/]* | ?:[\\/]*)
6190 re_direlt='/[^/][^/]*/\.\./'
6191 # Canonicalize the pathname of ld
6192 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6193 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6194 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6195 done
6196 test -z "$LD" && LD="$ac_prog"
6197 ;;
6198 "")
6199 # If it fails, then pretend we aren't using GCC.
6200 ac_prog=ld
6201 ;;
6202 *)
6203 # If it is relative, then search for the first ld in PATH.
6204 with_gnu_ld=unknown
6205 ;;
6206 esac
6207elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00006208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00006209$as_echo_n "checking for GNU ld... " >&6; }
6210else
cristy8b350f62009-11-15 23:12:43 +00006211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00006212$as_echo_n "checking for non-GNU ld... " >&6; }
6213fi
cristy8b350f62009-11-15 23:12:43 +00006214if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006215 $as_echo_n "(cached) " >&6
6216else
6217 if test -z "$LD"; then
6218 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6219 for ac_dir in $PATH; do
6220 IFS="$lt_save_ifs"
6221 test -z "$ac_dir" && ac_dir=.
6222 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6223 lt_cv_path_LD="$ac_dir/$ac_prog"
6224 # Check to see if the program is GNU ld. I'd rather use --version,
6225 # but apparently some variants of GNU ld only accept -v.
6226 # Break only if it was the GNU/non-GNU ld that we prefer.
6227 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6228 *GNU* | *'with BFD'*)
6229 test "$with_gnu_ld" != no && break
6230 ;;
6231 *)
6232 test "$with_gnu_ld" != yes && break
6233 ;;
6234 esac
6235 fi
6236 done
6237 IFS="$lt_save_ifs"
6238else
6239 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6240fi
6241fi
6242
6243LD="$lt_cv_path_LD"
6244if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00006245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00006246$as_echo "$LD" >&6; }
6247else
cristy8b350f62009-11-15 23:12:43 +00006248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006249$as_echo "no" >&6; }
6250fi
cristy8b350f62009-11-15 23:12:43 +00006251test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00006253$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006254if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006255 $as_echo_n "(cached) " >&6
6256else
6257 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6258case `$LD -v 2>&1 </dev/null` in
6259*GNU* | *'with BFD'*)
6260 lt_cv_prog_gnu_ld=yes
6261 ;;
6262*)
6263 lt_cv_prog_gnu_ld=no
6264 ;;
6265esac
6266fi
cristy8b350f62009-11-15 23:12:43 +00006267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00006268$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6269with_gnu_ld=$lt_cv_prog_gnu_ld
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279if test -n "$ac_tool_prefix"; then
6280 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6281set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006283$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006284if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006285 $as_echo_n "(cached) " >&6
6286else
6287 if test -n "$RANLIB"; then
6288 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6289else
6290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291for as_dir in $PATH
6292do
6293 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006295 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +00006298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006299 break 2
6300 fi
6301done
cristy8b350f62009-11-15 23:12:43 +00006302 done
cristy3ed852e2009-09-05 21:47:34 +00006303IFS=$as_save_IFS
6304
6305fi
6306fi
6307RANLIB=$ac_cv_prog_RANLIB
6308if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00006309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00006310$as_echo "$RANLIB" >&6; }
6311else
cristy8b350f62009-11-15 23:12:43 +00006312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006313$as_echo "no" >&6; }
6314fi
6315
6316
6317fi
6318if test -z "$ac_cv_prog_RANLIB"; then
6319 ac_ct_RANLIB=$RANLIB
6320 # Extract the first word of "ranlib", so it can be a program name with args.
6321set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006323$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006324if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006325 $as_echo_n "(cached) " >&6
6326else
6327 if test -n "$ac_ct_RANLIB"; then
6328 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6329else
6330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331for as_dir in $PATH
6332do
6333 IFS=$as_save_IFS
6334 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006335 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6337 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +00006338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006339 break 2
6340 fi
6341done
cristy8b350f62009-11-15 23:12:43 +00006342 done
cristy3ed852e2009-09-05 21:47:34 +00006343IFS=$as_save_IFS
6344
6345fi
6346fi
6347ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6348if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00006349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00006350$as_echo "$ac_ct_RANLIB" >&6; }
6351else
cristy8b350f62009-11-15 23:12:43 +00006352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006353$as_echo "no" >&6; }
6354fi
6355
6356 if test "x$ac_ct_RANLIB" = x; then
6357 RANLIB=":"
6358 else
6359 case $cross_compiling:$ac_tool_warned in
6360yes:)
cristy8b350f62009-11-15 23:12:43 +00006361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00006362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6363ac_tool_warned=yes ;;
6364esac
6365 RANLIB=$ac_ct_RANLIB
6366 fi
6367else
6368 RANLIB="$ac_cv_prog_RANLIB"
6369fi
6370
6371
6372if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00006373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00006374$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6375else
cristy8b350f62009-11-15 23:12:43 +00006376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00006377$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6378fi
6379set dummy $CC; ac_cc=`$as_echo "$2" |
6380 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy8b350f62009-11-15 23:12:43 +00006381if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00006382 $as_echo_n "(cached) " >&6
6383else
cristy8b350f62009-11-15 23:12:43 +00006384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006385/* end confdefs.h. */
6386
6387int
6388main ()
6389{
6390
6391 ;
6392 return 0;
6393}
6394_ACEOF
6395# Make sure it works both with $CC and with simple cc.
6396# We do the test twice because some compilers refuse to overwrite an
6397# existing .o file with -o, though they will create one.
6398ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6399rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00006400if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6402 *) ac_try_echo=$ac_try;;
6403esac
cristy8b350f62009-11-15 23:12:43 +00006404eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6405$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006406 (eval "$ac_try") 2>&5
6407 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6409 test $ac_status = 0; } &&
6410 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412 *) ac_try_echo=$ac_try;;
6413esac
cristy8b350f62009-11-15 23:12:43 +00006414eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6415$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006416 (eval "$ac_try") 2>&5
6417 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6419 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00006420then
6421 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6422 if test "x$CC" != xcc; then
6423 # Test first that cc exists at all.
6424 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00006425 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6428esac
cristy8b350f62009-11-15 23:12:43 +00006429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6430$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006431 (eval "$ac_try") 2>&5
6432 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6434 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00006435 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6436 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00006437 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6440esac
cristy8b350f62009-11-15 23:12:43 +00006441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6442$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006443 (eval "$ac_try") 2>&5
6444 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6446 test $ac_status = 0; } &&
6447 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6450esac
cristy8b350f62009-11-15 23:12:43 +00006451eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6452$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006453 (eval "$ac_try") 2>&5
6454 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6456 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00006457 then
6458 # cc works too.
6459 :
6460 else
6461 # cc exists but doesn't like -o.
6462 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6463 fi
6464 fi
6465 fi
6466else
6467 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6468fi
6469rm -f core conftest*
6470
6471fi
6472if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00006473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006474$as_echo "yes" >&6; }
6475else
cristy8b350f62009-11-15 23:12:43 +00006476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006477$as_echo "no" >&6; }
6478
cristy8b350f62009-11-15 23:12:43 +00006479$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006480
6481fi
6482
6483# FIXME: we rely on the cache variable name because
6484# there is no other way.
6485set dummy $CC
6486am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6487eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6488if test "$am_t" != yes; then
6489 # Losing compiler, so override with the script.
6490 # FIXME: It is wrong to rewrite CC.
6491 # But if we don't then we get into trouble of one sort or another.
6492 # A longer-term fix would be to have automake use am__CC in this case,
6493 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6494 CC="$am_aux_dir/compile $CC"
6495fi
6496
6497
cristy3ed852e2009-09-05 21:47:34 +00006498
cristy8b350f62009-11-15 23:12:43 +00006499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00006500$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6501set x ${MAKE-make}
6502ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00006503if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00006504 $as_echo_n "(cached) " >&6
6505else
6506 cat >conftest.make <<\_ACEOF
6507SHELL = /bin/sh
6508all:
6509 @echo '@@@%%%=$(MAKE)=@@@%%%'
6510_ACEOF
6511# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6512case `${MAKE-make} -f conftest.make 2>/dev/null` in
6513 *@@@%%%=?*=@@@%%%*)
6514 eval ac_cv_prog_make_${ac_make}_set=yes;;
6515 *)
6516 eval ac_cv_prog_make_${ac_make}_set=no;;
6517esac
6518rm -f conftest.make
6519fi
6520if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00006521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006522$as_echo "yes" >&6; }
6523 SET_MAKE=
6524else
cristy8b350f62009-11-15 23:12:43 +00006525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006526$as_echo "no" >&6; }
6527 SET_MAKE="MAKE=${MAKE-make}"
6528fi
6529
cristy3ed852e2009-09-05 21:47:34 +00006530
cristy8b350f62009-11-15 23:12:43 +00006531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5
cristy3ed852e2009-09-05 21:47:34 +00006532$as_echo_n "checking maximum warning verbosity option... " >&6; }
6533
6534
6535
6536
6537# Check whether --with-maximum-compile-warnings was given.
cristy8b350f62009-11-15 23:12:43 +00006538if test "${with_maximum_compile_warnings+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006539 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
6540else
6541 ac_compile_warnings_on=""
6542fi
6543
6544
6545 if test x"$ac_compile_warnings_on" = xno
6546 then
6547 ac_compile_warnings_msg=no
6548 else
6549 if test -n "$CXX"
6550 then
6551 if test "$GXX" = "yes"
6552 then
6553 ac_compile_warnings_opt='-Wall -W'
6554 fi
6555 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
6556 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
6557 fi
6558
6559 if test -n "$CC"
6560 then
6561 if test "$GCC" = "yes"
6562 then
6563 ac_compile_warnings_opt='-Wall -W'
6564 fi
6565 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
6566 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
6567 fi
6568 fi
cristy8b350f62009-11-15 23:12:43 +00006569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5
cristy3ed852e2009-09-05 21:47:34 +00006570$as_echo "$ac_compile_warnings_msg" >&6; }
6571 unset ac_compile_warnings_msg
6572 unset ac_compile_warnings_opt
6573
cristy8b350f62009-11-15 23:12:43 +00006574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00006575$as_echo_n "checking whether ln -s works... " >&6; }
6576LN_S=$as_ln_s
6577if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00006578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006579$as_echo "yes" >&6; }
6580else
cristy8b350f62009-11-15 23:12:43 +00006581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00006582$as_echo "no, using $LN_S" >&6; }
6583fi
6584
cristy8b350f62009-11-15 23:12:43 +00006585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00006586$as_echo_n "checking if malloc debugging is wanted... " >&6; }
6587
6588# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00006589if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006590 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00006591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006592$as_echo "yes" >&6; }
6593
cristy8b350f62009-11-15 23:12:43 +00006594$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006595
6596 LIBS="$LIBS -ldmalloc"
6597 LDFLAGS="$LDFLAGS -g"
6598else
cristy8b350f62009-11-15 23:12:43 +00006599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006600$as_echo "no" >&6; }
6601fi
6602else
cristy8b350f62009-11-15 23:12:43 +00006603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006604$as_echo "no" >&6; }
6605fi
6606
6607
6608
6609
6610if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6611 if test -n "$ac_tool_prefix"; then
6612 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6613set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006615$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006616if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006617 $as_echo_n "(cached) " >&6
6618else
6619 case $PKG_CONFIG in
6620 [\\/]* | ?:[\\/]*)
6621 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6622 ;;
6623 *)
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625for as_dir in $PATH
6626do
6627 IFS=$as_save_IFS
6628 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006629 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6631 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00006632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006633 break 2
6634 fi
6635done
cristy8b350f62009-11-15 23:12:43 +00006636 done
cristy3ed852e2009-09-05 21:47:34 +00006637IFS=$as_save_IFS
6638
6639 ;;
6640esac
6641fi
6642PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6643if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00006644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00006645$as_echo "$PKG_CONFIG" >&6; }
6646else
cristy8b350f62009-11-15 23:12:43 +00006647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006648$as_echo "no" >&6; }
6649fi
6650
6651
6652fi
6653if test -z "$ac_cv_path_PKG_CONFIG"; then
6654 ac_pt_PKG_CONFIG=$PKG_CONFIG
6655 # Extract the first word of "pkg-config", so it can be a program name with args.
6656set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006658$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006659if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006660 $as_echo_n "(cached) " >&6
6661else
6662 case $ac_pt_PKG_CONFIG in
6663 [\\/]* | ?:[\\/]*)
6664 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6665 ;;
6666 *)
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668for as_dir in $PATH
6669do
6670 IFS=$as_save_IFS
6671 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006672 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6674 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00006675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006676 break 2
6677 fi
6678done
cristy8b350f62009-11-15 23:12:43 +00006679 done
cristy3ed852e2009-09-05 21:47:34 +00006680IFS=$as_save_IFS
6681
6682 ;;
6683esac
6684fi
6685ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6686if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00006687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00006688$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6689else
cristy8b350f62009-11-15 23:12:43 +00006690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006691$as_echo "no" >&6; }
6692fi
6693
6694 if test "x$ac_pt_PKG_CONFIG" = x; then
6695 PKG_CONFIG=""
6696 else
6697 case $cross_compiling:$ac_tool_warned in
6698yes:)
cristy8b350f62009-11-15 23:12:43 +00006699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00006700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6701ac_tool_warned=yes ;;
6702esac
6703 PKG_CONFIG=$ac_pt_PKG_CONFIG
6704 fi
6705else
6706 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6707fi
6708
6709fi
6710if test -n "$PKG_CONFIG"; then
6711 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00006712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00006713$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6714 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00006715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006716$as_echo "yes" >&6; }
6717 else
cristy8b350f62009-11-15 23:12:43 +00006718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006719$as_echo "no" >&6; }
6720 PKG_CONFIG=""
6721 fi
6722
6723fi
6724
6725#
6726# Enable OS features.
6727#
6728
6729
cristy8b350f62009-11-15 23:12:43 +00006730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +00006731$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006732if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006733 $as_echo_n "(cached) " >&6
6734else
cristy8b350f62009-11-15 23:12:43 +00006735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006736/* end confdefs.h. */
6737#include <stdlib.h>
6738#include <stdarg.h>
6739#include <string.h>
6740#include <float.h>
6741
6742int
6743main ()
6744{
6745
6746 ;
6747 return 0;
6748}
6749_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006750if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006751 ac_cv_header_stdc=yes
6752else
cristy8b350f62009-11-15 23:12:43 +00006753 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +00006754fi
cristy3ed852e2009-09-05 21:47:34 +00006755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6756
6757if test $ac_cv_header_stdc = yes; then
6758 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +00006759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006760/* end confdefs.h. */
6761#include <string.h>
6762
6763_ACEOF
6764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +00006765 $EGREP "memchr" >/dev/null 2>&1; then :
6766
cristy3ed852e2009-09-05 21:47:34 +00006767else
6768 ac_cv_header_stdc=no
6769fi
6770rm -f conftest*
6771
6772fi
6773
6774if test $ac_cv_header_stdc = yes; then
6775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +00006776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006777/* end confdefs.h. */
6778#include <stdlib.h>
6779
6780_ACEOF
6781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +00006782 $EGREP "free" >/dev/null 2>&1; then :
6783
cristy3ed852e2009-09-05 21:47:34 +00006784else
6785 ac_cv_header_stdc=no
6786fi
6787rm -f conftest*
6788
6789fi
6790
6791if test $ac_cv_header_stdc = yes; then
6792 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +00006793 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006794 :
6795else
cristy8b350f62009-11-15 23:12:43 +00006796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006797/* end confdefs.h. */
6798#include <ctype.h>
6799#include <stdlib.h>
6800#if ((' ' & 0x0FF) == 0x020)
6801# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6802# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6803#else
6804# define ISLOWER(c) \
6805 (('a' <= (c) && (c) <= 'i') \
6806 || ('j' <= (c) && (c) <= 'r') \
6807 || ('s' <= (c) && (c) <= 'z'))
6808# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6809#endif
6810
6811#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6812int
6813main ()
6814{
6815 int i;
6816 for (i = 0; i < 256; i++)
6817 if (XOR (islower (i), ISLOWER (i))
6818 || toupper (i) != TOUPPER (i))
6819 return 2;
6820 return 0;
6821}
6822_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006823if ac_fn_c_try_run "$LINENO"; then :
6824
cristy3ed852e2009-09-05 21:47:34 +00006825else
cristy8b350f62009-11-15 23:12:43 +00006826 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +00006827fi
cristy8b350f62009-11-15 23:12:43 +00006828rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6829 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006830fi
6831
cristy3ed852e2009-09-05 21:47:34 +00006832fi
6833fi
cristy8b350f62009-11-15 23:12:43 +00006834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006835$as_echo "$ac_cv_header_stdc" >&6; }
6836if test $ac_cv_header_stdc = yes; then
6837
cristy8b350f62009-11-15 23:12:43 +00006838$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006839
6840fi
6841
6842# On IRIX 5.3, sys/types and inttypes.h are conflicting.
cristy3ed852e2009-09-05 21:47:34 +00006843for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6844 inttypes.h stdint.h unistd.h
cristy8b350f62009-11-15 23:12:43 +00006845do :
6846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6847ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6848"
6849eval as_val=\$$as_ac_Header
6850 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006851 cat >>confdefs.h <<_ACEOF
6852#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6853_ACEOF
6854
6855fi
6856
6857done
6858
6859
6860
cristy8b350f62009-11-15 23:12:43 +00006861 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6862if test "x$ac_cv_header_minix_config_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006863 MINIX=yes
6864else
6865 MINIX=
6866fi
6867
6868
6869 if test "$MINIX" = yes; then
6870
cristy8b350f62009-11-15 23:12:43 +00006871$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006872
6873
cristy8b350f62009-11-15 23:12:43 +00006874$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006875
6876
cristy8b350f62009-11-15 23:12:43 +00006877$as_echo "#define _MINIX 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006878
6879 fi
6880
6881
cristy8b350f62009-11-15 23:12:43 +00006882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
cristy3ed852e2009-09-05 21:47:34 +00006883$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006884if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006885 $as_echo_n "(cached) " >&6
6886else
cristy8b350f62009-11-15 23:12:43 +00006887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006888/* end confdefs.h. */
6889
6890# define __EXTENSIONS__ 1
6891 $ac_includes_default
6892int
6893main ()
6894{
6895
6896 ;
6897 return 0;
6898}
6899_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006900if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006901 ac_cv_safe_to_define___extensions__=yes
6902else
cristy8b350f62009-11-15 23:12:43 +00006903 ac_cv_safe_to_define___extensions__=no
cristy3ed852e2009-09-05 21:47:34 +00006904fi
cristy3ed852e2009-09-05 21:47:34 +00006905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6906fi
cristy8b350f62009-11-15 23:12:43 +00006907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
cristy3ed852e2009-09-05 21:47:34 +00006908$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6909 test $ac_cv_safe_to_define___extensions__ = yes &&
cristy8b350f62009-11-15 23:12:43 +00006910 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006911
cristy8b350f62009-11-15 23:12:43 +00006912 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006913
cristy8b350f62009-11-15 23:12:43 +00006914 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006915
cristy8b350f62009-11-15 23:12:43 +00006916 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006917
cristy8b350f62009-11-15 23:12:43 +00006918 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6919
cristy3ed852e2009-09-05 21:47:34 +00006920
6921
6922
6923#
6924# Enable run-time checking.
6925#
6926# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00006927if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006928 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
6929else
6930 enable_bounds_checking='no'
6931fi
6932
6933
6934if test "$enable_bounds_checking" = yes; then
6935
cristy8b350f62009-11-15 23:12:43 +00006936$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006937
6938fi
6939
6940#
6941# Tests for Windows
6942#
6943
6944
6945
6946GDI32_LIBS=''
6947StaticCplusPlusLibraries='no'
6948native_win32_build='no'
6949cygwin_build='no'
6950case "${host_os}" in
6951 cygwin* )
6952 StaticCplusPlusLibraries='yes'
6953 cygwin_build='yes'
6954 GDI32_LIBS='-lgdi32'
6955 ;;
6956 mingw* )
6957 StaticCplusPlusLibraries='yes'
6958 native_win32_build='yes'
6959 GDI32_LIBS='-lgdi32'
6960 ;;
6961esac
6962if test "${GDI32_LIBS}x" != 'x'; then
6963
cristy8b350f62009-11-15 23:12:43 +00006964$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006965
6966fi
6967
6968 if test "${GDI32_LIBS}x" != 'x' ; then
6969 WINGDI32_DELEGATE_TRUE=
6970 WINGDI32_DELEGATE_FALSE='#'
6971else
6972 WINGDI32_DELEGATE_TRUE='#'
6973 WINGDI32_DELEGATE_FALSE=
6974fi
6975
6976 if test "${native_win32_build}" = 'yes' ; then
6977 WIN32_NATIVE_BUILD_TRUE=
6978 WIN32_NATIVE_BUILD_FALSE='#'
6979else
6980 WIN32_NATIVE_BUILD_TRUE='#'
6981 WIN32_NATIVE_BUILD_FALSE=
6982fi
6983
6984 if test "${cygwin_build}" = 'yes' ; then
6985 CYGWIN_BUILD_TRUE=
6986 CYGWIN_BUILD_FALSE='#'
6987else
6988 CYGWIN_BUILD_TRUE='#'
6989 CYGWIN_BUILD_FALSE=
6990fi
6991
6992 if test "x${CC}" = 'xcl.exe' ; then
6993 USING_CL_TRUE=
6994 USING_CL_FALSE='#'
6995else
6996 USING_CL_TRUE='#'
6997 USING_CL_FALSE=
6998fi
6999
7000
7001WinPathScript="${srcdirfull}/winpath.sh"
7002
7003
7004#
7005# Compiler flags tweaks
7006#
7007if test "${GCC}" != "yes"; then
7008 case "${host}" in
7009 *-*-hpux* )
7010 # aCC: HP ANSI C++ B3910B A.03.34
7011 CFLAGS="${CFLAGS} -Wp,-H30000"
7012 if test -n "${CXXFLAGS}"; then
7013 CXXFLAGS='-AA'
7014 else
7015 CXXFLAGS="${CXXFLAGS} -AA"
7016 fi
7017 ;;
7018 *-dec-osf5.* )
7019 # Compaq alphaev68-dec-osf5.1 compiler
7020 if test -n "${CXXFLAGS}"; then
7021 CXXFLAGS='-std strict_ansi -noimplicit_include'
7022 else
7023 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7024 fi
7025 esac
7026fi
7027
7028# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00007029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00007030$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007031if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007032 $as_echo_n "(cached) " >&6
7033else
7034
7035im_cv_ld_lazyload='none'
7036case "${host}" in
7037 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
7038 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
7039 im_cv_ld_lazyload='-Wl,-zlazyload'
7040 fi
7041 ;;
7042esac
7043
7044fi
cristy8b350f62009-11-15 23:12:43 +00007045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00007046$as_echo "$im_cv_ld_lazyload" >&6; }
7047if test "${im_cv_ld_lazyload}" != 'none' ; then
7048 if test -z "${LDFLAGS}" ; then
7049 LDFLAGS="${im_cv_ld_lazyload}"
7050 else
7051 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
7052 fi
7053fi
7054
7055case "$host" in
7056*darwin* | *-macos10*)
7057 if test -d /opt/local ; then
7058 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
7059 LDFLAGS="$LDFLAGS -L/opt/local/lib"
7060 elif test -d /sw ; then
7061 CPPFLAGS="$CPPFLAGS -I/sw/include"
7062 LDFLAGS="$LDFLAGS -L/sw/lib"
7063 fi
7064 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00007065if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007066 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
7067else
7068 build_osxuniversal=no
7069fi
7070
7071
7072 if test "${build_osxuniversal}" != no ; then
7073 if test "$enable_dependency_tracking" != no ; then
cristy8b350f62009-11-15 23:12:43 +00007074 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00007075Please re-run configure with these options:
7076 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00007077 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007078 fi
7079 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7080 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7081 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7082 fi
7083 ;;
7084esac
7085
7086# Enable support for threads
7087
7088# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00007089if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007090 withval=$with_threads; with_threads=$withval
7091else
7092 with_threads='yes'
7093fi
7094
7095
7096have_threads=no
7097if test "$with_threads" != 'no'; then
7098
7099
7100
7101ac_ext=c
7102ac_cpp='$CPP $CPPFLAGS'
7103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7105ac_compiler_gnu=$ac_cv_c_compiler_gnu
7106
7107acx_pthread_ok=no
7108
7109# We used to check for pthread.h first, but this fails if pthread.h
7110# requires special compiler flags (e.g. on True64 or Sequent).
7111# It gets checked for in the link test anyway.
7112
7113# First of all, check if the user has set any of the PTHREAD_LIBS,
7114# etcetera environment variables, and if threads linking works using
7115# them:
7116if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7117 save_CFLAGS="$CFLAGS"
7118 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7119 save_LIBS="$LIBS"
7120 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00007121 { $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 +00007122$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007124/* end confdefs.h. */
7125
7126/* Override any GCC internal prototype to avoid an error.
7127 Use char because int might match the return type of a GCC
7128 builtin and then its argument prototype would still apply. */
7129#ifdef __cplusplus
7130extern "C"
7131#endif
7132char pthread_join ();
7133int
7134main ()
7135{
7136return pthread_join ();
7137 ;
7138 return 0;
7139}
7140_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007141if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007142 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00007143fi
cristy8b350f62009-11-15 23:12:43 +00007144rm -f core conftest.err conftest.$ac_objext \
7145 conftest$ac_exeext conftest.$ac_ext
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00007147$as_echo "$acx_pthread_ok" >&6; }
7148 if test x"$acx_pthread_ok" = xno; then
7149 PTHREAD_LIBS=""
7150 PTHREAD_CFLAGS=""
7151 fi
7152 LIBS="$save_LIBS"
7153 CFLAGS="$save_CFLAGS"
7154fi
7155
7156# We must check for the threads library under a number of different
7157# names; the ordering is very important because some systems
7158# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7159# libraries is broken (non-POSIX).
7160
7161# Create a list of thread flags to try. Items starting with a "-" are
7162# C compiler flags, and other items are library names, except for "none"
7163# which indicates that we try without any flags at all, and "pthread-config"
7164# which is a program returning the flags for the Pth emulation library.
7165
7166acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7167
7168# The ordering *is* (sometimes) important. Some notes on the
7169# individual items follow:
7170
7171# pthreads: AIX (must check this before -lpthread)
7172# none: in case threads are in libc; should be tried before -Kthread and
7173# other compiler flags to prevent continual compiler warnings
7174# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7175# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7176# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7177# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7178# -pthreads: Solaris/gcc
7179# -mthreads: Mingw32/gcc, Lynx/gcc
7180# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7181# doesn't hurt to check since this sometimes defines pthreads too;
7182# also defines -D_REENTRANT)
7183# ... -mt is also the pthreads flag for HP/aCC
7184# pthread: Linux, etcetera
7185# --thread-safe: KAI C++
7186# pthread-config: use pthread-config program (for GNU Pth library)
7187
7188case "${host_cpu}-${host_os}" in
7189 *solaris*)
7190
7191 # On Solaris (at least, for some versions), libc contains stubbed
7192 # (non-functional) versions of the pthreads routines, so link-based
7193 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7194 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7195 # a function called by this macro, so we could check for that, but
7196 # who knows whether they'll stub that too in a future libc.) So,
7197 # we'll just look for -pthreads and -lpthread first:
7198
7199 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7200 ;;
cristy3ed852e2009-09-05 21:47:34 +00007201esac
7202
7203if test x"$acx_pthread_ok" = xno; then
7204for flag in $acx_pthread_flags; do
7205
7206 case $flag in
7207 none)
cristy8b350f62009-11-15 23:12:43 +00007208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00007209$as_echo_n "checking whether pthreads work without any flags... " >&6; }
7210 ;;
7211
7212 -*)
cristy8b350f62009-11-15 23:12:43 +00007213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00007214$as_echo_n "checking whether pthreads work with $flag... " >&6; }
7215 PTHREAD_CFLAGS="$flag"
7216 ;;
7217
7218 pthread-config)
7219 # Extract the first word of "pthread-config", so it can be a program name with args.
7220set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007222$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007223if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007224 $as_echo_n "(cached) " >&6
7225else
7226 if test -n "$acx_pthread_config"; then
7227 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7228else
7229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230for as_dir in $PATH
7231do
7232 IFS=$as_save_IFS
7233 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007234 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7236 ac_cv_prog_acx_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00007237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007238 break 2
7239 fi
7240done
cristy8b350f62009-11-15 23:12:43 +00007241 done
cristy3ed852e2009-09-05 21:47:34 +00007242IFS=$as_save_IFS
7243
7244 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7245fi
7246fi
7247acx_pthread_config=$ac_cv_prog_acx_pthread_config
7248if test -n "$acx_pthread_config"; then
cristy8b350f62009-11-15 23:12:43 +00007249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
cristy3ed852e2009-09-05 21:47:34 +00007250$as_echo "$acx_pthread_config" >&6; }
7251else
cristy8b350f62009-11-15 23:12:43 +00007252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007253$as_echo "no" >&6; }
7254fi
7255
7256
7257 if test x"$acx_pthread_config" = xno; then continue; fi
7258 PTHREAD_CFLAGS="`pthread-config --cflags`"
7259 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7260 ;;
7261
7262 *)
cristy8b350f62009-11-15 23:12:43 +00007263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00007264$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
7265 PTHREAD_LIBS="-l$flag"
7266 ;;
7267 esac
7268
7269 save_LIBS="$LIBS"
7270 save_CFLAGS="$CFLAGS"
7271 LIBS="$PTHREAD_LIBS $LIBS"
7272 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7273
7274 # Check for various functions. We must include pthread.h,
7275 # since some functions may be macros. (On the Sequent, we
7276 # need a special flag -Kthread to make this header compile.)
7277 # We check for pthread_join because it is in -lpthread on IRIX
7278 # while pthread_create is in libc. We check for pthread_attr_init
7279 # due to DEC craziness with -lpthreads. We check for
7280 # pthread_cleanup_push because it is one of the few pthread
7281 # functions on Solaris that doesn't have a non-functional libc stub.
7282 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00007283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007284/* end confdefs.h. */
7285#include <pthread.h>
7286int
7287main ()
7288{
7289pthread_t th; pthread_join(th, 0);
7290 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7291 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7292 ;
7293 return 0;
7294}
7295_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007296if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007297 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00007298fi
cristy8b350f62009-11-15 23:12:43 +00007299rm -f core conftest.err conftest.$ac_objext \
7300 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007301
7302 LIBS="$save_LIBS"
7303 CFLAGS="$save_CFLAGS"
7304
cristy8b350f62009-11-15 23:12:43 +00007305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00007306$as_echo "$acx_pthread_ok" >&6; }
7307 if test "x$acx_pthread_ok" = xyes; then
7308 break;
7309 fi
7310
7311 PTHREAD_LIBS=""
7312 PTHREAD_CFLAGS=""
7313done
7314fi
7315
7316# Various other checks:
7317if test "x$acx_pthread_ok" = xyes; then
7318 save_LIBS="$LIBS"
7319 LIBS="$PTHREAD_LIBS $LIBS"
7320 save_CFLAGS="$CFLAGS"
7321 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7322
7323 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00007324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00007325$as_echo_n "checking for joinable pthread attribute... " >&6; }
7326 attr_name=unknown
7327 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00007328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007329/* end confdefs.h. */
7330#include <pthread.h>
7331int
7332main ()
7333{
7334int attr=$attr; return attr;
7335 ;
7336 return 0;
7337}
7338_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007339if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007340 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00007341fi
cristy8b350f62009-11-15 23:12:43 +00007342rm -f core conftest.err conftest.$ac_objext \
7343 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007344 done
cristy8b350f62009-11-15 23:12:43 +00007345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00007346$as_echo "$attr_name" >&6; }
7347 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7348
7349cat >>confdefs.h <<_ACEOF
7350#define PTHREAD_CREATE_JOINABLE $attr_name
7351_ACEOF
7352
7353 fi
7354
cristy8b350f62009-11-15 23:12:43 +00007355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00007356$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
7357 flag=no
7358 case "${host_cpu}-${host_os}" in
7359 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7360 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7361 esac
cristy8b350f62009-11-15 23:12:43 +00007362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00007363$as_echo "${flag}" >&6; }
7364 if test "x$flag" != xno; then
7365 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7366 fi
7367
7368 LIBS="$save_LIBS"
7369 CFLAGS="$save_CFLAGS"
7370
7371 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00007372 if test x"$GCC" != xyes; then
7373 for ac_prog in xlc_r cc_r
7374do
7375 # Extract the first word of "$ac_prog", so it can be a program name with args.
7376set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007378$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007379if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007380 $as_echo_n "(cached) " >&6
7381else
7382 if test -n "$PTHREAD_CC"; then
7383 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7384else
7385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386for as_dir in $PATH
7387do
7388 IFS=$as_save_IFS
7389 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007390 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007391 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 +00007392 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00007393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007394 break 2
7395 fi
7396done
cristy8b350f62009-11-15 23:12:43 +00007397 done
cristy3ed852e2009-09-05 21:47:34 +00007398IFS=$as_save_IFS
7399
cristy3ed852e2009-09-05 21:47:34 +00007400fi
7401fi
7402PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7403if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00007404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007405$as_echo "$PTHREAD_CC" >&6; }
7406else
cristy8b350f62009-11-15 23:12:43 +00007407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007408$as_echo "no" >&6; }
7409fi
7410
cristy736173a2009-09-20 21:18:22 +00007411
7412 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00007413done
cristy736173a2009-09-20 21:18:22 +00007414test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00007415
cristy736173a2009-09-20 21:18:22 +00007416 else
7417 PTHREAD_CC=$CC
7418 fi
cristy3ed852e2009-09-05 21:47:34 +00007419else
cristy736173a2009-09-20 21:18:22 +00007420 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00007421fi
7422
cristy3ed852e2009-09-05 21:47:34 +00007423
7424
7425
7426
7427# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7428if test x"$acx_pthread_ok" = xyes; then
7429
cristy8b350f62009-11-15 23:12:43 +00007430$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007431
7432 :
7433else
7434 acx_pthread_ok=no
7435
7436fi
7437ac_ext=c
7438ac_cpp='$CPP $CPPFLAGS'
7439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7441ac_compiler_gnu=$ac_cv_c_compiler_gnu
7442
7443
7444 if test "$acx_pthread_ok" = yes; then
7445 have_threads=yes
7446 DEF_THREAD="$PTHREAD_CFLAGS"
7447 CFLAGS="$CFLAGS $DEF_THREAD"
7448 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
7449 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00007450 { $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 +00007451$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
7452 CC="$PTHREAD_CC"
7453 fi
7454 fi
7455fi
7456
7457# Enable support for OpenMP
7458if test "$have_threads" != 'yes'; then
7459 ac_cv_prog_c_openmp=unsupported
7460fi
7461
7462 OPENMP_CFLAGS=
7463 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00007464if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007465 enableval=$enable_openmp;
7466fi
7467
7468 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00007469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007470$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007471if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007472 $as_echo_n "(cached) " >&6
7473else
cristy8b350f62009-11-15 23:12:43 +00007474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00007476
7477#ifndef _OPENMP
7478 choke me
7479#endif
7480#include <omp.h>
7481int main () { return omp_get_num_threads (); }
7482
7483_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007484if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007485 ac_cv_prog_c_openmp='none needed'
7486else
cristy8b350f62009-11-15 23:12:43 +00007487 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00007488 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
7489 ac_save_CFLAGS=$CFLAGS
7490 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00007491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00007493
7494#ifndef _OPENMP
7495 choke me
7496#endif
7497#include <omp.h>
7498int main () { return omp_get_num_threads (); }
7499
7500_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007501if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007502 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00007503fi
cristy8b350f62009-11-15 23:12:43 +00007504rm -f core conftest.err conftest.$ac_objext \
7505 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007506 CFLAGS=$ac_save_CFLAGS
7507 if test "$ac_cv_prog_c_openmp" != unsupported; then
7508 break
7509 fi
7510 done
7511fi
cristy8b350f62009-11-15 23:12:43 +00007512rm -f core conftest.err conftest.$ac_objext \
7513 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007514fi
cristy8b350f62009-11-15 23:12:43 +00007515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00007516$as_echo "$ac_cv_prog_c_openmp" >&6; }
7517 case $ac_cv_prog_c_openmp in #(
7518 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00007519 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00007520 *)
cristy8b350f62009-11-15 23:12:43 +00007521 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00007522 esac
7523 fi
7524
7525
7526CFLAGS="$OPENMP_CFLAGS $CFLAGS"
7527MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
7528
7529
cristy736173a2009-09-20 21:18:22 +00007530# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00007531
7532ac_ext=c
7533ac_cpp='$CPP $CPPFLAGS'
7534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7536ac_compiler_gnu=$ac_cv_c_compiler_gnu
7537
cristy8b350f62009-11-15 23:12:43 +00007538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00007539$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007540if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00007541 $as_echo_n "(cached) " >&6
7542else
cristy8b350f62009-11-15 23:12:43 +00007543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007544/* end confdefs.h. */
7545
7546int
7547main ()
7548{
7549#ifndef _MSC_VER
7550 choke me
7551#endif
7552
7553 ;
7554 return 0;
7555}
7556_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007557if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007558 ax_compiler_ms=yes
7559else
cristy8b350f62009-11-15 23:12:43 +00007560 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00007561fi
cristy736173a2009-09-20 21:18:22 +00007562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563ax_cv_c_compiler_ms=$ax_compiler_ms
7564
7565fi
cristy8b350f62009-11-15 23:12:43 +00007566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00007567$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy8b350f62009-11-15 23:12:43 +00007568if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00007569 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
7570fi
7571
cristy736173a2009-09-20 21:18:22 +00007572ax_save_CPPFLAGS=$CPPFLAGS
7573CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +00007574for ac_header in CL/opencl.h OpenCL/OpenCL.h
cristy8b350f62009-11-15 23:12:43 +00007575do :
7576 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7577ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7578eval as_val=\$$as_ac_Header
7579 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00007580 cat >>confdefs.h <<_ACEOF
7581#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7582_ACEOF
7583
7584fi
7585
7586done
7587
7588CPPFLAGS=$ax_save_CPPFLAGS
7589
cristy736173a2009-09-20 21:18:22 +00007590for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00007591do :
7592 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
7593if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00007594 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007595#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00007596_ACEOF
7597
7598fi
7599
7600done
7601
7602
7603
7604
cristy8b350f62009-11-15 23:12:43 +00007605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00007606$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007607if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00007608 $as_echo_n "(cached) " >&6
7609else
7610 ax_cv_check_cl_libcl=no
7611case $host_cpu in
7612 x86_64) ax_check_cl_libdir=lib64 ;;
7613 *) ax_check_cl_libdir=lib ;;
7614esac
7615ax_save_CPPFLAGS=$CPPFLAGS
7616CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
7617ax_save_LIBS=$LIBS
7618LIBS=""
cristya49aa422009-09-20 23:40:10 +00007619ax_check_libs="-lOpenCL -lCL"
cristy736173a2009-09-20 21:18:22 +00007620for ax_lib in $ax_check_libs; do
cristy8b350f62009-11-15 23:12:43 +00007621 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00007622 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
7623else
7624 ax_try_lib=$ax_lib
7625fi
cristy736173a2009-09-20 21:18:22 +00007626 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
cristy8b350f62009-11-15 23:12:43 +00007627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007628/* end confdefs.h. */
7629
7630# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7631# include <windows.h>
7632# endif
cristya03a0852009-10-13 02:02:39 +00007633# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007634# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007635# elif defined(HAVE_OPENCL_OPENCL_H)
7636# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007637# else
cristya03a0852009-10-13 02:02:39 +00007638# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007639# endif
7640int
7641main ()
7642{
cristyc7083c12009-10-14 03:16:55 +00007643clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007644 ;
7645 return 0;
7646}
7647_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007648if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007649 ax_cv_check_cl_libcl=$ax_try_lib; break
7650else
cristy8b350f62009-11-15 23:12:43 +00007651 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"
7652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007653/* end confdefs.h. */
7654
7655# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7656# include <windows.h>
7657# endif
cristya03a0852009-10-13 02:02:39 +00007658# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007659# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007660# elif defined(HAVE_OPENCL_OPENCL_H)
7661# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007662# else
cristya03a0852009-10-13 02:02:39 +00007663# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007664# endif
7665int
7666main ()
7667{
cristyc7083c12009-10-14 03:16:55 +00007668clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007669 ;
7670 return 0;
7671}
7672_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007673if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007674 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
7675else
cristy8b350f62009-11-15 23:12:43 +00007676 ax_check_cl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libCL.dylib:/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libCL.dylib' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
7677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007678/* end confdefs.h. */
7679
7680# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7681# include <windows.h>
7682# endif
cristya03a0852009-10-13 02:02:39 +00007683# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007684# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007685# elif defined(HAVE_OPENCL_OPENCL_H)
7686# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007687# else
cristya03a0852009-10-13 02:02:39 +00007688# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007689# endif
7690int
7691main ()
7692{
cristyc7083c12009-10-14 03:16:55 +00007693clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007694 ;
7695 return 0;
7696}
7697_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007698if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007699 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00007700fi
cristy8b350f62009-11-15 23:12:43 +00007701rm -f core conftest.err conftest.$ac_objext \
7702 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007703fi
cristy8b350f62009-11-15 23:12:43 +00007704rm -f core conftest.err conftest.$ac_objext \
7705 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007706fi
cristy8b350f62009-11-15 23:12:43 +00007707rm -f core conftest.err conftest.$ac_objext \
7708 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007709done
7710
cristy8b350f62009-11-15 23:12:43 +00007711if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00007712 LIBS='-framework OpenCL'
cristy8b350f62009-11-15 23:12:43 +00007713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007714/* end confdefs.h. */
7715
7716# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7717# include <windows.h>
7718# endif
cristya03a0852009-10-13 02:02:39 +00007719# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007720# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007721# elif defined(HAVE_OPENCL_OPENCL_H)
7722# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007723# else
cristya03a0852009-10-13 02:02:39 +00007724# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007725# endif
7726int
7727main ()
7728{
cristyc7083c12009-10-14 03:16:55 +00007729clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007730 ;
7731 return 0;
7732}
7733_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007734if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007735 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00007736fi
cristy8b350f62009-11-15 23:12:43 +00007737rm -f core conftest.err conftest.$ac_objext \
7738 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007739fi
7740
cristy736173a2009-09-20 21:18:22 +00007741LIBS=$ax_save_LIBS
7742CPPFLAGS=$ax_save_CPPFLAGS
7743fi
cristy8b350f62009-11-15 23:12:43 +00007744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00007745$as_echo "$ax_cv_check_cl_libcl" >&6; }
7746
cristy8b350f62009-11-15 23:12:43 +00007747if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00007748 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
7749else
7750 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"
7751fi
cristy736173a2009-09-20 21:18:22 +00007752ac_ext=c
7753ac_cpp='$CPP $CPPFLAGS'
7754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7756ac_compiler_gnu=$ac_cv_c_compiler_gnu
7757
7758
7759
7760
7761
cristyc7083c12009-10-14 03:16:55 +00007762CFLAGS="$CL_CFLAGS $CFLAGS"
7763LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00007764
cristy2e8b51d2009-10-17 18:26:15 +00007765
cristy3ed852e2009-09-05 21:47:34 +00007766########
7767#
7768# Check for large file support
7769#
7770########
7771# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00007772if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007773 enableval=$enable_largefile;
7774fi
7775
7776if test "$enable_largefile" != no; then
7777
cristy8b350f62009-11-15 23:12:43 +00007778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007779$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007780if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007781 $as_echo_n "(cached) " >&6
7782else
7783 ac_cv_sys_largefile_CC=no
7784 if test "$GCC" != yes; then
7785 ac_save_CC=$CC
7786 while :; do
7787 # IRIX 6.2 and later do not support large files by default,
7788 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00007789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007790/* end confdefs.h. */
7791#include <sys/types.h>
7792 /* Check that off_t can represent 2**63 - 1 correctly.
7793 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7794 since some C++ compilers masquerading as C compilers
7795 incorrectly reject 9223372036854775807. */
7796#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7797 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7798 && LARGE_OFF_T % 2147483647 == 1)
7799 ? 1 : -1];
7800int
7801main ()
7802{
7803
7804 ;
7805 return 0;
7806}
7807_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007808 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007809 break
cristy3ed852e2009-09-05 21:47:34 +00007810fi
cristy3ed852e2009-09-05 21:47:34 +00007811rm -f core conftest.err conftest.$ac_objext
7812 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00007813 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007814 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00007815fi
cristy3ed852e2009-09-05 21:47:34 +00007816rm -f core conftest.err conftest.$ac_objext
7817 break
7818 done
7819 CC=$ac_save_CC
7820 rm -f conftest.$ac_ext
7821 fi
7822fi
cristy8b350f62009-11-15 23:12:43 +00007823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007824$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7825 if test "$ac_cv_sys_largefile_CC" != no; then
7826 CC=$CC$ac_cv_sys_largefile_CC
7827 fi
7828
cristy8b350f62009-11-15 23:12:43 +00007829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007830$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007831if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007832 $as_echo_n "(cached) " >&6
7833else
7834 while :; do
cristy8b350f62009-11-15 23:12:43 +00007835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007836/* end confdefs.h. */
7837#include <sys/types.h>
7838 /* Check that off_t can represent 2**63 - 1 correctly.
7839 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7840 since some C++ compilers masquerading as C compilers
7841 incorrectly reject 9223372036854775807. */
7842#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7843 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7844 && LARGE_OFF_T % 2147483647 == 1)
7845 ? 1 : -1];
7846int
7847main ()
7848{
7849
7850 ;
7851 return 0;
7852}
7853_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007854if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007855 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00007856fi
cristy3ed852e2009-09-05 21:47:34 +00007857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007859/* end confdefs.h. */
7860#define _FILE_OFFSET_BITS 64
7861#include <sys/types.h>
7862 /* Check that off_t can represent 2**63 - 1 correctly.
7863 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7864 since some C++ compilers masquerading as C compilers
7865 incorrectly reject 9223372036854775807. */
7866#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7867 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7868 && LARGE_OFF_T % 2147483647 == 1)
7869 ? 1 : -1];
7870int
7871main ()
7872{
7873
7874 ;
7875 return 0;
7876}
7877_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007878if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007879 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00007880fi
cristy3ed852e2009-09-05 21:47:34 +00007881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7882 ac_cv_sys_file_offset_bits=unknown
7883 break
7884done
7885fi
cristy8b350f62009-11-15 23:12:43 +00007886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00007887$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7888case $ac_cv_sys_file_offset_bits in #(
7889 no | unknown) ;;
7890 *)
7891cat >>confdefs.h <<_ACEOF
7892#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7893_ACEOF
7894;;
7895esac
7896rm -rf conftest*
7897 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00007898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007899$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007900if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007901 $as_echo_n "(cached) " >&6
7902else
7903 while :; do
cristy8b350f62009-11-15 23:12:43 +00007904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007905/* end confdefs.h. */
7906#include <sys/types.h>
7907 /* Check that off_t can represent 2**63 - 1 correctly.
7908 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7909 since some C++ compilers masquerading as C compilers
7910 incorrectly reject 9223372036854775807. */
7911#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7912 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7913 && LARGE_OFF_T % 2147483647 == 1)
7914 ? 1 : -1];
7915int
7916main ()
7917{
7918
7919 ;
7920 return 0;
7921}
7922_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007923if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007924 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00007925fi
cristy3ed852e2009-09-05 21:47:34 +00007926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007928/* end confdefs.h. */
7929#define _LARGE_FILES 1
7930#include <sys/types.h>
7931 /* Check that off_t can represent 2**63 - 1 correctly.
7932 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7933 since some C++ compilers masquerading as C compilers
7934 incorrectly reject 9223372036854775807. */
7935#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7936 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7937 && LARGE_OFF_T % 2147483647 == 1)
7938 ? 1 : -1];
7939int
7940main ()
7941{
7942
7943 ;
7944 return 0;
7945}
7946_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007947if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007948 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00007949fi
cristy3ed852e2009-09-05 21:47:34 +00007950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7951 ac_cv_sys_large_files=unknown
7952 break
7953done
7954fi
cristy8b350f62009-11-15 23:12:43 +00007955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007956$as_echo "$ac_cv_sys_large_files" >&6; }
7957case $ac_cv_sys_large_files in #(
7958 no | unknown) ;;
7959 *)
7960cat >>confdefs.h <<_ACEOF
7961#define _LARGE_FILES $ac_cv_sys_large_files
7962_ACEOF
7963;;
7964esac
7965rm -rf conftest*
7966 fi
7967fi
7968
cristy8b350f62009-11-15 23:12:43 +00007969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007970$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007971if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007972 $as_echo_n "(cached) " >&6
7973else
7974 while :; do
cristy8b350f62009-11-15 23:12:43 +00007975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007976/* end confdefs.h. */
7977#include <sys/types.h> /* for off_t */
7978 #include <stdio.h>
7979int
7980main ()
7981{
7982int (*fp) (FILE *, off_t, int) = fseeko;
7983 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7984 ;
7985 return 0;
7986}
7987_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007988if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007989 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00007990fi
cristy8b350f62009-11-15 23:12:43 +00007991rm -f core conftest.err conftest.$ac_objext \
7992 conftest$ac_exeext conftest.$ac_ext
7993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007994/* end confdefs.h. */
7995#define _LARGEFILE_SOURCE 1
7996#include <sys/types.h> /* for off_t */
7997 #include <stdio.h>
7998int
7999main ()
8000{
8001int (*fp) (FILE *, off_t, int) = fseeko;
8002 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8003 ;
8004 return 0;
8005}
8006_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008007if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008008 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00008009fi
cristy8b350f62009-11-15 23:12:43 +00008010rm -f core conftest.err conftest.$ac_objext \
8011 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008012 ac_cv_sys_largefile_source=unknown
8013 break
8014done
8015fi
cristy8b350f62009-11-15 23:12:43 +00008016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00008017$as_echo "$ac_cv_sys_largefile_source" >&6; }
8018case $ac_cv_sys_largefile_source in #(
8019 no | unknown) ;;
8020 *)
8021cat >>confdefs.h <<_ACEOF
8022#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8023_ACEOF
8024;;
8025esac
8026rm -rf conftest*
8027
8028# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8029# in glibc 2.1.3, but that breaks too many other things.
8030# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8031if test $ac_cv_sys_largefile_source != unknown; then
8032
cristy8b350f62009-11-15 23:12:43 +00008033$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008034
8035fi
8036
8037LFS_CPPFLAGS=''
8038if test "$enable_largefile" != no; then
8039 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
8040 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
8041 else
cristy8b350f62009-11-15 23:12:43 +00008042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00008043$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008044 if test "$cross_compiling" = yes; then :
8045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00008046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00008047as_fn_error "cannot run test program while cross compiling
8048See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00008049else
cristy8b350f62009-11-15 23:12:43 +00008050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008052#include <unistd.h>
8053 main () {
8054 exit(!(sizeof(off_t) == 8));
8055 }
8056_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008057if ac_fn_c_try_run "$LINENO"; then :
8058 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008059
cristy8b350f62009-11-15 23:12:43 +00008060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008061$as_echo "yes" >&6; }
8062else
cristy8b350f62009-11-15 23:12:43 +00008063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008064$as_echo "no" >&6; }
8065fi
cristy8b350f62009-11-15 23:12:43 +00008066rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8067 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008068fi
8069
cristy3ed852e2009-09-05 21:47:34 +00008070 fi
8071 if test "$ac_cv_sys_large_files" != 'no'; then
8072 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
8073 fi
8074 if test "$ac_cv_sys_largefile_source" != 'no'; then
8075 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
8076 fi
8077fi
8078
8079
8080#
8081# Configure libtool & libltdl
8082#
8083# Configure libtool
8084enable_dlopen=yes
8085
8086
8087
8088case `pwd` in
8089 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00008090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00008091$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8092esac
8093
8094
8095
cristy18304f92009-11-22 15:48:26 +00008096macro_version='2.2.6b'
8097macro_revision='1.3017'
cristy3ed852e2009-09-05 21:47:34 +00008098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111ltmain="$ac_aux_dir/ltmain.sh"
8112
cristy8b350f62009-11-15 23:12:43 +00008113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00008114$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008115if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008116 $as_echo_n "(cached) " >&6
8117else
8118 if test -n "$NM"; then
8119 # Let the user override the test.
8120 lt_cv_path_NM="$NM"
8121else
8122 lt_nm_to_check="${ac_tool_prefix}nm"
8123 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8124 lt_nm_to_check="$lt_nm_to_check nm"
8125 fi
8126 for lt_tmp_nm in $lt_nm_to_check; do
8127 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8128 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8129 IFS="$lt_save_ifs"
8130 test -z "$ac_dir" && ac_dir=.
8131 tmp_nm="$ac_dir/$lt_tmp_nm"
8132 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8133 # Check to see if the nm accepts a BSD-compat flag.
8134 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8135 # nm: unknown option "B" ignored
8136 # Tru64's nm complains that /dev/null is an invalid object file
8137 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8138 */dev/null* | *'Invalid file or object type'*)
8139 lt_cv_path_NM="$tmp_nm -B"
8140 break
8141 ;;
8142 *)
8143 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8144 */dev/null*)
8145 lt_cv_path_NM="$tmp_nm -p"
8146 break
8147 ;;
8148 *)
8149 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8150 continue # so that we can try to find one that supports BSD flags
8151 ;;
8152 esac
8153 ;;
8154 esac
8155 fi
8156 done
8157 IFS="$lt_save_ifs"
8158 done
8159 : ${lt_cv_path_NM=no}
8160fi
8161fi
cristy8b350f62009-11-15 23:12:43 +00008162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00008163$as_echo "$lt_cv_path_NM" >&6; }
8164if test "$lt_cv_path_NM" != "no"; then
8165 NM="$lt_cv_path_NM"
8166else
8167 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy18304f92009-11-22 15:48:26 +00008168 if test -n "$ac_tool_prefix"; then
8169 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00008170 do
8171 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8172set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008174$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008175if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008176 $as_echo_n "(cached) " >&6
8177else
8178 if test -n "$DUMPBIN"; then
8179 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8180else
8181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182for as_dir in $PATH
8183do
8184 IFS=$as_save_IFS
8185 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008186 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8188 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008190 break 2
8191 fi
8192done
cristy8b350f62009-11-15 23:12:43 +00008193 done
cristy3ed852e2009-09-05 21:47:34 +00008194IFS=$as_save_IFS
8195
8196fi
8197fi
8198DUMPBIN=$ac_cv_prog_DUMPBIN
8199if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00008200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00008201$as_echo "$DUMPBIN" >&6; }
8202else
cristy8b350f62009-11-15 23:12:43 +00008203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008204$as_echo "no" >&6; }
8205fi
8206
8207
8208 test -n "$DUMPBIN" && break
8209 done
8210fi
8211if test -z "$DUMPBIN"; then
8212 ac_ct_DUMPBIN=$DUMPBIN
cristy18304f92009-11-22 15:48:26 +00008213 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00008214do
8215 # Extract the first word of "$ac_prog", so it can be a program name with args.
8216set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008218$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008219if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008220 $as_echo_n "(cached) " >&6
8221else
8222 if test -n "$ac_ct_DUMPBIN"; then
8223 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8224else
8225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226for as_dir in $PATH
8227do
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008230 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8232 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008234 break 2
8235 fi
8236done
cristy8b350f62009-11-15 23:12:43 +00008237 done
cristy3ed852e2009-09-05 21:47:34 +00008238IFS=$as_save_IFS
8239
8240fi
8241fi
8242ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8243if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00008244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00008245$as_echo "$ac_ct_DUMPBIN" >&6; }
8246else
cristy8b350f62009-11-15 23:12:43 +00008247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008248$as_echo "no" >&6; }
8249fi
8250
8251
8252 test -n "$ac_ct_DUMPBIN" && break
8253done
8254
8255 if test "x$ac_ct_DUMPBIN" = x; then
8256 DUMPBIN=":"
8257 else
8258 case $cross_compiling:$ac_tool_warned in
8259yes:)
cristy8b350f62009-11-15 23:12:43 +00008260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8262ac_tool_warned=yes ;;
8263esac
8264 DUMPBIN=$ac_ct_DUMPBIN
8265 fi
8266fi
8267
8268
8269 if test "$DUMPBIN" != ":"; then
8270 NM="$DUMPBIN"
8271 fi
8272fi
8273test -z "$NM" && NM=nm
8274
8275
8276
8277
8278
8279
cristy8b350f62009-11-15 23:12:43 +00008280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00008281$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008282if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008283 $as_echo_n "(cached) " >&6
8284else
8285 lt_cv_nm_interface="BSD nm"
8286 echo "int some_variable = 0;" > conftest.$ac_ext
cristy679ed8e2009-12-05 02:37:41 +00008287 (eval echo "\"\$as_me:8287: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008288 (eval "$ac_compile" 2>conftest.err)
8289 cat conftest.err >&5
cristy679ed8e2009-12-05 02:37:41 +00008290 (eval echo "\"\$as_me:8290: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008291 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8292 cat conftest.err >&5
cristy679ed8e2009-12-05 02:37:41 +00008293 (eval echo "\"\$as_me:8293: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008294 cat conftest.out >&5
8295 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8296 lt_cv_nm_interface="MS dumpbin"
8297 fi
8298 rm -f conftest*
8299fi
cristy8b350f62009-11-15 23:12:43 +00008300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00008301$as_echo "$lt_cv_nm_interface" >&6; }
8302
8303# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00008304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00008305$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008306if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008307 $as_echo_n "(cached) " >&6
8308else
8309 i=0
8310 teststring="ABCD"
8311
8312 case $build_os in
8313 msdosdjgpp*)
8314 # On DJGPP, this test can blow up pretty badly due to problems in libc
8315 # (any single argument exceeding 2000 bytes causes a buffer overrun
8316 # during glob expansion). Even if it were fixed, the result of this
8317 # check would be larger than it should be.
8318 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8319 ;;
8320
8321 gnu*)
8322 # Under GNU Hurd, this test is not required because there is
8323 # no limit to the length of command line arguments.
8324 # Libtool will interpret -1 as no limit whatsoever
8325 lt_cv_sys_max_cmd_len=-1;
8326 ;;
8327
8328 cygwin* | mingw* | cegcc*)
8329 # On Win9x/ME, this test blows up -- it succeeds, but takes
8330 # about 5 minutes as the teststring grows exponentially.
8331 # Worse, since 9x/ME are not pre-emptively multitasking,
8332 # you end up with a "frozen" computer, even though with patience
8333 # the test eventually succeeds (with a max line length of 256k).
8334 # Instead, let's just punt: use the minimum linelength reported by
8335 # all of the supported platforms: 8192 (on NT/2K/XP).
8336 lt_cv_sys_max_cmd_len=8192;
8337 ;;
8338
8339 amigaos*)
8340 # On AmigaOS with pdksh, this test takes hours, literally.
8341 # So we just punt and use a minimum line length of 8192.
8342 lt_cv_sys_max_cmd_len=8192;
8343 ;;
8344
8345 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8346 # This has been around since 386BSD, at least. Likely further.
8347 if test -x /sbin/sysctl; then
8348 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8349 elif test -x /usr/sbin/sysctl; then
8350 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8351 else
8352 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8353 fi
8354 # And add a safety zone
8355 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8356 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8357 ;;
8358
8359 interix*)
8360 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8361 lt_cv_sys_max_cmd_len=196608
8362 ;;
8363
8364 osf*)
8365 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8366 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8367 # nice to cause kernel panics so lets avoid the loop below.
8368 # First set a reasonable default.
8369 lt_cv_sys_max_cmd_len=16384
8370 #
8371 if test -x /sbin/sysconfig; then
8372 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8373 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8374 esac
8375 fi
8376 ;;
8377 sco3.2v5*)
8378 lt_cv_sys_max_cmd_len=102400
8379 ;;
8380 sysv5* | sco5v6* | sysv4.2uw2*)
8381 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8382 if test -n "$kargmax"; then
8383 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8384 else
8385 lt_cv_sys_max_cmd_len=32768
8386 fi
8387 ;;
8388 *)
8389 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8390 if test -n "$lt_cv_sys_max_cmd_len"; then
8391 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8392 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8393 else
8394 # Make teststring a little bigger before we do anything with it.
8395 # a 1K string should be a reasonable start.
8396 for i in 1 2 3 4 5 6 7 8 ; do
8397 teststring=$teststring$teststring
8398 done
8399 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8400 # If test is not a shell built-in, we'll probably end up computing a
8401 # maximum length that is only half of the actual maximum length, but
8402 # we can't tell.
cristy18304f92009-11-22 15:48:26 +00008403 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
8404 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00008405 test $i != 17 # 1/2 MB should be enough
8406 do
8407 i=`expr $i + 1`
8408 teststring=$teststring$teststring
8409 done
8410 # Only check the string length outside the loop.
8411 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8412 teststring=
8413 # Add a significant safety factor because C++ compilers can tack on
8414 # massive amounts of additional arguments before passing them to the
8415 # linker. It appears as though 1/2 is a usable value.
8416 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8417 fi
8418 ;;
8419 esac
8420
8421fi
8422
8423if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00008424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00008425$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8426else
cristy8b350f62009-11-15 23:12:43 +00008427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00008428$as_echo "none" >&6; }
8429fi
8430max_cmd_len=$lt_cv_sys_max_cmd_len
8431
8432
8433
8434
8435
8436
8437: ${CP="cp -f"}
8438: ${MV="mv -f"}
8439: ${RM="rm -f"}
8440
cristy8b350f62009-11-15 23:12:43 +00008441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00008442$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8443# Try some XSI features
8444xsi_shell=no
8445( _lt_dummy="a/b/c"
8446 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8447 = c,a/b,, \
8448 && eval 'test $(( 1 + 1 )) -eq 2 \
8449 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8450 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00008451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00008452$as_echo "$xsi_shell" >&6; }
8453
8454
cristy8b350f62009-11-15 23:12:43 +00008455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00008456$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8457lt_shell_append=no
8458( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8459 >/dev/null 2>&1 \
8460 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00008461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00008462$as_echo "$lt_shell_append" >&6; }
8463
8464
8465if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8466 lt_unset=unset
8467else
8468 lt_unset=false
8469fi
8470
8471
8472
8473
8474
8475# test EBCDIC or ASCII
8476case `echo X|tr X '\101'` in
8477 A) # ASCII based system
8478 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8479 lt_SP2NL='tr \040 \012'
8480 lt_NL2SP='tr \015\012 \040\040'
8481 ;;
8482 *) # EBCDIC based system
8483 lt_SP2NL='tr \100 \n'
8484 lt_NL2SP='tr \r\n \100\100'
8485 ;;
8486esac
8487
8488
8489
8490
8491
8492
8493
8494
8495
cristy8b350f62009-11-15 23:12:43 +00008496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008497$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008498if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008499 $as_echo_n "(cached) " >&6
8500else
8501 lt_cv_ld_reload_flag='-r'
8502fi
cristy8b350f62009-11-15 23:12:43 +00008503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008504$as_echo "$lt_cv_ld_reload_flag" >&6; }
8505reload_flag=$lt_cv_ld_reload_flag
8506case $reload_flag in
8507"" | " "*) ;;
8508*) reload_flag=" $reload_flag" ;;
8509esac
8510reload_cmds='$LD$reload_flag -o $output$reload_objs'
8511case $host_os in
8512 darwin*)
8513 if test "$GCC" = yes; then
8514 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8515 else
8516 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8517 fi
8518 ;;
8519esac
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529if test -n "$ac_tool_prefix"; then
8530 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8531set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008533$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008534if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008535 $as_echo_n "(cached) " >&6
8536else
8537 if test -n "$OBJDUMP"; then
8538 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8539else
8540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541for as_dir in $PATH
8542do
8543 IFS=$as_save_IFS
8544 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008545 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8547 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00008548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008549 break 2
8550 fi
8551done
cristy8b350f62009-11-15 23:12:43 +00008552 done
cristy3ed852e2009-09-05 21:47:34 +00008553IFS=$as_save_IFS
8554
8555fi
8556fi
8557OBJDUMP=$ac_cv_prog_OBJDUMP
8558if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00008559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008560$as_echo "$OBJDUMP" >&6; }
8561else
cristy8b350f62009-11-15 23:12:43 +00008562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008563$as_echo "no" >&6; }
8564fi
8565
8566
8567fi
8568if test -z "$ac_cv_prog_OBJDUMP"; then
8569 ac_ct_OBJDUMP=$OBJDUMP
8570 # Extract the first word of "objdump", so it can be a program name with args.
8571set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008573$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008574if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008575 $as_echo_n "(cached) " >&6
8576else
8577 if test -n "$ac_ct_OBJDUMP"; then
8578 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8579else
8580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8581for as_dir in $PATH
8582do
8583 IFS=$as_save_IFS
8584 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008585 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8587 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00008588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008589 break 2
8590 fi
8591done
cristy8b350f62009-11-15 23:12:43 +00008592 done
cristy3ed852e2009-09-05 21:47:34 +00008593IFS=$as_save_IFS
8594
8595fi
8596fi
8597ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8598if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00008599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008600$as_echo "$ac_ct_OBJDUMP" >&6; }
8601else
cristy8b350f62009-11-15 23:12:43 +00008602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008603$as_echo "no" >&6; }
8604fi
8605
8606 if test "x$ac_ct_OBJDUMP" = x; then
8607 OBJDUMP="false"
8608 else
8609 case $cross_compiling:$ac_tool_warned in
8610yes:)
cristy8b350f62009-11-15 23:12:43 +00008611{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008612$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8613ac_tool_warned=yes ;;
8614esac
8615 OBJDUMP=$ac_ct_OBJDUMP
8616 fi
8617else
8618 OBJDUMP="$ac_cv_prog_OBJDUMP"
8619fi
8620
8621test -z "$OBJDUMP" && OBJDUMP=objdump
8622
8623
8624
8625
8626
8627
cristy8b350f62009-11-15 23:12:43 +00008628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +00008629$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008630if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008631 $as_echo_n "(cached) " >&6
8632else
8633 lt_cv_file_magic_cmd='$MAGIC_CMD'
8634lt_cv_file_magic_test_file=
8635lt_cv_deplibs_check_method='unknown'
8636# Need to set the preceding variable on all platforms that support
8637# interlibrary dependencies.
8638# 'none' -- dependencies not supported.
8639# `unknown' -- same as none, but documents that we really don't know.
8640# 'pass_all' -- all dependencies passed with no checks.
8641# 'test_compile' -- check by making test program.
8642# 'file_magic [[regex]]' -- check by looking for files in library path
8643# which responds to the $file_magic_cmd with a given extended regex.
8644# If you have `file' or equivalent on your system and you're not sure
8645# whether `pass_all' will *always* work, you probably want this one.
8646
8647case $host_os in
8648aix[4-9]*)
8649 lt_cv_deplibs_check_method=pass_all
8650 ;;
8651
8652beos*)
8653 lt_cv_deplibs_check_method=pass_all
8654 ;;
8655
8656bsdi[45]*)
8657 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8658 lt_cv_file_magic_cmd='/usr/bin/file -L'
8659 lt_cv_file_magic_test_file=/shlib/libc.so
8660 ;;
8661
8662cygwin*)
8663 # func_win32_libid is a shell function defined in ltmain.sh
8664 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8665 lt_cv_file_magic_cmd='func_win32_libid'
8666 ;;
8667
8668mingw* | pw32*)
8669 # Base MSYS/MinGW do not provide the 'file' command needed by
8670 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8671 # unless we find 'file', for example because we are cross-compiling.
cristy18304f92009-11-22 15:48:26 +00008672 if ( file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +00008673 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8674 lt_cv_file_magic_cmd='func_win32_libid'
8675 else
8676 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8677 lt_cv_file_magic_cmd='$OBJDUMP -f'
8678 fi
8679 ;;
8680
cristy18304f92009-11-22 15:48:26 +00008681cegcc)
cristy3ed852e2009-09-05 21:47:34 +00008682 # use the weaker test based on 'objdump'. See mingw*.
8683 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8684 lt_cv_file_magic_cmd='$OBJDUMP -f'
8685 ;;
8686
8687darwin* | rhapsody*)
8688 lt_cv_deplibs_check_method=pass_all
8689 ;;
8690
8691freebsd* | dragonfly*)
8692 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8693 case $host_cpu in
8694 i*86 )
8695 # Not sure whether the presence of OpenBSD here was a mistake.
8696 # Let's accept both of them until this is cleared up.
8697 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8698 lt_cv_file_magic_cmd=/usr/bin/file
8699 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8700 ;;
8701 esac
8702 else
8703 lt_cv_deplibs_check_method=pass_all
8704 fi
8705 ;;
8706
8707gnu*)
8708 lt_cv_deplibs_check_method=pass_all
8709 ;;
8710
8711hpux10.20* | hpux11*)
8712 lt_cv_file_magic_cmd=/usr/bin/file
8713 case $host_cpu in
8714 ia64*)
8715 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8716 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8717 ;;
8718 hppa*64*)
cristy18304f92009-11-22 15:48:26 +00008719 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 +00008720 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8721 ;;
8722 *)
cristy18304f92009-11-22 15:48:26 +00008723 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 +00008724 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8725 ;;
8726 esac
8727 ;;
8728
8729interix[3-9]*)
8730 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8731 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8732 ;;
8733
8734irix5* | irix6* | nonstopux*)
8735 case $LD in
8736 *-32|*"-32 ") libmagic=32-bit;;
8737 *-n32|*"-n32 ") libmagic=N32;;
8738 *-64|*"-64 ") libmagic=64-bit;;
8739 *) libmagic=never-match;;
8740 esac
8741 lt_cv_deplibs_check_method=pass_all
8742 ;;
8743
8744# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +00008745linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +00008746 lt_cv_deplibs_check_method=pass_all
8747 ;;
8748
8749netbsd*)
8750 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8751 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8752 else
8753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8754 fi
8755 ;;
8756
8757newos6*)
8758 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8759 lt_cv_file_magic_cmd=/usr/bin/file
8760 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8761 ;;
8762
8763*nto* | *qnx*)
8764 lt_cv_deplibs_check_method=pass_all
8765 ;;
8766
8767openbsd*)
8768 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8769 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8770 else
8771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8772 fi
8773 ;;
8774
8775osf3* | osf4* | osf5*)
8776 lt_cv_deplibs_check_method=pass_all
8777 ;;
8778
8779rdos*)
8780 lt_cv_deplibs_check_method=pass_all
8781 ;;
8782
8783solaris*)
8784 lt_cv_deplibs_check_method=pass_all
8785 ;;
8786
8787sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8788 lt_cv_deplibs_check_method=pass_all
8789 ;;
8790
8791sysv4 | sysv4.3*)
8792 case $host_vendor in
8793 motorola)
8794 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]'
8795 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8796 ;;
8797 ncr)
8798 lt_cv_deplibs_check_method=pass_all
8799 ;;
8800 sequent)
8801 lt_cv_file_magic_cmd='/bin/file'
8802 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8803 ;;
8804 sni)
8805 lt_cv_file_magic_cmd='/bin/file'
8806 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8807 lt_cv_file_magic_test_file=/lib/libc.so
8808 ;;
8809 siemens)
8810 lt_cv_deplibs_check_method=pass_all
8811 ;;
8812 pc)
8813 lt_cv_deplibs_check_method=pass_all
8814 ;;
8815 esac
8816 ;;
8817
8818tpf*)
8819 lt_cv_deplibs_check_method=pass_all
8820 ;;
8821esac
8822
8823fi
cristy8b350f62009-11-15 23:12:43 +00008824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +00008825$as_echo "$lt_cv_deplibs_check_method" >&6; }
8826file_magic_cmd=$lt_cv_file_magic_cmd
8827deplibs_check_method=$lt_cv_deplibs_check_method
8828test -z "$deplibs_check_method" && deplibs_check_method=unknown
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841if test -n "$ac_tool_prefix"; then
8842 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8843set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008845$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008846if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008847 $as_echo_n "(cached) " >&6
8848else
8849 if test -n "$AR"; then
8850 ac_cv_prog_AR="$AR" # Let the user override the test.
8851else
8852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8853for as_dir in $PATH
8854do
8855 IFS=$as_save_IFS
8856 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008857 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8859 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +00008860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008861 break 2
8862 fi
8863done
cristy8b350f62009-11-15 23:12:43 +00008864 done
cristy3ed852e2009-09-05 21:47:34 +00008865IFS=$as_save_IFS
8866
8867fi
8868fi
8869AR=$ac_cv_prog_AR
8870if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +00008871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00008872$as_echo "$AR" >&6; }
8873else
cristy8b350f62009-11-15 23:12:43 +00008874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008875$as_echo "no" >&6; }
8876fi
8877
8878
8879fi
8880if test -z "$ac_cv_prog_AR"; then
8881 ac_ct_AR=$AR
8882 # Extract the first word of "ar", so it can be a program name with args.
8883set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008885$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008886if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008887 $as_echo_n "(cached) " >&6
8888else
8889 if test -n "$ac_ct_AR"; then
8890 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8891else
8892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8893for as_dir in $PATH
8894do
8895 IFS=$as_save_IFS
8896 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008897 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8899 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +00008900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008901 break 2
8902 fi
8903done
cristy8b350f62009-11-15 23:12:43 +00008904 done
cristy3ed852e2009-09-05 21:47:34 +00008905IFS=$as_save_IFS
8906
8907fi
8908fi
8909ac_ct_AR=$ac_cv_prog_ac_ct_AR
8910if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +00008911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00008912$as_echo "$ac_ct_AR" >&6; }
8913else
cristy8b350f62009-11-15 23:12:43 +00008914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008915$as_echo "no" >&6; }
8916fi
8917
8918 if test "x$ac_ct_AR" = x; then
8919 AR="false"
8920 else
8921 case $cross_compiling:$ac_tool_warned in
8922yes:)
cristy8b350f62009-11-15 23:12:43 +00008923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8925ac_tool_warned=yes ;;
8926esac
8927 AR=$ac_ct_AR
8928 fi
8929else
8930 AR="$ac_cv_prog_AR"
8931fi
8932
8933test -z "$AR" && AR=ar
8934test -z "$AR_FLAGS" && AR_FLAGS=cru
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946if test -n "$ac_tool_prefix"; then
8947 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8948set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008950$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008951if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008952 $as_echo_n "(cached) " >&6
8953else
8954 if test -n "$STRIP"; then
8955 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8956else
8957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8958for as_dir in $PATH
8959do
8960 IFS=$as_save_IFS
8961 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008962 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8964 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00008965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008966 break 2
8967 fi
8968done
cristy8b350f62009-11-15 23:12:43 +00008969 done
cristy3ed852e2009-09-05 21:47:34 +00008970IFS=$as_save_IFS
8971
8972fi
8973fi
8974STRIP=$ac_cv_prog_STRIP
8975if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00008976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008977$as_echo "$STRIP" >&6; }
8978else
cristy8b350f62009-11-15 23:12:43 +00008979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008980$as_echo "no" >&6; }
8981fi
8982
8983
8984fi
8985if test -z "$ac_cv_prog_STRIP"; then
8986 ac_ct_STRIP=$STRIP
8987 # Extract the first word of "strip", so it can be a program name with args.
8988set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008990$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008991if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008992 $as_echo_n "(cached) " >&6
8993else
8994 if test -n "$ac_ct_STRIP"; then
8995 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8996else
8997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8998for as_dir in $PATH
8999do
9000 IFS=$as_save_IFS
9001 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009002 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9004 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00009005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009006 break 2
9007 fi
9008done
cristy8b350f62009-11-15 23:12:43 +00009009 done
cristy3ed852e2009-09-05 21:47:34 +00009010IFS=$as_save_IFS
9011
9012fi
9013fi
9014ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9015if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00009016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009017$as_echo "$ac_ct_STRIP" >&6; }
9018else
cristy8b350f62009-11-15 23:12:43 +00009019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009020$as_echo "no" >&6; }
9021fi
9022
9023 if test "x$ac_ct_STRIP" = x; then
9024 STRIP=":"
9025 else
9026 case $cross_compiling:$ac_tool_warned in
9027yes:)
cristy8b350f62009-11-15 23:12:43 +00009028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9030ac_tool_warned=yes ;;
9031esac
9032 STRIP=$ac_ct_STRIP
9033 fi
9034else
9035 STRIP="$ac_cv_prog_STRIP"
9036fi
9037
9038test -z "$STRIP" && STRIP=:
9039
9040
9041
9042
9043
9044
9045if test -n "$ac_tool_prefix"; then
9046 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9047set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009049$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009050if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009051 $as_echo_n "(cached) " >&6
9052else
9053 if test -n "$RANLIB"; then
9054 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9055else
9056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9057for as_dir in $PATH
9058do
9059 IFS=$as_save_IFS
9060 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009061 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9063 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +00009064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009065 break 2
9066 fi
9067done
cristy8b350f62009-11-15 23:12:43 +00009068 done
cristy3ed852e2009-09-05 21:47:34 +00009069IFS=$as_save_IFS
9070
9071fi
9072fi
9073RANLIB=$ac_cv_prog_RANLIB
9074if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00009075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00009076$as_echo "$RANLIB" >&6; }
9077else
cristy8b350f62009-11-15 23:12:43 +00009078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009079$as_echo "no" >&6; }
9080fi
9081
9082
9083fi
9084if test -z "$ac_cv_prog_RANLIB"; then
9085 ac_ct_RANLIB=$RANLIB
9086 # Extract the first word of "ranlib", so it can be a program name with args.
9087set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009089$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009090if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009091 $as_echo_n "(cached) " >&6
9092else
9093 if test -n "$ac_ct_RANLIB"; then
9094 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9095else
9096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097for as_dir in $PATH
9098do
9099 IFS=$as_save_IFS
9100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009101 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9103 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +00009104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009105 break 2
9106 fi
9107done
cristy8b350f62009-11-15 23:12:43 +00009108 done
cristy3ed852e2009-09-05 21:47:34 +00009109IFS=$as_save_IFS
9110
9111fi
9112fi
9113ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9114if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00009115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00009116$as_echo "$ac_ct_RANLIB" >&6; }
9117else
cristy8b350f62009-11-15 23:12:43 +00009118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009119$as_echo "no" >&6; }
9120fi
9121
9122 if test "x$ac_ct_RANLIB" = x; then
9123 RANLIB=":"
9124 else
9125 case $cross_compiling:$ac_tool_warned in
9126yes:)
cristy8b350f62009-11-15 23:12:43 +00009127{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9129ac_tool_warned=yes ;;
9130esac
9131 RANLIB=$ac_ct_RANLIB
9132 fi
9133else
9134 RANLIB="$ac_cv_prog_RANLIB"
9135fi
9136
9137test -z "$RANLIB" && RANLIB=:
9138
9139
9140
9141
9142
9143
9144# Determine commands to create old-style static archives.
9145old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9146old_postinstall_cmds='chmod 644 $oldlib'
9147old_postuninstall_cmds=
9148
9149if test -n "$RANLIB"; then
9150 case $host_os in
9151 openbsd*)
9152 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9153 ;;
9154 *)
9155 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9156 ;;
9157 esac
9158 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9159fi
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194# If no C compiler was specified, use CC.
9195LTCC=${LTCC-"$CC"}
9196
9197# If no C compiler flags were specified, use CFLAGS.
9198LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9199
9200# Allow CC to be a program name with arguments.
9201compiler=$CC
9202
9203
9204# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +00009205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +00009206$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009207if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009208 $as_echo_n "(cached) " >&6
9209else
9210
9211# These are sane defaults that work on at least a few old systems.
9212# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9213
9214# Character class describing NM global symbol codes.
9215symcode='[BCDEGRST]'
9216
9217# Regexp to match symbols that can be accessed directly from C.
9218sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9219
9220# Define system-specific variables.
9221case $host_os in
9222aix*)
9223 symcode='[BCDT]'
9224 ;;
9225cygwin* | mingw* | pw32* | cegcc*)
9226 symcode='[ABCDGISTW]'
9227 ;;
9228hpux*)
9229 if test "$host_cpu" = ia64; then
9230 symcode='[ABCDEGRST]'
9231 fi
9232 ;;
9233irix* | nonstopux*)
9234 symcode='[BCDEGRST]'
9235 ;;
9236osf*)
9237 symcode='[BCDEGQRST]'
9238 ;;
9239solaris*)
9240 symcode='[BDRT]'
9241 ;;
9242sco3.2v5*)
9243 symcode='[DT]'
9244 ;;
9245sysv4.2uw2*)
9246 symcode='[DT]'
9247 ;;
9248sysv5* | sco5v6* | unixware* | OpenUNIX*)
9249 symcode='[ABDT]'
9250 ;;
9251sysv4)
9252 symcode='[DFNSTU]'
9253 ;;
9254esac
9255
9256# If we're using GNU nm, then use its standard symbol codes.
9257case `$NM -V 2>&1` in
9258*GNU* | *'with BFD'*)
9259 symcode='[ABCDGIRSTW]' ;;
9260esac
9261
9262# Transform an extracted symbol line into a proper C declaration.
9263# Some systems (esp. on ia64) link data and code symbols differently,
9264# so use this general approach.
9265lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9266
9267# Transform an extracted symbol line into symbol name and symbol address
9268lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9269lt_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'"
9270
9271# Handle CRLF in mingw tool chain
9272opt_cr=
9273case $build_os in
9274mingw*)
9275 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9276 ;;
9277esac
9278
9279# Try without a prefix underscore, then with it.
9280for ac_symprfx in "" "_"; do
9281
9282 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9283 symxfrm="\\1 $ac_symprfx\\2 \\2"
9284
9285 # Write the raw and C identifiers.
9286 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9287 # Fake it for dumpbin and say T for any non-static function
9288 # and D for any global variable.
9289 # Also find C++ and __fastcall symbols from MSVC++,
9290 # which start with @ or ?.
9291 lt_cv_sys_global_symbol_pipe="$AWK '"\
9292" {last_section=section; section=\$ 3};"\
9293" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9294" \$ 0!~/External *\|/{next};"\
9295" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9296" {if(hide[section]) next};"\
9297" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9298" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9299" s[1]~/^[@?]/{print s[1], s[1]; next};"\
9300" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9301" ' prfx=^$ac_symprfx"
9302 else
9303 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9304 fi
9305
9306 # Check to see that the pipe works correctly.
9307 pipe_works=no
9308
9309 rm -f conftest*
9310 cat > conftest.$ac_ext <<_LT_EOF
9311#ifdef __cplusplus
9312extern "C" {
9313#endif
9314char nm_test_var;
9315void nm_test_func(void);
9316void nm_test_func(void){}
9317#ifdef __cplusplus
9318}
9319#endif
9320int main(){nm_test_var='a';nm_test_func();return(0);}
9321_LT_EOF
9322
cristy8b350f62009-11-15 23:12:43 +00009323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009324 (eval $ac_compile) 2>&5
9325 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9327 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009328 # Now try to grab the symbols.
9329 nlist=conftest.nm
cristy18304f92009-11-22 15:48:26 +00009330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
9331 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +00009332 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9334 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +00009335 # Try sorting and uniquifying the output.
9336 if sort "$nlist" | uniq > "$nlist"T; then
9337 mv -f "$nlist"T "$nlist"
9338 else
9339 rm -f "$nlist"T
9340 fi
9341
9342 # Make sure that we snagged all the symbols we need.
9343 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9344 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9345 cat <<_LT_EOF > conftest.$ac_ext
9346#ifdef __cplusplus
9347extern "C" {
9348#endif
9349
9350_LT_EOF
9351 # Now generate the symbol file.
9352 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9353
9354 cat <<_LT_EOF >> conftest.$ac_ext
9355
9356/* The mapping between symbol names and symbols. */
9357const struct {
9358 const char *name;
9359 void *address;
9360}
9361lt__PROGRAM__LTX_preloaded_symbols[] =
9362{
9363 { "@PROGRAM@", (void *) 0 },
9364_LT_EOF
9365 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9366 cat <<\_LT_EOF >> conftest.$ac_ext
9367 {0, (void *) 0}
9368};
9369
9370/* This works around a problem in FreeBSD linker */
9371#ifdef FREEBSD_WORKAROUND
9372static const void *lt_preloaded_setup() {
9373 return lt__PROGRAM__LTX_preloaded_symbols;
9374}
9375#endif
9376
9377#ifdef __cplusplus
9378}
9379#endif
9380_LT_EOF
9381 # Now try linking the two files.
9382 mv conftest.$ac_objext conftstm.$ac_objext
9383 lt_save_LIBS="$LIBS"
9384 lt_save_CFLAGS="$CFLAGS"
9385 LIBS="conftstm.$ac_objext"
9386 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +00009387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009388 (eval $ac_link) 2>&5
9389 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9391 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +00009392 pipe_works=yes
9393 fi
9394 LIBS="$lt_save_LIBS"
9395 CFLAGS="$lt_save_CFLAGS"
9396 else
9397 echo "cannot find nm_test_func in $nlist" >&5
9398 fi
9399 else
9400 echo "cannot find nm_test_var in $nlist" >&5
9401 fi
9402 else
9403 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9404 fi
9405 else
9406 echo "$progname: failed program was:" >&5
9407 cat conftest.$ac_ext >&5
9408 fi
9409 rm -rf conftest* conftst*
9410
9411 # Do not use the global_symbol_pipe unless it works.
9412 if test "$pipe_works" = yes; then
9413 break
9414 else
9415 lt_cv_sys_global_symbol_pipe=
9416 fi
9417done
9418
9419fi
9420
9421if test -z "$lt_cv_sys_global_symbol_pipe"; then
9422 lt_cv_sys_global_symbol_to_cdecl=
9423fi
9424if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +00009425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +00009426$as_echo "failed" >&6; }
9427else
cristy8b350f62009-11-15 23:12:43 +00009428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00009429$as_echo "ok" >&6; }
9430fi
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +00009454if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009455 enableval=$enable_libtool_lock;
9456fi
9457
9458test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9459
9460# Some flags need to be propagated to the compiler or linker for good
9461# libtool support.
9462case $host in
9463ia64-*-hpux*)
9464 # Find out which ABI we are using.
9465 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009467 (eval $ac_compile) 2>&5
9468 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9470 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009471 case `/usr/bin/file conftest.$ac_objext` in
9472 *ELF-32*)
9473 HPUX_IA64_MODE="32"
9474 ;;
9475 *ELF-64*)
9476 HPUX_IA64_MODE="64"
9477 ;;
9478 esac
9479 fi
9480 rm -rf conftest*
9481 ;;
9482*-*-irix6*)
9483 # Find out which ABI we are using.
cristy679ed8e2009-12-05 02:37:41 +00009484 echo '#line 9484 "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009486 (eval $ac_compile) 2>&5
9487 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9489 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009490 if test "$lt_cv_prog_gnu_ld" = yes; then
9491 case `/usr/bin/file conftest.$ac_objext` in
9492 *32-bit*)
9493 LD="${LD-ld} -melf32bsmip"
9494 ;;
9495 *N32*)
9496 LD="${LD-ld} -melf32bmipn32"
9497 ;;
9498 *64-bit*)
9499 LD="${LD-ld} -melf64bmip"
9500 ;;
9501 esac
9502 else
9503 case `/usr/bin/file conftest.$ac_objext` in
9504 *32-bit*)
9505 LD="${LD-ld} -32"
9506 ;;
9507 *N32*)
9508 LD="${LD-ld} -n32"
9509 ;;
9510 *64-bit*)
9511 LD="${LD-ld} -64"
9512 ;;
9513 esac
9514 fi
9515 fi
9516 rm -rf conftest*
9517 ;;
9518
9519x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9520s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9521 # Find out which ABI we are using.
9522 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009524 (eval $ac_compile) 2>&5
9525 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9527 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009528 case `/usr/bin/file conftest.o` in
9529 *32-bit*)
9530 case $host in
9531 x86_64-*kfreebsd*-gnu)
9532 LD="${LD-ld} -m elf_i386_fbsd"
9533 ;;
9534 x86_64-*linux*)
9535 LD="${LD-ld} -m elf_i386"
9536 ;;
9537 ppc64-*linux*|powerpc64-*linux*)
9538 LD="${LD-ld} -m elf32ppclinux"
9539 ;;
9540 s390x-*linux*)
9541 LD="${LD-ld} -m elf_s390"
9542 ;;
9543 sparc64-*linux*)
9544 LD="${LD-ld} -m elf32_sparc"
9545 ;;
9546 esac
9547 ;;
9548 *64-bit*)
9549 case $host in
9550 x86_64-*kfreebsd*-gnu)
9551 LD="${LD-ld} -m elf_x86_64_fbsd"
9552 ;;
9553 x86_64-*linux*)
9554 LD="${LD-ld} -m elf_x86_64"
9555 ;;
9556 ppc*-*linux*|powerpc*-*linux*)
9557 LD="${LD-ld} -m elf64ppc"
9558 ;;
9559 s390*-*linux*|s390*-*tpf*)
9560 LD="${LD-ld} -m elf64_s390"
9561 ;;
9562 sparc*-*linux*)
9563 LD="${LD-ld} -m elf64_sparc"
9564 ;;
9565 esac
9566 ;;
9567 esac
9568 fi
9569 rm -rf conftest*
9570 ;;
9571
9572*-*-sco3.2v5*)
9573 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9574 SAVE_CFLAGS="$CFLAGS"
9575 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +00009576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +00009577$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009578if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009579 $as_echo_n "(cached) " >&6
9580else
9581 ac_ext=c
9582ac_cpp='$CPP $CPPFLAGS'
9583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9585ac_compiler_gnu=$ac_cv_c_compiler_gnu
9586
cristy8b350f62009-11-15 23:12:43 +00009587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009588/* end confdefs.h. */
9589
9590int
9591main ()
9592{
9593
9594 ;
9595 return 0;
9596}
9597_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009598if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009599 lt_cv_cc_needs_belf=yes
9600else
cristy8b350f62009-11-15 23:12:43 +00009601 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +00009602fi
cristy8b350f62009-11-15 23:12:43 +00009603rm -f core conftest.err conftest.$ac_objext \
9604 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009605 ac_ext=c
9606ac_cpp='$CPP $CPPFLAGS'
9607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9609ac_compiler_gnu=$ac_cv_c_compiler_gnu
9610
9611fi
cristy8b350f62009-11-15 23:12:43 +00009612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +00009613$as_echo "$lt_cv_cc_needs_belf" >&6; }
9614 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9615 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9616 CFLAGS="$SAVE_CFLAGS"
9617 fi
9618 ;;
9619sparc*-*solaris*)
9620 # Find out which ABI we are using.
9621 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009623 (eval $ac_compile) 2>&5
9624 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9626 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009627 case `/usr/bin/file conftest.o` in
9628 *64-bit*)
9629 case $lt_cv_prog_gnu_ld in
9630 yes*) LD="${LD-ld} -m elf64_sparc" ;;
9631 *)
9632 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9633 LD="${LD-ld} -64"
9634 fi
9635 ;;
9636 esac
9637 ;;
9638 esac
9639 fi
9640 rm -rf conftest*
9641 ;;
9642esac
9643
9644need_locks="$enable_libtool_lock"
9645
9646
9647 case $host_os in
9648 rhapsody* | darwin*)
9649 if test -n "$ac_tool_prefix"; then
9650 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9651set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009653$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009654if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009655 $as_echo_n "(cached) " >&6
9656else
9657 if test -n "$DSYMUTIL"; then
9658 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9659else
9660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9661for as_dir in $PATH
9662do
9663 IFS=$as_save_IFS
9664 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009665 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9667 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +00009668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009669 break 2
9670 fi
9671done
cristy8b350f62009-11-15 23:12:43 +00009672 done
cristy3ed852e2009-09-05 21:47:34 +00009673IFS=$as_save_IFS
9674
9675fi
9676fi
9677DSYMUTIL=$ac_cv_prog_DSYMUTIL
9678if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +00009679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009680$as_echo "$DSYMUTIL" >&6; }
9681else
cristy8b350f62009-11-15 23:12:43 +00009682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009683$as_echo "no" >&6; }
9684fi
9685
9686
9687fi
9688if test -z "$ac_cv_prog_DSYMUTIL"; then
9689 ac_ct_DSYMUTIL=$DSYMUTIL
9690 # Extract the first word of "dsymutil", so it can be a program name with args.
9691set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009693$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009694if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009695 $as_echo_n "(cached) " >&6
9696else
9697 if test -n "$ac_ct_DSYMUTIL"; then
9698 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9699else
9700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9701for as_dir in $PATH
9702do
9703 IFS=$as_save_IFS
9704 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009705 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9707 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +00009708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009709 break 2
9710 fi
9711done
cristy8b350f62009-11-15 23:12:43 +00009712 done
cristy3ed852e2009-09-05 21:47:34 +00009713IFS=$as_save_IFS
9714
9715fi
9716fi
9717ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9718if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +00009719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009720$as_echo "$ac_ct_DSYMUTIL" >&6; }
9721else
cristy8b350f62009-11-15 23:12:43 +00009722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009723$as_echo "no" >&6; }
9724fi
9725
9726 if test "x$ac_ct_DSYMUTIL" = x; then
9727 DSYMUTIL=":"
9728 else
9729 case $cross_compiling:$ac_tool_warned in
9730yes:)
cristy8b350f62009-11-15 23:12:43 +00009731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9733ac_tool_warned=yes ;;
9734esac
9735 DSYMUTIL=$ac_ct_DSYMUTIL
9736 fi
9737else
9738 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9739fi
9740
9741 if test -n "$ac_tool_prefix"; then
9742 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9743set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009745$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009746if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009747 $as_echo_n "(cached) " >&6
9748else
9749 if test -n "$NMEDIT"; then
9750 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9751else
9752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9753for as_dir in $PATH
9754do
9755 IFS=$as_save_IFS
9756 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009757 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9759 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +00009760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009761 break 2
9762 fi
9763done
cristy8b350f62009-11-15 23:12:43 +00009764 done
cristy3ed852e2009-09-05 21:47:34 +00009765IFS=$as_save_IFS
9766
9767fi
9768fi
9769NMEDIT=$ac_cv_prog_NMEDIT
9770if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +00009771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +00009772$as_echo "$NMEDIT" >&6; }
9773else
cristy8b350f62009-11-15 23:12:43 +00009774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009775$as_echo "no" >&6; }
9776fi
9777
9778
9779fi
9780if test -z "$ac_cv_prog_NMEDIT"; then
9781 ac_ct_NMEDIT=$NMEDIT
9782 # Extract the first word of "nmedit", so it can be a program name with args.
9783set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009785$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009786if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009787 $as_echo_n "(cached) " >&6
9788else
9789 if test -n "$ac_ct_NMEDIT"; then
9790 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9791else
9792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9793for as_dir in $PATH
9794do
9795 IFS=$as_save_IFS
9796 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009797 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9799 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +00009800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009801 break 2
9802 fi
9803done
cristy8b350f62009-11-15 23:12:43 +00009804 done
cristy3ed852e2009-09-05 21:47:34 +00009805IFS=$as_save_IFS
9806
9807fi
9808fi
9809ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9810if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +00009811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +00009812$as_echo "$ac_ct_NMEDIT" >&6; }
9813else
cristy8b350f62009-11-15 23:12:43 +00009814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009815$as_echo "no" >&6; }
9816fi
9817
9818 if test "x$ac_ct_NMEDIT" = x; then
9819 NMEDIT=":"
9820 else
9821 case $cross_compiling:$ac_tool_warned in
9822yes:)
cristy8b350f62009-11-15 23:12:43 +00009823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9825ac_tool_warned=yes ;;
9826esac
9827 NMEDIT=$ac_ct_NMEDIT
9828 fi
9829else
9830 NMEDIT="$ac_cv_prog_NMEDIT"
9831fi
9832
9833 if test -n "$ac_tool_prefix"; then
9834 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9835set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009837$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009838if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009839 $as_echo_n "(cached) " >&6
9840else
9841 if test -n "$LIPO"; then
9842 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9843else
9844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9845for as_dir in $PATH
9846do
9847 IFS=$as_save_IFS
9848 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009849 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9851 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +00009852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009853 break 2
9854 fi
9855done
cristy8b350f62009-11-15 23:12:43 +00009856 done
cristy3ed852e2009-09-05 21:47:34 +00009857IFS=$as_save_IFS
9858
9859fi
9860fi
9861LIPO=$ac_cv_prog_LIPO
9862if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +00009863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +00009864$as_echo "$LIPO" >&6; }
9865else
cristy8b350f62009-11-15 23:12:43 +00009866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009867$as_echo "no" >&6; }
9868fi
9869
9870
9871fi
9872if test -z "$ac_cv_prog_LIPO"; then
9873 ac_ct_LIPO=$LIPO
9874 # Extract the first word of "lipo", so it can be a program name with args.
9875set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009877$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009878if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009879 $as_echo_n "(cached) " >&6
9880else
9881 if test -n "$ac_ct_LIPO"; then
9882 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9883else
9884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9885for as_dir in $PATH
9886do
9887 IFS=$as_save_IFS
9888 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009889 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9891 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +00009892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009893 break 2
9894 fi
9895done
cristy8b350f62009-11-15 23:12:43 +00009896 done
cristy3ed852e2009-09-05 21:47:34 +00009897IFS=$as_save_IFS
9898
9899fi
9900fi
9901ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9902if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +00009903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +00009904$as_echo "$ac_ct_LIPO" >&6; }
9905else
cristy8b350f62009-11-15 23:12:43 +00009906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009907$as_echo "no" >&6; }
9908fi
9909
9910 if test "x$ac_ct_LIPO" = x; then
9911 LIPO=":"
9912 else
9913 case $cross_compiling:$ac_tool_warned in
9914yes:)
cristy8b350f62009-11-15 23:12:43 +00009915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9917ac_tool_warned=yes ;;
9918esac
9919 LIPO=$ac_ct_LIPO
9920 fi
9921else
9922 LIPO="$ac_cv_prog_LIPO"
9923fi
9924
9925 if test -n "$ac_tool_prefix"; then
9926 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9927set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009929$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009930if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009931 $as_echo_n "(cached) " >&6
9932else
9933 if test -n "$OTOOL"; then
9934 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9935else
9936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9937for as_dir in $PATH
9938do
9939 IFS=$as_save_IFS
9940 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009941 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9943 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +00009944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009945 break 2
9946 fi
9947done
cristy8b350f62009-11-15 23:12:43 +00009948 done
cristy3ed852e2009-09-05 21:47:34 +00009949IFS=$as_save_IFS
9950
9951fi
9952fi
9953OTOOL=$ac_cv_prog_OTOOL
9954if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +00009955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009956$as_echo "$OTOOL" >&6; }
9957else
cristy8b350f62009-11-15 23:12:43 +00009958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009959$as_echo "no" >&6; }
9960fi
9961
9962
9963fi
9964if test -z "$ac_cv_prog_OTOOL"; then
9965 ac_ct_OTOOL=$OTOOL
9966 # Extract the first word of "otool", so it can be a program name with args.
9967set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009969$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009970if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009971 $as_echo_n "(cached) " >&6
9972else
9973 if test -n "$ac_ct_OTOOL"; then
9974 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9975else
9976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9977for as_dir in $PATH
9978do
9979 IFS=$as_save_IFS
9980 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009981 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9983 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +00009984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009985 break 2
9986 fi
9987done
cristy8b350f62009-11-15 23:12:43 +00009988 done
cristy3ed852e2009-09-05 21:47:34 +00009989IFS=$as_save_IFS
9990
9991fi
9992fi
9993ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9994if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +00009995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009996$as_echo "$ac_ct_OTOOL" >&6; }
9997else
cristy8b350f62009-11-15 23:12:43 +00009998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009999$as_echo "no" >&6; }
10000fi
10001
10002 if test "x$ac_ct_OTOOL" = x; then
10003 OTOOL=":"
10004 else
10005 case $cross_compiling:$ac_tool_warned in
10006yes:)
cristy8b350f62009-11-15 23:12:43 +000010007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10009ac_tool_warned=yes ;;
10010esac
10011 OTOOL=$ac_ct_OTOOL
10012 fi
10013else
10014 OTOOL="$ac_cv_prog_OTOOL"
10015fi
10016
10017 if test -n "$ac_tool_prefix"; then
10018 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10019set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010021$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010022if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010023 $as_echo_n "(cached) " >&6
10024else
10025 if test -n "$OTOOL64"; then
10026 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10027else
10028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10029for as_dir in $PATH
10030do
10031 IFS=$as_save_IFS
10032 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010033 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10035 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000010036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010037 break 2
10038 fi
10039done
cristy8b350f62009-11-15 23:12:43 +000010040 done
cristy3ed852e2009-09-05 21:47:34 +000010041IFS=$as_save_IFS
10042
10043fi
10044fi
10045OTOOL64=$ac_cv_prog_OTOOL64
10046if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000010047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000010048$as_echo "$OTOOL64" >&6; }
10049else
cristy8b350f62009-11-15 23:12:43 +000010050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010051$as_echo "no" >&6; }
10052fi
10053
10054
10055fi
10056if test -z "$ac_cv_prog_OTOOL64"; then
10057 ac_ct_OTOOL64=$OTOOL64
10058 # Extract the first word of "otool64", so it can be a program name with args.
10059set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010061$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010062if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010063 $as_echo_n "(cached) " >&6
10064else
10065 if test -n "$ac_ct_OTOOL64"; then
10066 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10067else
10068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10069for as_dir in $PATH
10070do
10071 IFS=$as_save_IFS
10072 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010073 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10075 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000010076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010077 break 2
10078 fi
10079done
cristy8b350f62009-11-15 23:12:43 +000010080 done
cristy3ed852e2009-09-05 21:47:34 +000010081IFS=$as_save_IFS
10082
10083fi
10084fi
10085ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10086if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000010087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000010088$as_echo "$ac_ct_OTOOL64" >&6; }
10089else
cristy8b350f62009-11-15 23:12:43 +000010090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010091$as_echo "no" >&6; }
10092fi
10093
10094 if test "x$ac_ct_OTOOL64" = x; then
10095 OTOOL64=":"
10096 else
10097 case $cross_compiling:$ac_tool_warned in
10098yes:)
cristy8b350f62009-11-15 23:12:43 +000010099{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010100$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10101ac_tool_warned=yes ;;
10102esac
10103 OTOOL64=$ac_ct_OTOOL64
10104 fi
10105else
10106 OTOOL64="$ac_cv_prog_OTOOL64"
10107fi
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
cristy8b350f62009-11-15 23:12:43 +000010135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000010136$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010137if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010138 $as_echo_n "(cached) " >&6
10139else
10140 lt_cv_apple_cc_single_mod=no
10141 if test -z "${LT_MULTI_MODULE}"; then
10142 # By default we will add the -single_module flag. You can override
10143 # by either setting the environment variable LT_MULTI_MODULE
10144 # non-empty at configure time, or by adding -multi_module to the
10145 # link flags.
10146 rm -rf libconftest.dylib*
10147 echo "int foo(void){return 1;}" > conftest.c
10148 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10149-dynamiclib -Wl,-single_module conftest.c" >&5
10150 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10151 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10152 _lt_result=$?
10153 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10154 lt_cv_apple_cc_single_mod=yes
10155 else
10156 cat conftest.err >&5
10157 fi
10158 rm -rf libconftest.dylib*
10159 rm -f conftest.*
10160 fi
10161fi
cristy8b350f62009-11-15 23:12:43 +000010162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000010163$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000010164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000010165$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010166if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010167 $as_echo_n "(cached) " >&6
10168else
10169 lt_cv_ld_exported_symbols_list=no
10170 save_LDFLAGS=$LDFLAGS
10171 echo "_main" > conftest.sym
10172 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000010173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010174/* end confdefs.h. */
10175
10176int
10177main ()
10178{
10179
10180 ;
10181 return 0;
10182}
10183_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010184if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010185 lt_cv_ld_exported_symbols_list=yes
10186else
cristy8b350f62009-11-15 23:12:43 +000010187 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000010188fi
cristy8b350f62009-11-15 23:12:43 +000010189rm -f core conftest.err conftest.$ac_objext \
10190 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010191 LDFLAGS="$save_LDFLAGS"
10192
10193fi
cristy8b350f62009-11-15 23:12:43 +000010194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000010195$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10196 case $host_os in
10197 rhapsody* | darwin1.[012])
10198 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10199 darwin1.*)
10200 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10201 darwin*) # darwin 5.x on
10202 # if running on 10.5 or later, the deployment target defaults
10203 # to the OS version, if on x86, and 10.4, the deployment
10204 # target defaults to 10.4. Don't you love it?
10205 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10206 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10207 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10208 10.[012]*)
10209 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10210 10.*)
10211 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10212 esac
10213 ;;
10214 esac
10215 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10216 _lt_dar_single_mod='$single_module'
10217 fi
10218 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10219 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10220 else
10221 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10222 fi
cristy18304f92009-11-22 15:48:26 +000010223 if test "$DSYMUTIL" != ":"; then
cristy3ed852e2009-09-05 21:47:34 +000010224 _lt_dsymutil='~$DSYMUTIL $lib || :'
10225 else
10226 _lt_dsymutil=
10227 fi
10228 ;;
10229 esac
10230
cristy3ed852e2009-09-05 21:47:34 +000010231for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000010232do :
10233 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10234"
10235if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000010236 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010237#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000010238_ACEOF
10239
10240fi
10241
10242done
10243
10244
10245
cristy18304f92009-11-22 15:48:26 +000010246ac_ext=cpp
10247ac_cpp='$CXXCPP $CPPFLAGS'
10248ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10249ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10250ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10251if test -z "$CXX"; then
10252 if test -n "$CCC"; then
10253 CXX=$CCC
10254 else
10255 if test -n "$ac_tool_prefix"; then
10256 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10257 do
10258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10259set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10261$as_echo_n "checking for $ac_word... " >&6; }
10262if test "${ac_cv_prog_CXX+set}" = set; then :
10263 $as_echo_n "(cached) " >&6
10264else
10265 if test -n "$CXX"; then
10266 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10267else
10268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10269for as_dir in $PATH
10270do
10271 IFS=$as_save_IFS
10272 test -z "$as_dir" && as_dir=.
10273 for ac_exec_ext in '' $ac_executable_extensions; do
10274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10275 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10277 break 2
10278 fi
10279done
10280 done
10281IFS=$as_save_IFS
10282
10283fi
10284fi
10285CXX=$ac_cv_prog_CXX
10286if test -n "$CXX"; then
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10288$as_echo "$CXX" >&6; }
10289else
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291$as_echo "no" >&6; }
10292fi
10293
10294
10295 test -n "$CXX" && break
10296 done
10297fi
10298if test -z "$CXX"; then
10299 ac_ct_CXX=$CXX
10300 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10301do
10302 # Extract the first word of "$ac_prog", so it can be a program name with args.
10303set dummy $ac_prog; ac_word=$2
10304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10305$as_echo_n "checking for $ac_word... " >&6; }
10306if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10307 $as_echo_n "(cached) " >&6
10308else
10309 if test -n "$ac_ct_CXX"; then
10310 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10311else
10312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313for as_dir in $PATH
10314do
10315 IFS=$as_save_IFS
10316 test -z "$as_dir" && as_dir=.
10317 for ac_exec_ext in '' $ac_executable_extensions; do
10318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10319 ac_cv_prog_ac_ct_CXX="$ac_prog"
10320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10321 break 2
10322 fi
10323done
10324 done
10325IFS=$as_save_IFS
10326
10327fi
10328fi
10329ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10330if test -n "$ac_ct_CXX"; then
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10332$as_echo "$ac_ct_CXX" >&6; }
10333else
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335$as_echo "no" >&6; }
10336fi
10337
10338
10339 test -n "$ac_ct_CXX" && break
10340done
10341
10342 if test "x$ac_ct_CXX" = x; then
10343 CXX="g++"
10344 else
10345 case $cross_compiling:$ac_tool_warned in
10346yes:)
10347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10349ac_tool_warned=yes ;;
10350esac
10351 CXX=$ac_ct_CXX
10352 fi
10353fi
10354
10355 fi
10356fi
10357# Provide some information about the compiler.
10358$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10359set X $ac_compile
10360ac_compiler=$2
10361for ac_option in --version -v -V -qversion; do
10362 { { ac_try="$ac_compiler $ac_option >&5"
10363case "(($ac_try" in
10364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10365 *) ac_try_echo=$ac_try;;
10366esac
10367eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10368$as_echo "$ac_try_echo"; } >&5
10369 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10370 ac_status=$?
10371 if test -s conftest.err; then
10372 sed '10a\
10373... rest of stderr output deleted ...
10374 10q' conftest.err >conftest.er1
10375 cat conftest.er1 >&5
10376 fi
10377 rm -f conftest.er1 conftest.err
10378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10379 test $ac_status = 0; }
10380done
10381
10382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10383$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10384if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10385 $as_echo_n "(cached) " >&6
10386else
10387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10388/* end confdefs.h. */
10389
10390int
10391main ()
10392{
10393#ifndef __GNUC__
10394 choke me
10395#endif
10396
10397 ;
10398 return 0;
10399}
10400_ACEOF
10401if ac_fn_cxx_try_compile "$LINENO"; then :
10402 ac_compiler_gnu=yes
10403else
10404 ac_compiler_gnu=no
10405fi
10406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10407ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10408
10409fi
10410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10411$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10412if test $ac_compiler_gnu = yes; then
10413 GXX=yes
10414else
10415 GXX=
10416fi
10417ac_test_CXXFLAGS=${CXXFLAGS+set}
10418ac_save_CXXFLAGS=$CXXFLAGS
10419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10420$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10421if test "${ac_cv_prog_cxx_g+set}" = set; then :
10422 $as_echo_n "(cached) " >&6
10423else
10424 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10425 ac_cxx_werror_flag=yes
10426 ac_cv_prog_cxx_g=no
10427 CXXFLAGS="-g"
10428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429/* end confdefs.h. */
10430
10431int
10432main ()
10433{
10434
10435 ;
10436 return 0;
10437}
10438_ACEOF
10439if ac_fn_cxx_try_compile "$LINENO"; then :
10440 ac_cv_prog_cxx_g=yes
10441else
10442 CXXFLAGS=""
10443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10444/* end confdefs.h. */
10445
10446int
10447main ()
10448{
10449
10450 ;
10451 return 0;
10452}
10453_ACEOF
10454if ac_fn_cxx_try_compile "$LINENO"; then :
10455
10456else
10457 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10458 CXXFLAGS="-g"
10459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10460/* end confdefs.h. */
10461
10462int
10463main ()
10464{
10465
10466 ;
10467 return 0;
10468}
10469_ACEOF
10470if ac_fn_cxx_try_compile "$LINENO"; then :
10471 ac_cv_prog_cxx_g=yes
10472fi
10473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10474fi
10475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10476fi
10477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10478 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10479fi
10480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10481$as_echo "$ac_cv_prog_cxx_g" >&6; }
10482if test "$ac_test_CXXFLAGS" = set; then
10483 CXXFLAGS=$ac_save_CXXFLAGS
10484elif test $ac_cv_prog_cxx_g = yes; then
10485 if test "$GXX" = yes; then
10486 CXXFLAGS="-g -O2"
10487 else
10488 CXXFLAGS="-g"
10489 fi
10490else
10491 if test "$GXX" = yes; then
10492 CXXFLAGS="-O2"
10493 else
10494 CXXFLAGS=
10495 fi
10496fi
10497ac_ext=c
10498ac_cpp='$CPP $CPPFLAGS'
10499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10501ac_compiler_gnu=$ac_cv_c_compiler_gnu
10502
10503depcc="$CXX" am_compiler_list=
10504
10505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10506$as_echo_n "checking dependency style of $depcc... " >&6; }
10507if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
10508 $as_echo_n "(cached) " >&6
10509else
10510 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10511 # We make a subdir and do the tests there. Otherwise we can end up
10512 # making bogus files that we don't know about and never remove. For
10513 # instance it was reported that on HP-UX the gcc test will end up
10514 # making a dummy file named `D' -- because `-MD' means `put the output
10515 # in D'.
10516 mkdir conftest.dir
10517 # Copy depcomp to subdir because otherwise we won't find it if we're
10518 # using a relative directory.
10519 cp "$am_depcomp" conftest.dir
10520 cd conftest.dir
10521 # We will build objects and dependencies in a subdirectory because
10522 # it helps to detect inapplicable dependency modes. For instance
10523 # both Tru64's cc and ICC support -MD to output dependencies as a
10524 # side effect of compilation, but ICC will put the dependencies in
10525 # the current directory while Tru64 will put them in the object
10526 # directory.
10527 mkdir sub
10528
10529 am_cv_CXX_dependencies_compiler_type=none
10530 if test "$am_compiler_list" = ""; then
10531 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10532 fi
10533 am__universal=false
10534 case " $depcc " in #(
10535 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10536 esac
10537
10538 for depmode in $am_compiler_list; do
10539 # Setup a source with many dependencies, because some compilers
10540 # like to wrap large dependency lists on column 80 (with \), and
10541 # we should not choose a depcomp mode which is confused by this.
10542 #
10543 # We need to recreate these files for each test, as the compiler may
10544 # overwrite some of them when testing with obscure command lines.
10545 # This happens at least with the AIX C compiler.
10546 : > sub/conftest.c
10547 for i in 1 2 3 4 5 6; do
10548 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10549 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10550 # Solaris 8's {/usr,}/bin/sh.
10551 touch sub/conftst$i.h
10552 done
10553 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10554
10555 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10556 # mode. It turns out that the SunPro C++ compiler does not properly
10557 # handle `-M -o', and we need to detect this. Also, some Intel
10558 # versions had trouble with output in subdirs
10559 am__obj=sub/conftest.${OBJEXT-o}
10560 am__minus_obj="-o $am__obj"
10561 case $depmode in
10562 gcc)
10563 # This depmode causes a compiler race in universal mode.
10564 test "$am__universal" = false || continue
10565 ;;
10566 nosideeffect)
10567 # after this tag, mechanisms are not by side-effect, so they'll
10568 # only be used when explicitly requested
10569 if test "x$enable_dependency_tracking" = xyes; then
10570 continue
10571 else
10572 break
10573 fi
10574 ;;
10575 msvisualcpp | msvcmsys)
10576 # This compiler won't grok `-c -o', but also, the minuso test has
10577 # not run yet. These depmodes are late enough in the game, and
10578 # so weak that their functioning should not be impacted.
10579 am__obj=conftest.${OBJEXT-o}
10580 am__minus_obj=
10581 ;;
10582 none) break ;;
10583 esac
10584 if depmode=$depmode \
10585 source=sub/conftest.c object=$am__obj \
10586 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10587 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10588 >/dev/null 2>conftest.err &&
10589 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10590 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10591 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10592 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10593 # icc doesn't choke on unknown options, it will just issue warnings
10594 # or remarks (even with -Werror). So we grep stderr for any message
10595 # that says an option was ignored or not supported.
10596 # When given -MP, icc 7.0 and 7.1 complain thusly:
10597 # icc: Command line warning: ignoring option '-M'; no argument required
10598 # The diagnosis changed in icc 8.0:
10599 # icc: Command line remark: option '-MP' not supported
10600 if (grep 'ignoring option' conftest.err ||
10601 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10602 am_cv_CXX_dependencies_compiler_type=$depmode
10603 break
10604 fi
10605 fi
10606 done
10607
10608 cd ..
10609 rm -rf conftest.dir
10610else
10611 am_cv_CXX_dependencies_compiler_type=none
10612fi
10613
10614fi
10615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10616$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10617CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10618
10619 if
10620 test "x$enable_dependency_tracking" != xno \
10621 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10622 am__fastdepCXX_TRUE=
10623 am__fastdepCXX_FALSE='#'
10624else
10625 am__fastdepCXX_TRUE='#'
10626 am__fastdepCXX_FALSE=
10627fi
10628
10629
10630if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10631 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10632 (test "X$CXX" != "Xg++"))) ; then
10633 ac_ext=cpp
10634ac_cpp='$CXXCPP $CPPFLAGS'
10635ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10636ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10637ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10639$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10640if test -z "$CXXCPP"; then
10641 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10642 $as_echo_n "(cached) " >&6
10643else
10644 # Double quotes because CXXCPP needs to be expanded
10645 for CXXCPP in "$CXX -E" "/lib/cpp"
10646 do
10647 ac_preproc_ok=false
10648for ac_cxx_preproc_warn_flag in '' yes
10649do
10650 # Use a header file that comes with gcc, so configuring glibc
10651 # with a fresh cross-compiler works.
10652 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10653 # <limits.h> exists even on freestanding compilers.
10654 # On the NeXT, cc -E runs the code through the compiler's parser,
10655 # not just through cpp. "Syntax error" is here to catch this case.
10656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10657/* end confdefs.h. */
10658#ifdef __STDC__
10659# include <limits.h>
10660#else
10661# include <assert.h>
10662#endif
10663 Syntax error
10664_ACEOF
10665if ac_fn_cxx_try_cpp "$LINENO"; then :
10666
10667else
10668 # Broken: fails on valid input.
10669continue
10670fi
10671rm -f conftest.err conftest.$ac_ext
10672
10673 # OK, works on sane cases. Now check whether nonexistent headers
10674 # can be detected and how.
10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676/* end confdefs.h. */
10677#include <ac_nonexistent.h>
10678_ACEOF
10679if ac_fn_cxx_try_cpp "$LINENO"; then :
10680 # Broken: success on invalid input.
10681continue
10682else
10683 # Passes both tests.
10684ac_preproc_ok=:
10685break
10686fi
10687rm -f conftest.err conftest.$ac_ext
10688
10689done
10690# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10691rm -f conftest.err conftest.$ac_ext
10692if $ac_preproc_ok; then :
10693 break
10694fi
10695
10696 done
10697 ac_cv_prog_CXXCPP=$CXXCPP
10698
10699fi
10700 CXXCPP=$ac_cv_prog_CXXCPP
10701else
10702 ac_cv_prog_CXXCPP=$CXXCPP
10703fi
10704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10705$as_echo "$CXXCPP" >&6; }
10706ac_preproc_ok=false
10707for ac_cxx_preproc_warn_flag in '' yes
10708do
10709 # Use a header file that comes with gcc, so configuring glibc
10710 # with a fresh cross-compiler works.
10711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10712 # <limits.h> exists even on freestanding compilers.
10713 # On the NeXT, cc -E runs the code through the compiler's parser,
10714 # not just through cpp. "Syntax error" is here to catch this case.
10715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10716/* end confdefs.h. */
10717#ifdef __STDC__
10718# include <limits.h>
10719#else
10720# include <assert.h>
10721#endif
10722 Syntax error
10723_ACEOF
10724if ac_fn_cxx_try_cpp "$LINENO"; then :
10725
10726else
10727 # Broken: fails on valid input.
10728continue
10729fi
10730rm -f conftest.err conftest.$ac_ext
10731
10732 # OK, works on sane cases. Now check whether nonexistent headers
10733 # can be detected and how.
10734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10735/* end confdefs.h. */
10736#include <ac_nonexistent.h>
10737_ACEOF
10738if ac_fn_cxx_try_cpp "$LINENO"; then :
10739 # Broken: success on invalid input.
10740continue
10741else
10742 # Passes both tests.
10743ac_preproc_ok=:
10744break
10745fi
10746rm -f conftest.err conftest.$ac_ext
10747
10748done
10749# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10750rm -f conftest.err conftest.$ac_ext
10751if $ac_preproc_ok; then :
10752
10753else
10754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10755$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10756_lt_caught_CXX_error=yes; }
10757fi
10758
10759ac_ext=c
10760ac_cpp='$CPP $CPPFLAGS'
10761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10763ac_compiler_gnu=$ac_cv_c_compiler_gnu
10764
10765else
10766 _lt_caught_CXX_error=yes
10767fi
10768
10769
cristy3ed852e2009-09-05 21:47:34 +000010770
10771
10772
10773# Set options
10774enable_win32_dll=yes
10775
10776case $host in
cristy18304f92009-11-22 15:48:26 +000010777*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000010778 if test -n "$ac_tool_prefix"; then
10779 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10780set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010782$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010783if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010784 $as_echo_n "(cached) " >&6
10785else
10786 if test -n "$AS"; then
10787 ac_cv_prog_AS="$AS" # Let the user override the test.
10788else
10789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10790for as_dir in $PATH
10791do
10792 IFS=$as_save_IFS
10793 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010794 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10796 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000010797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010798 break 2
10799 fi
10800done
cristy8b350f62009-11-15 23:12:43 +000010801 done
cristy3ed852e2009-09-05 21:47:34 +000010802IFS=$as_save_IFS
10803
10804fi
10805fi
10806AS=$ac_cv_prog_AS
10807if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000010808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000010809$as_echo "$AS" >&6; }
10810else
cristy8b350f62009-11-15 23:12:43 +000010811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010812$as_echo "no" >&6; }
10813fi
10814
10815
10816fi
10817if test -z "$ac_cv_prog_AS"; then
10818 ac_ct_AS=$AS
10819 # Extract the first word of "as", so it can be a program name with args.
10820set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010822$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010823if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010824 $as_echo_n "(cached) " >&6
10825else
10826 if test -n "$ac_ct_AS"; then
10827 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10828else
10829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10830for as_dir in $PATH
10831do
10832 IFS=$as_save_IFS
10833 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010834 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10836 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000010837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010838 break 2
10839 fi
10840done
cristy8b350f62009-11-15 23:12:43 +000010841 done
cristy3ed852e2009-09-05 21:47:34 +000010842IFS=$as_save_IFS
10843
10844fi
10845fi
10846ac_ct_AS=$ac_cv_prog_ac_ct_AS
10847if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000010848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000010849$as_echo "$ac_ct_AS" >&6; }
10850else
cristy8b350f62009-11-15 23:12:43 +000010851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010852$as_echo "no" >&6; }
10853fi
10854
10855 if test "x$ac_ct_AS" = x; then
10856 AS="false"
10857 else
10858 case $cross_compiling:$ac_tool_warned in
10859yes:)
cristy8b350f62009-11-15 23:12:43 +000010860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10862ac_tool_warned=yes ;;
10863esac
10864 AS=$ac_ct_AS
10865 fi
10866else
10867 AS="$ac_cv_prog_AS"
10868fi
10869
10870 if test -n "$ac_tool_prefix"; then
10871 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10872set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010874$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010875if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010876 $as_echo_n "(cached) " >&6
10877else
10878 if test -n "$DLLTOOL"; then
10879 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10880else
10881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10882for as_dir in $PATH
10883do
10884 IFS=$as_save_IFS
10885 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010886 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10888 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000010889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010890 break 2
10891 fi
10892done
cristy8b350f62009-11-15 23:12:43 +000010893 done
cristy3ed852e2009-09-05 21:47:34 +000010894IFS=$as_save_IFS
10895
10896fi
10897fi
10898DLLTOOL=$ac_cv_prog_DLLTOOL
10899if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010901$as_echo "$DLLTOOL" >&6; }
10902else
cristy8b350f62009-11-15 23:12:43 +000010903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010904$as_echo "no" >&6; }
10905fi
10906
10907
10908fi
10909if test -z "$ac_cv_prog_DLLTOOL"; then
10910 ac_ct_DLLTOOL=$DLLTOOL
10911 # Extract the first word of "dlltool", so it can be a program name with args.
10912set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010914$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010915if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010916 $as_echo_n "(cached) " >&6
10917else
10918 if test -n "$ac_ct_DLLTOOL"; then
10919 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10920else
10921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10922for as_dir in $PATH
10923do
10924 IFS=$as_save_IFS
10925 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010926 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10928 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000010929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010930 break 2
10931 fi
10932done
cristy8b350f62009-11-15 23:12:43 +000010933 done
cristy3ed852e2009-09-05 21:47:34 +000010934IFS=$as_save_IFS
10935
10936fi
10937fi
10938ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10939if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010941$as_echo "$ac_ct_DLLTOOL" >&6; }
10942else
cristy8b350f62009-11-15 23:12:43 +000010943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010944$as_echo "no" >&6; }
10945fi
10946
10947 if test "x$ac_ct_DLLTOOL" = x; then
10948 DLLTOOL="false"
10949 else
10950 case $cross_compiling:$ac_tool_warned in
10951yes:)
cristy8b350f62009-11-15 23:12:43 +000010952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10954ac_tool_warned=yes ;;
10955esac
10956 DLLTOOL=$ac_ct_DLLTOOL
10957 fi
10958else
10959 DLLTOOL="$ac_cv_prog_DLLTOOL"
10960fi
10961
10962 if test -n "$ac_tool_prefix"; then
10963 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10964set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010966$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010967if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010968 $as_echo_n "(cached) " >&6
10969else
10970 if test -n "$OBJDUMP"; then
10971 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10972else
10973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974for as_dir in $PATH
10975do
10976 IFS=$as_save_IFS
10977 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010978 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10980 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000010981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010982 break 2
10983 fi
10984done
cristy8b350f62009-11-15 23:12:43 +000010985 done
cristy3ed852e2009-09-05 21:47:34 +000010986IFS=$as_save_IFS
10987
10988fi
10989fi
10990OBJDUMP=$ac_cv_prog_OBJDUMP
10991if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000010992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010993$as_echo "$OBJDUMP" >&6; }
10994else
cristy8b350f62009-11-15 23:12:43 +000010995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010996$as_echo "no" >&6; }
10997fi
10998
10999
11000fi
11001if test -z "$ac_cv_prog_OBJDUMP"; then
11002 ac_ct_OBJDUMP=$OBJDUMP
11003 # Extract the first word of "objdump", so it can be a program name with args.
11004set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011006$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011007if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011008 $as_echo_n "(cached) " >&6
11009else
11010 if test -n "$ac_ct_OBJDUMP"; then
11011 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11012else
11013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11014for as_dir in $PATH
11015do
11016 IFS=$as_save_IFS
11017 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011018 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11020 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000011021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011022 break 2
11023 fi
11024done
cristy8b350f62009-11-15 23:12:43 +000011025 done
cristy3ed852e2009-09-05 21:47:34 +000011026IFS=$as_save_IFS
11027
11028fi
11029fi
11030ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11031if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011033$as_echo "$ac_ct_OBJDUMP" >&6; }
11034else
cristy8b350f62009-11-15 23:12:43 +000011035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011036$as_echo "no" >&6; }
11037fi
11038
11039 if test "x$ac_ct_OBJDUMP" = x; then
11040 OBJDUMP="false"
11041 else
11042 case $cross_compiling:$ac_tool_warned in
11043yes:)
cristy8b350f62009-11-15 23:12:43 +000011044{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11046ac_tool_warned=yes ;;
11047esac
11048 OBJDUMP=$ac_ct_OBJDUMP
11049 fi
11050else
11051 OBJDUMP="$ac_cv_prog_OBJDUMP"
11052fi
11053
11054 ;;
11055esac
11056
11057test -z "$AS" && AS=as
11058
11059
11060
11061
11062
11063test -z "$DLLTOOL" && DLLTOOL=dlltool
11064
11065
11066
11067
11068
11069test -z "$OBJDUMP" && OBJDUMP=objdump
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000011080if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011081 enableval=$enable_shared; p=${PACKAGE-default}
11082 case $enableval in
11083 yes) enable_shared=yes ;;
11084 no) enable_shared=no ;;
11085 *)
11086 enable_shared=no
11087 # Look at the argument we got. We use all the common list separators.
11088 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11089 for pkg in $enableval; do
11090 IFS="$lt_save_ifs"
11091 if test "X$pkg" = "X$p"; then
11092 enable_shared=yes
11093 fi
11094 done
11095 IFS="$lt_save_ifs"
11096 ;;
11097 esac
11098else
11099 enable_shared=yes
11100fi
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000011111if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011112 enableval=$enable_static; p=${PACKAGE-default}
11113 case $enableval in
11114 yes) enable_static=yes ;;
11115 no) enable_static=no ;;
11116 *)
11117 enable_static=no
11118 # Look at the argument we got. We use all the common list separators.
11119 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11120 for pkg in $enableval; do
11121 IFS="$lt_save_ifs"
11122 if test "X$pkg" = "X$p"; then
11123 enable_static=yes
11124 fi
11125 done
11126 IFS="$lt_save_ifs"
11127 ;;
11128 esac
11129else
11130 enable_static=yes
11131fi
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000011143if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011144 withval=$with_pic; pic_mode="$withval"
11145else
11146 pic_mode=default
11147fi
11148
11149
11150test -z "$pic_mode" && pic_mode=default
11151
11152
11153
11154
11155
11156
11157
11158 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000011159if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011160 enableval=$enable_fast_install; p=${PACKAGE-default}
11161 case $enableval in
11162 yes) enable_fast_install=yes ;;
11163 no) enable_fast_install=no ;;
11164 *)
11165 enable_fast_install=no
11166 # Look at the argument we got. We use all the common list separators.
11167 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11168 for pkg in $enableval; do
11169 IFS="$lt_save_ifs"
11170 if test "X$pkg" = "X$p"; then
11171 enable_fast_install=yes
11172 fi
11173 done
11174 IFS="$lt_save_ifs"
11175 ;;
11176 esac
11177else
11178 enable_fast_install=yes
11179fi
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191# This can be used to rebuild libtool when needed
11192LIBTOOL_DEPS="$ltmain"
11193
11194# Always use our own libtool.
11195LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221test -z "$LN_S" && LN_S="ln -s"
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236if test -n "${ZSH_VERSION+set}" ; then
11237 setopt NO_GLOB_SUBST
11238fi
11239
cristy8b350f62009-11-15 23:12:43 +000011240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000011241$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011242if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011243 $as_echo_n "(cached) " >&6
11244else
11245 rm -f .libs 2>/dev/null
11246mkdir .libs 2>/dev/null
11247if test -d .libs; then
11248 lt_cv_objdir=.libs
11249else
11250 # MS-DOS does not allow filenames that begin with a dot.
11251 lt_cv_objdir=_libs
11252fi
11253rmdir .libs 2>/dev/null
11254fi
cristy8b350f62009-11-15 23:12:43 +000011255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000011256$as_echo "$lt_cv_objdir" >&6; }
11257objdir=$lt_cv_objdir
11258
11259
11260
11261
11262
11263cat >>confdefs.h <<_ACEOF
11264#define LT_OBJDIR "$lt_cv_objdir/"
11265_ACEOF
11266
11267
11268
11269
cristy18304f92009-11-22 15:48:26 +000011270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
cristy3ed852e2009-09-05 21:47:34 +000011283case $host_os in
11284aix3*)
11285 # AIX sometimes has problems with the GCC collect2 program. For some
11286 # reason, if we set the COLLECT_NAMES environment variable, the problems
11287 # vanish in a puff of smoke.
11288 if test "X${COLLECT_NAMES+set}" != Xset; then
11289 COLLECT_NAMES=
11290 export COLLECT_NAMES
11291 fi
11292 ;;
11293esac
11294
cristy18304f92009-11-22 15:48:26 +000011295# Sed substitution that helps us do robust quoting. It backslashifies
11296# metacharacters that are still active within double-quoted strings.
11297sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11298
11299# Same as above, but do not quote variable references.
11300double_quote_subst='s/\(["`\\]\)/\\\1/g'
11301
11302# Sed substitution to delay expansion of an escaped shell variable in a
11303# double_quote_subst'ed string.
11304delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11305
11306# Sed substitution to delay expansion of an escaped single quote.
11307delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11308
11309# Sed substitution to avoid accidental globbing in evaled expressions
11310no_glob_subst='s/\*/\\\*/g'
11311
cristy3ed852e2009-09-05 21:47:34 +000011312# Global variables:
11313ofile=libtool
11314can_build_shared=yes
11315
11316# All known linkers require a `.a' archive for static linking (except MSVC,
11317# which needs '.lib').
11318libext=a
11319
11320with_gnu_ld="$lt_cv_prog_gnu_ld"
11321
11322old_CC="$CC"
11323old_CFLAGS="$CFLAGS"
11324
11325# Set sane defaults for various variables
11326test -z "$CC" && CC=cc
11327test -z "$LTCC" && LTCC=$CC
11328test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11329test -z "$LD" && LD=ld
11330test -z "$ac_objext" && ac_objext=o
11331
11332for cc_temp in $compiler""; do
11333 case $cc_temp in
11334 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11335 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11336 \-*) ;;
11337 *) break;;
11338 esac
11339done
cristy18304f92009-11-22 15:48:26 +000011340cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000011341
11342
11343# Only perform the check for file, if the check method requires it
11344test -z "$MAGIC_CMD" && MAGIC_CMD=file
11345case $deplibs_check_method in
11346file_magic*)
11347 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000011348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000011349$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011350if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011351 $as_echo_n "(cached) " >&6
11352else
11353 case $MAGIC_CMD in
11354[\\/*] | ?:[\\/]*)
11355 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11356 ;;
11357*)
11358 lt_save_MAGIC_CMD="$MAGIC_CMD"
11359 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11360 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11361 for ac_dir in $ac_dummy; do
11362 IFS="$lt_save_ifs"
11363 test -z "$ac_dir" && ac_dir=.
11364 if test -f $ac_dir/${ac_tool_prefix}file; then
11365 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11366 if test -n "$file_magic_test_file"; then
11367 case $deplibs_check_method in
11368 "file_magic "*)
11369 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11370 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11371 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11372 $EGREP "$file_magic_regex" > /dev/null; then
11373 :
11374 else
11375 cat <<_LT_EOF 1>&2
11376
11377*** Warning: the command libtool uses to detect shared libraries,
11378*** $file_magic_cmd, produces output that libtool cannot recognize.
11379*** The result is that libtool may fail to recognize shared libraries
11380*** as such. This will affect the creation of libtool libraries that
11381*** depend on shared libraries, but programs linked with such libtool
11382*** libraries will work regardless of this problem. Nevertheless, you
11383*** may want to report the problem to your system manager and/or to
11384*** bug-libtool@gnu.org
11385
11386_LT_EOF
11387 fi ;;
11388 esac
11389 fi
11390 break
11391 fi
11392 done
11393 IFS="$lt_save_ifs"
11394 MAGIC_CMD="$lt_save_MAGIC_CMD"
11395 ;;
11396esac
11397fi
11398
11399MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11400if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000011401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000011402$as_echo "$MAGIC_CMD" >&6; }
11403else
cristy8b350f62009-11-15 23:12:43 +000011404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011405$as_echo "no" >&6; }
11406fi
11407
11408
11409
11410
11411
11412if test -z "$lt_cv_path_MAGIC_CMD"; then
11413 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000011414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000011415$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011416if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011417 $as_echo_n "(cached) " >&6
11418else
11419 case $MAGIC_CMD in
11420[\\/*] | ?:[\\/]*)
11421 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11422 ;;
11423*)
11424 lt_save_MAGIC_CMD="$MAGIC_CMD"
11425 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11426 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11427 for ac_dir in $ac_dummy; do
11428 IFS="$lt_save_ifs"
11429 test -z "$ac_dir" && ac_dir=.
11430 if test -f $ac_dir/file; then
11431 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11432 if test -n "$file_magic_test_file"; then
11433 case $deplibs_check_method in
11434 "file_magic "*)
11435 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11436 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11437 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11438 $EGREP "$file_magic_regex" > /dev/null; then
11439 :
11440 else
11441 cat <<_LT_EOF 1>&2
11442
11443*** Warning: the command libtool uses to detect shared libraries,
11444*** $file_magic_cmd, produces output that libtool cannot recognize.
11445*** The result is that libtool may fail to recognize shared libraries
11446*** as such. This will affect the creation of libtool libraries that
11447*** depend on shared libraries, but programs linked with such libtool
11448*** libraries will work regardless of this problem. Nevertheless, you
11449*** may want to report the problem to your system manager and/or to
11450*** bug-libtool@gnu.org
11451
11452_LT_EOF
11453 fi ;;
11454 esac
11455 fi
11456 break
11457 fi
11458 done
11459 IFS="$lt_save_ifs"
11460 MAGIC_CMD="$lt_save_MAGIC_CMD"
11461 ;;
11462esac
11463fi
11464
11465MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11466if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000011467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000011468$as_echo "$MAGIC_CMD" >&6; }
11469else
cristy8b350f62009-11-15 23:12:43 +000011470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011471$as_echo "no" >&6; }
11472fi
11473
11474
11475 else
11476 MAGIC_CMD=:
11477 fi
11478fi
11479
11480 fi
11481 ;;
11482esac
11483
11484# Use C for the default configuration in the libtool script
11485
11486lt_save_CC="$CC"
11487ac_ext=c
11488ac_cpp='$CPP $CPPFLAGS'
11489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11491ac_compiler_gnu=$ac_cv_c_compiler_gnu
11492
11493
11494# Source file extension for C test sources.
11495ac_ext=c
11496
11497# Object file extension for compiled C test sources.
11498objext=o
11499objext=$objext
11500
11501# Code to be used in simple compile tests
11502lt_simple_compile_test_code="int some_variable = 0;"
11503
11504# Code to be used in simple link tests
11505lt_simple_link_test_code='int main(){return(0);}'
11506
11507
11508
11509
11510
11511
11512
11513# If no C compiler was specified, use CC.
11514LTCC=${LTCC-"$CC"}
11515
11516# If no C compiler flags were specified, use CFLAGS.
11517LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11518
11519# Allow CC to be a program name with arguments.
11520compiler=$CC
11521
11522# Save the default compiler, since it gets overwritten when the other
11523# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11524compiler_DEFAULT=$CC
11525
11526# save warnings/boilerplate of simple test code
11527ac_outfile=conftest.$ac_objext
11528echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11529eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11530_lt_compiler_boilerplate=`cat conftest.err`
11531$RM conftest*
11532
11533ac_outfile=conftest.$ac_objext
11534echo "$lt_simple_link_test_code" >conftest.$ac_ext
11535eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11536_lt_linker_boilerplate=`cat conftest.err`
11537$RM -r conftest*
11538
11539
11540## CAVEAT EMPTOR:
11541## There is no encapsulation within the following macros, do not change
11542## the running order or otherwise move them around unless you know exactly
11543## what you are doing...
11544if test -n "$compiler"; then
11545
11546lt_prog_compiler_no_builtin_flag=
11547
11548if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000011549 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
cristy3ed852e2009-09-05 21:47:34 +000011550
cristy8b350f62009-11-15 23:12:43 +000011551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000011552$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011553if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011554 $as_echo_n "(cached) " >&6
11555else
11556 lt_cv_prog_compiler_rtti_exceptions=no
11557 ac_outfile=conftest.$ac_objext
11558 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11559 lt_compiler_flag="-fno-rtti -fno-exceptions"
11560 # Insert the option either (1) after the last *FLAGS variable, or
11561 # (2) before a word containing "conftest.", or (3) at the end.
11562 # Note that $ac_compile itself does not contain backslashes and begins
11563 # with a dollar sign (not a hyphen), so the echo should work correctly.
11564 # The option is referenced via a variable to avoid confusing sed.
11565 lt_compile=`echo "$ac_compile" | $SED \
11566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11568 -e 's:$: $lt_compiler_flag:'`
cristy679ed8e2009-12-05 02:37:41 +000011569 (eval echo "\"\$as_me:11569: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011570 (eval "$lt_compile" 2>conftest.err)
11571 ac_status=$?
11572 cat conftest.err >&5
cristy679ed8e2009-12-05 02:37:41 +000011573 echo "$as_me:11573: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011574 if (exit $ac_status) && test -s "$ac_outfile"; then
11575 # The compiler can only warn and ignore the option if not recognized
11576 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000011577 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011578 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11579 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11580 lt_cv_prog_compiler_rtti_exceptions=yes
11581 fi
11582 fi
11583 $RM conftest*
11584
11585fi
cristy8b350f62009-11-15 23:12:43 +000011586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000011587$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11588
11589if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11590 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11591else
11592 :
11593fi
11594
11595fi
11596
11597
11598
11599
11600
11601
11602 lt_prog_compiler_wl=
11603lt_prog_compiler_pic=
11604lt_prog_compiler_static=
11605
cristy8b350f62009-11-15 23:12:43 +000011606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000011607$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11608
11609 if test "$GCC" = yes; then
11610 lt_prog_compiler_wl='-Wl,'
11611 lt_prog_compiler_static='-static'
11612
11613 case $host_os in
11614 aix*)
11615 # All AIX code is PIC.
11616 if test "$host_cpu" = ia64; then
11617 # AIX 5 now supports IA64 processor
11618 lt_prog_compiler_static='-Bstatic'
11619 fi
11620 ;;
11621
11622 amigaos*)
11623 case $host_cpu in
11624 powerpc)
11625 # see comment about AmigaOS4 .so support
11626 lt_prog_compiler_pic='-fPIC'
11627 ;;
11628 m68k)
11629 # FIXME: we need at least 68020 code to build shared libraries, but
11630 # adding the `-m68020' flag to GCC prevents building anything better,
11631 # like `-m68040'.
11632 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11633 ;;
11634 esac
11635 ;;
11636
11637 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11638 # PIC is the default for these OSes.
11639 ;;
11640
11641 mingw* | cygwin* | pw32* | os2* | cegcc*)
11642 # This hack is so that the source file can tell whether it is being
11643 # built for inclusion in a dll (and should export symbols for example).
11644 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11645 # (--disable-auto-import) libraries
11646 lt_prog_compiler_pic='-DDLL_EXPORT'
11647 ;;
11648
11649 darwin* | rhapsody*)
11650 # PIC is the default on this platform
11651 # Common symbols not allowed in MH_DYLIB files
11652 lt_prog_compiler_pic='-fno-common'
11653 ;;
11654
11655 hpux*)
11656 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11657 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11658 # sets the default TLS model and affects inlining.
11659 case $host_cpu in
11660 hppa*64*)
11661 # +Z the default
11662 ;;
11663 *)
11664 lt_prog_compiler_pic='-fPIC'
11665 ;;
11666 esac
11667 ;;
11668
11669 interix[3-9]*)
11670 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11671 # Instead, we relocate shared libraries at runtime.
11672 ;;
11673
11674 msdosdjgpp*)
11675 # Just because we use GCC doesn't mean we suddenly get shared libraries
11676 # on systems that don't support them.
11677 lt_prog_compiler_can_build_shared=no
11678 enable_shared=no
11679 ;;
11680
11681 *nto* | *qnx*)
11682 # QNX uses GNU C++, but need to define -shared option too, otherwise
11683 # it will coredump.
11684 lt_prog_compiler_pic='-fPIC -shared'
11685 ;;
11686
11687 sysv4*MP*)
11688 if test -d /usr/nec; then
11689 lt_prog_compiler_pic=-Kconform_pic
11690 fi
11691 ;;
11692
11693 *)
11694 lt_prog_compiler_pic='-fPIC'
11695 ;;
11696 esac
11697 else
11698 # PORTME Check for flag to pass linker flags through the system compiler.
11699 case $host_os in
11700 aix*)
11701 lt_prog_compiler_wl='-Wl,'
11702 if test "$host_cpu" = ia64; then
11703 # AIX 5 now supports IA64 processor
11704 lt_prog_compiler_static='-Bstatic'
11705 else
11706 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11707 fi
11708 ;;
11709
11710 mingw* | cygwin* | pw32* | os2* | cegcc*)
11711 # This hack is so that the source file can tell whether it is being
11712 # built for inclusion in a dll (and should export symbols for example).
11713 lt_prog_compiler_pic='-DDLL_EXPORT'
11714 ;;
11715
11716 hpux9* | hpux10* | hpux11*)
11717 lt_prog_compiler_wl='-Wl,'
11718 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11719 # not for PA HP-UX.
11720 case $host_cpu in
11721 hppa*64*|ia64*)
11722 # +Z the default
11723 ;;
11724 *)
11725 lt_prog_compiler_pic='+Z'
11726 ;;
11727 esac
11728 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11729 lt_prog_compiler_static='${wl}-a ${wl}archive'
11730 ;;
11731
11732 irix5* | irix6* | nonstopux*)
11733 lt_prog_compiler_wl='-Wl,'
11734 # PIC (with -KPIC) is the default.
11735 lt_prog_compiler_static='-non_shared'
11736 ;;
11737
cristy18304f92009-11-22 15:48:26 +000011738 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000011739 case $cc_basename in
11740 # old Intel for x86_64 which still supported -KPIC.
11741 ecc*)
11742 lt_prog_compiler_wl='-Wl,'
11743 lt_prog_compiler_pic='-KPIC'
11744 lt_prog_compiler_static='-static'
11745 ;;
11746 # icc used to be incompatible with GCC.
11747 # ICC 10 doesn't accept -KPIC any more.
11748 icc* | ifort*)
11749 lt_prog_compiler_wl='-Wl,'
11750 lt_prog_compiler_pic='-fPIC'
11751 lt_prog_compiler_static='-static'
11752 ;;
11753 # Lahey Fortran 8.1.
11754 lf95*)
11755 lt_prog_compiler_wl='-Wl,'
11756 lt_prog_compiler_pic='--shared'
11757 lt_prog_compiler_static='--static'
11758 ;;
cristy18304f92009-11-22 15:48:26 +000011759 pgcc* | pgf77* | pgf90* | pgf95*)
cristy3ed852e2009-09-05 21:47:34 +000011760 # Portland Group compilers (*not* the Pentium gcc compiler,
11761 # which looks to be a dead project)
11762 lt_prog_compiler_wl='-Wl,'
11763 lt_prog_compiler_pic='-fpic'
11764 lt_prog_compiler_static='-Bstatic'
11765 ;;
11766 ccc*)
11767 lt_prog_compiler_wl='-Wl,'
11768 # All Alpha code is PIC.
11769 lt_prog_compiler_static='-non_shared'
11770 ;;
cristy18304f92009-11-22 15:48:26 +000011771 xl*)
11772 # IBM XL C 8.0/Fortran 10.1 on PPC
cristy3ed852e2009-09-05 21:47:34 +000011773 lt_prog_compiler_wl='-Wl,'
11774 lt_prog_compiler_pic='-qpic'
11775 lt_prog_compiler_static='-qstaticlink'
11776 ;;
11777 *)
11778 case `$CC -V 2>&1 | sed 5q` in
11779 *Sun\ C*)
11780 # Sun C 5.9
11781 lt_prog_compiler_pic='-KPIC'
11782 lt_prog_compiler_static='-Bstatic'
11783 lt_prog_compiler_wl='-Wl,'
11784 ;;
cristy18304f92009-11-22 15:48:26 +000011785 *Sun\ F*)
11786 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11787 lt_prog_compiler_pic='-KPIC'
11788 lt_prog_compiler_static='-Bstatic'
11789 lt_prog_compiler_wl=''
11790 ;;
cristy3ed852e2009-09-05 21:47:34 +000011791 esac
11792 ;;
11793 esac
11794 ;;
11795
11796 newsos6)
11797 lt_prog_compiler_pic='-KPIC'
11798 lt_prog_compiler_static='-Bstatic'
11799 ;;
11800
11801 *nto* | *qnx*)
11802 # QNX uses GNU C++, but need to define -shared option too, otherwise
11803 # it will coredump.
11804 lt_prog_compiler_pic='-fPIC -shared'
11805 ;;
11806
11807 osf3* | osf4* | osf5*)
11808 lt_prog_compiler_wl='-Wl,'
11809 # All OSF/1 code is PIC.
11810 lt_prog_compiler_static='-non_shared'
11811 ;;
11812
11813 rdos*)
11814 lt_prog_compiler_static='-non_shared'
11815 ;;
11816
11817 solaris*)
11818 lt_prog_compiler_pic='-KPIC'
11819 lt_prog_compiler_static='-Bstatic'
11820 case $cc_basename in
11821 f77* | f90* | f95*)
11822 lt_prog_compiler_wl='-Qoption ld ';;
11823 *)
11824 lt_prog_compiler_wl='-Wl,';;
11825 esac
11826 ;;
11827
11828 sunos4*)
11829 lt_prog_compiler_wl='-Qoption ld '
11830 lt_prog_compiler_pic='-PIC'
11831 lt_prog_compiler_static='-Bstatic'
11832 ;;
11833
11834 sysv4 | sysv4.2uw2* | sysv4.3*)
11835 lt_prog_compiler_wl='-Wl,'
11836 lt_prog_compiler_pic='-KPIC'
11837 lt_prog_compiler_static='-Bstatic'
11838 ;;
11839
11840 sysv4*MP*)
11841 if test -d /usr/nec ;then
11842 lt_prog_compiler_pic='-Kconform_pic'
11843 lt_prog_compiler_static='-Bstatic'
11844 fi
11845 ;;
11846
11847 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11848 lt_prog_compiler_wl='-Wl,'
11849 lt_prog_compiler_pic='-KPIC'
11850 lt_prog_compiler_static='-Bstatic'
11851 ;;
11852
11853 unicos*)
11854 lt_prog_compiler_wl='-Wl,'
11855 lt_prog_compiler_can_build_shared=no
11856 ;;
11857
11858 uts4*)
11859 lt_prog_compiler_pic='-pic'
11860 lt_prog_compiler_static='-Bstatic'
11861 ;;
11862
11863 *)
11864 lt_prog_compiler_can_build_shared=no
11865 ;;
11866 esac
11867 fi
11868
11869case $host_os in
11870 # For platforms which do not support PIC, -DPIC is meaningless:
11871 *djgpp*)
11872 lt_prog_compiler_pic=
11873 ;;
11874 *)
11875 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11876 ;;
11877esac
cristy8b350f62009-11-15 23:12:43 +000011878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000011879$as_echo "$lt_prog_compiler_pic" >&6; }
11880
11881
11882
11883
11884
11885
11886#
11887# Check to make sure the PIC flag actually works.
11888#
11889if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000011890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011891$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011892if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011893 $as_echo_n "(cached) " >&6
11894else
11895 lt_cv_prog_compiler_pic_works=no
11896 ac_outfile=conftest.$ac_objext
11897 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11898 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11899 # Insert the option either (1) after the last *FLAGS variable, or
11900 # (2) before a word containing "conftest.", or (3) at the end.
11901 # Note that $ac_compile itself does not contain backslashes and begins
11902 # with a dollar sign (not a hyphen), so the echo should work correctly.
11903 # The option is referenced via a variable to avoid confusing sed.
11904 lt_compile=`echo "$ac_compile" | $SED \
11905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11907 -e 's:$: $lt_compiler_flag:'`
cristy679ed8e2009-12-05 02:37:41 +000011908 (eval echo "\"\$as_me:11908: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011909 (eval "$lt_compile" 2>conftest.err)
11910 ac_status=$?
11911 cat conftest.err >&5
cristy679ed8e2009-12-05 02:37:41 +000011912 echo "$as_me:11912: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011913 if (exit $ac_status) && test -s "$ac_outfile"; then
11914 # The compiler can only warn and ignore the option if not recognized
11915 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000011916 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011917 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11918 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11919 lt_cv_prog_compiler_pic_works=yes
11920 fi
11921 fi
11922 $RM conftest*
11923
11924fi
cristy8b350f62009-11-15 23:12:43 +000011925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011926$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11927
11928if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11929 case $lt_prog_compiler_pic in
11930 "" | " "*) ;;
11931 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11932 esac
11933else
11934 lt_prog_compiler_pic=
11935 lt_prog_compiler_can_build_shared=no
11936fi
11937
11938fi
11939
11940
11941
11942
11943
11944
11945#
11946# Check to make sure the static flag actually works.
11947#
11948wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000011949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011950$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011951if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011952 $as_echo_n "(cached) " >&6
11953else
11954 lt_cv_prog_compiler_static_works=no
11955 save_LDFLAGS="$LDFLAGS"
11956 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11957 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11958 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11959 # The linker can only warn and ignore the option if not recognized
11960 # So say no if there are warnings
11961 if test -s conftest.err; then
11962 # Append any errors to the config.log.
11963 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000011964 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011965 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11966 if diff conftest.exp conftest.er2 >/dev/null; then
11967 lt_cv_prog_compiler_static_works=yes
11968 fi
11969 else
11970 lt_cv_prog_compiler_static_works=yes
11971 fi
11972 fi
11973 $RM -r conftest*
11974 LDFLAGS="$save_LDFLAGS"
11975
11976fi
cristy8b350f62009-11-15 23:12:43 +000011977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011978$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11979
11980if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11981 :
11982else
11983 lt_prog_compiler_static=
11984fi
11985
11986
11987
11988
11989
11990
11991
cristy8b350f62009-11-15 23:12:43 +000011992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011993$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011994if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011995 $as_echo_n "(cached) " >&6
11996else
11997 lt_cv_prog_compiler_c_o=no
11998 $RM -r conftest 2>/dev/null
11999 mkdir conftest
12000 cd conftest
12001 mkdir out
12002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12003
12004 lt_compiler_flag="-o out/conftest2.$ac_objext"
12005 # Insert the option either (1) after the last *FLAGS variable, or
12006 # (2) before a word containing "conftest.", or (3) at the end.
12007 # Note that $ac_compile itself does not contain backslashes and begins
12008 # with a dollar sign (not a hyphen), so the echo should work correctly.
12009 lt_compile=`echo "$ac_compile" | $SED \
12010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12012 -e 's:$: $lt_compiler_flag:'`
cristy679ed8e2009-12-05 02:37:41 +000012013 (eval echo "\"\$as_me:12013: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012014 (eval "$lt_compile" 2>out/conftest.err)
12015 ac_status=$?
12016 cat out/conftest.err >&5
cristy679ed8e2009-12-05 02:37:41 +000012017 echo "$as_me:12017: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012018 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12019 then
12020 # The compiler can only warn and ignore the option if not recognized
12021 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000012022 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012023 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12024 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12025 lt_cv_prog_compiler_c_o=yes
12026 fi
12027 fi
12028 chmod u+w . 2>&5
12029 $RM conftest*
12030 # SGI C++ compiler will create directory out/ii_files/ for
12031 # template instantiation
12032 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12033 $RM out/* && rmdir out
12034 cd ..
12035 $RM -r conftest
12036 $RM conftest*
12037
12038fi
cristy8b350f62009-11-15 23:12:43 +000012039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012040$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12041
12042
12043
12044
12045
12046
cristy8b350f62009-11-15 23:12:43 +000012047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012048$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012049if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012050 $as_echo_n "(cached) " >&6
12051else
12052 lt_cv_prog_compiler_c_o=no
12053 $RM -r conftest 2>/dev/null
12054 mkdir conftest
12055 cd conftest
12056 mkdir out
12057 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12058
12059 lt_compiler_flag="-o out/conftest2.$ac_objext"
12060 # Insert the option either (1) after the last *FLAGS variable, or
12061 # (2) before a word containing "conftest.", or (3) at the end.
12062 # Note that $ac_compile itself does not contain backslashes and begins
12063 # with a dollar sign (not a hyphen), so the echo should work correctly.
12064 lt_compile=`echo "$ac_compile" | $SED \
12065 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12067 -e 's:$: $lt_compiler_flag:'`
cristy679ed8e2009-12-05 02:37:41 +000012068 (eval echo "\"\$as_me:12068: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012069 (eval "$lt_compile" 2>out/conftest.err)
12070 ac_status=$?
12071 cat out/conftest.err >&5
cristy679ed8e2009-12-05 02:37:41 +000012072 echo "$as_me:12072: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012073 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12074 then
12075 # The compiler can only warn and ignore the option if not recognized
12076 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000012077 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012078 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12079 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12080 lt_cv_prog_compiler_c_o=yes
12081 fi
12082 fi
12083 chmod u+w . 2>&5
12084 $RM conftest*
12085 # SGI C++ compiler will create directory out/ii_files/ for
12086 # template instantiation
12087 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12088 $RM out/* && rmdir out
12089 cd ..
12090 $RM -r conftest
12091 $RM conftest*
12092
12093fi
cristy8b350f62009-11-15 23:12:43 +000012094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012095$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12096
12097
12098
12099
12100hard_links="nottested"
12101if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12102 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000012103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012104$as_echo_n "checking if we can lock with hard links... " >&6; }
12105 hard_links=yes
12106 $RM conftest*
12107 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12108 touch conftest.a
12109 ln conftest.a conftest.b 2>&5 || hard_links=no
12110 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000012111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012112$as_echo "$hard_links" >&6; }
12113 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000012114 { $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 +000012115$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12116 need_locks=warn
12117 fi
12118else
12119 need_locks=no
12120fi
12121
12122
12123
12124
12125
12126
cristy8b350f62009-11-15 23:12:43 +000012127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000012128$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12129
12130 runpath_var=
12131 allow_undefined_flag=
12132 always_export_symbols=no
12133 archive_cmds=
12134 archive_expsym_cmds=
12135 compiler_needs_object=no
12136 enable_shared_with_static_runtimes=no
12137 export_dynamic_flag_spec=
12138 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12139 hardcode_automatic=no
12140 hardcode_direct=no
12141 hardcode_direct_absolute=no
12142 hardcode_libdir_flag_spec=
12143 hardcode_libdir_flag_spec_ld=
12144 hardcode_libdir_separator=
12145 hardcode_minus_L=no
12146 hardcode_shlibpath_var=unsupported
12147 inherit_rpath=no
12148 link_all_deplibs=unknown
12149 module_cmds=
12150 module_expsym_cmds=
12151 old_archive_from_new_cmds=
12152 old_archive_from_expsyms_cmds=
12153 thread_safe_flag_spec=
12154 whole_archive_flag_spec=
12155 # include_expsyms should be a list of space-separated symbols to be *always*
12156 # included in the symbol list
12157 include_expsyms=
12158 # exclude_expsyms can be an extended regexp of symbols to exclude
12159 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12160 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12161 # as well as any symbol that contains `d'.
12162 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12163 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12164 # platforms (ab)use it in PIC code, but their linkers get confused if
12165 # the symbol is explicitly referenced. Since portable code cannot
12166 # rely on this symbol name, it's probably fine to never include it in
12167 # preloaded symbol tables.
12168 # Exclude shared library initialization/finalization symbols.
12169 extract_expsyms_cmds=
12170
12171 case $host_os in
12172 cygwin* | mingw* | pw32* | cegcc*)
12173 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12174 # When not using gcc, we currently assume that we are using
12175 # Microsoft Visual C++.
12176 if test "$GCC" != yes; then
12177 with_gnu_ld=no
12178 fi
12179 ;;
12180 interix*)
12181 # we just hope/assume this is gcc and not c89 (= MSVC++)
12182 with_gnu_ld=yes
12183 ;;
12184 openbsd*)
12185 with_gnu_ld=no
12186 ;;
12187 esac
12188
12189 ld_shlibs=yes
12190 if test "$with_gnu_ld" = yes; then
12191 # If archive_cmds runs LD, not CC, wlarc should be empty
12192 wlarc='${wl}'
12193
12194 # Set some defaults for GNU ld with shared library support. These
12195 # are reset later if shared libraries are not supported. Putting them
12196 # here allows them to be overridden if necessary.
12197 runpath_var=LD_RUN_PATH
12198 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12199 export_dynamic_flag_spec='${wl}--export-dynamic'
12200 # ancient GNU ld didn't support --whole-archive et. al.
12201 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12202 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12203 else
12204 whole_archive_flag_spec=
12205 fi
12206 supports_anon_versioning=no
12207 case `$LD -v 2>&1` in
12208 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12209 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12210 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12211 *\ 2.11.*) ;; # other 2.11 versions
12212 *) supports_anon_versioning=yes ;;
12213 esac
12214
12215 # See if GNU ld supports shared libraries.
12216 case $host_os in
12217 aix[3-9]*)
12218 # On AIX/PPC, the GNU linker is very broken
12219 if test "$host_cpu" != ia64; then
12220 ld_shlibs=no
12221 cat <<_LT_EOF 1>&2
12222
cristy18304f92009-11-22 15:48:26 +000012223*** Warning: the GNU linker, at least up to release 2.9.1, is reported
cristy3ed852e2009-09-05 21:47:34 +000012224*** to be unable to reliably create shared libraries on AIX.
12225*** Therefore, libtool is disabling shared libraries support. If you
cristy18304f92009-11-22 15:48:26 +000012226*** really care for shared libraries, you may want to modify your PATH
12227*** so that a non-GNU linker is found, and then restart.
cristy3ed852e2009-09-05 21:47:34 +000012228
12229_LT_EOF
12230 fi
12231 ;;
12232
12233 amigaos*)
12234 case $host_cpu in
12235 powerpc)
12236 # see comment about AmigaOS4 .so support
12237 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12238 archive_expsym_cmds=''
12239 ;;
12240 m68k)
12241 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)'
12242 hardcode_libdir_flag_spec='-L$libdir'
12243 hardcode_minus_L=yes
12244 ;;
12245 esac
12246 ;;
12247
12248 beos*)
12249 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12250 allow_undefined_flag=unsupported
12251 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12252 # support --undefined. This deserves some investigation. FIXME
12253 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12254 else
12255 ld_shlibs=no
12256 fi
12257 ;;
12258
12259 cygwin* | mingw* | pw32* | cegcc*)
12260 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12261 # as there is no search path for DLLs.
12262 hardcode_libdir_flag_spec='-L$libdir'
12263 allow_undefined_flag=unsupported
12264 always_export_symbols=no
12265 enable_shared_with_static_runtimes=yes
12266 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12267
12268 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12269 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12270 # If the export-symbols file already is a .def file (1st line
12271 # is EXPORTS), use it as is; otherwise, prepend...
12272 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12273 cp $export_symbols $output_objdir/$soname.def;
12274 else
12275 echo EXPORTS > $output_objdir/$soname.def;
12276 cat $export_symbols >> $output_objdir/$soname.def;
12277 fi~
12278 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12279 else
12280 ld_shlibs=no
12281 fi
12282 ;;
12283
12284 interix[3-9]*)
12285 hardcode_direct=no
12286 hardcode_shlibpath_var=no
12287 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12288 export_dynamic_flag_spec='${wl}-E'
12289 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12290 # Instead, shared libraries are loaded at an image base (0x10000000 by
12291 # default) and relocated if they conflict, which is a slow very memory
12292 # consuming and fragmenting process. To avoid this, we pick a random,
12293 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12294 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12295 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12296 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'
12297 ;;
12298
cristy18304f92009-11-22 15:48:26 +000012299 gnu* | linux* | tpf* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000012300 tmp_diet=no
12301 if test "$host_os" = linux-dietlibc; then
12302 case $cc_basename in
12303 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12304 esac
12305 fi
12306 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12307 && test "$tmp_diet" = no
12308 then
12309 tmp_addflag=
12310 tmp_sharedflag='-shared'
12311 case $cc_basename,$host_cpu in
12312 pgcc*) # Portland Group C compiler
cristy18304f92009-11-22 15:48:26 +000012313 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 +000012314 tmp_addflag=' $pic_flag'
12315 ;;
cristy18304f92009-11-22 15:48:26 +000012316 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
12317 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 +000012318 tmp_addflag=' $pic_flag -Mnomain' ;;
12319 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12320 tmp_addflag=' -i_dynamic' ;;
12321 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12322 tmp_addflag=' -i_dynamic -nofor_main' ;;
12323 ifc* | ifort*) # Intel Fortran compiler
12324 tmp_addflag=' -nofor_main' ;;
12325 lf95*) # Lahey Fortran 8.1
12326 whole_archive_flag_spec=
12327 tmp_sharedflag='--shared' ;;
cristy18304f92009-11-22 15:48:26 +000012328 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000012329 tmp_sharedflag='-qmkshrobj'
12330 tmp_addflag= ;;
12331 esac
12332 case `$CC -V 2>&1 | sed 5q` in
12333 *Sun\ C*) # Sun C 5.9
cristy18304f92009-11-22 15:48:26 +000012334 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 +000012335 compiler_needs_object=yes
12336 tmp_sharedflag='-G' ;;
12337 *Sun\ F*) # Sun Fortran 8.3
12338 tmp_sharedflag='-G' ;;
12339 esac
12340 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12341
12342 if test "x$supports_anon_versioning" = xyes; then
12343 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12344 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12345 echo "local: *; };" >> $output_objdir/$libname.ver~
12346 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12347 fi
12348
12349 case $cc_basename in
cristy18304f92009-11-22 15:48:26 +000012350 xlf*)
cristy3ed852e2009-09-05 21:47:34 +000012351 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12352 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12353 hardcode_libdir_flag_spec=
12354 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12355 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12356 if test "x$supports_anon_versioning" = xyes; then
12357 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12358 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12359 echo "local: *; };" >> $output_objdir/$libname.ver~
12360 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12361 fi
12362 ;;
12363 esac
12364 else
12365 ld_shlibs=no
12366 fi
12367 ;;
12368
12369 netbsd*)
12370 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12371 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12372 wlarc=
12373 else
12374 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12375 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12376 fi
12377 ;;
12378
12379 solaris*)
12380 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12381 ld_shlibs=no
12382 cat <<_LT_EOF 1>&2
12383
12384*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12385*** create shared libraries on Solaris systems. Therefore, libtool
12386*** is disabling shared libraries support. We urge you to upgrade GNU
12387*** binutils to release 2.9.1 or newer. Another option is to modify
12388*** your PATH or compiler configuration so that the native linker is
12389*** used, and then restart.
12390
12391_LT_EOF
12392 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12393 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12394 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12395 else
12396 ld_shlibs=no
12397 fi
12398 ;;
12399
12400 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12401 case `$LD -v 2>&1` in
12402 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12403 ld_shlibs=no
12404 cat <<_LT_EOF 1>&2
12405
12406*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12407*** reliably create shared libraries on SCO systems. Therefore, libtool
12408*** is disabling shared libraries support. We urge you to upgrade GNU
12409*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12410*** your PATH or compiler configuration so that the native linker is
12411*** used, and then restart.
12412
12413_LT_EOF
12414 ;;
12415 *)
12416 # For security reasons, it is highly recommended that you always
12417 # use absolute paths for naming shared libraries, and exclude the
12418 # DT_RUNPATH tag from executables and libraries. But doing so
12419 # requires that you compile everything twice, which is a pain.
12420 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12421 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12422 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12423 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12424 else
12425 ld_shlibs=no
12426 fi
12427 ;;
12428 esac
12429 ;;
12430
12431 sunos4*)
12432 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12433 wlarc=
12434 hardcode_direct=yes
12435 hardcode_shlibpath_var=no
12436 ;;
12437
12438 *)
12439 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12440 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12441 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12442 else
12443 ld_shlibs=no
12444 fi
12445 ;;
12446 esac
12447
12448 if test "$ld_shlibs" = no; then
12449 runpath_var=
12450 hardcode_libdir_flag_spec=
12451 export_dynamic_flag_spec=
12452 whole_archive_flag_spec=
12453 fi
12454 else
12455 # PORTME fill in a description of your system's linker (not GNU ld)
12456 case $host_os in
12457 aix3*)
12458 allow_undefined_flag=unsupported
12459 always_export_symbols=yes
12460 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'
12461 # Note: this linker hardcodes the directories in LIBPATH if there
12462 # are no directories specified by -L.
12463 hardcode_minus_L=yes
12464 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12465 # Neither direct hardcoding nor static linking is supported with a
12466 # broken collect2.
12467 hardcode_direct=unsupported
12468 fi
12469 ;;
12470
12471 aix[4-9]*)
12472 if test "$host_cpu" = ia64; then
12473 # On IA64, the linker does run time linking by default, so we don't
12474 # have to do anything special.
12475 aix_use_runtimelinking=no
12476 exp_sym_flag='-Bexport'
12477 no_entry_flag=""
12478 else
12479 # If we're using GNU nm, then we don't want the "-C" option.
12480 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12481 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000012482 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 +000012483 else
12484 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'
12485 fi
12486 aix_use_runtimelinking=no
12487
12488 # Test if we are trying to use run time linking or normal
12489 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12490 # need to do runtime linking.
12491 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12492 for ld_flag in $LDFLAGS; do
12493 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12494 aix_use_runtimelinking=yes
12495 break
12496 fi
12497 done
12498 ;;
12499 esac
12500
12501 exp_sym_flag='-bexport'
12502 no_entry_flag='-bnoentry'
12503 fi
12504
12505 # When large executables or shared objects are built, AIX ld can
12506 # have problems creating the table of contents. If linking a library
12507 # or program results in "error TOC overflow" add -mminimal-toc to
12508 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12509 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12510
12511 archive_cmds=''
12512 hardcode_direct=yes
12513 hardcode_direct_absolute=yes
12514 hardcode_libdir_separator=':'
12515 link_all_deplibs=yes
12516 file_list_spec='${wl}-f,'
12517
12518 if test "$GCC" = yes; then
12519 case $host_os in aix4.[012]|aix4.[012].*)
12520 # We only want to do this on AIX 4.2 and lower, the check
12521 # below for broken collect2 doesn't work under 4.3+
12522 collect2name=`${CC} -print-prog-name=collect2`
12523 if test -f "$collect2name" &&
12524 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12525 then
12526 # We have reworked collect2
12527 :
12528 else
12529 # We have old collect2
12530 hardcode_direct=unsupported
12531 # It fails to find uninstalled libraries when the uninstalled
12532 # path is not listed in the libpath. Setting hardcode_minus_L
12533 # to unsupported forces relinking
12534 hardcode_minus_L=yes
12535 hardcode_libdir_flag_spec='-L$libdir'
12536 hardcode_libdir_separator=
12537 fi
12538 ;;
12539 esac
12540 shared_flag='-shared'
12541 if test "$aix_use_runtimelinking" = yes; then
12542 shared_flag="$shared_flag "'${wl}-G'
12543 fi
12544 else
12545 # not using gcc
12546 if test "$host_cpu" = ia64; then
12547 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12548 # chokes on -Wl,-G. The following line is correct:
12549 shared_flag='-G'
12550 else
12551 if test "$aix_use_runtimelinking" = yes; then
12552 shared_flag='${wl}-G'
12553 else
12554 shared_flag='${wl}-bM:SRE'
12555 fi
12556 fi
12557 fi
12558
12559 export_dynamic_flag_spec='${wl}-bexpall'
12560 # It seems that -bexpall does not export symbols beginning with
12561 # underscore (_), so it is better to generate a list of symbols to export.
12562 always_export_symbols=yes
12563 if test "$aix_use_runtimelinking" = yes; then
12564 # Warning - without using the other runtime loading flags (-brtl),
12565 # -berok will link without error, but may produce a broken library.
12566 allow_undefined_flag='-berok'
12567 # Determine the default libpath from the value encoded in an
12568 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000012569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012570/* end confdefs.h. */
12571
12572int
12573main ()
12574{
12575
12576 ;
12577 return 0;
12578}
12579_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012580if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012581
12582lt_aix_libpath_sed='
12583 /Import File Strings/,/^$/ {
12584 /^0/ {
12585 s/^0 *\(.*\)$/\1/
12586 p
12587 }
12588 }'
12589aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12590# Check for a 64-bit object if we didn't find anything.
12591if test -z "$aix_libpath"; then
12592 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12593fi
cristy3ed852e2009-09-05 21:47:34 +000012594fi
cristy8b350f62009-11-15 23:12:43 +000012595rm -f core conftest.err conftest.$ac_objext \
12596 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012597if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12598
12599 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy18304f92009-11-22 15:48:26 +000012600 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 +000012601 else
12602 if test "$host_cpu" = ia64; then
12603 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12604 allow_undefined_flag="-z nodefs"
12605 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"
12606 else
12607 # Determine the default libpath from the value encoded in an
12608 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000012609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012610/* end confdefs.h. */
12611
12612int
12613main ()
12614{
12615
12616 ;
12617 return 0;
12618}
12619_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012620if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012621
12622lt_aix_libpath_sed='
12623 /Import File Strings/,/^$/ {
12624 /^0/ {
12625 s/^0 *\(.*\)$/\1/
12626 p
12627 }
12628 }'
12629aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12630# Check for a 64-bit object if we didn't find anything.
12631if test -z "$aix_libpath"; then
12632 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12633fi
cristy3ed852e2009-09-05 21:47:34 +000012634fi
cristy8b350f62009-11-15 23:12:43 +000012635rm -f core conftest.err conftest.$ac_objext \
12636 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012637if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12638
12639 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12640 # Warning - without using the other run time loading flags,
12641 # -berok will link without error, but may produce a broken library.
12642 no_undefined_flag=' ${wl}-bernotok'
12643 allow_undefined_flag=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000012644 # Exported symbols can be pulled into shared objects from archives
12645 whole_archive_flag_spec='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000012646 archive_cmds_need_lc=yes
12647 # This is similar to how AIX traditionally builds its shared libraries.
12648 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'
12649 fi
12650 fi
12651 ;;
12652
12653 amigaos*)
12654 case $host_cpu in
12655 powerpc)
12656 # see comment about AmigaOS4 .so support
12657 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12658 archive_expsym_cmds=''
12659 ;;
12660 m68k)
12661 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)'
12662 hardcode_libdir_flag_spec='-L$libdir'
12663 hardcode_minus_L=yes
12664 ;;
12665 esac
12666 ;;
12667
12668 bsdi[45]*)
12669 export_dynamic_flag_spec=-rdynamic
12670 ;;
12671
12672 cygwin* | mingw* | pw32* | cegcc*)
12673 # When not using gcc, we currently assume that we are using
12674 # Microsoft Visual C++.
12675 # hardcode_libdir_flag_spec is actually meaningless, as there is
12676 # no search path for DLLs.
12677 hardcode_libdir_flag_spec=' '
12678 allow_undefined_flag=unsupported
12679 # Tell ltmain to make .lib files, not .a files.
12680 libext=lib
12681 # Tell ltmain to make .dll files, not .so files.
12682 shrext_cmds=".dll"
12683 # FIXME: Setting linknames here is a bad hack.
cristy18304f92009-11-22 15:48:26 +000012684 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000012685 # The linker will automatically build a .lib file if we build a DLL.
12686 old_archive_from_new_cmds='true'
12687 # FIXME: Should let the user specify the lib program.
12688 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12689 fix_srcfile_path='`cygpath -w "$srcfile"`'
12690 enable_shared_with_static_runtimes=yes
12691 ;;
12692
12693 darwin* | rhapsody*)
12694
12695
12696 archive_cmds_need_lc=no
12697 hardcode_direct=no
12698 hardcode_automatic=yes
12699 hardcode_shlibpath_var=unsupported
cristy18304f92009-11-22 15:48:26 +000012700 whole_archive_flag_spec=''
cristy3ed852e2009-09-05 21:47:34 +000012701 link_all_deplibs=yes
12702 allow_undefined_flag="$_lt_dar_allow_undefined"
12703 case $cc_basename in
12704 ifort*) _lt_dar_can_shared=yes ;;
12705 *) _lt_dar_can_shared=$GCC ;;
12706 esac
12707 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000012708 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000012709 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12710 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12711 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}"
12712 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}"
12713
12714 else
12715 ld_shlibs=no
12716 fi
12717
12718 ;;
12719
12720 dgux*)
12721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12722 hardcode_libdir_flag_spec='-L$libdir'
12723 hardcode_shlibpath_var=no
12724 ;;
12725
12726 freebsd1*)
12727 ld_shlibs=no
12728 ;;
12729
12730 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12731 # support. Future versions do this automatically, but an explicit c++rt0.o
12732 # does not break anything, and helps significantly (at the cost of a little
12733 # extra space).
12734 freebsd2.2*)
12735 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12736 hardcode_libdir_flag_spec='-R$libdir'
12737 hardcode_direct=yes
12738 hardcode_shlibpath_var=no
12739 ;;
12740
12741 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12742 freebsd2*)
12743 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12744 hardcode_direct=yes
12745 hardcode_minus_L=yes
12746 hardcode_shlibpath_var=no
12747 ;;
12748
12749 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12750 freebsd* | dragonfly*)
12751 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12752 hardcode_libdir_flag_spec='-R$libdir'
12753 hardcode_direct=yes
12754 hardcode_shlibpath_var=no
12755 ;;
12756
12757 hpux9*)
12758 if test "$GCC" = yes; then
12759 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'
12760 else
12761 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'
12762 fi
12763 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12764 hardcode_libdir_separator=:
12765 hardcode_direct=yes
12766
12767 # hardcode_minus_L: Not really in the search PATH,
12768 # but as the default location of the library.
12769 hardcode_minus_L=yes
12770 export_dynamic_flag_spec='${wl}-E'
12771 ;;
12772
12773 hpux10*)
cristy18304f92009-11-22 15:48:26 +000012774 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000012775 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12776 else
12777 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12778 fi
12779 if test "$with_gnu_ld" = no; then
12780 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12781 hardcode_libdir_flag_spec_ld='+b $libdir'
12782 hardcode_libdir_separator=:
12783 hardcode_direct=yes
12784 hardcode_direct_absolute=yes
12785 export_dynamic_flag_spec='${wl}-E'
12786 # hardcode_minus_L: Not really in the search PATH,
12787 # but as the default location of the library.
12788 hardcode_minus_L=yes
12789 fi
12790 ;;
12791
12792 hpux11*)
cristy18304f92009-11-22 15:48:26 +000012793 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000012794 case $host_cpu in
12795 hppa*64*)
12796 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12797 ;;
12798 ia64*)
12799 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12800 ;;
12801 *)
12802 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12803 ;;
12804 esac
12805 else
12806 case $host_cpu in
12807 hppa*64*)
12808 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12809 ;;
12810 ia64*)
12811 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12812 ;;
12813 *)
cristy18304f92009-11-22 15:48:26 +000012814 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 +000012815 ;;
12816 esac
12817 fi
12818 if test "$with_gnu_ld" = no; then
12819 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12820 hardcode_libdir_separator=:
12821
12822 case $host_cpu in
12823 hppa*64*|ia64*)
12824 hardcode_direct=no
12825 hardcode_shlibpath_var=no
12826 ;;
12827 *)
12828 hardcode_direct=yes
12829 hardcode_direct_absolute=yes
12830 export_dynamic_flag_spec='${wl}-E'
12831
12832 # hardcode_minus_L: Not really in the search PATH,
12833 # but as the default location of the library.
12834 hardcode_minus_L=yes
12835 ;;
12836 esac
12837 fi
12838 ;;
12839
12840 irix5* | irix6* | nonstopux*)
12841 if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000012842 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 +000012843 # Try to use the -exported_symbol ld option, if it does not
12844 # work, assume that -exports_file does not work either and
12845 # implicitly export all symbols.
12846 save_LDFLAGS="$LDFLAGS"
12847 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000012848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12849/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000012850int foo(void) {}
12851_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012852if ac_fn_c_try_link "$LINENO"; then :
cristy18304f92009-11-22 15:48:26 +000012853 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 +000012854
cristy3ed852e2009-09-05 21:47:34 +000012855fi
cristy8b350f62009-11-15 23:12:43 +000012856rm -f core conftest.err conftest.$ac_objext \
12857 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012858 LDFLAGS="$save_LDFLAGS"
12859 else
cristy18304f92009-11-22 15:48:26 +000012860 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'
12861 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 +000012862 fi
12863 archive_cmds_need_lc='no'
12864 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12865 hardcode_libdir_separator=:
12866 inherit_rpath=yes
12867 link_all_deplibs=yes
12868 ;;
12869
12870 netbsd*)
12871 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12872 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12873 else
12874 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12875 fi
12876 hardcode_libdir_flag_spec='-R$libdir'
12877 hardcode_direct=yes
12878 hardcode_shlibpath_var=no
12879 ;;
12880
12881 newsos6)
12882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12883 hardcode_direct=yes
12884 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12885 hardcode_libdir_separator=:
12886 hardcode_shlibpath_var=no
12887 ;;
12888
12889 *nto* | *qnx*)
12890 ;;
12891
12892 openbsd*)
12893 if test -f /usr/libexec/ld.so; then
12894 hardcode_direct=yes
12895 hardcode_shlibpath_var=no
12896 hardcode_direct_absolute=yes
12897 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12898 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12899 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12900 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12901 export_dynamic_flag_spec='${wl}-E'
12902 else
12903 case $host_os in
12904 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12905 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12906 hardcode_libdir_flag_spec='-R$libdir'
12907 ;;
12908 *)
12909 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12910 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12911 ;;
12912 esac
12913 fi
12914 else
12915 ld_shlibs=no
12916 fi
12917 ;;
12918
12919 os2*)
12920 hardcode_libdir_flag_spec='-L$libdir'
12921 hardcode_minus_L=yes
12922 allow_undefined_flag=unsupported
cristy18304f92009-11-22 15:48:26 +000012923 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 +000012924 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12925 ;;
12926
12927 osf3*)
12928 if test "$GCC" = yes; then
12929 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000012930 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 +000012931 else
12932 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000012933 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 +000012934 fi
12935 archive_cmds_need_lc='no'
12936 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12937 hardcode_libdir_separator=:
12938 ;;
12939
12940 osf4* | osf5*) # as osf3* with the addition of -msym flag
12941 if test "$GCC" = yes; then
12942 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000012943 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 +000012944 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12945 else
12946 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000012947 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 +000012948 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~
cristy18304f92009-11-22 15:48:26 +000012949 $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 +000012950
12951 # Both c and cxx compiler support -rpath directly
12952 hardcode_libdir_flag_spec='-rpath $libdir'
12953 fi
12954 archive_cmds_need_lc='no'
12955 hardcode_libdir_separator=:
12956 ;;
12957
12958 solaris*)
12959 no_undefined_flag=' -z defs'
12960 if test "$GCC" = yes; then
12961 wlarc='${wl}'
12962 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12963 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12964 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12965 else
12966 case `$CC -V 2>&1` in
12967 *"Compilers 5.0"*)
12968 wlarc=''
12969 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12970 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12971 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12972 ;;
12973 *)
12974 wlarc='${wl}'
12975 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12976 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12977 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12978 ;;
12979 esac
12980 fi
12981 hardcode_libdir_flag_spec='-R$libdir'
12982 hardcode_shlibpath_var=no
12983 case $host_os in
12984 solaris2.[0-5] | solaris2.[0-5].*) ;;
12985 *)
12986 # The compiler driver will combine and reorder linker options,
12987 # but understands `-z linker_flag'. GCC discards it without `$wl',
12988 # but is careful enough not to reorder.
12989 # Supported since Solaris 2.6 (maybe 2.5.1?)
12990 if test "$GCC" = yes; then
12991 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12992 else
12993 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12994 fi
12995 ;;
12996 esac
12997 link_all_deplibs=yes
12998 ;;
12999
13000 sunos4*)
13001 if test "x$host_vendor" = xsequent; then
13002 # Use $CC to link under sequent, because it throws in some extra .o
13003 # files that make .init and .fini sections work.
13004 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13005 else
13006 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13007 fi
13008 hardcode_libdir_flag_spec='-L$libdir'
13009 hardcode_direct=yes
13010 hardcode_minus_L=yes
13011 hardcode_shlibpath_var=no
13012 ;;
13013
13014 sysv4)
13015 case $host_vendor in
13016 sni)
13017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13018 hardcode_direct=yes # is this really true???
13019 ;;
13020 siemens)
13021 ## LD is ld it makes a PLAMLIB
13022 ## CC just makes a GrossModule.
13023 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13024 reload_cmds='$CC -r -o $output$reload_objs'
13025 hardcode_direct=no
13026 ;;
13027 motorola)
13028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13029 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13030 ;;
13031 esac
13032 runpath_var='LD_RUN_PATH'
13033 hardcode_shlibpath_var=no
13034 ;;
13035
13036 sysv4.3*)
13037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13038 hardcode_shlibpath_var=no
13039 export_dynamic_flag_spec='-Bexport'
13040 ;;
13041
13042 sysv4*MP*)
13043 if test -d /usr/nec; then
13044 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13045 hardcode_shlibpath_var=no
13046 runpath_var=LD_RUN_PATH
13047 hardcode_runpath_var=yes
13048 ld_shlibs=yes
13049 fi
13050 ;;
13051
13052 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13053 no_undefined_flag='${wl}-z,text'
13054 archive_cmds_need_lc=no
13055 hardcode_shlibpath_var=no
13056 runpath_var='LD_RUN_PATH'
13057
13058 if test "$GCC" = yes; then
13059 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13060 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13061 else
13062 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13063 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13064 fi
13065 ;;
13066
13067 sysv5* | sco3.2v5* | sco5v6*)
13068 # Note: We can NOT use -z defs as we might desire, because we do not
13069 # link with -lc, and that would cause any symbols used from libc to
13070 # always be unresolved, which means just about no library would
13071 # ever link correctly. If we're not using GNU ld we use -z text
13072 # though, which does catch some bad symbols but isn't as heavy-handed
13073 # as -z defs.
13074 no_undefined_flag='${wl}-z,text'
13075 allow_undefined_flag='${wl}-z,nodefs'
13076 archive_cmds_need_lc=no
13077 hardcode_shlibpath_var=no
13078 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13079 hardcode_libdir_separator=':'
13080 link_all_deplibs=yes
13081 export_dynamic_flag_spec='${wl}-Bexport'
13082 runpath_var='LD_RUN_PATH'
13083
13084 if test "$GCC" = yes; then
13085 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13086 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13087 else
13088 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13089 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13090 fi
13091 ;;
13092
13093 uts4*)
13094 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13095 hardcode_libdir_flag_spec='-L$libdir'
13096 hardcode_shlibpath_var=no
13097 ;;
13098
13099 *)
13100 ld_shlibs=no
13101 ;;
13102 esac
13103
13104 if test x$host_vendor = xsni; then
13105 case $host in
13106 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13107 export_dynamic_flag_spec='${wl}-Blargedynsym'
13108 ;;
13109 esac
13110 fi
13111 fi
13112
cristy8b350f62009-11-15 23:12:43 +000013113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000013114$as_echo "$ld_shlibs" >&6; }
13115test "$ld_shlibs" = no && can_build_shared=no
13116
13117with_gnu_ld=$with_gnu_ld
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133#
13134# Do we need to explicitly link libc?
13135#
13136case "x$archive_cmds_need_lc" in
13137x|xyes)
13138 # Assume -lc should be added
13139 archive_cmds_need_lc=yes
13140
13141 if test "$enable_shared" = yes && test "$GCC" = yes; then
13142 case $archive_cmds in
13143 *'~'*)
13144 # FIXME: we may have to deal with multi-command sequences.
13145 ;;
13146 '$CC '*)
13147 # Test whether the compiler implicitly links with -lc since on some
13148 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13149 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000013150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000013151$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000013152 $RM conftest*
13153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013154
cristy18304f92009-11-22 15:48:26 +000013155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000013156 (eval $ac_compile) 2>&5
13157 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000013158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13159 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000013160 soname=conftest
13161 lib=conftest
13162 libobjs=conftest.$ac_objext
13163 deplibs=
13164 wl=$lt_prog_compiler_wl
13165 pic_flag=$lt_prog_compiler_pic
13166 compiler_flags=-v
13167 linker_flags=-v
13168 verstring=
13169 output_objdir=.
13170 libname=conftest
13171 lt_save_allow_undefined_flag=$allow_undefined_flag
13172 allow_undefined_flag=
13173 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 +000013174 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13175 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000013176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13177 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000013178 then
13179 archive_cmds_need_lc=no
13180 else
13181 archive_cmds_need_lc=yes
13182 fi
13183 allow_undefined_flag=$lt_save_allow_undefined_flag
13184 else
13185 cat conftest.err 1>&5
13186 fi
13187 $RM conftest*
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
13189$as_echo "$archive_cmds_need_lc" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000013190 ;;
13191 esac
13192 fi
13193 ;;
13194esac
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
cristy8b350f62009-11-15 23:12:43 +000013352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000013353$as_echo_n "checking dynamic linker characteristics... " >&6; }
13354
13355if test "$GCC" = yes; then
13356 case $host_os in
13357 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13358 *) lt_awk_arg="/^libraries:/" ;;
13359 esac
cristy18304f92009-11-22 15:48:26 +000013360 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13361 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
cristy3ed852e2009-09-05 21:47:34 +000013362 # if the path contains ";" then we assume it to be the separator
13363 # otherwise default to the standard path separator (i.e. ":") - it is
13364 # assumed that no part of a normal pathname contains ";" but that should
13365 # okay in the real world where ";" in dirpaths is itself problematic.
cristy18304f92009-11-22 15:48:26 +000013366 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13367 else
13368 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13369 fi
cristy3ed852e2009-09-05 21:47:34 +000013370 # Ok, now we have the path, separated by spaces, we can step through it
13371 # and add multilib dir if necessary.
13372 lt_tmp_lt_search_path_spec=
13373 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13374 for lt_sys_path in $lt_search_path_spec; do
13375 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13376 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13377 else
13378 test -d "$lt_sys_path" && \
13379 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13380 fi
13381 done
cristy18304f92009-11-22 15:48:26 +000013382 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
cristy3ed852e2009-09-05 21:47:34 +000013383BEGIN {RS=" "; FS="/|\n";} {
13384 lt_foo="";
13385 lt_count=0;
13386 for (lt_i = NF; lt_i > 0; lt_i--) {
13387 if ($lt_i != "" && $lt_i != ".") {
13388 if ($lt_i == "..") {
13389 lt_count++;
13390 } else {
13391 if (lt_count == 0) {
13392 lt_foo="/" $lt_i lt_foo;
13393 } else {
13394 lt_count--;
13395 }
13396 }
13397 }
13398 }
13399 if (lt_foo != "") { lt_freq[lt_foo]++; }
13400 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13401}'`
cristy18304f92009-11-22 15:48:26 +000013402 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
cristy3ed852e2009-09-05 21:47:34 +000013403else
13404 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13405fi
13406library_names_spec=
13407libname_spec='lib$name'
13408soname_spec=
13409shrext_cmds=".so"
13410postinstall_cmds=
13411postuninstall_cmds=
13412finish_cmds=
13413finish_eval=
13414shlibpath_var=
13415shlibpath_overrides_runpath=unknown
13416version_type=none
13417dynamic_linker="$host_os ld.so"
13418sys_lib_dlsearch_path_spec="/lib /usr/lib"
13419need_lib_prefix=unknown
13420hardcode_into_libs=no
13421
13422# when you set need_version to no, make sure it does not cause -set_version
13423# flags to be left without arguments
13424need_version=unknown
13425
13426case $host_os in
13427aix3*)
13428 version_type=linux
13429 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13430 shlibpath_var=LIBPATH
13431
13432 # AIX 3 has no versioning support, so we append a major version to the name.
13433 soname_spec='${libname}${release}${shared_ext}$major'
13434 ;;
13435
13436aix[4-9]*)
13437 version_type=linux
13438 need_lib_prefix=no
13439 need_version=no
13440 hardcode_into_libs=yes
13441 if test "$host_cpu" = ia64; then
13442 # AIX 5 supports IA64
13443 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13444 shlibpath_var=LD_LIBRARY_PATH
13445 else
13446 # With GCC up to 2.95.x, collect2 would create an import file
13447 # for dependence libraries. The import file would start with
13448 # the line `#! .'. This would cause the generated library to
13449 # depend on `.', always an invalid library. This was fixed in
13450 # development snapshots of GCC prior to 3.0.
13451 case $host_os in
13452 aix4 | aix4.[01] | aix4.[01].*)
13453 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13454 echo ' yes '
13455 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13456 :
13457 else
13458 can_build_shared=no
13459 fi
13460 ;;
13461 esac
13462 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13463 # soname into executable. Probably we can add versioning support to
13464 # collect2, so additional links can be useful in future.
13465 if test "$aix_use_runtimelinking" = yes; then
13466 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13467 # instead of lib<name>.a to let people know that these are not
13468 # typical AIX shared libraries.
13469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13470 else
13471 # We preserve .a as extension for shared libraries through AIX4.2
13472 # and later when we are not doing run time linking.
13473 library_names_spec='${libname}${release}.a $libname.a'
13474 soname_spec='${libname}${release}${shared_ext}$major'
13475 fi
13476 shlibpath_var=LIBPATH
13477 fi
13478 ;;
13479
13480amigaos*)
13481 case $host_cpu in
13482 powerpc)
13483 # Since July 2007 AmigaOS4 officially supports .so libraries.
13484 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13486 ;;
13487 m68k)
13488 library_names_spec='$libname.ixlibrary $libname.a'
13489 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000013490 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 +000013491 ;;
13492 esac
13493 ;;
13494
13495beos*)
13496 library_names_spec='${libname}${shared_ext}'
13497 dynamic_linker="$host_os ld.so"
13498 shlibpath_var=LIBRARY_PATH
13499 ;;
13500
13501bsdi[45]*)
13502 version_type=linux
13503 need_version=no
13504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13505 soname_spec='${libname}${release}${shared_ext}$major'
13506 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13507 shlibpath_var=LD_LIBRARY_PATH
13508 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13509 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13510 # the default ld.so.conf also contains /usr/contrib/lib and
13511 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13512 # libtool to hard-code these into programs
13513 ;;
13514
13515cygwin* | mingw* | pw32* | cegcc*)
13516 version_type=windows
13517 shrext_cmds=".dll"
13518 need_version=no
13519 need_lib_prefix=no
13520
13521 case $GCC,$host_os in
13522 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13523 library_names_spec='$libname.dll.a'
13524 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13525 postinstall_cmds='base_file=`basename \${file}`~
13526 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13527 dldir=$destdir/`dirname \$dlpath`~
13528 test -d \$dldir || mkdir -p \$dldir~
13529 $install_prog $dir/$dlname \$dldir/$dlname~
13530 chmod a+x \$dldir/$dlname~
13531 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13532 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13533 fi'
13534 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13535 dlpath=$dir/\$dldll~
13536 $RM \$dlpath'
13537 shlibpath_overrides_runpath=yes
13538
13539 case $host_os in
13540 cygwin*)
13541 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13542 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000013543 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000013544 ;;
13545 mingw* | cegcc*)
13546 # MinGW DLLs use traditional 'lib' prefix
13547 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000013548 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13549 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13550 # It is most probably a Windows format PATH printed by
13551 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13552 # path with ; separators, and with drive letters. We can handle the
13553 # drive letters (cygwin fileutils understands them), so leave them,
13554 # especially as we might pass files found there to a mingw objdump,
13555 # which wouldn't understand a cygwinified path. Ahh.
13556 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13557 else
13558 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13559 fi
cristy3ed852e2009-09-05 21:47:34 +000013560 ;;
13561 pw32*)
13562 # pw32 DLLs use 'pw' prefix rather than 'lib'
13563 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13564 ;;
13565 esac
13566 ;;
13567
13568 *)
13569 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13570 ;;
13571 esac
13572 dynamic_linker='Win32 ld.exe'
13573 # FIXME: first we should search . and the directory the executable is in
13574 shlibpath_var=PATH
13575 ;;
13576
13577darwin* | rhapsody*)
13578 dynamic_linker="$host_os dyld"
13579 version_type=darwin
13580 need_lib_prefix=no
13581 need_version=no
13582 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13583 soname_spec='${libname}${release}${major}$shared_ext'
13584 shlibpath_overrides_runpath=yes
13585 shlibpath_var=DYLD_LIBRARY_PATH
13586 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13587
13588 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13589 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13590 ;;
13591
13592dgux*)
13593 version_type=linux
13594 need_lib_prefix=no
13595 need_version=no
13596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13597 soname_spec='${libname}${release}${shared_ext}$major'
13598 shlibpath_var=LD_LIBRARY_PATH
13599 ;;
13600
13601freebsd1*)
13602 dynamic_linker=no
13603 ;;
13604
13605freebsd* | dragonfly*)
13606 # DragonFly does not have aout. When/if they implement a new
13607 # versioning mechanism, adjust this.
13608 if test -x /usr/bin/objformat; then
13609 objformat=`/usr/bin/objformat`
13610 else
13611 case $host_os in
13612 freebsd[123]*) objformat=aout ;;
13613 *) objformat=elf ;;
13614 esac
13615 fi
13616 version_type=freebsd-$objformat
13617 case $version_type in
13618 freebsd-elf*)
13619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13620 need_version=no
13621 need_lib_prefix=no
13622 ;;
13623 freebsd-*)
13624 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13625 need_version=yes
13626 ;;
13627 esac
13628 shlibpath_var=LD_LIBRARY_PATH
13629 case $host_os in
13630 freebsd2*)
13631 shlibpath_overrides_runpath=yes
13632 ;;
13633 freebsd3.[01]* | freebsdelf3.[01]*)
13634 shlibpath_overrides_runpath=yes
13635 hardcode_into_libs=yes
13636 ;;
13637 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13638 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13639 shlibpath_overrides_runpath=no
13640 hardcode_into_libs=yes
13641 ;;
13642 *) # from 4.6 on, and DragonFly
13643 shlibpath_overrides_runpath=yes
13644 hardcode_into_libs=yes
13645 ;;
13646 esac
13647 ;;
13648
13649gnu*)
13650 version_type=linux
13651 need_lib_prefix=no
13652 need_version=no
13653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13654 soname_spec='${libname}${release}${shared_ext}$major'
13655 shlibpath_var=LD_LIBRARY_PATH
13656 hardcode_into_libs=yes
13657 ;;
13658
13659hpux9* | hpux10* | hpux11*)
13660 # Give a soname corresponding to the major version so that dld.sl refuses to
13661 # link against other versions.
13662 version_type=sunos
13663 need_lib_prefix=no
13664 need_version=no
13665 case $host_cpu in
13666 ia64*)
13667 shrext_cmds='.so'
13668 hardcode_into_libs=yes
13669 dynamic_linker="$host_os dld.so"
13670 shlibpath_var=LD_LIBRARY_PATH
13671 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13673 soname_spec='${libname}${release}${shared_ext}$major'
13674 if test "X$HPUX_IA64_MODE" = X32; then
13675 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13676 else
13677 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13678 fi
13679 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13680 ;;
13681 hppa*64*)
13682 shrext_cmds='.sl'
13683 hardcode_into_libs=yes
13684 dynamic_linker="$host_os dld.sl"
13685 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13686 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13688 soname_spec='${libname}${release}${shared_ext}$major'
13689 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13690 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13691 ;;
13692 *)
13693 shrext_cmds='.sl'
13694 dynamic_linker="$host_os dld.sl"
13695 shlibpath_var=SHLIB_PATH
13696 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13698 soname_spec='${libname}${release}${shared_ext}$major'
13699 ;;
13700 esac
cristy18304f92009-11-22 15:48:26 +000013701 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000013702 postinstall_cmds='chmod 555 $lib'
13703 ;;
13704
13705interix[3-9]*)
13706 version_type=linux
13707 need_lib_prefix=no
13708 need_version=no
13709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13710 soname_spec='${libname}${release}${shared_ext}$major'
13711 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13712 shlibpath_var=LD_LIBRARY_PATH
13713 shlibpath_overrides_runpath=no
13714 hardcode_into_libs=yes
13715 ;;
13716
13717irix5* | irix6* | nonstopux*)
13718 case $host_os in
13719 nonstopux*) version_type=nonstopux ;;
13720 *)
13721 if test "$lt_cv_prog_gnu_ld" = yes; then
13722 version_type=linux
13723 else
13724 version_type=irix
13725 fi ;;
13726 esac
13727 need_lib_prefix=no
13728 need_version=no
13729 soname_spec='${libname}${release}${shared_ext}$major'
13730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13731 case $host_os in
13732 irix5* | nonstopux*)
13733 libsuff= shlibsuff=
13734 ;;
13735 *)
13736 case $LD in # libtool.m4 will add one of these switches to LD
13737 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13738 libsuff= shlibsuff= libmagic=32-bit;;
13739 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13740 libsuff=32 shlibsuff=N32 libmagic=N32;;
13741 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13742 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13743 *) libsuff= shlibsuff= libmagic=never-match;;
13744 esac
13745 ;;
13746 esac
13747 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13748 shlibpath_overrides_runpath=no
13749 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13750 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13751 hardcode_into_libs=yes
13752 ;;
13753
13754# No shared lib support for Linux oldld, aout, or coff.
13755linux*oldld* | linux*aout* | linux*coff*)
13756 dynamic_linker=no
13757 ;;
13758
13759# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000013760linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013761 version_type=linux
13762 need_lib_prefix=no
13763 need_version=no
13764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13765 soname_spec='${libname}${release}${shared_ext}$major'
13766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13767 shlibpath_var=LD_LIBRARY_PATH
13768 shlibpath_overrides_runpath=no
13769 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000013770 save_LDFLAGS=$LDFLAGS
13771 save_libdir=$libdir
13772 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13773 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013775/* end confdefs.h. */
13776
13777int
13778main ()
13779{
13780
13781 ;
13782 return 0;
13783}
13784_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013785if ac_fn_c_try_link "$LINENO"; then :
13786 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000013787 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000013788fi
cristy3ed852e2009-09-05 21:47:34 +000013789fi
cristy8b350f62009-11-15 23:12:43 +000013790rm -f core conftest.err conftest.$ac_objext \
13791 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000013792 LDFLAGS=$save_LDFLAGS
13793 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000013794
13795 # This implies no fast_install, which is unacceptable.
13796 # Some rework will be needed to allow for fast_install
13797 # before this can be enabled.
13798 hardcode_into_libs=yes
13799
cristy679ed8e2009-12-05 02:37:41 +000013800 # Add ABI-specific directories to the system library path.
13801 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13802
cristy3ed852e2009-09-05 21:47:34 +000013803 # Append ld.so.conf contents to the search path
13804 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000013805 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 +000013806 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000013807 fi
13808
13809 # We used to test for /lib/ld.so.1 and disable shared libraries on
13810 # powerpc, because MkLinux only supported shared libraries with the
13811 # GNU dynamic linker. Since this was broken with cross compilers,
13812 # most powerpc-linux boxes support dynamic linking these days and
13813 # people can always --disable-shared, the test was removed, and we
13814 # assume the GNU/Linux dynamic linker is in use.
13815 dynamic_linker='GNU/Linux ld.so'
13816 ;;
13817
13818netbsd*)
13819 version_type=sunos
13820 need_lib_prefix=no
13821 need_version=no
13822 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13825 dynamic_linker='NetBSD (a.out) ld.so'
13826 else
13827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13828 soname_spec='${libname}${release}${shared_ext}$major'
13829 dynamic_linker='NetBSD ld.elf_so'
13830 fi
13831 shlibpath_var=LD_LIBRARY_PATH
13832 shlibpath_overrides_runpath=yes
13833 hardcode_into_libs=yes
13834 ;;
13835
13836newsos6)
13837 version_type=linux
13838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13839 shlibpath_var=LD_LIBRARY_PATH
13840 shlibpath_overrides_runpath=yes
13841 ;;
13842
13843*nto* | *qnx*)
13844 version_type=qnx
13845 need_lib_prefix=no
13846 need_version=no
13847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13848 soname_spec='${libname}${release}${shared_ext}$major'
13849 shlibpath_var=LD_LIBRARY_PATH
13850 shlibpath_overrides_runpath=no
13851 hardcode_into_libs=yes
13852 dynamic_linker='ldqnx.so'
13853 ;;
13854
13855openbsd*)
13856 version_type=sunos
13857 sys_lib_dlsearch_path_spec="/usr/lib"
13858 need_lib_prefix=no
13859 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13860 case $host_os in
13861 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13862 *) need_version=no ;;
13863 esac
13864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13866 shlibpath_var=LD_LIBRARY_PATH
13867 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13868 case $host_os in
13869 openbsd2.[89] | openbsd2.[89].*)
13870 shlibpath_overrides_runpath=no
13871 ;;
13872 *)
13873 shlibpath_overrides_runpath=yes
13874 ;;
13875 esac
13876 else
13877 shlibpath_overrides_runpath=yes
13878 fi
13879 ;;
13880
13881os2*)
13882 libname_spec='$name'
13883 shrext_cmds=".dll"
13884 need_lib_prefix=no
13885 library_names_spec='$libname${shared_ext} $libname.a'
13886 dynamic_linker='OS/2 ld.exe'
13887 shlibpath_var=LIBPATH
13888 ;;
13889
13890osf3* | osf4* | osf5*)
13891 version_type=osf
13892 need_lib_prefix=no
13893 need_version=no
13894 soname_spec='${libname}${release}${shared_ext}$major'
13895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13896 shlibpath_var=LD_LIBRARY_PATH
13897 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13898 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13899 ;;
13900
13901rdos*)
13902 dynamic_linker=no
13903 ;;
13904
13905solaris*)
13906 version_type=linux
13907 need_lib_prefix=no
13908 need_version=no
13909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13910 soname_spec='${libname}${release}${shared_ext}$major'
13911 shlibpath_var=LD_LIBRARY_PATH
13912 shlibpath_overrides_runpath=yes
13913 hardcode_into_libs=yes
13914 # ldd complains unless libraries are executable
13915 postinstall_cmds='chmod +x $lib'
13916 ;;
13917
13918sunos4*)
13919 version_type=sunos
13920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13921 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13922 shlibpath_var=LD_LIBRARY_PATH
13923 shlibpath_overrides_runpath=yes
13924 if test "$with_gnu_ld" = yes; then
13925 need_lib_prefix=no
13926 fi
13927 need_version=yes
13928 ;;
13929
13930sysv4 | sysv4.3*)
13931 version_type=linux
13932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13933 soname_spec='${libname}${release}${shared_ext}$major'
13934 shlibpath_var=LD_LIBRARY_PATH
13935 case $host_vendor in
13936 sni)
13937 shlibpath_overrides_runpath=no
13938 need_lib_prefix=no
13939 runpath_var=LD_RUN_PATH
13940 ;;
13941 siemens)
13942 need_lib_prefix=no
13943 ;;
13944 motorola)
13945 need_lib_prefix=no
13946 need_version=no
13947 shlibpath_overrides_runpath=no
13948 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13949 ;;
13950 esac
13951 ;;
13952
13953sysv4*MP*)
13954 if test -d /usr/nec ;then
13955 version_type=linux
13956 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13957 soname_spec='$libname${shared_ext}.$major'
13958 shlibpath_var=LD_LIBRARY_PATH
13959 fi
13960 ;;
13961
13962sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13963 version_type=freebsd-elf
13964 need_lib_prefix=no
13965 need_version=no
13966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13967 soname_spec='${libname}${release}${shared_ext}$major'
13968 shlibpath_var=LD_LIBRARY_PATH
13969 shlibpath_overrides_runpath=yes
13970 hardcode_into_libs=yes
13971 if test "$with_gnu_ld" = yes; then
13972 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13973 else
13974 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13975 case $host_os in
13976 sco3.2v5*)
13977 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13978 ;;
13979 esac
13980 fi
13981 sys_lib_dlsearch_path_spec='/usr/lib'
13982 ;;
13983
13984tpf*)
13985 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13986 version_type=linux
13987 need_lib_prefix=no
13988 need_version=no
13989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13990 shlibpath_var=LD_LIBRARY_PATH
13991 shlibpath_overrides_runpath=no
13992 hardcode_into_libs=yes
13993 ;;
13994
13995uts4*)
13996 version_type=linux
13997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13998 soname_spec='${libname}${release}${shared_ext}$major'
13999 shlibpath_var=LD_LIBRARY_PATH
14000 ;;
14001
14002*)
14003 dynamic_linker=no
14004 ;;
14005esac
cristy8b350f62009-11-15 23:12:43 +000014006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000014007$as_echo "$dynamic_linker" >&6; }
14008test "$dynamic_linker" = no && can_build_shared=no
14009
14010variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14011if test "$GCC" = yes; then
14012 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14013fi
14014
14015if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14016 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14017fi
14018if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14019 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14020fi
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
cristy8b350f62009-11-15 23:12:43 +000014108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014109$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14110hardcode_action=
14111if test -n "$hardcode_libdir_flag_spec" ||
14112 test -n "$runpath_var" ||
14113 test "X$hardcode_automatic" = "Xyes" ; then
14114
14115 # We can hardcode non-existent directories.
14116 if test "$hardcode_direct" != no &&
14117 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14118 # have to relink, otherwise we might link with an installed library
14119 # when we should be linking with a yet-to-be-installed one
14120 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14121 test "$hardcode_minus_L" != no; then
14122 # Linking always hardcodes the temporary library directory.
14123 hardcode_action=relink
14124 else
14125 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14126 hardcode_action=immediate
14127 fi
14128else
14129 # We cannot hardcode anything, or else we can only hardcode existing
14130 # directories.
14131 hardcode_action=unsupported
14132fi
cristy8b350f62009-11-15 23:12:43 +000014133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000014134$as_echo "$hardcode_action" >&6; }
14135
14136if test "$hardcode_action" = relink ||
14137 test "$inherit_rpath" = yes; then
14138 # Fast installation is not supported
14139 enable_fast_install=no
14140elif test "$shlibpath_overrides_runpath" = yes ||
14141 test "$enable_shared" = no; then
14142 # Fast installation is not necessary
14143 enable_fast_install=needless
14144fi
14145
14146
14147
14148
14149
14150
14151 if test "x$enable_dlopen" != xyes; then
14152 enable_dlopen=unknown
14153 enable_dlopen_self=unknown
14154 enable_dlopen_self_static=unknown
14155else
14156 lt_cv_dlopen=no
14157 lt_cv_dlopen_libs=
14158
14159 case $host_os in
14160 beos*)
14161 lt_cv_dlopen="load_add_on"
14162 lt_cv_dlopen_libs=
14163 lt_cv_dlopen_self=yes
14164 ;;
14165
14166 mingw* | pw32* | cegcc*)
14167 lt_cv_dlopen="LoadLibrary"
14168 lt_cv_dlopen_libs=
14169 ;;
14170
14171 cygwin*)
14172 lt_cv_dlopen="dlopen"
14173 lt_cv_dlopen_libs=
14174 ;;
14175
14176 darwin*)
14177 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000014178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000014179$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014180if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014181 $as_echo_n "(cached) " >&6
14182else
14183 ac_check_lib_save_LIBS=$LIBS
14184LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014186/* end confdefs.h. */
14187
14188/* Override any GCC internal prototype to avoid an error.
14189 Use char because int might match the return type of a GCC
14190 builtin and then its argument prototype would still apply. */
14191#ifdef __cplusplus
14192extern "C"
14193#endif
14194char dlopen ();
14195int
14196main ()
14197{
14198return dlopen ();
14199 ;
14200 return 0;
14201}
14202_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014203if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014204 ac_cv_lib_dl_dlopen=yes
14205else
cristy8b350f62009-11-15 23:12:43 +000014206 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014207fi
cristy8b350f62009-11-15 23:12:43 +000014208rm -f core conftest.err conftest.$ac_objext \
14209 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014210LIBS=$ac_check_lib_save_LIBS
14211fi
cristy8b350f62009-11-15 23:12:43 +000014212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014213$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014214if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014215 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14216else
14217
14218 lt_cv_dlopen="dyld"
14219 lt_cv_dlopen_libs=
14220 lt_cv_dlopen_self=yes
14221
14222fi
14223
14224 ;;
14225
14226 *)
cristy8b350f62009-11-15 23:12:43 +000014227 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14228if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014229 lt_cv_dlopen="shl_load"
14230else
cristy8b350f62009-11-15 23:12:43 +000014231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014232$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014233if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014234 $as_echo_n "(cached) " >&6
14235else
14236 ac_check_lib_save_LIBS=$LIBS
14237LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014239/* end confdefs.h. */
14240
14241/* Override any GCC internal prototype to avoid an error.
14242 Use char because int might match the return type of a GCC
14243 builtin and then its argument prototype would still apply. */
14244#ifdef __cplusplus
14245extern "C"
14246#endif
14247char shl_load ();
14248int
14249main ()
14250{
14251return shl_load ();
14252 ;
14253 return 0;
14254}
14255_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014256if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014257 ac_cv_lib_dld_shl_load=yes
14258else
cristy8b350f62009-11-15 23:12:43 +000014259 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000014260fi
cristy8b350f62009-11-15 23:12:43 +000014261rm -f core conftest.err conftest.$ac_objext \
14262 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014263LIBS=$ac_check_lib_save_LIBS
14264fi
cristy8b350f62009-11-15 23:12:43 +000014265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000014266$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014267if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014268 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14269else
cristy8b350f62009-11-15 23:12:43 +000014270 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14271if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014272 lt_cv_dlopen="dlopen"
14273else
cristy8b350f62009-11-15 23:12:43 +000014274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000014275$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014276if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014277 $as_echo_n "(cached) " >&6
14278else
14279 ac_check_lib_save_LIBS=$LIBS
14280LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014282/* end confdefs.h. */
14283
14284/* Override any GCC internal prototype to avoid an error.
14285 Use char because int might match the return type of a GCC
14286 builtin and then its argument prototype would still apply. */
14287#ifdef __cplusplus
14288extern "C"
14289#endif
14290char dlopen ();
14291int
14292main ()
14293{
14294return dlopen ();
14295 ;
14296 return 0;
14297}
14298_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014299if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014300 ac_cv_lib_dl_dlopen=yes
14301else
cristy8b350f62009-11-15 23:12:43 +000014302 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014303fi
cristy8b350f62009-11-15 23:12:43 +000014304rm -f core conftest.err conftest.$ac_objext \
14305 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014306LIBS=$ac_check_lib_save_LIBS
14307fi
cristy8b350f62009-11-15 23:12:43 +000014308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014309$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014310if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014311 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14312else
cristy8b350f62009-11-15 23:12:43 +000014313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014314$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014315if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014316 $as_echo_n "(cached) " >&6
14317else
14318 ac_check_lib_save_LIBS=$LIBS
14319LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014321/* end confdefs.h. */
14322
14323/* Override any GCC internal prototype to avoid an error.
14324 Use char because int might match the return type of a GCC
14325 builtin and then its argument prototype would still apply. */
14326#ifdef __cplusplus
14327extern "C"
14328#endif
14329char dlopen ();
14330int
14331main ()
14332{
14333return dlopen ();
14334 ;
14335 return 0;
14336}
14337_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014338if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014339 ac_cv_lib_svld_dlopen=yes
14340else
cristy8b350f62009-11-15 23:12:43 +000014341 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014342fi
cristy8b350f62009-11-15 23:12:43 +000014343rm -f core conftest.err conftest.$ac_objext \
14344 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014345LIBS=$ac_check_lib_save_LIBS
14346fi
cristy8b350f62009-11-15 23:12:43 +000014347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014348$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014349if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014350 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14351else
cristy8b350f62009-11-15 23:12:43 +000014352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014353$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014354if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014355 $as_echo_n "(cached) " >&6
14356else
14357 ac_check_lib_save_LIBS=$LIBS
14358LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014360/* end confdefs.h. */
14361
14362/* Override any GCC internal prototype to avoid an error.
14363 Use char because int might match the return type of a GCC
14364 builtin and then its argument prototype would still apply. */
14365#ifdef __cplusplus
14366extern "C"
14367#endif
14368char dld_link ();
14369int
14370main ()
14371{
14372return dld_link ();
14373 ;
14374 return 0;
14375}
14376_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014377if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014378 ac_cv_lib_dld_dld_link=yes
14379else
cristy8b350f62009-11-15 23:12:43 +000014380 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000014381fi
cristy8b350f62009-11-15 23:12:43 +000014382rm -f core conftest.err conftest.$ac_objext \
14383 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014384LIBS=$ac_check_lib_save_LIBS
14385fi
cristy8b350f62009-11-15 23:12:43 +000014386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000014387$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014388if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014389 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14390fi
14391
14392
14393fi
14394
14395
14396fi
14397
14398
14399fi
14400
14401
14402fi
14403
14404
14405fi
14406
14407 ;;
14408 esac
14409
14410 if test "x$lt_cv_dlopen" != xno; then
14411 enable_dlopen=yes
14412 else
14413 enable_dlopen=no
14414 fi
14415
14416 case $lt_cv_dlopen in
14417 dlopen)
14418 save_CPPFLAGS="$CPPFLAGS"
14419 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14420
14421 save_LDFLAGS="$LDFLAGS"
14422 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14423
14424 save_LIBS="$LIBS"
14425 LIBS="$lt_cv_dlopen_libs $LIBS"
14426
cristy8b350f62009-11-15 23:12:43 +000014427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000014428$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014429if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014430 $as_echo_n "(cached) " >&6
14431else
14432 if test "$cross_compiling" = yes; then :
14433 lt_cv_dlopen_self=cross
14434else
14435 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14436 lt_status=$lt_dlunknown
14437 cat > conftest.$ac_ext <<_LT_EOF
cristy679ed8e2009-12-05 02:37:41 +000014438#line 14438 "configure"
cristy3ed852e2009-09-05 21:47:34 +000014439#include "confdefs.h"
14440
14441#if HAVE_DLFCN_H
14442#include <dlfcn.h>
14443#endif
14444
14445#include <stdio.h>
14446
14447#ifdef RTLD_GLOBAL
14448# define LT_DLGLOBAL RTLD_GLOBAL
14449#else
14450# ifdef DL_GLOBAL
14451# define LT_DLGLOBAL DL_GLOBAL
14452# else
14453# define LT_DLGLOBAL 0
14454# endif
14455#endif
14456
14457/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14458 find out it does not work in some platform. */
14459#ifndef LT_DLLAZY_OR_NOW
14460# ifdef RTLD_LAZY
14461# define LT_DLLAZY_OR_NOW RTLD_LAZY
14462# else
14463# ifdef DL_LAZY
14464# define LT_DLLAZY_OR_NOW DL_LAZY
14465# else
14466# ifdef RTLD_NOW
14467# define LT_DLLAZY_OR_NOW RTLD_NOW
14468# else
14469# ifdef DL_NOW
14470# define LT_DLLAZY_OR_NOW DL_NOW
14471# else
14472# define LT_DLLAZY_OR_NOW 0
14473# endif
14474# endif
14475# endif
14476# endif
14477#endif
14478
cristy18304f92009-11-22 15:48:26 +000014479void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000014480int main ()
14481{
14482 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14483 int status = $lt_dlunknown;
14484
14485 if (self)
14486 {
14487 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000014488 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000014489 /* dlclose (self); */
14490 }
14491 else
14492 puts (dlerror ());
14493
14494 return status;
14495}
14496_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000014497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014498 (eval $ac_link) 2>&5
14499 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14501 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000014502 (./conftest; exit; ) >&5 2>/dev/null
14503 lt_status=$?
14504 case x$lt_status in
14505 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14506 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14507 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14508 esac
14509 else :
14510 # compilation failed
14511 lt_cv_dlopen_self=no
14512 fi
14513fi
14514rm -fr conftest*
14515
14516
14517fi
cristy8b350f62009-11-15 23:12:43 +000014518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000014519$as_echo "$lt_cv_dlopen_self" >&6; }
14520
14521 if test "x$lt_cv_dlopen_self" = xyes; then
14522 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000014523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000014524$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014525if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014526 $as_echo_n "(cached) " >&6
14527else
14528 if test "$cross_compiling" = yes; then :
14529 lt_cv_dlopen_self_static=cross
14530else
14531 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14532 lt_status=$lt_dlunknown
14533 cat > conftest.$ac_ext <<_LT_EOF
cristy679ed8e2009-12-05 02:37:41 +000014534#line 14534 "configure"
cristy3ed852e2009-09-05 21:47:34 +000014535#include "confdefs.h"
14536
14537#if HAVE_DLFCN_H
14538#include <dlfcn.h>
14539#endif
14540
14541#include <stdio.h>
14542
14543#ifdef RTLD_GLOBAL
14544# define LT_DLGLOBAL RTLD_GLOBAL
14545#else
14546# ifdef DL_GLOBAL
14547# define LT_DLGLOBAL DL_GLOBAL
14548# else
14549# define LT_DLGLOBAL 0
14550# endif
14551#endif
14552
14553/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14554 find out it does not work in some platform. */
14555#ifndef LT_DLLAZY_OR_NOW
14556# ifdef RTLD_LAZY
14557# define LT_DLLAZY_OR_NOW RTLD_LAZY
14558# else
14559# ifdef DL_LAZY
14560# define LT_DLLAZY_OR_NOW DL_LAZY
14561# else
14562# ifdef RTLD_NOW
14563# define LT_DLLAZY_OR_NOW RTLD_NOW
14564# else
14565# ifdef DL_NOW
14566# define LT_DLLAZY_OR_NOW DL_NOW
14567# else
14568# define LT_DLLAZY_OR_NOW 0
14569# endif
14570# endif
14571# endif
14572# endif
14573#endif
14574
cristy18304f92009-11-22 15:48:26 +000014575void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000014576int main ()
14577{
14578 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14579 int status = $lt_dlunknown;
14580
14581 if (self)
14582 {
14583 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000014584 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000014585 /* dlclose (self); */
14586 }
14587 else
14588 puts (dlerror ());
14589
14590 return status;
14591}
14592_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000014593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014594 (eval $ac_link) 2>&5
14595 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14597 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000014598 (./conftest; exit; ) >&5 2>/dev/null
14599 lt_status=$?
14600 case x$lt_status in
14601 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14602 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14603 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14604 esac
14605 else :
14606 # compilation failed
14607 lt_cv_dlopen_self_static=no
14608 fi
14609fi
14610rm -fr conftest*
14611
14612
14613fi
cristy8b350f62009-11-15 23:12:43 +000014614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000014615$as_echo "$lt_cv_dlopen_self_static" >&6; }
14616 fi
14617
14618 CPPFLAGS="$save_CPPFLAGS"
14619 LDFLAGS="$save_LDFLAGS"
14620 LIBS="$save_LIBS"
14621 ;;
14622 esac
14623
14624 case $lt_cv_dlopen_self in
14625 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14626 *) enable_dlopen_self=unknown ;;
14627 esac
14628
14629 case $lt_cv_dlopen_self_static in
14630 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14631 *) enable_dlopen_self_static=unknown ;;
14632 esac
14633fi
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651striplib=
14652old_striplib=
cristy8b350f62009-11-15 23:12:43 +000014653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000014654$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14655if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14656 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14657 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000014658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000014659$as_echo "yes" >&6; }
14660else
14661# FIXME - insert some real tests, host_os isn't really good enough
14662 case $host_os in
14663 darwin*)
14664 if test -n "$STRIP" ; then
14665 striplib="$STRIP -x"
14666 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000014667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000014668$as_echo "yes" >&6; }
14669 else
cristy8b350f62009-11-15 23:12:43 +000014670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014671$as_echo "no" >&6; }
14672 fi
14673 ;;
14674 *)
cristy8b350f62009-11-15 23:12:43 +000014675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014676$as_echo "no" >&6; }
14677 ;;
14678 esac
14679fi
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000014693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014694$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000014696$as_echo "$can_build_shared" >&6; }
14697
cristy8b350f62009-11-15 23:12:43 +000014698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014699$as_echo_n "checking whether to build shared libraries... " >&6; }
14700 test "$can_build_shared" = "no" && enable_shared=no
14701
14702 # On AIX, shared libraries and static libraries use the same namespace, and
14703 # are all built from PIC.
14704 case $host_os in
14705 aix3*)
14706 test "$enable_shared" = yes && enable_static=no
14707 if test -n "$RANLIB"; then
14708 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14709 postinstall_cmds='$RANLIB $lib'
14710 fi
14711 ;;
14712
14713 aix[4-9]*)
14714 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14715 test "$enable_shared" = yes && enable_static=no
14716 fi
14717 ;;
14718 esac
cristy8b350f62009-11-15 23:12:43 +000014719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000014720$as_echo "$enable_shared" >&6; }
14721
cristy8b350f62009-11-15 23:12:43 +000014722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014723$as_echo_n "checking whether to build static libraries... " >&6; }
14724 # Make sure either enable_shared or enable_static is yes.
14725 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000014726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000014727$as_echo "$enable_static" >&6; }
14728
14729
14730
14731
14732fi
14733ac_ext=c
14734ac_cpp='$CPP $CPPFLAGS'
14735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14737ac_compiler_gnu=$ac_cv_c_compiler_gnu
14738
14739CC="$lt_save_CC"
14740
14741
14742ac_ext=cpp
14743ac_cpp='$CXXCPP $CPPFLAGS'
14744ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14745ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14746ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14747
14748archive_cmds_need_lc_CXX=no
14749allow_undefined_flag_CXX=
14750always_export_symbols_CXX=no
14751archive_expsym_cmds_CXX=
14752compiler_needs_object_CXX=no
14753export_dynamic_flag_spec_CXX=
14754hardcode_direct_CXX=no
14755hardcode_direct_absolute_CXX=no
14756hardcode_libdir_flag_spec_CXX=
14757hardcode_libdir_flag_spec_ld_CXX=
14758hardcode_libdir_separator_CXX=
14759hardcode_minus_L_CXX=no
14760hardcode_shlibpath_var_CXX=unsupported
14761hardcode_automatic_CXX=no
14762inherit_rpath_CXX=no
14763module_cmds_CXX=
14764module_expsym_cmds_CXX=
14765link_all_deplibs_CXX=unknown
14766old_archive_cmds_CXX=$old_archive_cmds
14767no_undefined_flag_CXX=
14768whole_archive_flag_spec_CXX=
14769enable_shared_with_static_runtimes_CXX=no
14770
14771# Source file extension for C++ test sources.
14772ac_ext=cpp
14773
14774# Object file extension for compiled C++ test sources.
14775objext=o
14776objext_CXX=$objext
14777
14778# No sense in running all these tests if we already determined that
14779# the CXX compiler isn't working. Some variables (like enable_shared)
14780# are currently assumed to apply to all compilers on this platform,
14781# and will be corrupted by setting them based on a non-working compiler.
14782if test "$_lt_caught_CXX_error" != yes; then
14783 # Code to be used in simple compile tests
14784 lt_simple_compile_test_code="int some_variable = 0;"
14785
14786 # Code to be used in simple link tests
14787 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14788
14789 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14790
14791
14792
14793
14794
14795
14796# If no C compiler was specified, use CC.
14797LTCC=${LTCC-"$CC"}
14798
14799# If no C compiler flags were specified, use CFLAGS.
14800LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14801
14802# Allow CC to be a program name with arguments.
14803compiler=$CC
14804
14805
14806 # save warnings/boilerplate of simple test code
14807 ac_outfile=conftest.$ac_objext
14808echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14809eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14810_lt_compiler_boilerplate=`cat conftest.err`
14811$RM conftest*
14812
14813 ac_outfile=conftest.$ac_objext
14814echo "$lt_simple_link_test_code" >conftest.$ac_ext
14815eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14816_lt_linker_boilerplate=`cat conftest.err`
14817$RM -r conftest*
14818
14819
14820 # Allow CC to be a program name with arguments.
14821 lt_save_CC=$CC
14822 lt_save_LD=$LD
14823 lt_save_GCC=$GCC
14824 GCC=$GXX
14825 lt_save_with_gnu_ld=$with_gnu_ld
14826 lt_save_path_LD=$lt_cv_path_LD
14827 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14828 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14829 else
14830 $as_unset lt_cv_prog_gnu_ld
14831 fi
14832 if test -n "${lt_cv_path_LDCXX+set}"; then
14833 lt_cv_path_LD=$lt_cv_path_LDCXX
14834 else
14835 $as_unset lt_cv_path_LD
14836 fi
14837 test -z "${LDCXX+set}" || LD=$LDCXX
14838 CC=${CXX-"c++"}
14839 compiler=$CC
14840 compiler_CXX=$CC
14841 for cc_temp in $compiler""; do
14842 case $cc_temp in
14843 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14844 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14845 \-*) ;;
14846 *) break;;
14847 esac
14848done
cristy18304f92009-11-22 15:48:26 +000014849cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000014850
14851
14852 if test -n "$compiler"; then
14853 # We don't want -fno-exception when compiling C++ code, so set the
14854 # no_builtin_flag separately
14855 if test "$GXX" = yes; then
14856 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14857 else
14858 lt_prog_compiler_no_builtin_flag_CXX=
14859 fi
14860
14861 if test "$GXX" = yes; then
14862 # Set up default GNU C++ configuration
14863
14864
14865
14866# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000014867if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014868 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14869else
14870 with_gnu_ld=no
14871fi
14872
14873ac_prog=ld
14874if test "$GCC" = yes; then
14875 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000014876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000014877$as_echo_n "checking for ld used by $CC... " >&6; }
14878 case $host in
14879 *-*-mingw*)
14880 # gcc leaves a trailing carriage return which upsets mingw
14881 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14882 *)
14883 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14884 esac
14885 case $ac_prog in
14886 # Accept absolute paths.
14887 [\\/]* | ?:[\\/]*)
14888 re_direlt='/[^/][^/]*/\.\./'
14889 # Canonicalize the pathname of ld
14890 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14891 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14892 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14893 done
14894 test -z "$LD" && LD="$ac_prog"
14895 ;;
14896 "")
14897 # If it fails, then pretend we aren't using GCC.
14898 ac_prog=ld
14899 ;;
14900 *)
14901 # If it is relative, then search for the first ld in PATH.
14902 with_gnu_ld=unknown
14903 ;;
14904 esac
14905elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000014906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014907$as_echo_n "checking for GNU ld... " >&6; }
14908else
cristy8b350f62009-11-15 23:12:43 +000014909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014910$as_echo_n "checking for non-GNU ld... " >&6; }
14911fi
cristy8b350f62009-11-15 23:12:43 +000014912if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014913 $as_echo_n "(cached) " >&6
14914else
14915 if test -z "$LD"; then
14916 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14917 for ac_dir in $PATH; do
14918 IFS="$lt_save_ifs"
14919 test -z "$ac_dir" && ac_dir=.
14920 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14921 lt_cv_path_LD="$ac_dir/$ac_prog"
14922 # Check to see if the program is GNU ld. I'd rather use --version,
14923 # but apparently some variants of GNU ld only accept -v.
14924 # Break only if it was the GNU/non-GNU ld that we prefer.
14925 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14926 *GNU* | *'with BFD'*)
14927 test "$with_gnu_ld" != no && break
14928 ;;
14929 *)
14930 test "$with_gnu_ld" != yes && break
14931 ;;
14932 esac
14933 fi
14934 done
14935 IFS="$lt_save_ifs"
14936else
14937 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14938fi
14939fi
14940
14941LD="$lt_cv_path_LD"
14942if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000014943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000014944$as_echo "$LD" >&6; }
14945else
cristy8b350f62009-11-15 23:12:43 +000014946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014947$as_echo "no" >&6; }
14948fi
cristy8b350f62009-11-15 23:12:43 +000014949test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014951$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014952if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014953 $as_echo_n "(cached) " >&6
14954else
14955 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14956case `$LD -v 2>&1 </dev/null` in
14957*GNU* | *'with BFD'*)
14958 lt_cv_prog_gnu_ld=yes
14959 ;;
14960*)
14961 lt_cv_prog_gnu_ld=no
14962 ;;
14963esac
14964fi
cristy8b350f62009-11-15 23:12:43 +000014965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014966$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14967with_gnu_ld=$lt_cv_prog_gnu_ld
14968
14969
14970
14971
14972
14973
14974
14975 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14976 # archiving commands below assume that GNU ld is being used.
14977 if test "$with_gnu_ld" = yes; then
14978 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14979 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'
14980
14981 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14982 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14983
14984 # If archive_cmds runs LD, not CC, wlarc should be empty
14985 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14986 # investigate it a little bit more. (MM)
14987 wlarc='${wl}'
14988
14989 # ancient GNU ld didn't support --whole-archive et. al.
14990 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14991 $GREP 'no-whole-archive' > /dev/null; then
14992 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14993 else
14994 whole_archive_flag_spec_CXX=
14995 fi
14996 else
14997 with_gnu_ld=no
14998 wlarc=
14999
15000 # A generic and very simple default shared library creation
15001 # command for GNU C++ for the case where it uses the native
15002 # linker, instead of GNU ld. If possible, this setting should
15003 # overridden to take advantage of the native linker features on
15004 # the platform it is being used on.
15005 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15006 fi
15007
15008 # Commands to make compiler produce verbose output that lists
15009 # what "hidden" libraries, object files and flags are used when
15010 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015011 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015012
15013 else
15014 GXX=no
15015 with_gnu_ld=no
15016 wlarc=
15017 fi
15018
15019 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000015020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015021$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15022 ld_shlibs_CXX=yes
15023 case $host_os in
15024 aix3*)
15025 # FIXME: insert proper C++ library support
15026 ld_shlibs_CXX=no
15027 ;;
15028 aix[4-9]*)
15029 if test "$host_cpu" = ia64; then
15030 # On IA64, the linker does run time linking by default, so we don't
15031 # have to do anything special.
15032 aix_use_runtimelinking=no
15033 exp_sym_flag='-Bexport'
15034 no_entry_flag=""
15035 else
15036 aix_use_runtimelinking=no
15037
15038 # Test if we are trying to use run time linking or normal
15039 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15040 # need to do runtime linking.
15041 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15042 for ld_flag in $LDFLAGS; do
15043 case $ld_flag in
15044 *-brtl*)
15045 aix_use_runtimelinking=yes
15046 break
15047 ;;
15048 esac
15049 done
15050 ;;
15051 esac
15052
15053 exp_sym_flag='-bexport'
15054 no_entry_flag='-bnoentry'
15055 fi
15056
15057 # When large executables or shared objects are built, AIX ld can
15058 # have problems creating the table of contents. If linking a library
15059 # or program results in "error TOC overflow" add -mminimal-toc to
15060 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15061 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15062
15063 archive_cmds_CXX=''
15064 hardcode_direct_CXX=yes
15065 hardcode_direct_absolute_CXX=yes
15066 hardcode_libdir_separator_CXX=':'
15067 link_all_deplibs_CXX=yes
15068 file_list_spec_CXX='${wl}-f,'
15069
15070 if test "$GXX" = yes; then
15071 case $host_os in aix4.[012]|aix4.[012].*)
15072 # We only want to do this on AIX 4.2 and lower, the check
15073 # below for broken collect2 doesn't work under 4.3+
15074 collect2name=`${CC} -print-prog-name=collect2`
15075 if test -f "$collect2name" &&
15076 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15077 then
15078 # We have reworked collect2
15079 :
15080 else
15081 # We have old collect2
15082 hardcode_direct_CXX=unsupported
15083 # It fails to find uninstalled libraries when the uninstalled
15084 # path is not listed in the libpath. Setting hardcode_minus_L
15085 # to unsupported forces relinking
15086 hardcode_minus_L_CXX=yes
15087 hardcode_libdir_flag_spec_CXX='-L$libdir'
15088 hardcode_libdir_separator_CXX=
15089 fi
15090 esac
15091 shared_flag='-shared'
15092 if test "$aix_use_runtimelinking" = yes; then
15093 shared_flag="$shared_flag "'${wl}-G'
15094 fi
15095 else
15096 # not using gcc
15097 if test "$host_cpu" = ia64; then
15098 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15099 # chokes on -Wl,-G. The following line is correct:
15100 shared_flag='-G'
15101 else
15102 if test "$aix_use_runtimelinking" = yes; then
15103 shared_flag='${wl}-G'
15104 else
15105 shared_flag='${wl}-bM:SRE'
15106 fi
15107 fi
15108 fi
15109
15110 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15111 # It seems that -bexpall does not export symbols beginning with
15112 # underscore (_), so it is better to generate a list of symbols to
15113 # export.
15114 always_export_symbols_CXX=yes
15115 if test "$aix_use_runtimelinking" = yes; then
15116 # Warning - without using the other runtime loading flags (-brtl),
15117 # -berok will link without error, but may produce a broken library.
15118 allow_undefined_flag_CXX='-berok'
15119 # Determine the default libpath from the value encoded in an empty
15120 # executable.
cristy8b350f62009-11-15 23:12:43 +000015121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015122/* end confdefs.h. */
15123
15124int
15125main ()
15126{
15127
15128 ;
15129 return 0;
15130}
15131_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015132if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015133
15134lt_aix_libpath_sed='
15135 /Import File Strings/,/^$/ {
15136 /^0/ {
15137 s/^0 *\(.*\)$/\1/
15138 p
15139 }
15140 }'
15141aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15142# Check for a 64-bit object if we didn't find anything.
15143if test -z "$aix_libpath"; then
15144 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15145fi
cristy3ed852e2009-09-05 21:47:34 +000015146fi
cristy8b350f62009-11-15 23:12:43 +000015147rm -f core conftest.err conftest.$ac_objext \
15148 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015149if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15150
15151 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15152
cristy18304f92009-11-22 15:48:26 +000015153 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 +000015154 else
15155 if test "$host_cpu" = ia64; then
15156 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15157 allow_undefined_flag_CXX="-z nodefs"
15158 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"
15159 else
15160 # Determine the default libpath from the value encoded in an
15161 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000015162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015163/* end confdefs.h. */
15164
15165int
15166main ()
15167{
15168
15169 ;
15170 return 0;
15171}
15172_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015173if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015174
15175lt_aix_libpath_sed='
15176 /Import File Strings/,/^$/ {
15177 /^0/ {
15178 s/^0 *\(.*\)$/\1/
15179 p
15180 }
15181 }'
15182aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15183# Check for a 64-bit object if we didn't find anything.
15184if test -z "$aix_libpath"; then
15185 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15186fi
cristy3ed852e2009-09-05 21:47:34 +000015187fi
cristy8b350f62009-11-15 23:12:43 +000015188rm -f core conftest.err conftest.$ac_objext \
15189 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015190if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15191
15192 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15193 # Warning - without using the other run time loading flags,
15194 # -berok will link without error, but may produce a broken library.
15195 no_undefined_flag_CXX=' ${wl}-bernotok'
15196 allow_undefined_flag_CXX=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000015197 # Exported symbols can be pulled into shared objects from archives
15198 whole_archive_flag_spec_CXX='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000015199 archive_cmds_need_lc_CXX=yes
15200 # This is similar to how AIX traditionally builds its shared
15201 # libraries.
15202 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'
15203 fi
15204 fi
15205 ;;
15206
15207 beos*)
15208 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15209 allow_undefined_flag_CXX=unsupported
15210 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15211 # support --undefined. This deserves some investigation. FIXME
15212 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15213 else
15214 ld_shlibs_CXX=no
15215 fi
15216 ;;
15217
15218 chorus*)
15219 case $cc_basename in
15220 *)
15221 # FIXME: insert proper C++ library support
15222 ld_shlibs_CXX=no
15223 ;;
15224 esac
15225 ;;
15226
15227 cygwin* | mingw* | pw32* | cegcc*)
15228 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15229 # as there is no search path for DLLs.
15230 hardcode_libdir_flag_spec_CXX='-L$libdir'
15231 allow_undefined_flag_CXX=unsupported
15232 always_export_symbols_CXX=no
15233 enable_shared_with_static_runtimes_CXX=yes
15234
15235 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15236 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'
15237 # If the export-symbols file already is a .def file (1st line
15238 # is EXPORTS), use it as is; otherwise, prepend...
15239 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15240 cp $export_symbols $output_objdir/$soname.def;
15241 else
15242 echo EXPORTS > $output_objdir/$soname.def;
15243 cat $export_symbols >> $output_objdir/$soname.def;
15244 fi~
15245 $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'
15246 else
15247 ld_shlibs_CXX=no
15248 fi
15249 ;;
15250 darwin* | rhapsody*)
15251
15252
15253 archive_cmds_need_lc_CXX=no
15254 hardcode_direct_CXX=no
15255 hardcode_automatic_CXX=yes
15256 hardcode_shlibpath_var_CXX=unsupported
cristy18304f92009-11-22 15:48:26 +000015257 whole_archive_flag_spec_CXX=''
cristy3ed852e2009-09-05 21:47:34 +000015258 link_all_deplibs_CXX=yes
15259 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15260 case $cc_basename in
15261 ifort*) _lt_dar_can_shared=yes ;;
15262 *) _lt_dar_can_shared=$GCC ;;
15263 esac
15264 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000015265 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000015266 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}"
15267 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15268 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}"
15269 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}"
15270 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15271 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}"
15272 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}"
15273 fi
15274
15275 else
15276 ld_shlibs_CXX=no
15277 fi
15278
15279 ;;
15280
15281 dgux*)
15282 case $cc_basename in
15283 ec++*)
15284 # FIXME: insert proper C++ library support
15285 ld_shlibs_CXX=no
15286 ;;
15287 ghcx*)
15288 # Green Hills C++ Compiler
15289 # FIXME: insert proper C++ library support
15290 ld_shlibs_CXX=no
15291 ;;
15292 *)
15293 # FIXME: insert proper C++ library support
15294 ld_shlibs_CXX=no
15295 ;;
15296 esac
15297 ;;
15298
15299 freebsd[12]*)
15300 # C++ shared libraries reported to be fairly broken before
15301 # switch to ELF
15302 ld_shlibs_CXX=no
15303 ;;
15304
15305 freebsd-elf*)
15306 archive_cmds_need_lc_CXX=no
15307 ;;
15308
15309 freebsd* | dragonfly*)
15310 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15311 # conventions
15312 ld_shlibs_CXX=yes
15313 ;;
15314
15315 gnu*)
15316 ;;
15317
15318 hpux9*)
15319 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15320 hardcode_libdir_separator_CXX=:
15321 export_dynamic_flag_spec_CXX='${wl}-E'
15322 hardcode_direct_CXX=yes
15323 hardcode_minus_L_CXX=yes # Not in the search PATH,
15324 # but as the default
15325 # location of the library.
15326
15327 case $cc_basename in
15328 CC*)
15329 # FIXME: insert proper C++ library support
15330 ld_shlibs_CXX=no
15331 ;;
15332 aCC*)
15333 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'
15334 # Commands to make compiler produce verbose output that lists
15335 # what "hidden" libraries, object files and flags are used when
15336 # linking a shared library.
15337 #
15338 # There doesn't appear to be a way to prevent this compiler from
15339 # explicitly linking system object files so we need to strip them
15340 # from the output so that they don't get included in the library
15341 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015342 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 +000015343 ;;
15344 *)
15345 if test "$GXX" = yes; then
15346 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'
15347 else
15348 # FIXME: insert proper C++ library support
15349 ld_shlibs_CXX=no
15350 fi
15351 ;;
15352 esac
15353 ;;
15354
15355 hpux10*|hpux11*)
15356 if test $with_gnu_ld = no; then
15357 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15358 hardcode_libdir_separator_CXX=:
15359
15360 case $host_cpu in
15361 hppa*64*|ia64*)
15362 ;;
15363 *)
15364 export_dynamic_flag_spec_CXX='${wl}-E'
15365 ;;
15366 esac
15367 fi
15368 case $host_cpu in
15369 hppa*64*|ia64*)
15370 hardcode_direct_CXX=no
15371 hardcode_shlibpath_var_CXX=no
15372 ;;
15373 *)
15374 hardcode_direct_CXX=yes
15375 hardcode_direct_absolute_CXX=yes
15376 hardcode_minus_L_CXX=yes # Not in the search PATH,
15377 # but as the default
15378 # location of the library.
15379 ;;
15380 esac
15381
15382 case $cc_basename in
15383 CC*)
15384 # FIXME: insert proper C++ library support
15385 ld_shlibs_CXX=no
15386 ;;
15387 aCC*)
15388 case $host_cpu in
15389 hppa*64*)
15390 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15391 ;;
15392 ia64*)
15393 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15394 ;;
15395 *)
15396 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15397 ;;
15398 esac
15399 # Commands to make compiler produce verbose output that lists
15400 # what "hidden" libraries, object files and flags are used when
15401 # linking a shared library.
15402 #
15403 # There doesn't appear to be a way to prevent this compiler from
15404 # explicitly linking system object files so we need to strip them
15405 # from the output so that they don't get included in the library
15406 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015407 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 +000015408 ;;
15409 *)
15410 if test "$GXX" = yes; then
15411 if test $with_gnu_ld = no; then
15412 case $host_cpu in
15413 hppa*64*)
15414 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15415 ;;
15416 ia64*)
15417 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15418 ;;
15419 *)
15420 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'
15421 ;;
15422 esac
15423 fi
15424 else
15425 # FIXME: insert proper C++ library support
15426 ld_shlibs_CXX=no
15427 fi
15428 ;;
15429 esac
15430 ;;
15431
15432 interix[3-9]*)
15433 hardcode_direct_CXX=no
15434 hardcode_shlibpath_var_CXX=no
15435 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15436 export_dynamic_flag_spec_CXX='${wl}-E'
15437 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15438 # Instead, shared libraries are loaded at an image base (0x10000000 by
15439 # default) and relocated if they conflict, which is a slow very memory
15440 # consuming and fragmenting process. To avoid this, we pick a random,
15441 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15442 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15443 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'
15444 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'
15445 ;;
15446 irix5* | irix6*)
15447 case $cc_basename in
15448 CC*)
15449 # SGI C++
cristy18304f92009-11-22 15:48:26 +000015450 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 +000015451
15452 # Archives containing C++ object files must be created using
15453 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15454 # necessary to make sure instantiated templates are included
15455 # in the archive.
15456 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15457 ;;
15458 *)
15459 if test "$GXX" = yes; then
15460 if test "$with_gnu_ld" = no; then
cristy18304f92009-11-22 15:48:26 +000015461 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 +000015462 else
cristy18304f92009-11-22 15:48:26 +000015463 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 +000015464 fi
15465 fi
15466 link_all_deplibs_CXX=yes
15467 ;;
15468 esac
15469 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15470 hardcode_libdir_separator_CXX=:
15471 inherit_rpath_CXX=yes
15472 ;;
15473
cristy18304f92009-11-22 15:48:26 +000015474 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000015475 case $cc_basename in
15476 KCC*)
15477 # Kuck and Associates, Inc. (KAI) C++ Compiler
15478
15479 # KCC will only create a shared library if the output file
15480 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15481 # to its proper name (with version) after linking.
15482 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'
15483 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'
15484 # Commands to make compiler produce verbose output that lists
15485 # what "hidden" libraries, object files and flags are used when
15486 # linking a shared library.
15487 #
15488 # There doesn't appear to be a way to prevent this compiler from
15489 # explicitly linking system object files so we need to strip them
15490 # from the output so that they don't get included in the library
15491 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015492 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 +000015493
15494 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15495 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15496
15497 # Archives containing C++ object files must be created using
15498 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15499 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15500 ;;
15501 icpc* | ecpc* )
15502 # Intel C++
15503 with_gnu_ld=yes
15504 # version 8.0 and above of icpc choke on multiply defined symbols
15505 # if we add $predep_objects and $postdep_objects, however 7.1 and
15506 # earlier do not add the objects themselves.
15507 case `$CC -V 2>&1` in
15508 *"Version 7."*)
15509 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15510 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'
15511 ;;
15512 *) # Version 8.0 or newer
15513 tmp_idyn=
15514 case $host_cpu in
15515 ia64*) tmp_idyn=' -i_dynamic';;
15516 esac
15517 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15518 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'
15519 ;;
15520 esac
15521 archive_cmds_need_lc_CXX=no
15522 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15523 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15524 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15525 ;;
15526 pgCC* | pgcpp*)
15527 # Portland Group C++ compiler
15528 case `$CC -V` in
15529 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15530 prelink_cmds_CXX='tpldir=Template.dir~
15531 rm -rf $tpldir~
15532 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15533 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15534 old_archive_cmds_CXX='tpldir=Template.dir~
15535 rm -rf $tpldir~
15536 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15537 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15538 $RANLIB $oldlib'
15539 archive_cmds_CXX='tpldir=Template.dir~
15540 rm -rf $tpldir~
15541 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15542 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15543 archive_expsym_cmds_CXX='tpldir=Template.dir~
15544 rm -rf $tpldir~
15545 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15546 $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'
15547 ;;
15548 *) # Version 6 will use weak symbols
15549 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15550 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'
15551 ;;
15552 esac
15553
15554 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15555 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy18304f92009-11-22 15:48:26 +000015556 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 +000015557 ;;
15558 cxx*)
15559 # Compaq C++
15560 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15561 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'
15562
15563 runpath_var=LD_RUN_PATH
15564 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15565 hardcode_libdir_separator_CXX=:
15566
15567 # Commands to make compiler produce verbose output that lists
15568 # what "hidden" libraries, object files and flags are used when
15569 # linking a shared library.
15570 #
15571 # There doesn't appear to be a way to prevent this compiler from
15572 # explicitly linking system object files so we need to strip them
15573 # from the output so that they don't get included in the library
15574 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015575 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 +000015576 ;;
cristy18304f92009-11-22 15:48:26 +000015577 xl*)
cristy3ed852e2009-09-05 21:47:34 +000015578 # IBM XL 8.0 on PPC, with GNU ld
15579 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15580 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15581 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15582 if test "x$supports_anon_versioning" = xyes; then
15583 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15584 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15585 echo "local: *; };" >> $output_objdir/$libname.ver~
15586 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15587 fi
15588 ;;
15589 *)
15590 case `$CC -V 2>&1 | sed 5q` in
15591 *Sun\ C*)
15592 # Sun C++ 5.9
15593 no_undefined_flag_CXX=' -zdefs'
15594 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15595 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'
15596 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy18304f92009-11-22 15:48:26 +000015597 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 +000015598 compiler_needs_object_CXX=yes
15599
15600 # Not sure whether something based on
15601 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15602 # would be better.
cristy18304f92009-11-22 15:48:26 +000015603 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000015604
15605 # Archives containing C++ object files must be created using
15606 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15607 # necessary to make sure instantiated templates are included
15608 # in the archive.
15609 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15610 ;;
15611 esac
15612 ;;
15613 esac
15614 ;;
15615
15616 lynxos*)
15617 # FIXME: insert proper C++ library support
15618 ld_shlibs_CXX=no
15619 ;;
15620
15621 m88k*)
15622 # FIXME: insert proper C++ library support
15623 ld_shlibs_CXX=no
15624 ;;
15625
15626 mvs*)
15627 case $cc_basename in
15628 cxx*)
15629 # FIXME: insert proper C++ library support
15630 ld_shlibs_CXX=no
15631 ;;
15632 *)
15633 # FIXME: insert proper C++ library support
15634 ld_shlibs_CXX=no
15635 ;;
15636 esac
15637 ;;
15638
15639 netbsd*)
15640 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15641 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15642 wlarc=
15643 hardcode_libdir_flag_spec_CXX='-R$libdir'
15644 hardcode_direct_CXX=yes
15645 hardcode_shlibpath_var_CXX=no
15646 fi
15647 # Workaround some broken pre-1.5 toolchains
15648 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15649 ;;
15650
15651 *nto* | *qnx*)
15652 ld_shlibs_CXX=yes
15653 ;;
15654
15655 openbsd2*)
15656 # C++ shared libraries are fairly broken
15657 ld_shlibs_CXX=no
15658 ;;
15659
15660 openbsd*)
15661 if test -f /usr/libexec/ld.so; then
15662 hardcode_direct_CXX=yes
15663 hardcode_shlibpath_var_CXX=no
15664 hardcode_direct_absolute_CXX=yes
15665 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15666 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15667 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15668 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15669 export_dynamic_flag_spec_CXX='${wl}-E'
15670 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15671 fi
cristy18304f92009-11-22 15:48:26 +000015672 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000015673 else
15674 ld_shlibs_CXX=no
15675 fi
15676 ;;
15677
15678 osf3* | osf4* | osf5*)
15679 case $cc_basename in
15680 KCC*)
15681 # Kuck and Associates, Inc. (KAI) C++ Compiler
15682
15683 # KCC will only create a shared library if the output file
15684 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15685 # to its proper name (with version) after linking.
15686 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'
15687
15688 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15689 hardcode_libdir_separator_CXX=:
15690
15691 # Archives containing C++ object files must be created using
15692 # the KAI C++ compiler.
15693 case $host in
15694 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15695 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15696 esac
15697 ;;
15698 RCC*)
15699 # Rational C++ 2.4.1
15700 # FIXME: insert proper C++ library support
15701 ld_shlibs_CXX=no
15702 ;;
15703 cxx*)
15704 case $host in
15705 osf3*)
15706 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000015707 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 +000015708 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15709 ;;
15710 *)
15711 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000015712 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 +000015713 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15714 echo "-hidden">> $lib.exp~
cristy18304f92009-11-22 15:48:26 +000015715 $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 +000015716 $RM $lib.exp'
15717 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15718 ;;
15719 esac
15720
15721 hardcode_libdir_separator_CXX=:
15722
15723 # Commands to make compiler produce verbose output that lists
15724 # what "hidden" libraries, object files and flags are used when
15725 # linking a shared library.
15726 #
15727 # There doesn't appear to be a way to prevent this compiler from
15728 # explicitly linking system object files so we need to strip them
15729 # from the output so that they don't get included in the library
15730 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015731 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 +000015732 ;;
15733 *)
15734 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15735 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15736 case $host in
15737 osf3*)
cristy18304f92009-11-22 15:48:26 +000015738 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 +000015739 ;;
15740 *)
cristy18304f92009-11-22 15:48:26 +000015741 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 +000015742 ;;
15743 esac
15744
15745 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15746 hardcode_libdir_separator_CXX=:
15747
15748 # Commands to make compiler produce verbose output that lists
15749 # what "hidden" libraries, object files and flags are used when
15750 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015751 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015752
15753 else
15754 # FIXME: insert proper C++ library support
15755 ld_shlibs_CXX=no
15756 fi
15757 ;;
15758 esac
15759 ;;
15760
15761 psos*)
15762 # FIXME: insert proper C++ library support
15763 ld_shlibs_CXX=no
15764 ;;
15765
15766 sunos4*)
15767 case $cc_basename in
15768 CC*)
15769 # Sun C++ 4.x
15770 # FIXME: insert proper C++ library support
15771 ld_shlibs_CXX=no
15772 ;;
15773 lcc*)
15774 # Lucid
15775 # FIXME: insert proper C++ library support
15776 ld_shlibs_CXX=no
15777 ;;
15778 *)
15779 # FIXME: insert proper C++ library support
15780 ld_shlibs_CXX=no
15781 ;;
15782 esac
15783 ;;
15784
15785 solaris*)
15786 case $cc_basename in
15787 CC*)
15788 # Sun C++ 4.2, 5.x and Centerline C++
15789 archive_cmds_need_lc_CXX=yes
15790 no_undefined_flag_CXX=' -zdefs'
15791 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15792 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15793 $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'
15794
15795 hardcode_libdir_flag_spec_CXX='-R$libdir'
15796 hardcode_shlibpath_var_CXX=no
15797 case $host_os in
15798 solaris2.[0-5] | solaris2.[0-5].*) ;;
15799 *)
15800 # The compiler driver will combine and reorder linker options,
15801 # but understands `-z linker_flag'.
15802 # Supported since Solaris 2.6 (maybe 2.5.1?)
15803 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15804 ;;
15805 esac
15806 link_all_deplibs_CXX=yes
15807
cristy18304f92009-11-22 15:48:26 +000015808 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000015809
15810 # Archives containing C++ object files must be created using
15811 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15812 # necessary to make sure instantiated templates are included
15813 # in the archive.
15814 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15815 ;;
15816 gcx*)
15817 # Green Hills C++ Compiler
15818 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15819
15820 # The C++ compiler must be used to create the archive.
15821 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15822 ;;
15823 *)
15824 # GNU C++ compiler with Solaris linker
15825 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15826 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15827 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15828 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15829 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15830 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15831
15832 # Commands to make compiler produce verbose output that lists
15833 # what "hidden" libraries, object files and flags are used when
15834 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015835 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015836 else
15837 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15838 # platform.
15839 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15840 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15841 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15842
15843 # Commands to make compiler produce verbose output that lists
15844 # what "hidden" libraries, object files and flags are used when
15845 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015846 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015847 fi
15848
15849 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15850 case $host_os in
15851 solaris2.[0-5] | solaris2.[0-5].*) ;;
15852 *)
15853 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15854 ;;
15855 esac
15856 fi
15857 ;;
15858 esac
15859 ;;
15860
15861 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15862 no_undefined_flag_CXX='${wl}-z,text'
15863 archive_cmds_need_lc_CXX=no
15864 hardcode_shlibpath_var_CXX=no
15865 runpath_var='LD_RUN_PATH'
15866
15867 case $cc_basename in
15868 CC*)
15869 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15870 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15871 ;;
15872 *)
15873 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15874 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15875 ;;
15876 esac
15877 ;;
15878
15879 sysv5* | sco3.2v5* | sco5v6*)
15880 # Note: We can NOT use -z defs as we might desire, because we do not
15881 # link with -lc, and that would cause any symbols used from libc to
15882 # always be unresolved, which means just about no library would
15883 # ever link correctly. If we're not using GNU ld we use -z text
15884 # though, which does catch some bad symbols but isn't as heavy-handed
15885 # as -z defs.
15886 no_undefined_flag_CXX='${wl}-z,text'
15887 allow_undefined_flag_CXX='${wl}-z,nodefs'
15888 archive_cmds_need_lc_CXX=no
15889 hardcode_shlibpath_var_CXX=no
15890 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15891 hardcode_libdir_separator_CXX=':'
15892 link_all_deplibs_CXX=yes
15893 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15894 runpath_var='LD_RUN_PATH'
15895
15896 case $cc_basename in
15897 CC*)
15898 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15899 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15900 ;;
15901 *)
15902 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15903 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15904 ;;
15905 esac
15906 ;;
15907
15908 tandem*)
15909 case $cc_basename in
15910 NCC*)
15911 # NonStop-UX NCC 3.20
15912 # FIXME: insert proper C++ library support
15913 ld_shlibs_CXX=no
15914 ;;
15915 *)
15916 # FIXME: insert proper C++ library support
15917 ld_shlibs_CXX=no
15918 ;;
15919 esac
15920 ;;
15921
15922 vxworks*)
15923 # FIXME: insert proper C++ library support
15924 ld_shlibs_CXX=no
15925 ;;
15926
15927 *)
15928 # FIXME: insert proper C++ library support
15929 ld_shlibs_CXX=no
15930 ;;
15931 esac
15932
cristy8b350f62009-11-15 23:12:43 +000015933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000015934$as_echo "$ld_shlibs_CXX" >&6; }
15935 test "$ld_shlibs_CXX" = no && can_build_shared=no
15936
15937 GCC_CXX="$GXX"
15938 LD_CXX="$LD"
15939
15940 ## CAVEAT EMPTOR:
15941 ## There is no encapsulation within the following macros, do not change
15942 ## the running order or otherwise move them around unless you know exactly
15943 ## what you are doing...
15944 # Dependencies to place before and after the object being linked:
15945predep_objects_CXX=
15946postdep_objects_CXX=
15947predeps_CXX=
15948postdeps_CXX=
15949compiler_lib_search_path_CXX=
15950
15951cat > conftest.$ac_ext <<_LT_EOF
15952class Foo
15953{
15954public:
15955 Foo (void) { a = 0; }
15956private:
15957 int a;
15958};
15959_LT_EOF
15960
cristy8b350f62009-11-15 23:12:43 +000015961if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015962 (eval $ac_compile) 2>&5
15963 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15965 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000015966 # Parse the compiler output and extract the necessary
15967 # objects, libraries and library flags.
15968
15969 # Sentinel used to keep track of whether or not we are before
15970 # the conftest object file.
15971 pre_test_object_deps_done=no
15972
15973 for p in `eval "$output_verbose_link_cmd"`; do
15974 case $p in
15975
15976 -L* | -R* | -l*)
15977 # Some compilers place space between "-{L,R}" and the path.
15978 # Remove the space.
15979 if test $p = "-L" ||
15980 test $p = "-R"; then
15981 prev=$p
15982 continue
15983 else
15984 prev=
15985 fi
15986
15987 if test "$pre_test_object_deps_done" = no; then
15988 case $p in
15989 -L* | -R*)
15990 # Internal compiler library paths should come after those
15991 # provided the user. The postdeps already come after the
15992 # user supplied libs so there is no need to process them.
15993 if test -z "$compiler_lib_search_path_CXX"; then
15994 compiler_lib_search_path_CXX="${prev}${p}"
15995 else
15996 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15997 fi
15998 ;;
15999 # The "-l" case would never come before the object being
16000 # linked, so don't bother handling this case.
16001 esac
16002 else
16003 if test -z "$postdeps_CXX"; then
16004 postdeps_CXX="${prev}${p}"
16005 else
16006 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16007 fi
16008 fi
16009 ;;
16010
16011 *.$objext)
16012 # This assumes that the test object file only shows up
16013 # once in the compiler output.
16014 if test "$p" = "conftest.$objext"; then
16015 pre_test_object_deps_done=yes
16016 continue
16017 fi
16018
16019 if test "$pre_test_object_deps_done" = no; then
16020 if test -z "$predep_objects_CXX"; then
16021 predep_objects_CXX="$p"
16022 else
16023 predep_objects_CXX="$predep_objects_CXX $p"
16024 fi
16025 else
16026 if test -z "$postdep_objects_CXX"; then
16027 postdep_objects_CXX="$p"
16028 else
16029 postdep_objects_CXX="$postdep_objects_CXX $p"
16030 fi
16031 fi
16032 ;;
16033
16034 *) ;; # Ignore the rest.
16035
16036 esac
16037 done
16038
16039 # Clean up.
16040 rm -f a.out a.exe
16041else
16042 echo "libtool.m4: error: problem compiling CXX test program"
16043fi
16044
16045$RM -f confest.$objext
16046
16047# PORTME: override above test on systems where it is broken
16048case $host_os in
16049interix[3-9]*)
16050 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16051 # hack all around it, let's just trust "g++" to DTRT.
16052 predep_objects_CXX=
16053 postdep_objects_CXX=
16054 postdeps_CXX=
16055 ;;
16056
16057linux*)
16058 case `$CC -V 2>&1 | sed 5q` in
16059 *Sun\ C*)
16060 # Sun C++ 5.9
16061
16062 # The more standards-conforming stlport4 library is
16063 # incompatible with the Cstd library. Avoid specifying
16064 # it if it's in CXXFLAGS. Ignore libCrun as
16065 # -library=stlport4 depends on it.
16066 case " $CXX $CXXFLAGS " in
16067 *" -library=stlport4 "*)
16068 solaris_use_stlport4=yes
16069 ;;
16070 esac
16071
16072 if test "$solaris_use_stlport4" != yes; then
16073 postdeps_CXX='-library=Cstd -library=Crun'
16074 fi
16075 ;;
16076 esac
16077 ;;
16078
16079solaris*)
16080 case $cc_basename in
16081 CC*)
16082 # The more standards-conforming stlport4 library is
16083 # incompatible with the Cstd library. Avoid specifying
16084 # it if it's in CXXFLAGS. Ignore libCrun as
16085 # -library=stlport4 depends on it.
16086 case " $CXX $CXXFLAGS " in
16087 *" -library=stlport4 "*)
16088 solaris_use_stlport4=yes
16089 ;;
16090 esac
16091
16092 # Adding this requires a known-good setup of shared libraries for
16093 # Sun compiler versions before 5.6, else PIC objects from an old
16094 # archive will be linked into the output, leading to subtle bugs.
16095 if test "$solaris_use_stlport4" != yes; then
16096 postdeps_CXX='-library=Cstd -library=Crun'
16097 fi
16098 ;;
16099 esac
16100 ;;
16101esac
16102
16103
16104case " $postdeps_CXX " in
16105*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16106esac
16107 compiler_lib_search_dirs_CXX=
16108if test -n "${compiler_lib_search_path_CXX}"; then
16109 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16110fi
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142 lt_prog_compiler_wl_CXX=
16143lt_prog_compiler_pic_CXX=
16144lt_prog_compiler_static_CXX=
16145
cristy8b350f62009-11-15 23:12:43 +000016146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016147$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16148
16149 # C++ specific cases for pic, static, wl, etc.
16150 if test "$GXX" = yes; then
16151 lt_prog_compiler_wl_CXX='-Wl,'
16152 lt_prog_compiler_static_CXX='-static'
16153
16154 case $host_os in
16155 aix*)
16156 # All AIX code is PIC.
16157 if test "$host_cpu" = ia64; then
16158 # AIX 5 now supports IA64 processor
16159 lt_prog_compiler_static_CXX='-Bstatic'
16160 fi
16161 ;;
16162
16163 amigaos*)
16164 case $host_cpu in
16165 powerpc)
16166 # see comment about AmigaOS4 .so support
16167 lt_prog_compiler_pic_CXX='-fPIC'
16168 ;;
16169 m68k)
16170 # FIXME: we need at least 68020 code to build shared libraries, but
16171 # adding the `-m68020' flag to GCC prevents building anything better,
16172 # like `-m68040'.
16173 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16174 ;;
16175 esac
16176 ;;
16177
16178 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16179 # PIC is the default for these OSes.
16180 ;;
16181 mingw* | cygwin* | os2* | pw32* | cegcc*)
16182 # This hack is so that the source file can tell whether it is being
16183 # built for inclusion in a dll (and should export symbols for example).
16184 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16185 # (--disable-auto-import) libraries
16186 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16187 ;;
16188 darwin* | rhapsody*)
16189 # PIC is the default on this platform
16190 # Common symbols not allowed in MH_DYLIB files
16191 lt_prog_compiler_pic_CXX='-fno-common'
16192 ;;
16193 *djgpp*)
16194 # DJGPP does not support shared libraries at all
16195 lt_prog_compiler_pic_CXX=
16196 ;;
16197 interix[3-9]*)
16198 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16199 # Instead, we relocate shared libraries at runtime.
16200 ;;
16201 sysv4*MP*)
16202 if test -d /usr/nec; then
16203 lt_prog_compiler_pic_CXX=-Kconform_pic
16204 fi
16205 ;;
16206 hpux*)
16207 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16208 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16209 # sets the default TLS model and affects inlining.
16210 case $host_cpu in
16211 hppa*64*)
16212 ;;
16213 *)
16214 lt_prog_compiler_pic_CXX='-fPIC'
16215 ;;
16216 esac
16217 ;;
16218 *qnx* | *nto*)
16219 # QNX uses GNU C++, but need to define -shared option too, otherwise
16220 # it will coredump.
16221 lt_prog_compiler_pic_CXX='-fPIC -shared'
16222 ;;
16223 *)
16224 lt_prog_compiler_pic_CXX='-fPIC'
16225 ;;
16226 esac
16227 else
16228 case $host_os in
16229 aix[4-9]*)
16230 # All AIX code is PIC.
16231 if test "$host_cpu" = ia64; then
16232 # AIX 5 now supports IA64 processor
16233 lt_prog_compiler_static_CXX='-Bstatic'
16234 else
16235 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16236 fi
16237 ;;
16238 chorus*)
16239 case $cc_basename in
16240 cxch68*)
16241 # Green Hills C++ Compiler
16242 # _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"
16243 ;;
16244 esac
16245 ;;
16246 dgux*)
16247 case $cc_basename in
16248 ec++*)
16249 lt_prog_compiler_pic_CXX='-KPIC'
16250 ;;
16251 ghcx*)
16252 # Green Hills C++ Compiler
16253 lt_prog_compiler_pic_CXX='-pic'
16254 ;;
16255 *)
16256 ;;
16257 esac
16258 ;;
16259 freebsd* | dragonfly*)
16260 # FreeBSD uses GNU C++
16261 ;;
16262 hpux9* | hpux10* | hpux11*)
16263 case $cc_basename in
16264 CC*)
16265 lt_prog_compiler_wl_CXX='-Wl,'
16266 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16267 if test "$host_cpu" != ia64; then
16268 lt_prog_compiler_pic_CXX='+Z'
16269 fi
16270 ;;
16271 aCC*)
16272 lt_prog_compiler_wl_CXX='-Wl,'
16273 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16274 case $host_cpu in
16275 hppa*64*|ia64*)
16276 # +Z the default
16277 ;;
16278 *)
16279 lt_prog_compiler_pic_CXX='+Z'
16280 ;;
16281 esac
16282 ;;
16283 *)
16284 ;;
16285 esac
16286 ;;
16287 interix*)
16288 # This is c89, which is MS Visual C++ (no shared libs)
16289 # Anyone wants to do a port?
16290 ;;
16291 irix5* | irix6* | nonstopux*)
16292 case $cc_basename in
16293 CC*)
16294 lt_prog_compiler_wl_CXX='-Wl,'
16295 lt_prog_compiler_static_CXX='-non_shared'
16296 # CC pic flag -KPIC is the default.
16297 ;;
16298 *)
16299 ;;
16300 esac
16301 ;;
cristy18304f92009-11-22 15:48:26 +000016302 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016303 case $cc_basename in
16304 KCC*)
16305 # KAI C++ Compiler
16306 lt_prog_compiler_wl_CXX='--backend -Wl,'
16307 lt_prog_compiler_pic_CXX='-fPIC'
16308 ;;
16309 ecpc* )
16310 # old Intel C++ for x86_64 which still supported -KPIC.
16311 lt_prog_compiler_wl_CXX='-Wl,'
16312 lt_prog_compiler_pic_CXX='-KPIC'
16313 lt_prog_compiler_static_CXX='-static'
16314 ;;
16315 icpc* )
16316 # Intel C++, used to be incompatible with GCC.
16317 # ICC 10 doesn't accept -KPIC any more.
16318 lt_prog_compiler_wl_CXX='-Wl,'
16319 lt_prog_compiler_pic_CXX='-fPIC'
16320 lt_prog_compiler_static_CXX='-static'
16321 ;;
16322 pgCC* | pgcpp*)
16323 # Portland Group C++ compiler
16324 lt_prog_compiler_wl_CXX='-Wl,'
16325 lt_prog_compiler_pic_CXX='-fpic'
16326 lt_prog_compiler_static_CXX='-Bstatic'
16327 ;;
16328 cxx*)
16329 # Compaq C++
16330 # Make sure the PIC flag is empty. It appears that all Alpha
16331 # Linux and Compaq Tru64 Unix objects are PIC.
16332 lt_prog_compiler_pic_CXX=
16333 lt_prog_compiler_static_CXX='-non_shared'
16334 ;;
cristy18304f92009-11-22 15:48:26 +000016335 xlc* | xlC*)
16336 # IBM XL 8.0 on PPC
cristy3ed852e2009-09-05 21:47:34 +000016337 lt_prog_compiler_wl_CXX='-Wl,'
16338 lt_prog_compiler_pic_CXX='-qpic'
16339 lt_prog_compiler_static_CXX='-qstaticlink'
16340 ;;
16341 *)
16342 case `$CC -V 2>&1 | sed 5q` in
16343 *Sun\ C*)
16344 # Sun C++ 5.9
16345 lt_prog_compiler_pic_CXX='-KPIC'
16346 lt_prog_compiler_static_CXX='-Bstatic'
16347 lt_prog_compiler_wl_CXX='-Qoption ld '
16348 ;;
16349 esac
16350 ;;
16351 esac
16352 ;;
16353 lynxos*)
16354 ;;
16355 m88k*)
16356 ;;
16357 mvs*)
16358 case $cc_basename in
16359 cxx*)
16360 lt_prog_compiler_pic_CXX='-W c,exportall'
16361 ;;
16362 *)
16363 ;;
16364 esac
16365 ;;
16366 netbsd*)
16367 ;;
16368 *qnx* | *nto*)
16369 # QNX uses GNU C++, but need to define -shared option too, otherwise
16370 # it will coredump.
16371 lt_prog_compiler_pic_CXX='-fPIC -shared'
16372 ;;
16373 osf3* | osf4* | osf5*)
16374 case $cc_basename in
16375 KCC*)
16376 lt_prog_compiler_wl_CXX='--backend -Wl,'
16377 ;;
16378 RCC*)
16379 # Rational C++ 2.4.1
16380 lt_prog_compiler_pic_CXX='-pic'
16381 ;;
16382 cxx*)
16383 # Digital/Compaq C++
16384 lt_prog_compiler_wl_CXX='-Wl,'
16385 # Make sure the PIC flag is empty. It appears that all Alpha
16386 # Linux and Compaq Tru64 Unix objects are PIC.
16387 lt_prog_compiler_pic_CXX=
16388 lt_prog_compiler_static_CXX='-non_shared'
16389 ;;
16390 *)
16391 ;;
16392 esac
16393 ;;
16394 psos*)
16395 ;;
16396 solaris*)
16397 case $cc_basename in
16398 CC*)
16399 # Sun C++ 4.2, 5.x and Centerline C++
16400 lt_prog_compiler_pic_CXX='-KPIC'
16401 lt_prog_compiler_static_CXX='-Bstatic'
16402 lt_prog_compiler_wl_CXX='-Qoption ld '
16403 ;;
16404 gcx*)
16405 # Green Hills C++ Compiler
16406 lt_prog_compiler_pic_CXX='-PIC'
16407 ;;
16408 *)
16409 ;;
16410 esac
16411 ;;
16412 sunos4*)
16413 case $cc_basename in
16414 CC*)
16415 # Sun C++ 4.x
16416 lt_prog_compiler_pic_CXX='-pic'
16417 lt_prog_compiler_static_CXX='-Bstatic'
16418 ;;
16419 lcc*)
16420 # Lucid
16421 lt_prog_compiler_pic_CXX='-pic'
16422 ;;
16423 *)
16424 ;;
16425 esac
16426 ;;
16427 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16428 case $cc_basename in
16429 CC*)
16430 lt_prog_compiler_wl_CXX='-Wl,'
16431 lt_prog_compiler_pic_CXX='-KPIC'
16432 lt_prog_compiler_static_CXX='-Bstatic'
16433 ;;
16434 esac
16435 ;;
16436 tandem*)
16437 case $cc_basename in
16438 NCC*)
16439 # NonStop-UX NCC 3.20
16440 lt_prog_compiler_pic_CXX='-KPIC'
16441 ;;
16442 *)
16443 ;;
16444 esac
16445 ;;
16446 vxworks*)
16447 ;;
16448 *)
16449 lt_prog_compiler_can_build_shared_CXX=no
16450 ;;
16451 esac
16452 fi
16453
16454case $host_os in
16455 # For platforms which do not support PIC, -DPIC is meaningless:
16456 *djgpp*)
16457 lt_prog_compiler_pic_CXX=
16458 ;;
16459 *)
16460 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16461 ;;
16462esac
cristy8b350f62009-11-15 23:12:43 +000016463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016464$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16465
16466
16467
16468#
16469# Check to make sure the PIC flag actually works.
16470#
16471if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000016472 { $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 +000016473$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016474if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016475 $as_echo_n "(cached) " >&6
16476else
16477 lt_cv_prog_compiler_pic_works_CXX=no
16478 ac_outfile=conftest.$ac_objext
16479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16480 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16481 # Insert the option either (1) after the last *FLAGS variable, or
16482 # (2) before a word containing "conftest.", or (3) at the end.
16483 # Note that $ac_compile itself does not contain backslashes and begins
16484 # with a dollar sign (not a hyphen), so the echo should work correctly.
16485 # The option is referenced via a variable to avoid confusing sed.
16486 lt_compile=`echo "$ac_compile" | $SED \
16487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16489 -e 's:$: $lt_compiler_flag:'`
cristy679ed8e2009-12-05 02:37:41 +000016490 (eval echo "\"\$as_me:16490: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016491 (eval "$lt_compile" 2>conftest.err)
16492 ac_status=$?
16493 cat conftest.err >&5
cristy679ed8e2009-12-05 02:37:41 +000016494 echo "$as_me:16494: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016495 if (exit $ac_status) && test -s "$ac_outfile"; then
16496 # The compiler can only warn and ignore the option if not recognized
16497 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000016498 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16500 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16501 lt_cv_prog_compiler_pic_works_CXX=yes
16502 fi
16503 fi
16504 $RM conftest*
16505
16506fi
cristy8b350f62009-11-15 23:12:43 +000016507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016508$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16509
16510if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16511 case $lt_prog_compiler_pic_CXX in
16512 "" | " "*) ;;
16513 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16514 esac
16515else
16516 lt_prog_compiler_pic_CXX=
16517 lt_prog_compiler_can_build_shared_CXX=no
16518fi
16519
16520fi
16521
16522
16523
16524#
16525# Check to make sure the static flag actually works.
16526#
16527wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000016528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000016529$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016530if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016531 $as_echo_n "(cached) " >&6
16532else
16533 lt_cv_prog_compiler_static_works_CXX=no
16534 save_LDFLAGS="$LDFLAGS"
16535 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16536 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16537 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16538 # The linker can only warn and ignore the option if not recognized
16539 # So say no if there are warnings
16540 if test -s conftest.err; then
16541 # Append any errors to the config.log.
16542 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000016543 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016544 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16545 if diff conftest.exp conftest.er2 >/dev/null; then
16546 lt_cv_prog_compiler_static_works_CXX=yes
16547 fi
16548 else
16549 lt_cv_prog_compiler_static_works_CXX=yes
16550 fi
16551 fi
16552 $RM -r conftest*
16553 LDFLAGS="$save_LDFLAGS"
16554
16555fi
cristy8b350f62009-11-15 23:12:43 +000016556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016557$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16558
16559if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16560 :
16561else
16562 lt_prog_compiler_static_CXX=
16563fi
16564
16565
16566
16567
cristy8b350f62009-11-15 23:12:43 +000016568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016569$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016570if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016571 $as_echo_n "(cached) " >&6
16572else
16573 lt_cv_prog_compiler_c_o_CXX=no
16574 $RM -r conftest 2>/dev/null
16575 mkdir conftest
16576 cd conftest
16577 mkdir out
16578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16579
16580 lt_compiler_flag="-o out/conftest2.$ac_objext"
16581 # Insert the option either (1) after the last *FLAGS variable, or
16582 # (2) before a word containing "conftest.", or (3) at the end.
16583 # Note that $ac_compile itself does not contain backslashes and begins
16584 # with a dollar sign (not a hyphen), so the echo should work correctly.
16585 lt_compile=`echo "$ac_compile" | $SED \
16586 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16587 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16588 -e 's:$: $lt_compiler_flag:'`
cristy679ed8e2009-12-05 02:37:41 +000016589 (eval echo "\"\$as_me:16589: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016590 (eval "$lt_compile" 2>out/conftest.err)
16591 ac_status=$?
16592 cat out/conftest.err >&5
cristy679ed8e2009-12-05 02:37:41 +000016593 echo "$as_me:16593: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016594 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16595 then
16596 # The compiler can only warn and ignore the option if not recognized
16597 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000016598 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016599 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16600 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16601 lt_cv_prog_compiler_c_o_CXX=yes
16602 fi
16603 fi
16604 chmod u+w . 2>&5
16605 $RM conftest*
16606 # SGI C++ compiler will create directory out/ii_files/ for
16607 # template instantiation
16608 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16609 $RM out/* && rmdir out
16610 cd ..
16611 $RM -r conftest
16612 $RM conftest*
16613
16614fi
cristy8b350f62009-11-15 23:12:43 +000016615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016616$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16617
16618
16619
cristy8b350f62009-11-15 23:12:43 +000016620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016621$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016622if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016623 $as_echo_n "(cached) " >&6
16624else
16625 lt_cv_prog_compiler_c_o_CXX=no
16626 $RM -r conftest 2>/dev/null
16627 mkdir conftest
16628 cd conftest
16629 mkdir out
16630 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16631
16632 lt_compiler_flag="-o out/conftest2.$ac_objext"
16633 # Insert the option either (1) after the last *FLAGS variable, or
16634 # (2) before a word containing "conftest.", or (3) at the end.
16635 # Note that $ac_compile itself does not contain backslashes and begins
16636 # with a dollar sign (not a hyphen), so the echo should work correctly.
16637 lt_compile=`echo "$ac_compile" | $SED \
16638 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16639 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16640 -e 's:$: $lt_compiler_flag:'`
cristy679ed8e2009-12-05 02:37:41 +000016641 (eval echo "\"\$as_me:16641: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016642 (eval "$lt_compile" 2>out/conftest.err)
16643 ac_status=$?
16644 cat out/conftest.err >&5
cristy679ed8e2009-12-05 02:37:41 +000016645 echo "$as_me:16645: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016646 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16647 then
16648 # The compiler can only warn and ignore the option if not recognized
16649 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000016650 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016651 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16652 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16653 lt_cv_prog_compiler_c_o_CXX=yes
16654 fi
16655 fi
16656 chmod u+w . 2>&5
16657 $RM conftest*
16658 # SGI C++ compiler will create directory out/ii_files/ for
16659 # template instantiation
16660 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16661 $RM out/* && rmdir out
16662 cd ..
16663 $RM -r conftest
16664 $RM conftest*
16665
16666fi
cristy8b350f62009-11-15 23:12:43 +000016667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016668$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16669
16670
16671
16672
16673hard_links="nottested"
16674if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16675 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000016676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000016677$as_echo_n "checking if we can lock with hard links... " >&6; }
16678 hard_links=yes
16679 $RM conftest*
16680 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16681 touch conftest.a
16682 ln conftest.a conftest.b 2>&5 || hard_links=no
16683 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000016684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000016685$as_echo "$hard_links" >&6; }
16686 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000016687 { $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 +000016688$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16689 need_locks=warn
16690 fi
16691else
16692 need_locks=no
16693fi
16694
16695
16696
cristy8b350f62009-11-15 23:12:43 +000016697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016698$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16699
16700 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16701 case $host_os in
16702 aix[4-9]*)
16703 # If we're using GNU nm, then we don't want the "-C" option.
16704 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16705 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000016706 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 +000016707 else
16708 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'
16709 fi
16710 ;;
16711 pw32*)
16712 export_symbols_cmds_CXX="$ltdll_cmds"
16713 ;;
16714 cygwin* | mingw* | cegcc*)
16715 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'
16716 ;;
16717 *)
16718 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16719 ;;
16720 esac
16721 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16722
cristy8b350f62009-11-15 23:12:43 +000016723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016724$as_echo "$ld_shlibs_CXX" >&6; }
16725test "$ld_shlibs_CXX" = no && can_build_shared=no
16726
16727with_gnu_ld_CXX=$with_gnu_ld
16728
16729
16730
16731
16732
16733
16734#
16735# Do we need to explicitly link libc?
16736#
16737case "x$archive_cmds_need_lc_CXX" in
16738x|xyes)
16739 # Assume -lc should be added
16740 archive_cmds_need_lc_CXX=yes
16741
16742 if test "$enable_shared" = yes && test "$GCC" = yes; then
16743 case $archive_cmds_CXX in
16744 *'~'*)
16745 # FIXME: we may have to deal with multi-command sequences.
16746 ;;
16747 '$CC '*)
16748 # Test whether the compiler implicitly links with -lc since on some
16749 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16750 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000016751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000016752$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000016753 $RM conftest*
16754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016755
cristy18304f92009-11-22 15:48:26 +000016756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016757 (eval $ac_compile) 2>&5
16758 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16760 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000016761 soname=conftest
16762 lib=conftest
16763 libobjs=conftest.$ac_objext
16764 deplibs=
16765 wl=$lt_prog_compiler_wl_CXX
16766 pic_flag=$lt_prog_compiler_pic_CXX
16767 compiler_flags=-v
16768 linker_flags=-v
16769 verstring=
16770 output_objdir=.
16771 libname=conftest
16772 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16773 allow_undefined_flag_CXX=
16774 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 +000016775 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16776 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16778 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000016779 then
16780 archive_cmds_need_lc_CXX=no
16781 else
16782 archive_cmds_need_lc_CXX=yes
16783 fi
16784 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16785 else
16786 cat conftest.err 1>&5
16787 fi
16788 $RM conftest*
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
16790$as_echo "$archive_cmds_need_lc_CXX" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000016791 ;;
16792 esac
16793 fi
16794 ;;
16795esac
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
cristy8b350f62009-11-15 23:12:43 +000016860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000016861$as_echo_n "checking dynamic linker characteristics... " >&6; }
16862
16863library_names_spec=
16864libname_spec='lib$name'
16865soname_spec=
16866shrext_cmds=".so"
16867postinstall_cmds=
16868postuninstall_cmds=
16869finish_cmds=
16870finish_eval=
16871shlibpath_var=
16872shlibpath_overrides_runpath=unknown
16873version_type=none
16874dynamic_linker="$host_os ld.so"
16875sys_lib_dlsearch_path_spec="/lib /usr/lib"
16876need_lib_prefix=unknown
16877hardcode_into_libs=no
16878
16879# when you set need_version to no, make sure it does not cause -set_version
16880# flags to be left without arguments
16881need_version=unknown
16882
16883case $host_os in
16884aix3*)
16885 version_type=linux
16886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16887 shlibpath_var=LIBPATH
16888
16889 # AIX 3 has no versioning support, so we append a major version to the name.
16890 soname_spec='${libname}${release}${shared_ext}$major'
16891 ;;
16892
16893aix[4-9]*)
16894 version_type=linux
16895 need_lib_prefix=no
16896 need_version=no
16897 hardcode_into_libs=yes
16898 if test "$host_cpu" = ia64; then
16899 # AIX 5 supports IA64
16900 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16901 shlibpath_var=LD_LIBRARY_PATH
16902 else
16903 # With GCC up to 2.95.x, collect2 would create an import file
16904 # for dependence libraries. The import file would start with
16905 # the line `#! .'. This would cause the generated library to
16906 # depend on `.', always an invalid library. This was fixed in
16907 # development snapshots of GCC prior to 3.0.
16908 case $host_os in
16909 aix4 | aix4.[01] | aix4.[01].*)
16910 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16911 echo ' yes '
16912 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16913 :
16914 else
16915 can_build_shared=no
16916 fi
16917 ;;
16918 esac
16919 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16920 # soname into executable. Probably we can add versioning support to
16921 # collect2, so additional links can be useful in future.
16922 if test "$aix_use_runtimelinking" = yes; then
16923 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16924 # instead of lib<name>.a to let people know that these are not
16925 # typical AIX shared libraries.
16926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16927 else
16928 # We preserve .a as extension for shared libraries through AIX4.2
16929 # and later when we are not doing run time linking.
16930 library_names_spec='${libname}${release}.a $libname.a'
16931 soname_spec='${libname}${release}${shared_ext}$major'
16932 fi
16933 shlibpath_var=LIBPATH
16934 fi
16935 ;;
16936
16937amigaos*)
16938 case $host_cpu in
16939 powerpc)
16940 # Since July 2007 AmigaOS4 officially supports .so libraries.
16941 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16943 ;;
16944 m68k)
16945 library_names_spec='$libname.ixlibrary $libname.a'
16946 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000016947 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 +000016948 ;;
16949 esac
16950 ;;
16951
16952beos*)
16953 library_names_spec='${libname}${shared_ext}'
16954 dynamic_linker="$host_os ld.so"
16955 shlibpath_var=LIBRARY_PATH
16956 ;;
16957
16958bsdi[45]*)
16959 version_type=linux
16960 need_version=no
16961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16962 soname_spec='${libname}${release}${shared_ext}$major'
16963 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16964 shlibpath_var=LD_LIBRARY_PATH
16965 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16966 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16967 # the default ld.so.conf also contains /usr/contrib/lib and
16968 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16969 # libtool to hard-code these into programs
16970 ;;
16971
16972cygwin* | mingw* | pw32* | cegcc*)
16973 version_type=windows
16974 shrext_cmds=".dll"
16975 need_version=no
16976 need_lib_prefix=no
16977
16978 case $GCC,$host_os in
16979 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16980 library_names_spec='$libname.dll.a'
16981 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16982 postinstall_cmds='base_file=`basename \${file}`~
16983 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16984 dldir=$destdir/`dirname \$dlpath`~
16985 test -d \$dldir || mkdir -p \$dldir~
16986 $install_prog $dir/$dlname \$dldir/$dlname~
16987 chmod a+x \$dldir/$dlname~
16988 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16989 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16990 fi'
16991 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16992 dlpath=$dir/\$dldll~
16993 $RM \$dlpath'
16994 shlibpath_overrides_runpath=yes
16995
16996 case $host_os in
16997 cygwin*)
16998 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16999 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000017000 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000017001 ;;
17002 mingw* | cegcc*)
17003 # MinGW DLLs use traditional 'lib' prefix
17004 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000017005 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17006 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17007 # It is most probably a Windows format PATH printed by
17008 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17009 # path with ; separators, and with drive letters. We can handle the
17010 # drive letters (cygwin fileutils understands them), so leave them,
17011 # especially as we might pass files found there to a mingw objdump,
17012 # which wouldn't understand a cygwinified path. Ahh.
17013 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17014 else
17015 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17016 fi
cristy3ed852e2009-09-05 21:47:34 +000017017 ;;
17018 pw32*)
17019 # pw32 DLLs use 'pw' prefix rather than 'lib'
17020 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17021 ;;
17022 esac
17023 ;;
17024
17025 *)
17026 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17027 ;;
17028 esac
17029 dynamic_linker='Win32 ld.exe'
17030 # FIXME: first we should search . and the directory the executable is in
17031 shlibpath_var=PATH
17032 ;;
17033
17034darwin* | rhapsody*)
17035 dynamic_linker="$host_os dyld"
17036 version_type=darwin
17037 need_lib_prefix=no
17038 need_version=no
17039 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17040 soname_spec='${libname}${release}${major}$shared_ext'
17041 shlibpath_overrides_runpath=yes
17042 shlibpath_var=DYLD_LIBRARY_PATH
17043 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17044
17045 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17046 ;;
17047
17048dgux*)
17049 version_type=linux
17050 need_lib_prefix=no
17051 need_version=no
17052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17053 soname_spec='${libname}${release}${shared_ext}$major'
17054 shlibpath_var=LD_LIBRARY_PATH
17055 ;;
17056
17057freebsd1*)
17058 dynamic_linker=no
17059 ;;
17060
17061freebsd* | dragonfly*)
17062 # DragonFly does not have aout. When/if they implement a new
17063 # versioning mechanism, adjust this.
17064 if test -x /usr/bin/objformat; then
17065 objformat=`/usr/bin/objformat`
17066 else
17067 case $host_os in
17068 freebsd[123]*) objformat=aout ;;
17069 *) objformat=elf ;;
17070 esac
17071 fi
17072 version_type=freebsd-$objformat
17073 case $version_type in
17074 freebsd-elf*)
17075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17076 need_version=no
17077 need_lib_prefix=no
17078 ;;
17079 freebsd-*)
17080 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17081 need_version=yes
17082 ;;
17083 esac
17084 shlibpath_var=LD_LIBRARY_PATH
17085 case $host_os in
17086 freebsd2*)
17087 shlibpath_overrides_runpath=yes
17088 ;;
17089 freebsd3.[01]* | freebsdelf3.[01]*)
17090 shlibpath_overrides_runpath=yes
17091 hardcode_into_libs=yes
17092 ;;
17093 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17094 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17095 shlibpath_overrides_runpath=no
17096 hardcode_into_libs=yes
17097 ;;
17098 *) # from 4.6 on, and DragonFly
17099 shlibpath_overrides_runpath=yes
17100 hardcode_into_libs=yes
17101 ;;
17102 esac
17103 ;;
17104
17105gnu*)
17106 version_type=linux
17107 need_lib_prefix=no
17108 need_version=no
17109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17110 soname_spec='${libname}${release}${shared_ext}$major'
17111 shlibpath_var=LD_LIBRARY_PATH
17112 hardcode_into_libs=yes
17113 ;;
17114
17115hpux9* | hpux10* | hpux11*)
17116 # Give a soname corresponding to the major version so that dld.sl refuses to
17117 # link against other versions.
17118 version_type=sunos
17119 need_lib_prefix=no
17120 need_version=no
17121 case $host_cpu in
17122 ia64*)
17123 shrext_cmds='.so'
17124 hardcode_into_libs=yes
17125 dynamic_linker="$host_os dld.so"
17126 shlibpath_var=LD_LIBRARY_PATH
17127 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17129 soname_spec='${libname}${release}${shared_ext}$major'
17130 if test "X$HPUX_IA64_MODE" = X32; then
17131 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17132 else
17133 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17134 fi
17135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17136 ;;
17137 hppa*64*)
17138 shrext_cmds='.sl'
17139 hardcode_into_libs=yes
17140 dynamic_linker="$host_os dld.sl"
17141 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17142 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17144 soname_spec='${libname}${release}${shared_ext}$major'
17145 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17146 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17147 ;;
17148 *)
17149 shrext_cmds='.sl'
17150 dynamic_linker="$host_os dld.sl"
17151 shlibpath_var=SHLIB_PATH
17152 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17154 soname_spec='${libname}${release}${shared_ext}$major'
17155 ;;
17156 esac
cristy18304f92009-11-22 15:48:26 +000017157 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000017158 postinstall_cmds='chmod 555 $lib'
17159 ;;
17160
17161interix[3-9]*)
17162 version_type=linux
17163 need_lib_prefix=no
17164 need_version=no
17165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17166 soname_spec='${libname}${release}${shared_ext}$major'
17167 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17168 shlibpath_var=LD_LIBRARY_PATH
17169 shlibpath_overrides_runpath=no
17170 hardcode_into_libs=yes
17171 ;;
17172
17173irix5* | irix6* | nonstopux*)
17174 case $host_os in
17175 nonstopux*) version_type=nonstopux ;;
17176 *)
17177 if test "$lt_cv_prog_gnu_ld" = yes; then
17178 version_type=linux
17179 else
17180 version_type=irix
17181 fi ;;
17182 esac
17183 need_lib_prefix=no
17184 need_version=no
17185 soname_spec='${libname}${release}${shared_ext}$major'
17186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17187 case $host_os in
17188 irix5* | nonstopux*)
17189 libsuff= shlibsuff=
17190 ;;
17191 *)
17192 case $LD in # libtool.m4 will add one of these switches to LD
17193 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17194 libsuff= shlibsuff= libmagic=32-bit;;
17195 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17196 libsuff=32 shlibsuff=N32 libmagic=N32;;
17197 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17198 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17199 *) libsuff= shlibsuff= libmagic=never-match;;
17200 esac
17201 ;;
17202 esac
17203 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17204 shlibpath_overrides_runpath=no
17205 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17206 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17207 hardcode_into_libs=yes
17208 ;;
17209
17210# No shared lib support for Linux oldld, aout, or coff.
17211linux*oldld* | linux*aout* | linux*coff*)
17212 dynamic_linker=no
17213 ;;
17214
17215# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000017216linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017217 version_type=linux
17218 need_lib_prefix=no
17219 need_version=no
17220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17221 soname_spec='${libname}${release}${shared_ext}$major'
17222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17223 shlibpath_var=LD_LIBRARY_PATH
17224 shlibpath_overrides_runpath=no
17225 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000017226 save_LDFLAGS=$LDFLAGS
17227 save_libdir=$libdir
17228 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17229 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017231/* end confdefs.h. */
17232
17233int
17234main ()
17235{
17236
17237 ;
17238 return 0;
17239}
17240_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017241if ac_fn_cxx_try_link "$LINENO"; then :
17242 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000017243 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000017244fi
cristy3ed852e2009-09-05 21:47:34 +000017245fi
cristy8b350f62009-11-15 23:12:43 +000017246rm -f core conftest.err conftest.$ac_objext \
17247 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000017248 LDFLAGS=$save_LDFLAGS
17249 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000017250
17251 # This implies no fast_install, which is unacceptable.
17252 # Some rework will be needed to allow for fast_install
17253 # before this can be enabled.
17254 hardcode_into_libs=yes
17255
cristy679ed8e2009-12-05 02:37:41 +000017256 # Add ABI-specific directories to the system library path.
17257 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17258
cristy3ed852e2009-09-05 21:47:34 +000017259 # Append ld.so.conf contents to the search path
17260 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000017261 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 +000017262 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000017263 fi
17264
17265 # We used to test for /lib/ld.so.1 and disable shared libraries on
17266 # powerpc, because MkLinux only supported shared libraries with the
17267 # GNU dynamic linker. Since this was broken with cross compilers,
17268 # most powerpc-linux boxes support dynamic linking these days and
17269 # people can always --disable-shared, the test was removed, and we
17270 # assume the GNU/Linux dynamic linker is in use.
17271 dynamic_linker='GNU/Linux ld.so'
17272 ;;
17273
17274netbsd*)
17275 version_type=sunos
17276 need_lib_prefix=no
17277 need_version=no
17278 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17280 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17281 dynamic_linker='NetBSD (a.out) ld.so'
17282 else
17283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17284 soname_spec='${libname}${release}${shared_ext}$major'
17285 dynamic_linker='NetBSD ld.elf_so'
17286 fi
17287 shlibpath_var=LD_LIBRARY_PATH
17288 shlibpath_overrides_runpath=yes
17289 hardcode_into_libs=yes
17290 ;;
17291
17292newsos6)
17293 version_type=linux
17294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17295 shlibpath_var=LD_LIBRARY_PATH
17296 shlibpath_overrides_runpath=yes
17297 ;;
17298
17299*nto* | *qnx*)
17300 version_type=qnx
17301 need_lib_prefix=no
17302 need_version=no
17303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17304 soname_spec='${libname}${release}${shared_ext}$major'
17305 shlibpath_var=LD_LIBRARY_PATH
17306 shlibpath_overrides_runpath=no
17307 hardcode_into_libs=yes
17308 dynamic_linker='ldqnx.so'
17309 ;;
17310
17311openbsd*)
17312 version_type=sunos
17313 sys_lib_dlsearch_path_spec="/usr/lib"
17314 need_lib_prefix=no
17315 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17316 case $host_os in
17317 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17318 *) need_version=no ;;
17319 esac
17320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17322 shlibpath_var=LD_LIBRARY_PATH
17323 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17324 case $host_os in
17325 openbsd2.[89] | openbsd2.[89].*)
17326 shlibpath_overrides_runpath=no
17327 ;;
17328 *)
17329 shlibpath_overrides_runpath=yes
17330 ;;
17331 esac
17332 else
17333 shlibpath_overrides_runpath=yes
17334 fi
17335 ;;
17336
17337os2*)
17338 libname_spec='$name'
17339 shrext_cmds=".dll"
17340 need_lib_prefix=no
17341 library_names_spec='$libname${shared_ext} $libname.a'
17342 dynamic_linker='OS/2 ld.exe'
17343 shlibpath_var=LIBPATH
17344 ;;
17345
17346osf3* | osf4* | osf5*)
17347 version_type=osf
17348 need_lib_prefix=no
17349 need_version=no
17350 soname_spec='${libname}${release}${shared_ext}$major'
17351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17352 shlibpath_var=LD_LIBRARY_PATH
17353 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17354 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17355 ;;
17356
17357rdos*)
17358 dynamic_linker=no
17359 ;;
17360
17361solaris*)
17362 version_type=linux
17363 need_lib_prefix=no
17364 need_version=no
17365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17366 soname_spec='${libname}${release}${shared_ext}$major'
17367 shlibpath_var=LD_LIBRARY_PATH
17368 shlibpath_overrides_runpath=yes
17369 hardcode_into_libs=yes
17370 # ldd complains unless libraries are executable
17371 postinstall_cmds='chmod +x $lib'
17372 ;;
17373
17374sunos4*)
17375 version_type=sunos
17376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17377 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17378 shlibpath_var=LD_LIBRARY_PATH
17379 shlibpath_overrides_runpath=yes
17380 if test "$with_gnu_ld" = yes; then
17381 need_lib_prefix=no
17382 fi
17383 need_version=yes
17384 ;;
17385
17386sysv4 | sysv4.3*)
17387 version_type=linux
17388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17389 soname_spec='${libname}${release}${shared_ext}$major'
17390 shlibpath_var=LD_LIBRARY_PATH
17391 case $host_vendor in
17392 sni)
17393 shlibpath_overrides_runpath=no
17394 need_lib_prefix=no
17395 runpath_var=LD_RUN_PATH
17396 ;;
17397 siemens)
17398 need_lib_prefix=no
17399 ;;
17400 motorola)
17401 need_lib_prefix=no
17402 need_version=no
17403 shlibpath_overrides_runpath=no
17404 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17405 ;;
17406 esac
17407 ;;
17408
17409sysv4*MP*)
17410 if test -d /usr/nec ;then
17411 version_type=linux
17412 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17413 soname_spec='$libname${shared_ext}.$major'
17414 shlibpath_var=LD_LIBRARY_PATH
17415 fi
17416 ;;
17417
17418sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17419 version_type=freebsd-elf
17420 need_lib_prefix=no
17421 need_version=no
17422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17423 soname_spec='${libname}${release}${shared_ext}$major'
17424 shlibpath_var=LD_LIBRARY_PATH
17425 shlibpath_overrides_runpath=yes
17426 hardcode_into_libs=yes
17427 if test "$with_gnu_ld" = yes; then
17428 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17429 else
17430 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17431 case $host_os in
17432 sco3.2v5*)
17433 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17434 ;;
17435 esac
17436 fi
17437 sys_lib_dlsearch_path_spec='/usr/lib'
17438 ;;
17439
17440tpf*)
17441 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17442 version_type=linux
17443 need_lib_prefix=no
17444 need_version=no
17445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17446 shlibpath_var=LD_LIBRARY_PATH
17447 shlibpath_overrides_runpath=no
17448 hardcode_into_libs=yes
17449 ;;
17450
17451uts4*)
17452 version_type=linux
17453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17454 soname_spec='${libname}${release}${shared_ext}$major'
17455 shlibpath_var=LD_LIBRARY_PATH
17456 ;;
17457
17458*)
17459 dynamic_linker=no
17460 ;;
17461esac
cristy8b350f62009-11-15 23:12:43 +000017462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000017463$as_echo "$dynamic_linker" >&6; }
17464test "$dynamic_linker" = no && can_build_shared=no
17465
17466variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17467if test "$GCC" = yes; then
17468 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17469fi
17470
17471if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17472 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17473fi
17474if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17475 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17476fi
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
cristy8b350f62009-11-15 23:12:43 +000017513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000017514$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17515hardcode_action_CXX=
17516if test -n "$hardcode_libdir_flag_spec_CXX" ||
17517 test -n "$runpath_var_CXX" ||
17518 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17519
17520 # We can hardcode non-existent directories.
17521 if test "$hardcode_direct_CXX" != no &&
17522 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17523 # have to relink, otherwise we might link with an installed library
17524 # when we should be linking with a yet-to-be-installed one
17525 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17526 test "$hardcode_minus_L_CXX" != no; then
17527 # Linking always hardcodes the temporary library directory.
17528 hardcode_action_CXX=relink
17529 else
17530 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17531 hardcode_action_CXX=immediate
17532 fi
17533else
17534 # We cannot hardcode anything, or else we can only hardcode existing
17535 # directories.
17536 hardcode_action_CXX=unsupported
17537fi
cristy8b350f62009-11-15 23:12:43 +000017538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017539$as_echo "$hardcode_action_CXX" >&6; }
17540
17541if test "$hardcode_action_CXX" = relink ||
17542 test "$inherit_rpath_CXX" = yes; then
17543 # Fast installation is not supported
17544 enable_fast_install=no
17545elif test "$shlibpath_overrides_runpath" = yes ||
17546 test "$enable_shared" = no; then
17547 # Fast installation is not necessary
17548 enable_fast_install=needless
17549fi
17550
17551
17552
17553
17554
17555
17556
17557 fi # test -n "$compiler"
17558
17559 CC=$lt_save_CC
17560 LDCXX=$LD
17561 LD=$lt_save_LD
17562 GCC=$lt_save_GCC
17563 with_gnu_ld=$lt_save_with_gnu_ld
17564 lt_cv_path_LDCXX=$lt_cv_path_LD
17565 lt_cv_path_LD=$lt_save_path_LD
17566 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17567 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17568fi # test "$_lt_caught_CXX_error" != yes
17569
17570ac_ext=c
17571ac_cpp='$CPP $CPPFLAGS'
17572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17574ac_compiler_gnu=$ac_cv_c_compiler_gnu
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588 ac_config_commands="$ac_config_commands libtool"
17589
17590
17591
17592
17593# Only expand once:
17594
17595
17596
17597
17598
17599# Configure libltdl
17600
17601
17602
17603
17604
17605
17606
cristy18304f92009-11-22 15:48:26 +000017607
cristy8b350f62009-11-15 23:12:43 +000017608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000017609$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017610if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017611 $as_echo_n "(cached) " >&6
17612else
17613
17614module=yes
17615eval libltdl_cv_shlibext=$shrext_cmds
17616
17617fi
cristy8b350f62009-11-15 23:12:43 +000017618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017619$as_echo "$libltdl_cv_shlibext" >&6; }
17620if test -n "$libltdl_cv_shlibext"; then
17621
17622cat >>confdefs.h <<_ACEOF
17623#define LT_MODULE_EXT "$libltdl_cv_shlibext"
17624_ACEOF
17625
17626fi
17627
cristy8b350f62009-11-15 23:12:43 +000017628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017629$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017630if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017631 $as_echo_n "(cached) " >&6
17632else
17633 lt_cv_module_path_var="$shlibpath_var"
17634fi
cristy8b350f62009-11-15 23:12:43 +000017635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000017636$as_echo "$lt_cv_module_path_var" >&6; }
17637if test -n "$lt_cv_module_path_var"; then
17638
17639cat >>confdefs.h <<_ACEOF
17640#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
17641_ACEOF
17642
17643fi
17644
cristy8b350f62009-11-15 23:12:43 +000017645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017646$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017647if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017648 $as_echo_n "(cached) " >&6
17649else
17650 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
17651fi
cristy8b350f62009-11-15 23:12:43 +000017652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017653$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
17654if test -n "$lt_cv_sys_dlsearch_path"; then
17655 sys_dlsearch_path=
17656 for dir in $lt_cv_sys_dlsearch_path; do
17657 if test -z "$sys_dlsearch_path"; then
17658 sys_dlsearch_path="$dir"
17659 else
17660 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
17661 fi
17662 done
17663
17664cat >>confdefs.h <<_ACEOF
17665#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
17666_ACEOF
17667
17668fi
17669
17670
17671LT_DLLOADERS=
17672
17673
17674ac_ext=c
17675ac_cpp='$CPP $CPPFLAGS'
17676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17678ac_compiler_gnu=$ac_cv_c_compiler_gnu
17679
17680
17681LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000017682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017683$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017684if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017685 $as_echo_n "(cached) " >&6
17686else
17687 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000017688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017689/* end confdefs.h. */
17690
17691/* Override any GCC internal prototype to avoid an error.
17692 Use char because int might match the return type of a GCC
17693 builtin and then its argument prototype would still apply. */
17694#ifdef __cplusplus
17695extern "C"
17696#endif
17697char dlopen ();
17698int
17699main ()
17700{
17701return dlopen ();
17702 ;
17703 return 0;
17704}
17705_ACEOF
17706for ac_lib in '' dl; do
17707 if test -z "$ac_lib"; then
17708 ac_res="none required"
17709 else
17710 ac_res=-l$ac_lib
17711 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17712 fi
cristy8b350f62009-11-15 23:12:43 +000017713 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017714 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000017715fi
cristy8b350f62009-11-15 23:12:43 +000017716rm -f core conftest.err conftest.$ac_objext \
17717 conftest$ac_exeext
17718 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017719 break
17720fi
17721done
cristy8b350f62009-11-15 23:12:43 +000017722if test "${ac_cv_search_dlopen+set}" = set; then :
17723
cristy3ed852e2009-09-05 21:47:34 +000017724else
17725 ac_cv_search_dlopen=no
17726fi
17727rm conftest.$ac_ext
17728LIBS=$ac_func_search_save_LIBS
17729fi
cristy8b350f62009-11-15 23:12:43 +000017730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017731$as_echo "$ac_cv_search_dlopen" >&6; }
17732ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000017733if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000017734 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17735
cristy8b350f62009-11-15 23:12:43 +000017736$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017737
17738 if test "$ac_cv_search_dlopen" != "none required" ; then
17739 LIBADD_DLOPEN="-ldl"
17740 fi
17741 libltdl_cv_lib_dl_dlopen="yes"
17742 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17743else
cristy8b350f62009-11-15 23:12:43 +000017744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017745/* end confdefs.h. */
17746#if HAVE_DLFCN_H
17747# include <dlfcn.h>
17748#endif
17749
17750int
17751main ()
17752{
17753dlopen(0, 0);
17754 ;
17755 return 0;
17756}
17757_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017758if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017759
cristy8b350f62009-11-15 23:12:43 +000017760$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017761
17762 libltdl_cv_func_dlopen="yes"
17763 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17764else
cristy8b350f62009-11-15 23:12:43 +000017765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017766$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017767if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017768 $as_echo_n "(cached) " >&6
17769else
17770 ac_check_lib_save_LIBS=$LIBS
17771LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017773/* end confdefs.h. */
17774
17775/* Override any GCC internal prototype to avoid an error.
17776 Use char because int might match the return type of a GCC
17777 builtin and then its argument prototype would still apply. */
17778#ifdef __cplusplus
17779extern "C"
17780#endif
17781char dlopen ();
17782int
17783main ()
17784{
17785return dlopen ();
17786 ;
17787 return 0;
17788}
17789_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017790if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017791 ac_cv_lib_svld_dlopen=yes
17792else
cristy8b350f62009-11-15 23:12:43 +000017793 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000017794fi
cristy8b350f62009-11-15 23:12:43 +000017795rm -f core conftest.err conftest.$ac_objext \
17796 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017797LIBS=$ac_check_lib_save_LIBS
17798fi
cristy8b350f62009-11-15 23:12:43 +000017799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017800$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017801if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017802
cristy8b350f62009-11-15 23:12:43 +000017803$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017804
17805 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
17806 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17807fi
17808
17809fi
cristy8b350f62009-11-15 23:12:43 +000017810rm -f core conftest.err conftest.$ac_objext \
17811 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017812fi
17813
17814if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
17815then
17816 lt_save_LIBS="$LIBS"
17817 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000017818 for ac_func in dlerror
17819do :
17820 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
17821if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017822 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017823#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000017824_ACEOF
17825
17826fi
17827done
17828
17829 LIBS="$lt_save_LIBS"
17830fi
17831
17832
17833LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000017834ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17835if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017836
cristy8b350f62009-11-15 23:12:43 +000017837$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017838
17839 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17840else
cristy8b350f62009-11-15 23:12:43 +000017841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017842$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017843if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017844 $as_echo_n "(cached) " >&6
17845else
17846 ac_check_lib_save_LIBS=$LIBS
17847LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017849/* end confdefs.h. */
17850
17851/* Override any GCC internal prototype to avoid an error.
17852 Use char because int might match the return type of a GCC
17853 builtin and then its argument prototype would still apply. */
17854#ifdef __cplusplus
17855extern "C"
17856#endif
17857char shl_load ();
17858int
17859main ()
17860{
17861return shl_load ();
17862 ;
17863 return 0;
17864}
17865_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017866if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017867 ac_cv_lib_dld_shl_load=yes
17868else
cristy8b350f62009-11-15 23:12:43 +000017869 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000017870fi
cristy8b350f62009-11-15 23:12:43 +000017871rm -f core conftest.err conftest.$ac_objext \
17872 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017873LIBS=$ac_check_lib_save_LIBS
17874fi
cristy8b350f62009-11-15 23:12:43 +000017875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000017876$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017877if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017878
cristy8b350f62009-11-15 23:12:43 +000017879$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017880
17881 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17882 LIBADD_SHL_LOAD="-ldld"
17883fi
17884
17885fi
17886
17887
17888
17889case $host_os in
17890darwin[1567].*)
17891# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000017892 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
17893if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017894
cristy8b350f62009-11-15 23:12:43 +000017895$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017896
17897 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
17898fi
17899
17900 ;;
17901beos*)
17902 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
17903 ;;
17904cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000017905 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
17906"
17907if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
17908 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000017909else
cristy8b350f62009-11-15 23:12:43 +000017910 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000017911fi
17912
cristy3ed852e2009-09-05 21:47:34 +000017913cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017914#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000017915_ACEOF
17916
cristy3ed852e2009-09-05 21:47:34 +000017917 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
17918 ;;
17919esac
17920
cristy8b350f62009-11-15 23:12:43 +000017921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017922$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017923if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017924 $as_echo_n "(cached) " >&6
17925else
17926 ac_check_lib_save_LIBS=$LIBS
17927LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017929/* end confdefs.h. */
17930
17931/* Override any GCC internal prototype to avoid an error.
17932 Use char because int might match the return type of a GCC
17933 builtin and then its argument prototype would still apply. */
17934#ifdef __cplusplus
17935extern "C"
17936#endif
17937char dld_link ();
17938int
17939main ()
17940{
17941return dld_link ();
17942 ;
17943 return 0;
17944}
17945_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017946if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017947 ac_cv_lib_dld_dld_link=yes
17948else
cristy8b350f62009-11-15 23:12:43 +000017949 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000017950fi
cristy8b350f62009-11-15 23:12:43 +000017951rm -f core conftest.err conftest.$ac_objext \
17952 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017953LIBS=$ac_check_lib_save_LIBS
17954fi
cristy8b350f62009-11-15 23:12:43 +000017955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000017956$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017957if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017958
cristy8b350f62009-11-15 23:12:43 +000017959$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017960
17961 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
17962fi
17963
17964
17965
17966
17967LT_DLPREOPEN=
17968if test -n "$LT_DLLOADERS"
17969then
17970 for lt_loader in $LT_DLLOADERS; do
17971 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
17972 done
17973
cristy8b350f62009-11-15 23:12:43 +000017974$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017975
17976fi
17977
17978
17979LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
17980
17981
17982ac_ext=c
17983ac_cpp='$CPP $CPPFLAGS'
17984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17986ac_compiler_gnu=$ac_cv_c_compiler_gnu
17987
17988
cristy8b350f62009-11-15 23:12:43 +000017989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000017990$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017991if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017992 $as_echo_n "(cached) " >&6
17993else
17994 lt_cv_sys_symbol_underscore=no
17995 cat > conftest.$ac_ext <<_LT_EOF
17996void nm_test_func(){}
17997int main(){nm_test_func;return 0;}
17998_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000017999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018000 (eval $ac_compile) 2>&5
18001 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18003 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000018004 # Now try to grab the symbols.
18005 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000018006 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 +000018007 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
18008 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18010 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000018011 # See whether the symbols have a leading underscore.
18012 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
18013 lt_cv_sys_symbol_underscore=yes
18014 else
18015 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
18016 :
18017 else
18018 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
18019 fi
18020 fi
18021 else
18022 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
18023 fi
18024 else
18025 echo "configure: failed program was:" >&5
18026 cat conftest.c >&5
18027 fi
18028 rm -rf conftest*
18029
18030fi
cristy8b350f62009-11-15 23:12:43 +000018031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000018032$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
18033 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
18034
18035
18036if test x"$lt_cv_sys_symbol_underscore" = xyes; then
18037 if test x"$libltdl_cv_func_dlopen" = xyes ||
18038 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000018039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000018040$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018041if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018042 $as_echo_n "(cached) " >&6
18043else
18044 libltdl_cv_need_uscore=unknown
18045 save_LIBS="$LIBS"
18046 LIBS="$LIBS $LIBADD_DLOPEN"
18047 if test "$cross_compiling" = yes; then :
18048 libltdl_cv_need_uscore=cross
18049else
18050 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18051 lt_status=$lt_dlunknown
18052 cat > conftest.$ac_ext <<_LT_EOF
cristy679ed8e2009-12-05 02:37:41 +000018053#line 18053 "configure"
cristy3ed852e2009-09-05 21:47:34 +000018054#include "confdefs.h"
18055
18056#if HAVE_DLFCN_H
18057#include <dlfcn.h>
18058#endif
18059
18060#include <stdio.h>
18061
18062#ifdef RTLD_GLOBAL
18063# define LT_DLGLOBAL RTLD_GLOBAL
18064#else
18065# ifdef DL_GLOBAL
18066# define LT_DLGLOBAL DL_GLOBAL
18067# else
18068# define LT_DLGLOBAL 0
18069# endif
18070#endif
18071
18072/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18073 find out it does not work in some platform. */
18074#ifndef LT_DLLAZY_OR_NOW
18075# ifdef RTLD_LAZY
18076# define LT_DLLAZY_OR_NOW RTLD_LAZY
18077# else
18078# ifdef DL_LAZY
18079# define LT_DLLAZY_OR_NOW DL_LAZY
18080# else
18081# ifdef RTLD_NOW
18082# define LT_DLLAZY_OR_NOW RTLD_NOW
18083# else
18084# ifdef DL_NOW
18085# define LT_DLLAZY_OR_NOW DL_NOW
18086# else
18087# define LT_DLLAZY_OR_NOW 0
18088# endif
18089# endif
18090# endif
18091# endif
18092#endif
18093
cristy18304f92009-11-22 15:48:26 +000018094void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000018095int main ()
18096{
18097 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18098 int status = $lt_dlunknown;
18099
18100 if (self)
18101 {
18102 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000018103 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000018104 /* dlclose (self); */
18105 }
18106 else
18107 puts (dlerror ());
18108
18109 return status;
18110}
18111_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000018112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018113 (eval $ac_link) 2>&5
18114 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18116 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000018117 (./conftest; exit; ) >&5 2>/dev/null
18118 lt_status=$?
18119 case x$lt_status in
18120 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
18121 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
18122 x$lt_dlunknown|x*) ;;
18123 esac
18124 else :
18125 # compilation failed
18126
18127 fi
18128fi
18129rm -fr conftest*
18130
18131 LIBS="$save_LIBS"
18132
18133fi
cristy8b350f62009-11-15 23:12:43 +000018134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000018135$as_echo "$libltdl_cv_need_uscore" >&6; }
18136 fi
18137fi
18138
18139if test x"$libltdl_cv_need_uscore" = xyes; then
18140
cristy8b350f62009-11-15 23:12:43 +000018141$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018142
18143fi
18144
cristy8b350f62009-11-15 23:12:43 +000018145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018146$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018147if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018148 $as_echo_n "(cached) " >&6
18149else
18150 # PORTME does your system automatically load deplibs for dlopen?
18151 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
18152 # For now, we just catch OSes we know something about -- in the
18153 # future, we'll try test this programmatically.
18154 lt_cv_sys_dlopen_deplibs=unknown
18155 case $host_os in
18156 aix3*|aix4.1.*|aix4.2.*)
18157 # Unknown whether this is true for these versions of AIX, but
18158 # we want this `case' here to explicitly catch those versions.
18159 lt_cv_sys_dlopen_deplibs=unknown
18160 ;;
18161 aix[4-9]*)
18162 lt_cv_sys_dlopen_deplibs=yes
18163 ;;
18164 amigaos*)
18165 case $host_cpu in
18166 powerpc)
18167 lt_cv_sys_dlopen_deplibs=no
18168 ;;
18169 esac
18170 ;;
18171 darwin*)
18172 # Assuming the user has installed a libdl from somewhere, this is true
18173 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
18174 lt_cv_sys_dlopen_deplibs=yes
18175 ;;
18176 freebsd* | dragonfly*)
18177 lt_cv_sys_dlopen_deplibs=yes
18178 ;;
cristy18304f92009-11-22 15:48:26 +000018179 gnu* | linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018180 # GNU and its variants, using gnu ld.so (Glibc)
18181 lt_cv_sys_dlopen_deplibs=yes
18182 ;;
18183 hpux10*|hpux11*)
18184 lt_cv_sys_dlopen_deplibs=yes
18185 ;;
18186 interix*)
18187 lt_cv_sys_dlopen_deplibs=yes
18188 ;;
18189 irix[12345]*|irix6.[01]*)
18190 # Catch all versions of IRIX before 6.2, and indicate that we don't
18191 # know how it worked for any of those versions.
18192 lt_cv_sys_dlopen_deplibs=unknown
18193 ;;
18194 irix*)
18195 # The case above catches anything before 6.2, and it's known that
18196 # at 6.2 and later dlopen does load deplibs.
18197 lt_cv_sys_dlopen_deplibs=yes
18198 ;;
18199 netbsd*)
18200 lt_cv_sys_dlopen_deplibs=yes
18201 ;;
18202 openbsd*)
18203 lt_cv_sys_dlopen_deplibs=yes
18204 ;;
18205 osf[1234]*)
18206 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
18207 # it did *not* use an RPATH in a shared library to find objects the
18208 # library depends on, so we explicitly say `no'.
18209 lt_cv_sys_dlopen_deplibs=no
18210 ;;
18211 osf5.0|osf5.0a|osf5.1)
18212 # dlopen *does* load deplibs and with the right loader patch applied
18213 # it even uses RPATH in a shared library to search for shared objects
18214 # that the library depends on, but there's no easy way to know if that
18215 # patch is installed. Since this is the case, all we can really
18216 # say is unknown -- it depends on the patch being installed. If
18217 # it is, this changes to `yes'. Without it, it would be `no'.
18218 lt_cv_sys_dlopen_deplibs=unknown
18219 ;;
18220 osf*)
18221 # the two cases above should catch all versions of osf <= 5.1. Read
18222 # the comments above for what we know about them.
18223 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
18224 # is used to find them so we can finally say `yes'.
18225 lt_cv_sys_dlopen_deplibs=yes
18226 ;;
18227 qnx*)
18228 lt_cv_sys_dlopen_deplibs=yes
18229 ;;
18230 solaris*)
18231 lt_cv_sys_dlopen_deplibs=yes
18232 ;;
18233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18234 libltdl_cv_sys_dlopen_deplibs=yes
18235 ;;
18236 esac
18237
18238fi
cristy8b350f62009-11-15 23:12:43 +000018239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018240$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
18241if test "$lt_cv_sys_dlopen_deplibs" != yes; then
18242
cristy8b350f62009-11-15 23:12:43 +000018243$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018244
18245fi
18246
18247:
18248
cristy3ed852e2009-09-05 21:47:34 +000018249for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000018250do :
18251 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
18252"
18253if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018254 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018255#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000018256_ACEOF
18257
18258fi
18259
18260done
18261
18262
cristy8b350f62009-11-15 23:12:43 +000018263ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000018264# include <argz.h>
18265#endif
cristy8b350f62009-11-15 23:12:43 +000018266"
18267if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018268
18269cat >>confdefs.h <<_ACEOF
18270#define HAVE_ERROR_T 1
18271_ACEOF
18272
18273
18274else
18275
cristy8b350f62009-11-15 23:12:43 +000018276$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018277
18278
cristy8b350f62009-11-15 23:12:43 +000018279$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018280
18281fi
18282
18283
18284ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000018285for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
18286 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000018287do :
18288 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18289ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18290eval as_val=\$$as_ac_var
18291 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018292 cat >>confdefs.h <<_ACEOF
18293#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18294_ACEOF
18295
18296else
18297 ARGZ_H=argz.h;
18298
18299 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18300
18301fi
18302done
18303
18304
cristy8b350f62009-11-15 23:12:43 +000018305if test -z "$ARGZ_H"; then :
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000018307$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018308if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018309 $as_echo_n "(cached) " >&6
18310else
18311 case $host_os in #(
18312 *cygwin*)
18313 lt_cv_sys_argz_works=no
18314 if test "$cross_compiling" != no; then
18315 lt_cv_sys_argz_works="guessing no"
18316 else
18317 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
18318 save_IFS=$IFS
18319 IFS=-.
18320 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
18321 IFS=$save_IFS
18322 lt_os_major=${2-0}
18323 lt_os_minor=${3-0}
18324 lt_os_micro=${4-0}
18325 if test "$lt_os_major" -gt 1 \
18326 || { test "$lt_os_major" -eq 1 \
18327 && { test "$lt_os_minor" -gt 5 \
18328 || { test "$lt_os_minor" -eq 5 \
18329 && test "$lt_os_micro" -gt 24; }; }; }; then
18330 lt_cv_sys_argz_works=yes
18331 fi
18332 fi
18333 ;; #(
18334 *) lt_cv_sys_argz_works=yes ;;
18335 esac
18336fi
cristy8b350f62009-11-15 23:12:43 +000018337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000018338$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018339 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018340
cristy8b350f62009-11-15 23:12:43 +000018341$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018342
18343else
18344 ARGZ_H=argz.h
18345
18346
18347 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18348
18349fi
cristy3ed852e2009-09-05 21:47:34 +000018350fi
18351
18352
18353
cristy8b350f62009-11-15 23:12:43 +000018354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018355$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018356if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018357 $as_echo_n "(cached) " >&6
18358else
18359 if test -n "$lt_cv_sys_global_symbol_pipe"; then
18360 libltdl_cv_preloaded_symbols=yes
18361 else
18362 libltdl_cv_preloaded_symbols=no
18363 fi
18364
18365fi
cristy8b350f62009-11-15 23:12:43 +000018366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000018367$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
18368if test x"$libltdl_cv_preloaded_symbols" = xyes; then
18369
cristy8b350f62009-11-15 23:12:43 +000018370$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018371
18372fi
18373
18374# Set options
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000018387if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018388 withval=$with_included_ltdl;
18389fi
18390
18391
18392if test "x$with_included_ltdl" != xyes; then
18393 # We are not being forced to use the included libltdl sources, so
18394 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000018395 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000018396
cristy8b350f62009-11-15 23:12:43 +000018397"
18398if test "x$ac_cv_header_ltdl_h" = x""yes; then :
18399 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 +000018400 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000018401"
18402if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000018404$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018405if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018406 $as_echo_n "(cached) " >&6
18407else
18408 ac_check_lib_save_LIBS=$LIBS
18409LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018411/* end confdefs.h. */
18412
18413/* Override any GCC internal prototype to avoid an error.
18414 Use char because int might match the return type of a GCC
18415 builtin and then its argument prototype would still apply. */
18416#ifdef __cplusplus
18417extern "C"
18418#endif
18419char lt_dladvise_preload ();
18420int
18421main ()
18422{
18423return lt_dladvise_preload ();
18424 ;
18425 return 0;
18426}
18427_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018428if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018429 ac_cv_lib_ltdl_lt_dladvise_preload=yes
18430else
cristy8b350f62009-11-15 23:12:43 +000018431 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000018432fi
cristy8b350f62009-11-15 23:12:43 +000018433rm -f core conftest.err conftest.$ac_objext \
18434 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018435LIBS=$ac_check_lib_save_LIBS
18436fi
cristy8b350f62009-11-15 23:12:43 +000018437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000018438$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018439if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018440 with_included_ltdl=no
18441else
18442 with_included_ltdl=yes
18443fi
18444
18445else
18446 with_included_ltdl=yes
18447fi
18448
18449else
18450 with_included_ltdl=yes
18451fi
18452
18453
18454fi
18455
18456
18457
18458
18459# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000018460if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018461 withval=$with_ltdl_include;
18462fi
18463
18464
18465if test -n "$with_ltdl_include"; then
18466 if test -f "$with_ltdl_include/ltdl.h"; then :
18467 else
cristy8b350f62009-11-15 23:12:43 +000018468 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018469 fi
18470else
18471 with_ltdl_include=no
18472fi
18473
18474
18475# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000018476if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018477 withval=$with_ltdl_lib;
18478fi
18479
18480
18481if test -n "$with_ltdl_lib"; then
18482 if test -f "$with_ltdl_lib/libltdl.la"; then :
18483 else
cristy8b350f62009-11-15 23:12:43 +000018484 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018485 fi
18486else
18487 with_ltdl_lib=no
18488fi
18489
18490case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
18491 ,yes,no,no,)
18492 case $enable_ltdl_convenience in
cristy8b350f62009-11-15 23:12:43 +000018493 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000018494 "") enable_ltdl_convenience=yes
18495 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
18496esac
18497LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
18498LTDLDEPS=$LIBLTDL
18499LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
18500
18501
18502
18503
18504
18505# For backwards non-gettext consistent compatibility...
18506INCLTDL="$LTDLINCL"
18507
18508
18509 ;;
18510 ,no,no,no,)
18511 # If the included ltdl is not to be used, then use the
18512 # preinstalled libltdl we found.
18513
cristy8b350f62009-11-15 23:12:43 +000018514$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018515
18516 LIBLTDL=-lltdl
18517 LTDLDEPS=
18518 LTDLINCL=
18519 ;;
18520 ,no*,no,*)
cristy8b350f62009-11-15 23:12:43 +000018521 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018522 ;;
18523 *) with_included_ltdl=no
18524 LIBLTDL="-L$with_ltdl_lib -lltdl"
18525 LTDLDEPS=
18526 LTDLINCL="-I$with_ltdl_include"
18527 ;;
18528esac
18529INCLTDL="$LTDLINCL"
18530
18531# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000018532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000018533$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000018535$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000018537$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000018539$as_echo "$LIBLTDL" >&6; }
18540
18541
18542
18543# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000018544if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018545 enableval=$enable_ltdl_install;
18546fi
18547
18548
18549case ,${enable_ltdl_install},${enable_ltdl_convenience} in
18550 *yes*) ;;
18551 *) enable_ltdl_convenience=yes ;;
18552esac
18553
18554 if test x"${enable_ltdl_install-no}" != xno; then
18555 INSTALL_LTDL_TRUE=
18556 INSTALL_LTDL_FALSE='#'
18557else
18558 INSTALL_LTDL_TRUE='#'
18559 INSTALL_LTDL_FALSE=
18560fi
18561
18562 if test x"${enable_ltdl_convenience-no}" != xno; then
18563 CONVENIENCE_LTDL_TRUE=
18564 CONVENIENCE_LTDL_FALSE='#'
18565else
18566 CONVENIENCE_LTDL_TRUE='#'
18567 CONVENIENCE_LTDL_FALSE=
18568fi
18569
18570
18571
18572
18573
18574
cristy18304f92009-11-22 15:48:26 +000018575
cristy3ed852e2009-09-05 21:47:34 +000018576# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
18577# the user used. This is so that ltdl.h can pick up the parent projects
18578# config.h file, The first file in AC_CONFIG_HEADERS must contain the
18579# definitions required by ltdl.c.
18580# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
18581
18582
18583
cristy3ed852e2009-09-05 21:47:34 +000018584for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000018585do :
18586 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18587ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18588"
18589eval as_val=\$$as_ac_Header
18590 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018591 cat >>confdefs.h <<_ACEOF
18592#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18593_ACEOF
18594
18595fi
18596
18597done
18598
18599
cristy3ed852e2009-09-05 21:47:34 +000018600for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000018601do :
18602 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18603ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18604eval as_val=\$$as_ac_var
18605 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018606 cat >>confdefs.h <<_ACEOF
18607#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18608_ACEOF
18609
18610else
18611
18612
18613 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
18614
18615fi
18616done
18617
cristy3ed852e2009-09-05 21:47:34 +000018618for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000018619do :
18620 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18621ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18622eval as_val=\$$as_ac_var
18623 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018624 cat >>confdefs.h <<_ACEOF
18625#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18626_ACEOF
18627
18628else
18629
18630
18631 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
18632
18633fi
18634done
18635
18636
18637
18638cat >>confdefs.h <<_ACEOF
18639#define LT_LIBEXT "$libext"
18640_ACEOF
18641
18642
18643name=ltdl
18644LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
18645
18646
18647
18648
18649
18650
18651
18652
18653# Only expand once:
18654
18655
18656
18657# Check to see if building shared libraries
18658libtool_build_shared_libs='no'
18659if test "$enable_shared" = 'yes'; then
18660 libtool_build_shared_libs='yes'
18661fi
18662
18663# Check to see if building static libraries
18664libtool_build_static_libs='no'
18665if test "$enable_static" = 'yes'; then
18666 libtool_build_static_libs='yes'
18667fi
18668
18669# MinGW and Cygwin can't build C++ DLLs which support exceptions.
18670if test "${StaticCplusPlusLibraries}" = 'yes'; then
18671 LTCXXLIBOPTS='--static'
18672
18673fi
18674
18675#
18676# Enable support for building loadable modules
18677#
18678
18679# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000018680if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018681 withval=$with_modules; with_modules=$withval
18682else
18683 with_modules=$libtool_build_shared_libs
18684fi
18685
18686
18687# Only allow building loadable modules if we are building shared libraries
18688if test "$with_modules" != 'no' ; then
18689 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000018690 { $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 +000018691$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
18692 with_modules='no'
18693 fi
18694fi
18695if test "$with_modules" != 'no'; then
18696
cristy8b350f62009-11-15 23:12:43 +000018697$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018698
18699fi
18700 if test "$with_modules" != 'no'; then
18701 WITH_MODULES_TRUE=
18702 WITH_MODULES_FALSE='#'
18703else
18704 WITH_MODULES_TRUE='#'
18705 WITH_MODULES_FALSE=
18706fi
18707
18708
18709# Enable building/use of libltdl if we are building shared libraries regardless
18710# of whether modules are built or not.
18711with_ltdl='no'
18712if test "$libtool_build_shared_libs" != 'no'; then
18713 with_ltdl='yes'
18714fi
18715
18716 if test "$with_ltdl" != 'no'; then
18717 WITH_LTDL_TRUE=
18718 WITH_LTDL_FALSE='#'
18719else
18720 WITH_LTDL_TRUE='#'
18721 WITH_LTDL_FALSE=
18722fi
18723
18724if test "$with_ltdl" != 'no'; then
18725
cristy8b350f62009-11-15 23:12:43 +000018726$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018727
18728
18729 # Set DLLDFLAGS
18730 if test X"$enable_shared" = Xyes; then
18731 DLLDFLAGS=-export-dynamic
18732
18733 fi
18734fi
18735
18736# Enable build using delegate libraries built in subdirectories rather than installed
18737# delegate libraries (bzlib fftw fpx jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
18738# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000018739if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018740 enableval=$enable_delegate_build; enable_delegate_build=$enableval
18741else
18742 enable_delegate_build='no'
18743fi
18744
18745
18746# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000018747if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018748 enableval=$enable_deprecated; enable_deprecated=$enableval
18749else
18750 enable_deprecated='no'
18751fi
18752
18753
18754if test "$enable_deprecated" = 'yes'; then
18755
cristy8b350f62009-11-15 23:12:43 +000018756$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018757
18758else
18759 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
18760fi
18761
18762# Build a version of ImageMagick which operates uninstalled.
18763# Used to build distributions located via MAGICK_HOME / executable path
18764# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000018765if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018766 enableval=$enable_installed; enable_installed=$enableval
18767else
18768 enable_installed='yes'
18769fi
18770
18771
18772if test "$enable_installed" = 'yes'; then
18773
cristy8b350f62009-11-15 23:12:43 +000018774$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018775
18776else
18777 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
18778fi
18779
18780# Permit enciphering and deciphering image pixels.
18781# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000018782if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018783 enableval=$enable_cipher; enable_cipher=$enableval
18784else
18785 enable_cipher='yes'
18786fi
18787
18788
18789if test "$enable_cipher" = 'yes'; then
18790
cristy8b350f62009-11-15 23:12:43 +000018791$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018792
18793fi
18794
18795# Build an embeddable version of ImageMagick.
18796# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000018797if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018798 enableval=$enable_embeddable; enable_embeddable=$enableval
18799else
18800 enable_embeddable='no'
18801fi
18802
18803
18804if test "$enable_embeddable" = 'yes'; then
18805
cristy8b350f62009-11-15 23:12:43 +000018806$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018807
18808fi
18809
18810# Build a high dynamic range version of ImageMagick.
18811# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000018812if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018813 enableval=$enable_hdri; enable_hdri=$enableval
18814else
18815 enable_hdri='no'
18816fi
18817
18818
18819MAGICK_HDRI=""
18820if test "$enable_hdri" = 'yes'; then
18821 MAGICK_HDRI="HDRI"
18822
cristy8b350f62009-11-15 23:12:43 +000018823$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018824
18825fi
18826
cristy3ed852e2009-09-05 21:47:34 +000018827# Build a version of ImageMagick with assert statements.
18828# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000018829if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018830 enableval=$enable_assert; enable_assert=$enableval
18831else
18832 enable_assert='yes'
18833fi
18834
18835
18836if test "$enable_assert" = 'no'; then
18837
cristy8b350f62009-11-15 23:12:43 +000018838$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018839
18840fi
18841
18842# Add configure option --enable-maintainer-mode which enables dependency
18843# checking and generation useful to package maintainers. This is made an
18844# option to avoid confusing end users.
18845
cristy8b350f62009-11-15 23:12:43 +000018846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000018847$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18848 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000018849if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018850 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18851else
18852 USE_MAINTAINER_MODE=no
18853fi
18854
cristy8b350f62009-11-15 23:12:43 +000018855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000018856$as_echo "$USE_MAINTAINER_MODE" >&6; }
18857 if test $USE_MAINTAINER_MODE = yes; then
18858 MAINTAINER_MODE_TRUE=
18859 MAINTAINER_MODE_FALSE='#'
18860else
18861 MAINTAINER_MODE_TRUE='#'
18862 MAINTAINER_MODE_FALSE=
18863fi
18864
18865 MAINT=$MAINTAINER_MODE_TRUE
18866
18867
18868
18869
18870# Enable ccmalloc memory debugging support
18871# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000018872if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018873 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
18874else
18875 enable_ccmalloc='no'
18876fi
18877
18878
18879# Enable Electric Fence memory debugging support
18880# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000018881if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018882 enableval=$enable_efence; enable_efence=$enableval
18883else
18884 enable_efence='no'
18885fi
18886
18887
18888# Enable prof-based profiling support
18889# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000018890if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018891 enableval=$enable_prof; enable_prof=$enableval
18892else
18893 enable_prof='no'
18894fi
18895
18896
18897# Enable gprof-based profiling support
18898# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000018899if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018900 enableval=$enable_gprof; enable_gprof=$enableval
18901else
18902 enable_gprof='no'
18903fi
18904
18905
18906# Enable gcov-based profiling support
18907# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000018908if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018909 enableval=$enable_gcov; enable_gcov=$enableval
18910else
18911 enable_gcov='no'
18912fi
18913
18914
18915enable_profiling='no'
18916if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
18917 enable_profiling='yes'
18918 if test "$libtool_build_shared_libs" = 'yes'; then
18919 echo "Warning: Can not profile code using shared libraries"
18920 fi
18921fi
18922
18923# Magick API method prefix
18924
18925# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000018926if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018927 withval=$with_method_prefix; with_method_prefix=$enableval
18928else
18929 with_method_prefix=''
18930fi
18931
18932
18933if test "$with_method_prefix" != ''; then
18934
18935cat >>confdefs.h <<_ACEOF
18936#define NAMESPACE_PREFIX $with_method_prefix
18937_ACEOF
18938
18939fi
18940
18941# Number of bits in a Quantum
18942
18943# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000018944if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018945 withval=$with_quantum_depth; with_quantum_depth=$withval
18946else
18947 with_quantum_depth=16
18948fi
18949
18950
18951if test "$with_quantum_depth" != '8'; then
18952 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
18953fi
18954
18955case "${with_quantum_depth}" in
18956 8 ) ;;
18957 16 ) ;;
18958 32 ) ;;
18959 64 ) ;;
cristy8b350f62009-11-15 23:12:43 +000018960 * ) { as_fn_set_status 16
18961as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000018962esac
18963QUANTUM_DEPTH="$with_quantum_depth"
18964
18965cat >>confdefs.h <<_ACEOF
18966#define QUANTUM_DEPTH $QUANTUM_DEPTH
18967_ACEOF
18968
18969
18970# Set pixel cache threshold
18971
18972# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000018973if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018974 withval=$with_cache; with_cache=$withval
18975else
18976 with_cache=''
18977fi
18978
18979
18980if test "$with_cache" != ''; then
18981
18982cat >>confdefs.h <<_ACEOF
18983#define PixelCacheThreshold $with_cache
18984_ACEOF
18985
18986 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
18987fi
18988
18989# Disable/Enable support for full delegate paths
18990
18991# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000018992if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018993 withval=$with_frozenpaths; with_frozenpaths=$withval
18994else
18995 with_frozenpaths='no'
18996fi
18997
18998
18999# Enable build/install of Magick++
19000
19001# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000019002if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019003 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
19004else
19005 with_magick_plus_plus='yes'
19006fi
19007
19008
19009# Disable build/install of PerlMagick.
19010
19011# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000019012if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019013 withval=$with_perl; with_perl=$withval
19014else
19015 with_perl=$libtool_build_shared_libs
19016fi
19017
19018
19019# Options to pass when configuring PerlMagick
19020
19021# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000019022if test "${with_perl_options+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019023 withval=$with_perl_options;
19024fi
19025
19026
19027PERL_MAKE_OPTIONS=$with_perl_options
19028
19029
19030
19031# Enable umem, object-caching memory allocation library.
19032
19033# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000019034if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019035 withval=$with_umem; with_umem=$withval
19036else
19037 with_umem='no'
19038fi
19039
19040if test "$with_umem" != 'yes' ; then
19041 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
19042fi
19043
19044#
19045# Specify path to shared libstdc++ if not in normal location
19046#
19047
19048# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000019049if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019050 withval=$with_libstdc; with_libstdc=$withval
19051else
19052 with_libstdc=''
19053fi
19054
19055
19056if test "$with_libstdc" != ''; then
19057 if test -d "$with_libstdc"; then
19058 LIBSTDCLDFLAGS="-L$with_libstdc"
19059 fi
19060fi
19061
19062
19063# Does gcc required -traditional?
19064if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000019065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000019066$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019067if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019068 $as_echo_n "(cached) " >&6
19069else
19070 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000019071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019072/* end confdefs.h. */
19073#include <sgtty.h>
19074Autoconf TIOCGETP
19075_ACEOF
19076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019077 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019078 ac_cv_prog_gcc_traditional=yes
19079else
19080 ac_cv_prog_gcc_traditional=no
19081fi
19082rm -f conftest*
19083
19084
19085 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000019086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019087/* end confdefs.h. */
19088#include <termio.h>
19089Autoconf TCGETA
19090_ACEOF
19091if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019092 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019093 ac_cv_prog_gcc_traditional=yes
19094fi
19095rm -f conftest*
19096
19097 fi
19098fi
cristy8b350f62009-11-15 23:12:43 +000019099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000019100$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
19101 if test $ac_cv_prog_gcc_traditional = yes; then
19102 CC="$CC -traditional"
19103 fi
19104fi
19105
19106
19107########
19108#
19109# Set defines required to build DLLs and modules using MinGW
19110#
19111########
19112# These options are set for multi-thread DLL module build
19113# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
19114# module: _DLL
19115# executable/Magick++: _DLL _MAGICKMOD_
19116MODULE_EXTRA_CPPFLAGS=''
19117LIBRARY_EXTRA_CPPFLAGS=''
19118if test "${native_win32_build}" = 'yes'; then
19119 if test "${libtool_build_shared_libs}" = 'yes'; then
19120 CPPFLAGS="$CPPFLAGS -D_DLL"
19121 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
19122 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
19123 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19124 if test "$with_modules" = 'yes'; then
19125 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
19126 else
19127 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19128 fi
19129 else
19130 CPPFLAGS="$CPPFLAGS -D_LIB"
19131 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
19132 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
19133 fi
19134 if test "$with_threads" = 'yes'; then
19135 CPPFLAGS="$CPPFLAGS -D_MT"
19136 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
19137 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
19138 fi
19139fi
19140
19141
19142
19143# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000019144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000019145$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019146if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019147 $as_echo_n "(cached) " >&6
19148else
cristy8b350f62009-11-15 23:12:43 +000019149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019150/* end confdefs.h. */
19151#include <stdlib.h>
19152#include <stdarg.h>
19153#include <string.h>
19154#include <float.h>
19155
19156int
19157main ()
19158{
19159
19160 ;
19161 return 0;
19162}
19163_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019164if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019165 ac_cv_header_stdc=yes
19166else
cristy8b350f62009-11-15 23:12:43 +000019167 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000019168fi
cristy3ed852e2009-09-05 21:47:34 +000019169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19170
19171if test $ac_cv_header_stdc = yes; then
19172 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000019173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019174/* end confdefs.h. */
19175#include <string.h>
19176
19177_ACEOF
19178if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019179 $EGREP "memchr" >/dev/null 2>&1; then :
19180
cristy3ed852e2009-09-05 21:47:34 +000019181else
19182 ac_cv_header_stdc=no
19183fi
19184rm -f conftest*
19185
19186fi
19187
19188if test $ac_cv_header_stdc = yes; then
19189 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000019190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019191/* end confdefs.h. */
19192#include <stdlib.h>
19193
19194_ACEOF
19195if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019196 $EGREP "free" >/dev/null 2>&1; then :
19197
cristy3ed852e2009-09-05 21:47:34 +000019198else
19199 ac_cv_header_stdc=no
19200fi
19201rm -f conftest*
19202
19203fi
19204
19205if test $ac_cv_header_stdc = yes; then
19206 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000019207 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019208 :
19209else
cristy8b350f62009-11-15 23:12:43 +000019210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019211/* end confdefs.h. */
19212#include <ctype.h>
19213#include <stdlib.h>
19214#if ((' ' & 0x0FF) == 0x020)
19215# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19216# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19217#else
19218# define ISLOWER(c) \
19219 (('a' <= (c) && (c) <= 'i') \
19220 || ('j' <= (c) && (c) <= 'r') \
19221 || ('s' <= (c) && (c) <= 'z'))
19222# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19223#endif
19224
19225#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19226int
19227main ()
19228{
19229 int i;
19230 for (i = 0; i < 256; i++)
19231 if (XOR (islower (i), ISLOWER (i))
19232 || toupper (i) != TOUPPER (i))
19233 return 2;
19234 return 0;
19235}
19236_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019237if ac_fn_c_try_run "$LINENO"; then :
19238
cristy3ed852e2009-09-05 21:47:34 +000019239else
cristy8b350f62009-11-15 23:12:43 +000019240 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000019241fi
cristy8b350f62009-11-15 23:12:43 +000019242rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19243 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019244fi
19245
cristy3ed852e2009-09-05 21:47:34 +000019246fi
19247fi
cristy8b350f62009-11-15 23:12:43 +000019248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000019249$as_echo "$ac_cv_header_stdc" >&6; }
19250if test $ac_cv_header_stdc = yes; then
19251
cristy8b350f62009-11-15 23:12:43 +000019252$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019253
19254fi
19255
19256if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000019257 { $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 +000019258 header files. Compilation cannot proceed. Please install the ANSI C
19259 headers and rerun this script." >&5
19260$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
19261 header files. Compilation cannot proceed. Please install the ANSI C
19262 headers and rerun this script." >&2;};
19263fi
cristy3ed852e2009-09-05 21:47:34 +000019264ac_header_dirent=no
19265for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19266 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000019267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000019268$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000019270 $as_echo_n "(cached) " >&6
19271else
cristy8b350f62009-11-15 23:12:43 +000019272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019273/* end confdefs.h. */
19274#include <sys/types.h>
19275#include <$ac_hdr>
19276
19277int
19278main ()
19279{
19280if ((DIR *) 0)
19281return 0;
19282 ;
19283 return 0;
19284}
19285_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019286if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019287 eval "$as_ac_Header=yes"
19288else
cristy8b350f62009-11-15 23:12:43 +000019289 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000019290fi
cristy3ed852e2009-09-05 21:47:34 +000019291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19292fi
cristy8b350f62009-11-15 23:12:43 +000019293eval ac_res=\$$as_ac_Header
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000019295$as_echo "$ac_res" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019296eval as_val=\$$as_ac_Header
19297 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019298 cat >>confdefs.h <<_ACEOF
19299#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19300_ACEOF
19301
19302ac_header_dirent=$ac_hdr; break
19303fi
19304
19305done
19306# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19307if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000019308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019309$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019310if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019311 $as_echo_n "(cached) " >&6
19312else
19313 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019315/* end confdefs.h. */
19316
19317/* Override any GCC internal prototype to avoid an error.
19318 Use char because int might match the return type of a GCC
19319 builtin and then its argument prototype would still apply. */
19320#ifdef __cplusplus
19321extern "C"
19322#endif
19323char opendir ();
19324int
19325main ()
19326{
19327return opendir ();
19328 ;
19329 return 0;
19330}
19331_ACEOF
19332for ac_lib in '' dir; do
19333 if test -z "$ac_lib"; then
19334 ac_res="none required"
19335 else
19336 ac_res=-l$ac_lib
19337 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19338 fi
cristy8b350f62009-11-15 23:12:43 +000019339 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019340 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019341fi
cristy8b350f62009-11-15 23:12:43 +000019342rm -f core conftest.err conftest.$ac_objext \
19343 conftest$ac_exeext
19344 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019345 break
19346fi
19347done
cristy8b350f62009-11-15 23:12:43 +000019348if test "${ac_cv_search_opendir+set}" = set; then :
19349
cristy3ed852e2009-09-05 21:47:34 +000019350else
19351 ac_cv_search_opendir=no
19352fi
19353rm conftest.$ac_ext
19354LIBS=$ac_func_search_save_LIBS
19355fi
cristy8b350f62009-11-15 23:12:43 +000019356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019357$as_echo "$ac_cv_search_opendir" >&6; }
19358ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000019359if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019360 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19361
19362fi
19363
19364else
cristy8b350f62009-11-15 23:12:43 +000019365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019366$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019367if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019368 $as_echo_n "(cached) " >&6
19369else
19370 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019372/* end confdefs.h. */
19373
19374/* Override any GCC internal prototype to avoid an error.
19375 Use char because int might match the return type of a GCC
19376 builtin and then its argument prototype would still apply. */
19377#ifdef __cplusplus
19378extern "C"
19379#endif
19380char opendir ();
19381int
19382main ()
19383{
19384return opendir ();
19385 ;
19386 return 0;
19387}
19388_ACEOF
19389for ac_lib in '' x; do
19390 if test -z "$ac_lib"; then
19391 ac_res="none required"
19392 else
19393 ac_res=-l$ac_lib
19394 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19395 fi
cristy8b350f62009-11-15 23:12:43 +000019396 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019397 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019398fi
cristy8b350f62009-11-15 23:12:43 +000019399rm -f core conftest.err conftest.$ac_objext \
19400 conftest$ac_exeext
19401 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019402 break
19403fi
19404done
cristy8b350f62009-11-15 23:12:43 +000019405if test "${ac_cv_search_opendir+set}" = set; then :
19406
cristy3ed852e2009-09-05 21:47:34 +000019407else
19408 ac_cv_search_opendir=no
19409fi
19410rm conftest.$ac_ext
19411LIBS=$ac_func_search_save_LIBS
19412fi
cristy8b350f62009-11-15 23:12:43 +000019413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019414$as_echo "$ac_cv_search_opendir" >&6; }
19415ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000019416if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019417 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19418
19419fi
19420
19421fi
19422
19423
19424# Check additional headers
cristy3ed852e2009-09-05 21:47:34 +000019425for ac_header in arm/limits.h complex.h errno.h fcntl.h inttypes.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h stdarg.h stddef.h string.h strings.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/wait.h unistd.h wchar.h
cristy8b350f62009-11-15 23:12:43 +000019426do :
19427 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19428ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19429eval as_val=\$$as_ac_Header
19430 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019431 cat >>confdefs.h <<_ACEOF
19432#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19433_ACEOF
19434
19435fi
19436
19437done
19438
19439
19440########
19441#
19442# Checks for typedefs, structures, and compiler characteristics.
19443#
19444########
19445
cristy8b350f62009-11-15 23:12:43 +000019446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000019447$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019448if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019449 $as_echo_n "(cached) " >&6
19450else
cristy8b350f62009-11-15 23:12:43 +000019451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019452/* end confdefs.h. */
19453
19454#include <stdbool.h>
19455#ifndef bool
19456 "error: bool is not defined"
19457#endif
19458#ifndef false
19459 "error: false is not defined"
19460#endif
19461#if false
19462 "error: false is not 0"
19463#endif
19464#ifndef true
19465 "error: true is not defined"
19466#endif
19467#if true != 1
19468 "error: true is not 1"
19469#endif
19470#ifndef __bool_true_false_are_defined
19471 "error: __bool_true_false_are_defined is not defined"
19472#endif
19473
19474 struct s { _Bool s: 1; _Bool t; } s;
19475
19476 char a[true == 1 ? 1 : -1];
19477 char b[false == 0 ? 1 : -1];
19478 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19479 char d[(bool) 0.5 == true ? 1 : -1];
19480 bool e = &s;
19481 char f[(_Bool) 0.0 == false ? 1 : -1];
19482 char g[true];
19483 char h[sizeof (_Bool)];
19484 char i[sizeof s.t];
19485 enum { j = false, k = true, l = false * true, m = true * 256 };
19486 /* The following fails for
19487 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19488 _Bool n[m];
19489 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19490 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19491# if defined __xlc__ || defined __GNUC__
19492 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
19493 reported by James Lemley on 2005-10-05; see
19494 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
19495 This test is not quite right, since xlc is allowed to
19496 reject this program, as the initializer for xlcbug is
19497 not one of the forms that C requires support for.
19498 However, doing the test right would require a runtime
19499 test, and that would make cross-compilation harder.
19500 Let us hope that IBM fixes the xlc bug, and also adds
19501 support for this kind of constant expression. In the
19502 meantime, this test will reject xlc, which is OK, since
19503 our stdbool.h substitute should suffice. We also test
19504 this with GCC, where it should work, to detect more
19505 quickly whether someone messes up the test in the
19506 future. */
19507 char digs[] = "0123456789";
19508 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
19509# endif
19510 /* Catch a bug in an HP-UX C compiler. See
19511 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19512 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19513 */
19514 _Bool q = true;
19515 _Bool *pq = &q;
19516
19517int
19518main ()
19519{
19520
19521 *pq |= q;
19522 *pq |= ! q;
19523 /* Refer to every declared value, to avoid compiler optimizations. */
19524 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19525 + !m + !n + !o + !p + !q + !pq);
19526
19527 ;
19528 return 0;
19529}
19530_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019531if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019532 ac_cv_header_stdbool_h=yes
19533else
cristy8b350f62009-11-15 23:12:43 +000019534 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000019535fi
cristy3ed852e2009-09-05 21:47:34 +000019536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19537fi
cristy8b350f62009-11-15 23:12:43 +000019538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000019539$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019540ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19541if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019542
19543cat >>confdefs.h <<_ACEOF
19544#define HAVE__BOOL 1
19545_ACEOF
19546
19547
19548fi
19549
19550if test $ac_cv_header_stdbool_h = yes; then
19551
cristy8b350f62009-11-15 23:12:43 +000019552$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019553
19554fi
19555
cristy8b350f62009-11-15 23:12:43 +000019556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000019557$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019558if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019559 $as_echo_n "(cached) " >&6
19560else
cristy8b350f62009-11-15 23:12:43 +000019561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019562/* end confdefs.h. */
19563
19564int
19565main ()
19566{
19567
19568volatile int x;
19569int * volatile y = (int *) 0;
19570return !x && !y;
19571 ;
19572 return 0;
19573}
19574_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019575if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019576 ac_cv_c_volatile=yes
19577else
cristy8b350f62009-11-15 23:12:43 +000019578 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000019579fi
cristy3ed852e2009-09-05 21:47:34 +000019580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19581fi
cristy8b350f62009-11-15 23:12:43 +000019582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000019583$as_echo "$ac_cv_c_volatile" >&6; }
19584if test $ac_cv_c_volatile = no; then
19585
cristy8b350f62009-11-15 23:12:43 +000019586$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019587
19588fi
19589
cristy8b350f62009-11-15 23:12:43 +000019590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000019591$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019592if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019593 $as_echo_n "(cached) " >&6
19594else
cristy8b350f62009-11-15 23:12:43 +000019595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019596/* end confdefs.h. */
19597#define x(y) #y
19598
19599char *s = x(teststring);
19600_ACEOF
19601if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019602 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019603 ac_cv_c_stringize=no
19604else
19605 ac_cv_c_stringize=yes
19606fi
19607rm -f conftest*
19608
19609fi
cristy8b350f62009-11-15 23:12:43 +000019610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000019611$as_echo "$ac_cv_c_stringize" >&6; }
19612if test $ac_cv_c_stringize = yes; then
19613
cristy8b350f62009-11-15 23:12:43 +000019614$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019615
19616fi
19617
cristy8b350f62009-11-15 23:12:43 +000019618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000019619$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019620if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019621 $as_echo_n "(cached) " >&6
19622else
cristy8b350f62009-11-15 23:12:43 +000019623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019624/* end confdefs.h. */
19625#include <sys/types.h>
19626#include <sys/stat.h>
19627
19628#if defined S_ISBLK && defined S_IFDIR
19629extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19630#endif
19631
19632#if defined S_ISBLK && defined S_IFCHR
19633extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19634#endif
19635
19636#if defined S_ISLNK && defined S_IFREG
19637extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19638#endif
19639
19640#if defined S_ISSOCK && defined S_IFREG
19641extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19642#endif
19643
19644_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019645if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019646 ac_cv_header_stat_broken=no
19647else
cristy8b350f62009-11-15 23:12:43 +000019648 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000019649fi
cristy3ed852e2009-09-05 21:47:34 +000019650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19651fi
cristy8b350f62009-11-15 23:12:43 +000019652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000019653$as_echo "$ac_cv_header_stat_broken" >&6; }
19654if test $ac_cv_header_stat_broken = yes; then
19655
cristy8b350f62009-11-15 23:12:43 +000019656$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019657
19658fi
19659
cristy8b350f62009-11-15 23:12:43 +000019660{ $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 +000019661$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019662if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019663 $as_echo_n "(cached) " >&6
19664else
cristy8b350f62009-11-15 23:12:43 +000019665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019666/* end confdefs.h. */
19667#include <sys/types.h>
19668#include <sys/time.h>
19669#include <time.h>
19670
19671int
19672main ()
19673{
19674if ((struct tm *) 0)
19675return 0;
19676 ;
19677 return 0;
19678}
19679_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019680if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019681 ac_cv_header_time=yes
19682else
cristy8b350f62009-11-15 23:12:43 +000019683 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000019684fi
cristy3ed852e2009-09-05 21:47:34 +000019685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19686fi
cristy8b350f62009-11-15 23:12:43 +000019687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000019688$as_echo "$ac_cv_header_time" >&6; }
19689if test $ac_cv_header_time = yes; then
19690
cristy8b350f62009-11-15 23:12:43 +000019691$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019692
19693fi
19694
cristy8b350f62009-11-15 23:12:43 +000019695{ $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 +000019696$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019697if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019698 $as_echo_n "(cached) " >&6
19699else
cristy8b350f62009-11-15 23:12:43 +000019700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019701/* end confdefs.h. */
19702#include <sys/types.h>
19703#include <time.h>
19704
19705int
19706main ()
19707{
19708struct tm tm;
19709 int *p = &tm.tm_sec;
19710 return !p;
19711 ;
19712 return 0;
19713}
19714_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019715if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019716 ac_cv_struct_tm=time.h
19717else
cristy8b350f62009-11-15 23:12:43 +000019718 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000019719fi
cristy3ed852e2009-09-05 21:47:34 +000019720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19721fi
cristy8b350f62009-11-15 23:12:43 +000019722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000019723$as_echo "$ac_cv_struct_tm" >&6; }
19724if test $ac_cv_struct_tm = sys/time.h; then
19725
cristy8b350f62009-11-15 23:12:43 +000019726$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019727
19728fi
19729
cristy8b350f62009-11-15 23:12:43 +000019730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000019731$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019732if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019733 $as_echo_n "(cached) " >&6
19734else
19735 echo '#! /bin/cat
19736exit 69
19737' >conftest
19738chmod u+x conftest
19739(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
19740if test $? -ne 69; then
19741 ac_cv_sys_interpreter=yes
19742else
19743 ac_cv_sys_interpreter=no
19744fi
19745rm -f conftest
19746fi
cristy8b350f62009-11-15 23:12:43 +000019747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000019748$as_echo "$ac_cv_sys_interpreter" >&6; }
19749interpval=$ac_cv_sys_interpreter
19750
19751
19752# If the C compiler does not fully support the ANSI C qualifier const,
19753# define const to be empty.
cristy8b350f62009-11-15 23:12:43 +000019754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
cristy3ed852e2009-09-05 21:47:34 +000019755$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019756if test "${ac_cv_c_const+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019757 $as_echo_n "(cached) " >&6
19758else
cristy8b350f62009-11-15 23:12:43 +000019759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019760/* end confdefs.h. */
19761
19762int
19763main ()
19764{
19765/* FIXME: Include the comments suggested by Paul. */
19766#ifndef __cplusplus
19767 /* Ultrix mips cc rejects this. */
19768 typedef int charset[2];
19769 const charset cs;
19770 /* SunOS 4.1.1 cc rejects this. */
19771 char const *const *pcpcc;
19772 char **ppc;
19773 /* NEC SVR4.0.2 mips cc rejects this. */
19774 struct point {int x, y;};
19775 static struct point const zero = {0,0};
19776 /* AIX XL C 1.02.0.0 rejects this.
19777 It does not let you subtract one const X* pointer from another in
19778 an arm of an if-expression whose if-part is not a constant
19779 expression */
19780 const char *g = "string";
19781 pcpcc = &g + (g ? g-g : 0);
19782 /* HPUX 7.0 cc rejects these. */
19783 ++pcpcc;
19784 ppc = (char**) pcpcc;
19785 pcpcc = (char const *const *) ppc;
19786 { /* SCO 3.2v4 cc rejects this. */
19787 char *t;
19788 char const *s = 0 ? (char *) 0 : (char const *) 0;
19789
19790 *t++ = 0;
19791 if (s) return 0;
19792 }
19793 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19794 int x[] = {25, 17};
19795 const int *foo = &x[0];
19796 ++foo;
19797 }
19798 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19799 typedef const int *iptr;
19800 iptr p = 0;
19801 ++p;
19802 }
19803 { /* AIX XL C 1.02.0.0 rejects this saying
19804 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19805 struct s { int j; const int *ap[3]; };
19806 struct s *b; b->j = 5;
19807 }
19808 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19809 const int foo = 10;
19810 if (!foo) return 0;
19811 }
19812 return !cs[0] && !zero.x;
19813#endif
19814
19815 ;
19816 return 0;
19817}
19818_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019819if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019820 ac_cv_c_const=yes
19821else
cristy8b350f62009-11-15 23:12:43 +000019822 ac_cv_c_const=no
cristy3ed852e2009-09-05 21:47:34 +000019823fi
cristy3ed852e2009-09-05 21:47:34 +000019824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19825fi
cristy8b350f62009-11-15 23:12:43 +000019826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
cristy3ed852e2009-09-05 21:47:34 +000019827$as_echo "$ac_cv_c_const" >&6; }
19828if test $ac_cv_c_const = no; then
19829
cristy8b350f62009-11-15 23:12:43 +000019830$as_echo "#define const /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019831
19832fi
19833
19834
19835# If the C compiler supports the keyword inline, do nothing. Otherwise
19836# define inline to __inline__ or __inline if it accepts one of those,
19837# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000019838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000019839$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019840if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019841 $as_echo_n "(cached) " >&6
19842else
19843 ac_cv_c_inline=no
19844for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000019845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019846/* end confdefs.h. */
19847#ifndef __cplusplus
19848typedef int foo_t;
19849static $ac_kw foo_t static_foo () {return 0; }
19850$ac_kw foo_t foo () {return 0; }
19851#endif
19852
19853_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019854if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019855 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000019856fi
cristy3ed852e2009-09-05 21:47:34 +000019857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19858 test "$ac_cv_c_inline" != no && break
19859done
19860
19861fi
cristy8b350f62009-11-15 23:12:43 +000019862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000019863$as_echo "$ac_cv_c_inline" >&6; }
19864
cristy3ed852e2009-09-05 21:47:34 +000019865case $ac_cv_c_inline in
19866 inline | yes) ;;
19867 *)
19868 case $ac_cv_c_inline in
19869 no) ac_val=;;
19870 *) ac_val=$ac_cv_c_inline;;
19871 esac
19872 cat >>confdefs.h <<_ACEOF
19873#ifndef __cplusplus
19874#define inline $ac_val
19875#endif
19876_ACEOF
19877 ;;
19878esac
19879
19880
19881# If the C compiler supports the keyword restrict, do nothing. Otherwise
19882# define restrict to __restrict__ or __restrict if it accepts one of those,
19883# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000019884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000019885$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019886if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019887 $as_echo_n "(cached) " >&6
19888else
19889 ac_cv_c_restrict=no
19890 # The order here caters to the fact that C++ does not require restrict.
19891 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000019892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019893/* end confdefs.h. */
19894typedef int * int_ptr;
19895 int foo (int_ptr $ac_kw ip) {
19896 return ip[0];
19897 }
19898int
19899main ()
19900{
19901int s[1];
19902 int * $ac_kw t = s;
19903 t[0] = 0;
19904 return foo(t)
19905 ;
19906 return 0;
19907}
19908_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019909if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019910 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000019911fi
cristy3ed852e2009-09-05 21:47:34 +000019912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19913 test "$ac_cv_c_restrict" != no && break
19914 done
19915
19916fi
cristy8b350f62009-11-15 23:12:43 +000019917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000019918$as_echo "$ac_cv_c_restrict" >&6; }
19919
cristy3ed852e2009-09-05 21:47:34 +000019920 case $ac_cv_c_restrict in
19921 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000019922 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019923 ;;
19924 *) cat >>confdefs.h <<_ACEOF
19925#define restrict $ac_cv_c_restrict
19926_ACEOF
19927 ;;
19928 esac
19929
19930
19931# If words are stored with the most significant byte first (like
19932# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000019933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000019934$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019935if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019936 $as_echo_n "(cached) " >&6
19937else
19938 ac_cv_c_bigendian=unknown
19939 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000019940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019941/* end confdefs.h. */
19942#ifndef __APPLE_CC__
19943 not a universal capable compiler
19944 #endif
19945 typedef int dummy;
19946
19947_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019948if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019949
19950 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000019951 # there are at least two -arch flags with different values.
19952 ac_arch=
19953 ac_prev=
19954 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
19955 if test -n "$ac_prev"; then
19956 case $ac_word in
19957 i?86 | x86_64 | ppc | ppc64)
19958 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
19959 ac_arch=$ac_word
19960 else
19961 ac_cv_c_bigendian=universal
19962 break
19963 fi
19964 ;;
19965 esac
19966 ac_prev=
19967 elif test "x$ac_word" = "x-arch"; then
19968 ac_prev=arch
19969 fi
19970 done
cristy3ed852e2009-09-05 21:47:34 +000019971fi
cristy3ed852e2009-09-05 21:47:34 +000019972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19973 if test $ac_cv_c_bigendian = unknown; then
19974 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000019975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019976/* end confdefs.h. */
19977#include <sys/types.h>
19978 #include <sys/param.h>
19979
19980int
19981main ()
19982{
19983#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
19984 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
19985 && LITTLE_ENDIAN)
19986 bogus endian macros
19987 #endif
19988
19989 ;
19990 return 0;
19991}
19992_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019993if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019994 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000019995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019996/* end confdefs.h. */
19997#include <sys/types.h>
19998 #include <sys/param.h>
19999
20000int
20001main ()
20002{
20003#if BYTE_ORDER != BIG_ENDIAN
20004 not big endian
20005 #endif
20006
20007 ;
20008 return 0;
20009}
20010_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020011if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020012 ac_cv_c_bigendian=yes
20013else
cristy8b350f62009-11-15 23:12:43 +000020014 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000020015fi
cristy3ed852e2009-09-05 21:47:34 +000020016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020017fi
cristy3ed852e2009-09-05 21:47:34 +000020018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20019 fi
20020 if test $ac_cv_c_bigendian = unknown; then
20021 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000020022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020023/* end confdefs.h. */
20024#include <limits.h>
20025
20026int
20027main ()
20028{
20029#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20030 bogus endian macros
20031 #endif
20032
20033 ;
20034 return 0;
20035}
20036_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020037if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020038 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000020039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020040/* end confdefs.h. */
20041#include <limits.h>
20042
20043int
20044main ()
20045{
20046#ifndef _BIG_ENDIAN
20047 not big endian
20048 #endif
20049
20050 ;
20051 return 0;
20052}
20053_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020054if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020055 ac_cv_c_bigendian=yes
20056else
cristy8b350f62009-11-15 23:12:43 +000020057 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000020058fi
cristy3ed852e2009-09-05 21:47:34 +000020059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020060fi
cristy3ed852e2009-09-05 21:47:34 +000020061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20062 fi
20063 if test $ac_cv_c_bigendian = unknown; then
20064 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000020065 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020066 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000020067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020068/* end confdefs.h. */
20069short int ascii_mm[] =
20070 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20071 short int ascii_ii[] =
20072 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20073 int use_ascii (int i) {
20074 return ascii_mm[i] + ascii_ii[i];
20075 }
20076 short int ebcdic_ii[] =
20077 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20078 short int ebcdic_mm[] =
20079 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20080 int use_ebcdic (int i) {
20081 return ebcdic_mm[i] + ebcdic_ii[i];
20082 }
20083 extern int foo;
20084
20085int
20086main ()
20087{
20088return use_ascii (foo) == use_ebcdic (foo);
20089 ;
20090 return 0;
20091}
20092_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020093if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020094 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20095 ac_cv_c_bigendian=yes
20096 fi
20097 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20098 if test "$ac_cv_c_bigendian" = unknown; then
20099 ac_cv_c_bigendian=no
20100 else
20101 # finding both strings is unlikely to happen, but who knows?
20102 ac_cv_c_bigendian=unknown
20103 fi
20104 fi
cristy3ed852e2009-09-05 21:47:34 +000020105fi
cristy3ed852e2009-09-05 21:47:34 +000020106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20107else
cristy8b350f62009-11-15 23:12:43 +000020108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020109/* end confdefs.h. */
20110$ac_includes_default
20111int
20112main ()
20113{
20114
20115 /* Are we little or big endian? From Harbison&Steele. */
20116 union
20117 {
20118 long int l;
20119 char c[sizeof (long int)];
20120 } u;
20121 u.l = 1;
20122 return u.c[sizeof (long int) - 1] == 1;
20123
20124 ;
20125 return 0;
20126}
20127_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020128if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020129 ac_cv_c_bigendian=no
20130else
cristy8b350f62009-11-15 23:12:43 +000020131 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000020132fi
cristy8b350f62009-11-15 23:12:43 +000020133rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20134 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020135fi
20136
cristy3ed852e2009-09-05 21:47:34 +000020137 fi
20138fi
cristy8b350f62009-11-15 23:12:43 +000020139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000020140$as_echo "$ac_cv_c_bigendian" >&6; }
20141 case $ac_cv_c_bigendian in #(
20142 yes)
cristy8b350f62009-11-15 23:12:43 +000020143 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020144;; #(
20145 no)
20146 ;; #(
20147 universal)
20148
cristy8b350f62009-11-15 23:12:43 +000020149$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020150
20151 ;; #(
20152 *)
cristy8b350f62009-11-15 23:12:43 +000020153 as_fn_error "unknown endianness
20154 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020155 esac
20156
20157
20158# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020159ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20160if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020161
cristy3ed852e2009-09-05 21:47:34 +000020162else
20163
20164cat >>confdefs.h <<_ACEOF
20165#define mode_t int
20166_ACEOF
20167
20168fi
20169
20170
20171# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020172ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20173if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020174
cristy3ed852e2009-09-05 21:47:34 +000020175else
20176
20177cat >>confdefs.h <<_ACEOF
20178#define off_t long int
20179_ACEOF
20180
20181fi
20182
20183
20184# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020185ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20186if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020187
cristy3ed852e2009-09-05 21:47:34 +000020188else
20189
20190cat >>confdefs.h <<_ACEOF
20191#define pid_t int
20192_ACEOF
20193
20194fi
20195
20196
20197# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020198ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20199if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020200
cristy3ed852e2009-09-05 21:47:34 +000020201else
20202
20203cat >>confdefs.h <<_ACEOF
20204#define size_t unsigned int
20205_ACEOF
20206
20207fi
20208
20209
20210# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020211ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
20212if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020213
cristy3ed852e2009-09-05 21:47:34 +000020214else
20215
20216cat >>confdefs.h <<_ACEOF
20217#define ssize_t int
20218_ACEOF
20219
20220fi
20221
20222
20223# If the C compiler supports a working long double type with more range
20224# or precision than the double type, define HAVE_LONG_DOUBLE.
20225
cristy8b350f62009-11-15 23:12:43 +000020226 { $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 +000020227$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020228if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020229 $as_echo_n "(cached) " >&6
20230else
cristy8b350f62009-11-15 23:12:43 +000020231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020232/* end confdefs.h. */
20233#include <float.h>
20234 long double const a[] =
20235 {
20236 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
20237 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
20238 };
20239 long double
20240 f (long double x)
20241 {
20242 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
20243 + (x ? f (x) : 'c'));
20244 }
20245
20246int
20247main ()
20248{
20249static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
20250 + (DBL_MANT_DIG < LDBL_MANT_DIG)
20251 - (LDBL_MAX_EXP < DBL_MAX_EXP)
20252 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
20253 && (int) LDBL_EPSILON == 0
20254 )];
20255test_array [0] = 0
20256
20257 ;
20258 return 0;
20259}
20260_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020261if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020262 ac_cv_type_long_double_wider=yes
20263else
cristy8b350f62009-11-15 23:12:43 +000020264 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000020265fi
cristy3ed852e2009-09-05 21:47:34 +000020266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20267fi
cristy8b350f62009-11-15 23:12:43 +000020268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000020269$as_echo "$ac_cv_type_long_double_wider" >&6; }
20270 if test $ac_cv_type_long_double_wider = yes; then
20271
cristy8b350f62009-11-15 23:12:43 +000020272$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020273
20274 fi
20275
20276
20277# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
20278# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000020279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000020280$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020281if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020282 $as_echo_n "(cached) " >&6
20283else
cristy8b350f62009-11-15 23:12:43 +000020284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020285/* end confdefs.h. */
20286$ac_includes_default
20287int
20288main ()
20289{
20290static int test_array [1 - 2 * !(((char) -1) < 0)];
20291test_array [0] = 0
20292
20293 ;
20294 return 0;
20295}
20296_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020297if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020298 ac_cv_c_char_unsigned=no
20299else
cristy8b350f62009-11-15 23:12:43 +000020300 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000020301fi
cristy3ed852e2009-09-05 21:47:34 +000020302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20303fi
cristy8b350f62009-11-15 23:12:43 +000020304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000020305$as_echo "$ac_cv_c_char_unsigned" >&6; }
20306if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000020307 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020308
20309fi
20310
20311
20312# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
20313# The cast to long int works around a bug in the HP C Compiler
20314# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20315# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20316# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020318$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020319if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020320 $as_echo_n "(cached) " >&6
20321else
cristy8b350f62009-11-15 23:12:43 +000020322 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 +000020323
cristy3ed852e2009-09-05 21:47:34 +000020324else
cristy8b350f62009-11-15 23:12:43 +000020325 if test "$ac_cv_type_signed_short" = yes; then
20326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020328{ as_fn_set_status 77
20329as_fn_error "cannot compute sizeof (signed short)
20330See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020331 else
20332 ac_cv_sizeof_signed_short=0
20333 fi
20334fi
cristy8b350f62009-11-15 23:12:43 +000020335
cristy3ed852e2009-09-05 21:47:34 +000020336fi
cristy8b350f62009-11-15 23:12:43 +000020337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020338$as_echo "$ac_cv_sizeof_signed_short" >&6; }
20339
20340
20341
20342cat >>confdefs.h <<_ACEOF
20343#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
20344_ACEOF
20345
20346
20347
20348# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
20349# The cast to long int works around a bug in the HP C Compiler
20350# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20351# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20352# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020354$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020355if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020356 $as_echo_n "(cached) " >&6
20357else
cristy8b350f62009-11-15 23:12:43 +000020358 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 +000020359
cristy3ed852e2009-09-05 21:47:34 +000020360else
cristy8b350f62009-11-15 23:12:43 +000020361 if test "$ac_cv_type_unsigned_short" = yes; then
20362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020364{ as_fn_set_status 77
20365as_fn_error "cannot compute sizeof (unsigned short)
20366See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020367 else
20368 ac_cv_sizeof_unsigned_short=0
20369 fi
20370fi
cristy8b350f62009-11-15 23:12:43 +000020371
cristy3ed852e2009-09-05 21:47:34 +000020372fi
cristy8b350f62009-11-15 23:12:43 +000020373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020374$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
20375
20376
20377
20378cat >>confdefs.h <<_ACEOF
20379#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20380_ACEOF
20381
20382
20383
20384# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
20385# The cast to long int works around a bug in the HP C Compiler
20386# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20387# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20388# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020390$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020391if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020392 $as_echo_n "(cached) " >&6
20393else
cristy8b350f62009-11-15 23:12:43 +000020394 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 +000020395
cristy3ed852e2009-09-05 21:47:34 +000020396else
cristy8b350f62009-11-15 23:12:43 +000020397 if test "$ac_cv_type_signed_int" = yes; then
20398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020400{ as_fn_set_status 77
20401as_fn_error "cannot compute sizeof (signed int)
20402See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020403 else
20404 ac_cv_sizeof_signed_int=0
20405 fi
20406fi
cristy8b350f62009-11-15 23:12:43 +000020407
cristy3ed852e2009-09-05 21:47:34 +000020408fi
cristy8b350f62009-11-15 23:12:43 +000020409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020410$as_echo "$ac_cv_sizeof_signed_int" >&6; }
20411
20412
20413
20414cat >>confdefs.h <<_ACEOF
20415#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
20416_ACEOF
20417
20418
20419
20420# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
20421# The cast to long int works around a bug in the HP C Compiler
20422# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20423# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20424# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020426$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020427if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020428 $as_echo_n "(cached) " >&6
20429else
cristy8b350f62009-11-15 23:12:43 +000020430 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 +000020431
cristy3ed852e2009-09-05 21:47:34 +000020432else
cristy8b350f62009-11-15 23:12:43 +000020433 if test "$ac_cv_type_unsigned_int" = yes; then
20434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020436{ as_fn_set_status 77
20437as_fn_error "cannot compute sizeof (unsigned int)
20438See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020439 else
20440 ac_cv_sizeof_unsigned_int=0
20441 fi
20442fi
cristy8b350f62009-11-15 23:12:43 +000020443
cristy3ed852e2009-09-05 21:47:34 +000020444fi
cristy8b350f62009-11-15 23:12:43 +000020445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020446$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20447
20448
20449
20450cat >>confdefs.h <<_ACEOF
20451#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20452_ACEOF
20453
20454
20455
20456# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
20457# The cast to long int works around a bug in the HP C Compiler
20458# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20459# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20460# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020462$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020463if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020464 $as_echo_n "(cached) " >&6
20465else
cristy8b350f62009-11-15 23:12:43 +000020466 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 +000020467
cristy3ed852e2009-09-05 21:47:34 +000020468else
cristy8b350f62009-11-15 23:12:43 +000020469 if test "$ac_cv_type_signed_long" = yes; then
20470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020472{ as_fn_set_status 77
20473as_fn_error "cannot compute sizeof (signed long)
20474See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020475 else
20476 ac_cv_sizeof_signed_long=0
20477 fi
20478fi
cristy8b350f62009-11-15 23:12:43 +000020479
cristy3ed852e2009-09-05 21:47:34 +000020480fi
cristy8b350f62009-11-15 23:12:43 +000020481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020482$as_echo "$ac_cv_sizeof_signed_long" >&6; }
20483
20484
20485
20486cat >>confdefs.h <<_ACEOF
20487#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
20488_ACEOF
20489
20490
20491
20492# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
20493# The cast to long int works around a bug in the HP C Compiler
20494# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20495# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20496# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020498$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020499if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020500 $as_echo_n "(cached) " >&6
20501else
cristy8b350f62009-11-15 23:12:43 +000020502 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 +000020503
cristy3ed852e2009-09-05 21:47:34 +000020504else
cristy8b350f62009-11-15 23:12:43 +000020505 if test "$ac_cv_type_unsigned_long" = yes; then
20506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020508{ as_fn_set_status 77
20509as_fn_error "cannot compute sizeof (unsigned long)
20510See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020511 else
20512 ac_cv_sizeof_unsigned_long=0
20513 fi
20514fi
cristy8b350f62009-11-15 23:12:43 +000020515
cristy3ed852e2009-09-05 21:47:34 +000020516fi
cristy8b350f62009-11-15 23:12:43 +000020517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020518$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20519
20520
20521
20522cat >>confdefs.h <<_ACEOF
20523#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20524_ACEOF
20525
20526
20527
20528# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
20529# 'signed long long' is not supported then the value defined is zero.
20530# The cast to long int works around a bug in the HP C Compiler
20531# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20532# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20533# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020535$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020536if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020537 $as_echo_n "(cached) " >&6
20538else
cristy8b350f62009-11-15 23:12:43 +000020539 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 +000020540
cristy3ed852e2009-09-05 21:47:34 +000020541else
cristy8b350f62009-11-15 23:12:43 +000020542 if test "$ac_cv_type_signed_long_long" = yes; then
20543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020545{ as_fn_set_status 77
20546as_fn_error "cannot compute sizeof (signed long long)
20547See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020548 else
20549 ac_cv_sizeof_signed_long_long=0
20550 fi
20551fi
cristy8b350f62009-11-15 23:12:43 +000020552
cristy3ed852e2009-09-05 21:47:34 +000020553fi
cristy8b350f62009-11-15 23:12:43 +000020554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020555$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
20556
20557
20558
20559cat >>confdefs.h <<_ACEOF
20560#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
20561_ACEOF
20562
20563
20564
20565# Obtain size of a 'unsigned long long' and define as
20566# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
20567# supported then the value defined is zero.
20568# The cast to long int works around a bug in the HP C Compiler
20569# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20570# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20571# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020573$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020574if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020575 $as_echo_n "(cached) " >&6
20576else
cristy8b350f62009-11-15 23:12:43 +000020577 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 +000020578
cristy3ed852e2009-09-05 21:47:34 +000020579else
cristy8b350f62009-11-15 23:12:43 +000020580 if test "$ac_cv_type_unsigned_long_long" = yes; then
20581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020583{ as_fn_set_status 77
20584as_fn_error "cannot compute sizeof (unsigned long long)
20585See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020586 else
20587 ac_cv_sizeof_unsigned_long_long=0
20588 fi
20589fi
cristy8b350f62009-11-15 23:12:43 +000020590
cristy3ed852e2009-09-05 21:47:34 +000020591fi
cristy8b350f62009-11-15 23:12:43 +000020592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020593$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
20594
20595
20596
20597cat >>confdefs.h <<_ACEOF
20598#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
20599_ACEOF
20600
20601
20602
20603# Obtain size of off_t and define as SIZEOF_OFF_T
20604# The cast to long int works around a bug in the HP C Compiler
20605# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20606# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20607# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020609$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020610if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020611 $as_echo_n "(cached) " >&6
20612else
cristy8b350f62009-11-15 23:12:43 +000020613 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 +000020614
cristy3ed852e2009-09-05 21:47:34 +000020615else
cristy8b350f62009-11-15 23:12:43 +000020616 if test "$ac_cv_type_off_t" = yes; then
20617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020618$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020619{ as_fn_set_status 77
20620as_fn_error "cannot compute sizeof (off_t)
20621See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020622 else
20623 ac_cv_sizeof_off_t=0
20624 fi
20625fi
cristy8b350f62009-11-15 23:12:43 +000020626
cristy3ed852e2009-09-05 21:47:34 +000020627fi
cristy8b350f62009-11-15 23:12:43 +000020628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020629$as_echo "$ac_cv_sizeof_off_t" >&6; }
20630
20631
20632
20633cat >>confdefs.h <<_ACEOF
20634#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
20635_ACEOF
20636
20637
20638
20639# Obtain size of size_t and define as SIZEOF_SIZE_T
20640# The cast to long int works around a bug in the HP C Compiler
20641# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20642# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20643# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020645$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020646if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020647 $as_echo_n "(cached) " >&6
20648else
cristy8b350f62009-11-15 23:12:43 +000020649 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 +000020650
cristy3ed852e2009-09-05 21:47:34 +000020651else
cristy8b350f62009-11-15 23:12:43 +000020652 if test "$ac_cv_type_size_t" = yes; then
20653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020654$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020655{ as_fn_set_status 77
20656as_fn_error "cannot compute sizeof (size_t)
20657See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020658 else
20659 ac_cv_sizeof_size_t=0
20660 fi
20661fi
cristy8b350f62009-11-15 23:12:43 +000020662
cristy3ed852e2009-09-05 21:47:34 +000020663fi
cristy8b350f62009-11-15 23:12:43 +000020664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020665$as_echo "$ac_cv_sizeof_size_t" >&6; }
20666
20667
20668
20669cat >>confdefs.h <<_ACEOF
20670#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20671_ACEOF
20672
20673
20674
20675# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
20676# The cast to long int works around a bug in the HP C Compiler
20677# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20678# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20679# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000020681$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020682if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020683 $as_echo_n "(cached) " >&6
20684else
cristy8b350f62009-11-15 23:12:43 +000020685 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 +000020686
cristy3ed852e2009-09-05 21:47:34 +000020687else
cristy8b350f62009-11-15 23:12:43 +000020688 if test "$ac_cv_type_unsigned_intp" = yes; then
20689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020691{ as_fn_set_status 77
20692as_fn_error "cannot compute sizeof (unsigned int*)
20693See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020694 else
20695 ac_cv_sizeof_unsigned_intp=0
20696 fi
20697fi
cristy8b350f62009-11-15 23:12:43 +000020698
cristy3ed852e2009-09-05 21:47:34 +000020699fi
cristy8b350f62009-11-15 23:12:43 +000020700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000020701$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
20702
20703
20704
20705cat >>confdefs.h <<_ACEOF
20706#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
20707_ACEOF
20708
20709
20710
20711#
20712# Compute sized types for current CPU and compiler options.
20713#
20714
cristy8b350f62009-11-15 23:12:43 +000020715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020716$as_echo_n "checking for signed 8-bit type... " >&6; }
20717INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000020718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020719$as_echo "$INT8_T" >&6; }
20720
20721
cristy8b350f62009-11-15 23:12:43 +000020722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020723$as_echo_n "checking for unsigned 8-bit type... " >&6; }
20724UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000020725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020726$as_echo "$UINT8_T" >&6; }
20727
20728
cristy8b350f62009-11-15 23:12:43 +000020729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020730$as_echo_n "checking for signed 16-bit type... " >&6; }
20731INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000020732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020733$as_echo "$INT16_T" >&6; }
20734
20735
cristy8b350f62009-11-15 23:12:43 +000020736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020737$as_echo_n "checking for unsigned 16-bit type... " >&6; }
20738UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000020739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020740$as_echo "$UINT16_T" >&6; }
20741
20742
cristy8b350f62009-11-15 23:12:43 +000020743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020744$as_echo_n "checking for signed 32-bit type... " >&6; }
20745INT32_T='none'
20746if test $ac_cv_sizeof_signed_int -eq 4; then
20747 INT32_T='signed int'
20748elif test $ac_cv_sizeof_signed_long -eq 4; then
20749 INT32_T='signed long'
20750fi
cristy8b350f62009-11-15 23:12:43 +000020751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020752$as_echo "$INT32_T" >&6; }
20753
20754
cristy8b350f62009-11-15 23:12:43 +000020755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020756$as_echo_n "checking for unsigned 32-bit type... " >&6; }
20757UINT32_T='none'
20758if test $ac_cv_sizeof_unsigned_int -eq 4; then
20759 UINT32_T='unsigned int'
20760elif test $ac_cv_sizeof_unsigned_long -eq 4; then
20761 UINT32_T='unsigned long'
20762fi
cristy8b350f62009-11-15 23:12:43 +000020763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020764$as_echo "$UINT32_T" >&6; }
20765
20766
cristy8b350f62009-11-15 23:12:43 +000020767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020768$as_echo_n "checking for signed 64-bit type... " >&6; }
20769INT64_T='none'
20770if test $ac_cv_sizeof_signed_long -eq 8; then
20771 INT64_T='signed long'
20772elif test $ac_cv_sizeof_signed_long_long -eq 8; then
20773 INT64_T='signed long long'
20774fi
cristy8b350f62009-11-15 23:12:43 +000020775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020776$as_echo "$INT64_T" >&6; }
20777
20778
cristy8b350f62009-11-15 23:12:43 +000020779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020780$as_echo_n "checking for unsigned 64-bit type... " >&6; }
20781UINT64_T='none'
20782if test $ac_cv_sizeof_unsigned_long -eq 8; then
20783 UINT64_T='unsigned long'
20784elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
20785 UINT64_T='unsigned long long'
20786fi
cristy8b350f62009-11-15 23:12:43 +000020787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020788$as_echo "$UINT64_T" >&6; }
20789
20790
cristy8b350f62009-11-15 23:12:43 +000020791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020792$as_echo_n "checking for unsigned maximum type... " >&6; }
20793UINTMAX_T='none'
20794if test "$UINT64_T" != 'none'; then
20795 UINTMAX_T=$UINT64_T
20796elif test "$UINT32_T" != 'none'; then
20797 UINTMAX_T=$UINT32_T
20798fi
cristy8b350f62009-11-15 23:12:43 +000020799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020800$as_echo "$UINTMAX_T" >&6; }
20801
20802
cristy8b350f62009-11-15 23:12:43 +000020803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020804$as_echo_n "checking for pointer difference type... " >&6; }
20805UINTPTR_T='none'
20806if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
20807 UINTPTR_T='unsigned long'
20808elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
20809 UINTPTR_T='unsigned long long'
20810fi
cristy8b350f62009-11-15 23:12:43 +000020811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020812$as_echo "$UINTPTR_T" >&6; }
20813
20814
cristy8b350f62009-11-15 23:12:43 +000020815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000020816$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020818/* end confdefs.h. */
20819
20820int
20821main ()
20822{
20823{ const char *func = __func__; return(func != 0 ? 0 : 1); }
20824 ;
20825 return 0;
20826}
20827_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020828if ac_fn_c_try_compile "$LINENO"; then :
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000020830$as_echo "yes" >&6; }
20831else
cristy8b350f62009-11-15 23:12:43 +000020832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000020833$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000020835$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020837/* end confdefs.h. */
20838
20839int
20840main ()
20841{
20842{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
20843 ;
20844 return 0;
20845}
20846_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020847if ac_fn_c_try_compile "$LINENO"; then :
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000020849$as_echo "yes" >&6; }
20850
cristy8b350f62009-11-15 23:12:43 +000020851$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020852
20853else
cristy8b350f62009-11-15 23:12:43 +000020854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000020855$as_echo "no" >&6; }
20856
cristy8b350f62009-11-15 23:12:43 +000020857$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020858
20859fi
cristy3ed852e2009-09-05 21:47:34 +000020860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20861fi
cristy3ed852e2009-09-05 21:47:34 +000020862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20863
20864########
20865#
20866# Check for functions
20867#
20868########
cristy3ed852e2009-09-05 21:47:34 +000020869for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000020870do :
20871 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20872ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20873eval as_val=\$$as_ac_Header
20874 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020875 cat >>confdefs.h <<_ACEOF
20876#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20877_ACEOF
20878
20879fi
20880
20881done
20882
cristy3ed852e2009-09-05 21:47:34 +000020883for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000020884do :
20885 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
20886if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020887 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020888#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000020889_ACEOF
20890
20891fi
20892done
20893
cristy8b350f62009-11-15 23:12:43 +000020894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000020895$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020896if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020897 $as_echo_n "(cached) " >&6
20898else
cristy8b350f62009-11-15 23:12:43 +000020899 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020900 magick_cv_func_mmap_fileio=no
20901else
cristy8b350f62009-11-15 23:12:43 +000020902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020903/* end confdefs.h. */
20904$ac_includes_default
20905/* malloc might have been renamed as rpl_malloc. */
20906#undef malloc
20907
20908/*
20909 This test is derived from GNU Autoconf's similar macro.
20910 The purpose of this test is to verify that files may be memory
20911 mapped, and that memory mapping and file I/O are coherent.
20912
20913 The test creates a test file, memory maps the file, updates
20914 the file using the memory map, and then reads the file using
20915 file I/O to verify that the file contains the updates.
20916*/
20917
20918#include <fcntl.h>
20919#include <sys/mman.h>
20920
20921#if !STDC_HEADERS && !HAVE_STDLIB_H
20922char *malloc ();
20923#endif
20924
20925/* This mess was copied from the GNU getpagesize.h. */
20926#if !HAVE_GETPAGESIZE
20927/* Assume that all systems that can run configure have sys/param.h. */
20928# if !HAVE_SYS_PARAM_H
20929# define HAVE_SYS_PARAM_H 1
20930# endif
20931
20932# ifdef _SC_PAGESIZE
20933# define getpagesize() sysconf(_SC_PAGESIZE)
20934# else /* no _SC_PAGESIZE */
20935# if HAVE_SYS_PARAM_H
20936# include <sys/param.h>
20937# ifdef EXEC_PAGESIZE
20938# define getpagesize() EXEC_PAGESIZE
20939# else /* no EXEC_PAGESIZE */
20940# ifdef NBPG
20941# define getpagesize() NBPG * CLSIZE
20942# ifndef CLSIZE
20943# define CLSIZE 1
20944# endif /* no CLSIZE */
20945# else /* no NBPG */
20946# ifdef NBPC
20947# define getpagesize() NBPC
20948# else /* no NBPC */
20949# ifdef PAGESIZE
20950# define getpagesize() PAGESIZE
20951# endif /* PAGESIZE */
20952# endif /* no NBPC */
20953# endif /* no NBPG */
20954# endif /* no EXEC_PAGESIZE */
20955# else /* no HAVE_SYS_PARAM_H */
20956# define getpagesize() 8192 /* punt totally */
20957# endif /* no HAVE_SYS_PARAM_H */
20958# endif /* no _SC_PAGESIZE */
20959
20960#endif /* no HAVE_GETPAGESIZE */
20961
20962int
20963main ()
20964{
20965 char *data, *data2, *data3;
20966 int i, pagesize;
20967 int fd;
20968
20969 pagesize = getpagesize ();
20970
20971 /* First, make a file with some known garbage in it. */
20972 data = (char *) malloc (pagesize);
20973 if (!data)
20974 exit (1);
20975 for (i = 0; i < pagesize; ++i)
20976 *(data + i) = rand ();
20977 umask (0);
20978 fd = creat ("conftest.mmap", 0600);
20979 if (fd < 0)
20980 exit (1);
20981 if (write (fd, data, pagesize) != pagesize)
20982 exit (1);
20983 close (fd);
20984
20985 /* Mmap the file as read/write/shared and verify that we see the
20986 same garbage. */
20987 fd = open ("conftest.mmap", O_RDWR);
20988 if (fd < 0)
20989 exit (1);
20990 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
20991 if (data2 == 0)
20992 exit (1);
20993 for (i = 0; i < pagesize; ++i)
20994 if (*(data + i) != *(data2 + i))
20995 exit (1);
20996
20997 /* Finally, make sure that changes to the mapped area
20998 percolate back to the file as seen by read(). */
20999 for (i = 0; i < pagesize; ++i)
21000 *(data2 + i) = *(data2 + i) + 1;
21001 data3 = (char *) malloc (pagesize);
21002 if (!data3)
21003 exit (1);
21004 if (read (fd, data3, pagesize) != pagesize)
21005 exit (1);
21006 for (i = 0; i < pagesize; ++i)
21007 if (*(data2 + i) != *(data3 + i))
21008 exit (1);
21009 close (fd);
21010 exit (0);
21011}
21012_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021013if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021014 magick_cv_func_mmap_fileio=yes
21015else
cristy8b350f62009-11-15 23:12:43 +000021016 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000021017fi
cristy8b350f62009-11-15 23:12:43 +000021018rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21019 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021020fi
21021
cristy3ed852e2009-09-05 21:47:34 +000021022fi
cristy8b350f62009-11-15 23:12:43 +000021023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000021024$as_echo "$magick_cv_func_mmap_fileio" >&6; }
21025if test $magick_cv_func_mmap_fileio = yes; then
21026
cristy8b350f62009-11-15 23:12:43 +000021027$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021028
21029fi
21030rm -f conftest.mmap
21031
cristy8b350f62009-11-15 23:12:43 +000021032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000021033$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021034if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021035 $as_echo_n "(cached) " >&6
21036else
cristy8b350f62009-11-15 23:12:43 +000021037 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021038 ac_cv_func_closedir_void=yes
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$ac_includes_default
21043#include <$ac_header_dirent>
21044#ifndef __cplusplus
21045int closedir ();
21046#endif
21047
21048int
21049main ()
21050{
21051return closedir (opendir (".")) != 0;
21052 ;
21053 return 0;
21054}
21055_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021056if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021057 ac_cv_func_closedir_void=no
21058else
cristy8b350f62009-11-15 23:12:43 +000021059 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000021060fi
cristy8b350f62009-11-15 23:12:43 +000021061rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21062 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021063fi
21064
cristy3ed852e2009-09-05 21:47:34 +000021065fi
cristy8b350f62009-11-15 23:12:43 +000021066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000021067$as_echo "$ac_cv_func_closedir_void" >&6; }
21068if test $ac_cv_func_closedir_void = yes; then
21069
cristy8b350f62009-11-15 23:12:43 +000021070$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021071
21072fi
21073
cristycd4c5312009-11-22 01:19:08 +000021074
21075
21076
21077 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000021078do :
21079 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000021080ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21081"
cristy8b350f62009-11-15 23:12:43 +000021082eval as_val=\$$as_ac_Header
21083 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021084 cat >>confdefs.h <<_ACEOF
21085#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21086_ACEOF
21087
21088fi
21089
21090done
21091
cristycd4c5312009-11-22 01:19:08 +000021092
21093
21094
21095
21096
21097
21098
cristy3ed852e2009-09-05 21:47:34 +000021099for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000021100do :
21101 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21102if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021103 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021104#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000021105_ACEOF
21106
21107fi
21108done
21109
cristy8b350f62009-11-15 23:12:43 +000021110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000021111$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021112if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021113 $as_echo_n "(cached) " >&6
21114else
cristy8b350f62009-11-15 23:12:43 +000021115 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021116 ac_cv_func_mmap_fixed_mapped=no
21117else
cristy8b350f62009-11-15 23:12:43 +000021118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021119/* end confdefs.h. */
21120$ac_includes_default
21121/* malloc might have been renamed as rpl_malloc. */
21122#undef malloc
21123
21124/* Thanks to Mike Haertel and Jim Avera for this test.
21125 Here is a matrix of mmap possibilities:
21126 mmap private not fixed
21127 mmap private fixed at somewhere currently unmapped
21128 mmap private fixed at somewhere already mapped
21129 mmap shared not fixed
21130 mmap shared fixed at somewhere currently unmapped
21131 mmap shared fixed at somewhere already mapped
21132 For private mappings, we should verify that changes cannot be read()
21133 back from the file, nor mmap's back from the file at a different
21134 address. (There have been systems where private was not correctly
21135 implemented like the infamous i386 svr4.0, and systems where the
21136 VM page cache was not coherent with the file system buffer cache
21137 like early versions of FreeBSD and possibly contemporary NetBSD.)
21138 For shared mappings, we should conversely verify that changes get
21139 propagated back to all the places they're supposed to be.
21140
21141 Grep wants private fixed already mapped.
21142 The main things grep needs to know about mmap are:
21143 * does it exist and is it safe to write into the mmap'd area
21144 * how to use it (BSD variants) */
21145
21146#include <fcntl.h>
21147#include <sys/mman.h>
21148
21149#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21150char *malloc ();
21151#endif
21152
21153/* This mess was copied from the GNU getpagesize.h. */
21154#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000021155# ifdef _SC_PAGESIZE
21156# define getpagesize() sysconf(_SC_PAGESIZE)
21157# else /* no _SC_PAGESIZE */
21158# ifdef HAVE_SYS_PARAM_H
21159# include <sys/param.h>
21160# ifdef EXEC_PAGESIZE
21161# define getpagesize() EXEC_PAGESIZE
21162# else /* no EXEC_PAGESIZE */
21163# ifdef NBPG
21164# define getpagesize() NBPG * CLSIZE
21165# ifndef CLSIZE
21166# define CLSIZE 1
21167# endif /* no CLSIZE */
21168# else /* no NBPG */
21169# ifdef NBPC
21170# define getpagesize() NBPC
21171# else /* no NBPC */
21172# ifdef PAGESIZE
21173# define getpagesize() PAGESIZE
21174# endif /* PAGESIZE */
21175# endif /* no NBPC */
21176# endif /* no NBPG */
21177# endif /* no EXEC_PAGESIZE */
21178# else /* no HAVE_SYS_PARAM_H */
21179# define getpagesize() 8192 /* punt totally */
21180# endif /* no HAVE_SYS_PARAM_H */
21181# endif /* no _SC_PAGESIZE */
21182
21183#endif /* no HAVE_GETPAGESIZE */
21184
21185int
21186main ()
21187{
21188 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000021189 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000021190 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000021191 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000021192
21193 pagesize = getpagesize ();
21194
21195 /* First, make a file with some known garbage in it. */
21196 data = (char *) malloc (pagesize);
21197 if (!data)
21198 return 1;
21199 for (i = 0; i < pagesize; ++i)
21200 *(data + i) = rand ();
21201 umask (0);
21202 fd = creat ("conftest.mmap", 0600);
21203 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000021204 return 2;
cristy3ed852e2009-09-05 21:47:34 +000021205 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000021206 return 3;
cristy3ed852e2009-09-05 21:47:34 +000021207 close (fd);
21208
cristycd4c5312009-11-22 01:19:08 +000021209 /* Next, check that the tail of a page is zero-filled. File must have
21210 non-zero length, otherwise we risk SIGBUS for entire page. */
21211 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
21212 if (fd2 < 0)
21213 return 4;
cristyc54f5d42009-11-27 21:36:31 +000021214 cdata2 = "";
21215 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000021216 return 5;
cristyc54f5d42009-11-27 21:36:31 +000021217 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000021218 if (data2 == MAP_FAILED)
21219 return 6;
21220 for (i = 0; i < pagesize; ++i)
21221 if (*(data2 + i))
21222 return 7;
21223 close (fd2);
21224 if (munmap (data2, pagesize))
21225 return 8;
21226
cristy3ed852e2009-09-05 21:47:34 +000021227 /* Next, try to mmap the file at a fixed address which already has
21228 something else allocated at it. If we can, also make sure that
21229 we see the same garbage. */
21230 fd = open ("conftest.mmap", O_RDWR);
21231 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000021232 return 9;
cristy3ed852e2009-09-05 21:47:34 +000021233 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21234 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000021235 return 10;
cristy3ed852e2009-09-05 21:47:34 +000021236 for (i = 0; i < pagesize; ++i)
21237 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000021238 return 11;
cristy3ed852e2009-09-05 21:47:34 +000021239
21240 /* Finally, make sure that changes to the mapped area do not
21241 percolate back to the file as seen by read(). (This is a bug on
21242 some variants of i386 svr4.0.) */
21243 for (i = 0; i < pagesize; ++i)
21244 *(data2 + i) = *(data2 + i) + 1;
21245 data3 = (char *) malloc (pagesize);
21246 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000021247 return 12;
cristy3ed852e2009-09-05 21:47:34 +000021248 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000021249 return 13;
cristy3ed852e2009-09-05 21:47:34 +000021250 for (i = 0; i < pagesize; ++i)
21251 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000021252 return 14;
cristy3ed852e2009-09-05 21:47:34 +000021253 close (fd);
21254 return 0;
21255}
21256_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021257if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021258 ac_cv_func_mmap_fixed_mapped=yes
21259else
cristy8b350f62009-11-15 23:12:43 +000021260 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000021261fi
cristy8b350f62009-11-15 23:12:43 +000021262rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21263 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021264fi
21265
cristy3ed852e2009-09-05 21:47:34 +000021266fi
cristy8b350f62009-11-15 23:12:43 +000021267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000021268$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
21269if test $ac_cv_func_mmap_fixed_mapped = yes; then
21270
cristy8b350f62009-11-15 23:12:43 +000021271$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021272
21273fi
cristycd4c5312009-11-22 01:19:08 +000021274rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000021275
cristy3ed852e2009-09-05 21:47:34 +000021276for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000021277do :
21278 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21279if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021280 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021281#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000021282_ACEOF
21283
21284fi
21285
21286done
21287
cristy3ed852e2009-09-05 21:47:34 +000021288for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000021289do :
21290 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21291ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21292eval as_val=\$$as_ac_var
21293 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021294 cat >>confdefs.h <<_ACEOF
21295#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21296_ACEOF
21297
21298fi
21299done
21300
21301if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000021302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000021303$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021304if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021305 $as_echo_n "(cached) " >&6
21306else
cristy8b350f62009-11-15 23:12:43 +000021307 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021308 ac_cv_func_fork_works=cross
21309else
cristy8b350f62009-11-15 23:12:43 +000021310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021311/* end confdefs.h. */
21312$ac_includes_default
21313int
21314main ()
21315{
21316
21317 /* By Ruediger Kuhlmann. */
21318 return fork () < 0;
21319
21320 ;
21321 return 0;
21322}
21323_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021324if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021325 ac_cv_func_fork_works=yes
21326else
cristy8b350f62009-11-15 23:12:43 +000021327 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000021328fi
cristy8b350f62009-11-15 23:12:43 +000021329rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21330 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021331fi
21332
cristy3ed852e2009-09-05 21:47:34 +000021333fi
cristy8b350f62009-11-15 23:12:43 +000021334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000021335$as_echo "$ac_cv_func_fork_works" >&6; }
21336
21337else
21338 ac_cv_func_fork_works=$ac_cv_func_fork
21339fi
21340if test "x$ac_cv_func_fork_works" = xcross; then
21341 case $host in
21342 *-*-amigaos* | *-*-msdosdjgpp*)
21343 # Override, as these systems have only a dummy fork() stub
21344 ac_cv_func_fork_works=no
21345 ;;
21346 *)
21347 ac_cv_func_fork_works=yes
21348 ;;
21349 esac
cristy8b350f62009-11-15 23:12:43 +000021350 { $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 +000021351$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21352fi
21353ac_cv_func_vfork_works=$ac_cv_func_vfork
21354if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000021355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000021356$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021357if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021358 $as_echo_n "(cached) " >&6
21359else
cristy8b350f62009-11-15 23:12:43 +000021360 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021361 ac_cv_func_vfork_works=cross
21362else
cristy8b350f62009-11-15 23:12:43 +000021363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021364/* end confdefs.h. */
21365/* Thanks to Paul Eggert for this test. */
21366$ac_includes_default
21367#include <sys/wait.h>
21368#ifdef HAVE_VFORK_H
21369# include <vfork.h>
21370#endif
21371/* On some sparc systems, changes by the child to local and incoming
21372 argument registers are propagated back to the parent. The compiler
21373 is told about this with #include <vfork.h>, but some compilers
21374 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21375 static variable whose address is put into a register that is
21376 clobbered by the vfork. */
21377static void
21378#ifdef __cplusplus
21379sparc_address_test (int arg)
21380# else
21381sparc_address_test (arg) int arg;
21382#endif
21383{
21384 static pid_t child;
21385 if (!child) {
21386 child = vfork ();
21387 if (child < 0) {
21388 perror ("vfork");
21389 _exit(2);
21390 }
21391 if (!child) {
21392 arg = getpid();
21393 write(-1, "", 0);
21394 _exit (arg);
21395 }
21396 }
21397}
21398
21399int
21400main ()
21401{
21402 pid_t parent = getpid ();
21403 pid_t child;
21404
21405 sparc_address_test (0);
21406
21407 child = vfork ();
21408
21409 if (child == 0) {
21410 /* Here is another test for sparc vfork register problems. This
21411 test uses lots of local variables, at least as many local
21412 variables as main has allocated so far including compiler
21413 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21414 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21415 reuse the register of parent for one of the local variables,
21416 since it will think that parent can't possibly be used any more
21417 in this routine. Assigning to the local variable will thus
21418 munge parent in the parent process. */
21419 pid_t
21420 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21421 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21422 /* Convince the compiler that p..p7 are live; otherwise, it might
21423 use the same hardware register for all 8 local variables. */
21424 if (p != p1 || p != p2 || p != p3 || p != p4
21425 || p != p5 || p != p6 || p != p7)
21426 _exit(1);
21427
21428 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21429 from child file descriptors. If the child closes a descriptor
21430 before it execs or exits, this munges the parent's descriptor
21431 as well. Test for this by closing stdout in the child. */
21432 _exit(close(fileno(stdout)) != 0);
21433 } else {
21434 int status;
21435 struct stat st;
21436
21437 while (wait(&status) != child)
21438 ;
21439 return (
21440 /* Was there some problem with vforking? */
21441 child < 0
21442
21443 /* Did the child fail? (This shouldn't happen.) */
21444 || status
21445
21446 /* Did the vfork/compiler bug occur? */
21447 || parent != getpid()
21448
21449 /* Did the file descriptor bug occur? */
21450 || fstat(fileno(stdout), &st) != 0
21451 );
21452 }
21453}
21454_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021455if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021456 ac_cv_func_vfork_works=yes
21457else
cristy8b350f62009-11-15 23:12:43 +000021458 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000021459fi
cristy8b350f62009-11-15 23:12:43 +000021460rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21461 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021462fi
21463
cristy3ed852e2009-09-05 21:47:34 +000021464fi
cristy8b350f62009-11-15 23:12:43 +000021465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000021466$as_echo "$ac_cv_func_vfork_works" >&6; }
21467
21468fi;
21469if test "x$ac_cv_func_fork_works" = xcross; then
21470 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000021471 { $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 +000021472$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21473fi
21474
21475if test "x$ac_cv_func_vfork_works" = xyes; then
21476
cristy8b350f62009-11-15 23:12:43 +000021477$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021478
21479else
21480
cristy8b350f62009-11-15 23:12:43 +000021481$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021482
21483fi
21484if test "x$ac_cv_func_fork_works" = xyes; then
21485
cristy8b350f62009-11-15 23:12:43 +000021486$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021487
21488fi
21489
cristy8b350f62009-11-15 23:12:43 +000021490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021491$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021492if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021493 $as_echo_n "(cached) " >&6
21494else
cristy8b350f62009-11-15 23:12:43 +000021495 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021496 ac_cv_func_memcmp_working=no
21497else
cristy8b350f62009-11-15 23:12:43 +000021498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021499/* end confdefs.h. */
21500$ac_includes_default
21501int
21502main ()
21503{
21504
21505 /* Some versions of memcmp are not 8-bit clean. */
21506 char c0 = '\100', c1 = '\200', c2 = '\201';
21507 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21508 return 1;
21509
21510 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21511 or more and with at least one buffer not starting on a 4-byte boundary.
21512 William Lewis provided this test program. */
21513 {
21514 char foo[21];
21515 char bar[21];
21516 int i;
21517 for (i = 0; i < 4; i++)
21518 {
21519 char *a = foo + i;
21520 char *b = bar + i;
21521 strcpy (a, "--------01111111");
21522 strcpy (b, "--------10000000");
21523 if (memcmp (a, b, 16) >= 0)
21524 return 1;
21525 }
21526 return 0;
21527 }
21528
21529 ;
21530 return 0;
21531}
21532_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021533if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021534 ac_cv_func_memcmp_working=yes
21535else
cristy8b350f62009-11-15 23:12:43 +000021536 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000021537fi
cristy8b350f62009-11-15 23:12:43 +000021538rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21539 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021540fi
21541
cristy3ed852e2009-09-05 21:47:34 +000021542fi
cristy8b350f62009-11-15 23:12:43 +000021543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000021544$as_echo "$ac_cv_func_memcmp_working" >&6; }
21545test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
21546 *" memcmp.$ac_objext "* ) ;;
21547 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21548 ;;
21549esac
21550
21551
cristy3ed852e2009-09-05 21:47:34 +000021552for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000021553do :
21554 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21555ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21556eval as_val=\$$as_ac_Header
21557 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021558 cat >>confdefs.h <<_ACEOF
21559#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21560_ACEOF
21561
21562fi
21563
21564done
21565
cristy8b350f62009-11-15 23:12:43 +000021566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000021567$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021568if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021569 $as_echo_n "(cached) " >&6
21570else
21571 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21572 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
21573 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000021574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021575/* end confdefs.h. */
21576$ac_includes_default
21577#ifdef HAVE_SYS_SELECT_H
21578# include <sys/select.h>
21579#endif
21580#ifdef HAVE_SYS_SOCKET_H
21581# include <sys/socket.h>
21582#endif
21583
21584int
21585main ()
21586{
21587extern int select ($ac_arg1,
21588 $ac_arg234, $ac_arg234, $ac_arg234,
21589 $ac_arg5);
21590 ;
21591 return 0;
21592}
21593_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021594if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021595 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000021596fi
cristy3ed852e2009-09-05 21:47:34 +000021597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21598 done
21599 done
21600done
21601# Provide a safe default value.
21602: ${ac_cv_func_select_args='int,int *,struct timeval *'}
21603
21604fi
cristy8b350f62009-11-15 23:12:43 +000021605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000021606$as_echo "$ac_cv_func_select_args" >&6; }
21607ac_save_IFS=$IFS; IFS=','
21608set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21609IFS=$ac_save_IFS
21610shift
21611
21612cat >>confdefs.h <<_ACEOF
21613#define SELECT_TYPE_ARG1 $1
21614_ACEOF
21615
21616
21617cat >>confdefs.h <<_ACEOF
21618#define SELECT_TYPE_ARG234 ($2)
21619_ACEOF
21620
21621
21622cat >>confdefs.h <<_ACEOF
21623#define SELECT_TYPE_ARG5 ($3)
21624_ACEOF
21625
21626rm -f conftest*
21627
cristy8b350f62009-11-15 23:12:43 +000021628if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021629 $as_echo_n "(cached) " >&6
21630else
21631 ac_cv_func_setvbuf_reversed=no
21632fi
21633
21634
cristy8b350f62009-11-15 23:12:43 +000021635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000021636$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021637if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021638 $as_echo_n "(cached) " >&6
21639else
cristy8b350f62009-11-15 23:12:43 +000021640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021641/* end confdefs.h. */
21642#include <sys/types.h>
21643#include <signal.h>
21644
21645int
21646main ()
21647{
21648return *(signal (0, 0)) (0) == 1;
21649 ;
21650 return 0;
21651}
21652_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021653if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021654 ac_cv_type_signal=int
21655else
cristy8b350f62009-11-15 23:12:43 +000021656 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000021657fi
cristy3ed852e2009-09-05 21:47:34 +000021658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21659fi
cristy8b350f62009-11-15 23:12:43 +000021660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000021661$as_echo "$ac_cv_type_signal" >&6; }
21662
21663cat >>confdefs.h <<_ACEOF
21664#define RETSIGTYPE $ac_cv_type_signal
21665_ACEOF
21666
21667
cristy8b350f62009-11-15 23:12:43 +000021668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000021669$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021670if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021671 $as_echo_n "(cached) " >&6
21672else
cristy8b350f62009-11-15 23:12:43 +000021673 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021674 ac_cv_func_strtod=no
21675else
cristy8b350f62009-11-15 23:12:43 +000021676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021677/* end confdefs.h. */
21678
21679$ac_includes_default
21680#ifndef strtod
21681double strtod ();
21682#endif
21683int
21684main()
21685{
21686 {
21687 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
21688 char *string = " +69";
21689 char *term;
21690 double value;
21691 value = strtod (string, &term);
21692 if (value != 69 || term != (string + 4))
21693 return 1;
21694 }
21695
21696 {
21697 /* Under Solaris 2.4, strtod returns the wrong value for the
21698 terminating character under some conditions. */
21699 char *string = "NaN";
21700 char *term;
21701 strtod (string, &term);
21702 if (term != string && *(term - 1) == 0)
21703 return 1;
21704 }
21705 return 0;
21706}
21707
21708_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021709if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021710 ac_cv_func_strtod=yes
21711else
cristy8b350f62009-11-15 23:12:43 +000021712 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000021713fi
cristy8b350f62009-11-15 23:12:43 +000021714rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21715 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021716fi
21717
cristy3ed852e2009-09-05 21:47:34 +000021718fi
cristy8b350f62009-11-15 23:12:43 +000021719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000021720$as_echo "$ac_cv_func_strtod" >&6; }
21721if test $ac_cv_func_strtod = no; then
21722 case " $LIBOBJS " in
21723 *" strtod.$ac_objext "* ) ;;
21724 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
21725 ;;
21726esac
21727
cristy8b350f62009-11-15 23:12:43 +000021728ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
21729if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021730
cristy3ed852e2009-09-05 21:47:34 +000021731fi
21732
cristy3ed852e2009-09-05 21:47:34 +000021733if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000021734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021735$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021736if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021737 $as_echo_n "(cached) " >&6
21738else
21739 ac_check_lib_save_LIBS=$LIBS
21740LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000021741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021742/* end confdefs.h. */
21743
21744/* Override any GCC internal prototype to avoid an error.
21745 Use char because int might match the return type of a GCC
21746 builtin and then its argument prototype would still apply. */
21747#ifdef __cplusplus
21748extern "C"
21749#endif
21750char pow ();
21751int
21752main ()
21753{
21754return pow ();
21755 ;
21756 return 0;
21757}
21758_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021759if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021760 ac_cv_lib_m_pow=yes
21761else
cristy8b350f62009-11-15 23:12:43 +000021762 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000021763fi
cristy8b350f62009-11-15 23:12:43 +000021764rm -f core conftest.err conftest.$ac_objext \
21765 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021766LIBS=$ac_check_lib_save_LIBS
21767fi
cristy8b350f62009-11-15 23:12:43 +000021768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000021769$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021770if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021771 POW_LIB=-lm
21772else
cristy8b350f62009-11-15 23:12:43 +000021773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000021774$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
21775fi
21776
21777fi
21778
21779fi
21780
cristy3ed852e2009-09-05 21:47:34 +000021781for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000021782do :
21783 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
21784if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021785 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021786#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000021787_ACEOF
21788
cristy8b350f62009-11-15 23:12:43 +000021789ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21790if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021791
cristy8b350f62009-11-15 23:12:43 +000021792$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021793
21794fi
21795
21796fi
21797done
21798
21799
21800
cristy5131f3e2009-12-18 03:09:10 +000021801for ac_func in _exit atexit clock directio execvp floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r 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 strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000021802do :
21803 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21804ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21805eval as_val=\$$as_ac_var
21806 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021807 cat >>confdefs.h <<_ACEOF
21808#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21809_ACEOF
21810
21811fi
21812done
21813
21814
cristye43a45e2009-09-28 14:49:00 +000021815#
21816# Check for clock_gettime().
21817#
cristy8b350f62009-11-15 23:12:43 +000021818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000021819$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021820if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000021821 $as_echo_n "(cached) " >&6
21822else
21823 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000021825/* end confdefs.h. */
21826
21827/* Override any GCC internal prototype to avoid an error.
21828 Use char because int might match the return type of a GCC
21829 builtin and then its argument prototype would still apply. */
21830#ifdef __cplusplus
21831extern "C"
21832#endif
21833char clock_gettime ();
21834int
21835main ()
21836{
21837return clock_gettime ();
21838 ;
21839 return 0;
21840}
21841_ACEOF
21842for ac_lib in '' rt; do
21843 if test -z "$ac_lib"; then
21844 ac_res="none required"
21845 else
21846 ac_res=-l$ac_lib
21847 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21848 fi
cristy8b350f62009-11-15 23:12:43 +000021849 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000021850 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000021851fi
cristy8b350f62009-11-15 23:12:43 +000021852rm -f core conftest.err conftest.$ac_objext \
21853 conftest$ac_exeext
21854 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000021855 break
21856fi
21857done
cristy8b350f62009-11-15 23:12:43 +000021858if test "${ac_cv_search_clock_gettime+set}" = set; then :
21859
cristye43a45e2009-09-28 14:49:00 +000021860else
21861 ac_cv_search_clock_gettime=no
21862fi
21863rm conftest.$ac_ext
21864LIBS=$ac_func_search_save_LIBS
21865fi
cristy8b350f62009-11-15 23:12:43 +000021866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000021867$as_echo "$ac_cv_search_clock_gettime" >&6; }
21868ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000021869if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000021870 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21871
21872
cristy8b350f62009-11-15 23:12:43 +000021873$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000021874
cristy8b350f62009-11-15 23:12:43 +000021875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000021876$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000021878/* end confdefs.h. */
21879#include <time.h>
21880int
21881main ()
21882{
21883clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000021884 ;
21885 return 0;
21886}
21887_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021888if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000021889
cristy8b350f62009-11-15 23:12:43 +000021890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000021891$as_echo "yes" >&6; }
21892
cristy8b350f62009-11-15 23:12:43 +000021893$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000021894
21895
21896else
cristy8b350f62009-11-15 23:12:43 +000021897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000021898$as_echo "no" >&6; }
21899
21900fi
cristye43a45e2009-09-28 14:49:00 +000021901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21902
21903else
21904
cristy8b350f62009-11-15 23:12:43 +000021905 for ac_func in gettimeofday ftime
21906do :
21907 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21908ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21909eval as_val=\$$as_ac_var
21910 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000021911 cat >>confdefs.h <<_ACEOF
21912#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21913_ACEOF
21914 break
21915fi
21916done
21917
21918
21919
21920fi
21921
21922
cristy3ed852e2009-09-05 21:47:34 +000021923########
21924#
21925# Check for function prototypes
21926#
21927########
21928
cristy8b350f62009-11-15 23:12:43 +000021929ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000021930#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000021931"
21932if test "x$ac_cv_have_decl_pread" = x""yes; then :
21933 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021934else
cristy8b350f62009-11-15 23:12:43 +000021935 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021936fi
21937
cristy3ed852e2009-09-05 21:47:34 +000021938cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021939#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021940_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021941ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000021942#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000021943"
21944if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
21945 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021946else
cristy8b350f62009-11-15 23:12:43 +000021947 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021948fi
21949
cristy3ed852e2009-09-05 21:47:34 +000021950cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021951#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021952_ACEOF
21953
21954
cristy8b350f62009-11-15 23:12:43 +000021955ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000021956#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000021957"
21958if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
21959 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021960else
cristy8b350f62009-11-15 23:12:43 +000021961 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021962fi
21963
cristy3ed852e2009-09-05 21:47:34 +000021964cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021965#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021966_ACEOF
21967
21968
cristy8b350f62009-11-15 23:12:43 +000021969ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000021970#include <stdio.h>
21971#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000021972"
21973if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
21974 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021975else
cristy8b350f62009-11-15 23:12:43 +000021976 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021977fi
21978
cristy3ed852e2009-09-05 21:47:34 +000021979cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021980#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021981_ACEOF
21982
21983
cristy3ed852e2009-09-05 21:47:34 +000021984########
21985#
21986# C++ Support Tests (For Magick++)
21987#
21988########
21989have_magick_plus_plus='no'
21990if test "$with_magick_plus_plus" = 'yes'; then
21991 OLIBS="$LIBS"
21992 LIBS=''
21993 ac_ext=cpp
21994ac_cpp='$CXXCPP $CPPFLAGS'
21995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21998
21999
22000 # Full set of headers used...
22001 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
22002 # functional iomanip iosfwd iostream iterator list string strstream utility
22003 ac_ext=cpp
22004ac_cpp='$CXXCPP $CPPFLAGS'
22005ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22006ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22007ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22008
22009 ac_ext=cpp
22010ac_cpp='$CXXCPP $CPPFLAGS'
22011ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22012ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22013ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22014if test -z "$CXX"; then
22015 if test -n "$CCC"; then
22016 CXX=$CCC
22017 else
22018 if test -n "$ac_tool_prefix"; then
22019 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22020 do
22021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22022set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000022023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000022024$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022025if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022026 $as_echo_n "(cached) " >&6
22027else
22028 if test -n "$CXX"; then
22029 ac_cv_prog_CXX="$CXX" # Let the user override the test.
22030else
22031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22032for as_dir in $PATH
22033do
22034 IFS=$as_save_IFS
22035 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000022036 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000022037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22038 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000022039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000022040 break 2
22041 fi
22042done
cristy8b350f62009-11-15 23:12:43 +000022043 done
cristy3ed852e2009-09-05 21:47:34 +000022044IFS=$as_save_IFS
22045
22046fi
22047fi
22048CXX=$ac_cv_prog_CXX
22049if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000022050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000022051$as_echo "$CXX" >&6; }
22052else
cristy8b350f62009-11-15 23:12:43 +000022053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022054$as_echo "no" >&6; }
22055fi
22056
22057
22058 test -n "$CXX" && break
22059 done
22060fi
22061if test -z "$CXX"; then
22062 ac_ct_CXX=$CXX
22063 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22064do
22065 # Extract the first word of "$ac_prog", so it can be a program name with args.
22066set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000022067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000022068$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022069if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022070 $as_echo_n "(cached) " >&6
22071else
22072 if test -n "$ac_ct_CXX"; then
22073 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
22074else
22075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22076for as_dir in $PATH
22077do
22078 IFS=$as_save_IFS
22079 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000022080 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000022081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22082 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000022083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000022084 break 2
22085 fi
22086done
cristy8b350f62009-11-15 23:12:43 +000022087 done
cristy3ed852e2009-09-05 21:47:34 +000022088IFS=$as_save_IFS
22089
22090fi
22091fi
22092ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
22093if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000022094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000022095$as_echo "$ac_ct_CXX" >&6; }
22096else
cristy8b350f62009-11-15 23:12:43 +000022097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022098$as_echo "no" >&6; }
22099fi
22100
22101
22102 test -n "$ac_ct_CXX" && break
22103done
22104
22105 if test "x$ac_ct_CXX" = x; then
22106 CXX="g++"
22107 else
22108 case $cross_compiling:$ac_tool_warned in
22109yes:)
cristy8b350f62009-11-15 23:12:43 +000022110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000022111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22112ac_tool_warned=yes ;;
22113esac
22114 CXX=$ac_ct_CXX
22115 fi
22116fi
22117
22118 fi
22119fi
22120# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000022121$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000022122set X $ac_compile
22123ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000022124for ac_option in --version -v -V -qversion; do
22125 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000022126case "(($ac_try" in
22127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22128 *) ac_try_echo=$ac_try;;
22129esac
cristy8b350f62009-11-15 23:12:43 +000022130eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22131$as_echo "$ac_try_echo"; } >&5
22132 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000022133 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000022134 if test -s conftest.err; then
22135 sed '10a\
22136... rest of stderr output deleted ...
22137 10q' conftest.err >conftest.er1
22138 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000022139 fi
cristycd4c5312009-11-22 01:19:08 +000022140 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000022141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22142 test $ac_status = 0; }
22143done
cristy3ed852e2009-09-05 21:47:34 +000022144
cristy8b350f62009-11-15 23:12:43 +000022145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000022146$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022147if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022148 $as_echo_n "(cached) " >&6
22149else
cristy8b350f62009-11-15 23:12:43 +000022150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022151/* end confdefs.h. */
22152
22153int
22154main ()
22155{
22156#ifndef __GNUC__
22157 choke me
22158#endif
22159
22160 ;
22161 return 0;
22162}
22163_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022164if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022165 ac_compiler_gnu=yes
22166else
cristy8b350f62009-11-15 23:12:43 +000022167 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000022168fi
cristy3ed852e2009-09-05 21:47:34 +000022169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22170ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
22171
22172fi
cristy8b350f62009-11-15 23:12:43 +000022173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000022174$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
22175if test $ac_compiler_gnu = yes; then
22176 GXX=yes
22177else
22178 GXX=
22179fi
22180ac_test_CXXFLAGS=${CXXFLAGS+set}
22181ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000022182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000022183$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022184if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022185 $as_echo_n "(cached) " >&6
22186else
22187 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
22188 ac_cxx_werror_flag=yes
22189 ac_cv_prog_cxx_g=no
22190 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000022191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022192/* end confdefs.h. */
22193
22194int
22195main ()
22196{
22197
22198 ;
22199 return 0;
22200}
22201_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022202if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022203 ac_cv_prog_cxx_g=yes
22204else
cristy8b350f62009-11-15 23:12:43 +000022205 CXXFLAGS=""
22206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022207/* end confdefs.h. */
22208
22209int
22210main ()
22211{
22212
22213 ;
22214 return 0;
22215}
22216_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022217if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022218
cristy8b350f62009-11-15 23:12:43 +000022219else
22220 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000022221 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000022222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022223/* end confdefs.h. */
22224
22225int
22226main ()
22227{
22228
22229 ;
22230 return 0;
22231}
22232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022233if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022234 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000022235fi
cristy3ed852e2009-09-05 21:47:34 +000022236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22237fi
cristy3ed852e2009-09-05 21:47:34 +000022238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22239fi
cristy3ed852e2009-09-05 21:47:34 +000022240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22241 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
22242fi
cristy8b350f62009-11-15 23:12:43 +000022243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000022244$as_echo "$ac_cv_prog_cxx_g" >&6; }
22245if test "$ac_test_CXXFLAGS" = set; then
22246 CXXFLAGS=$ac_save_CXXFLAGS
22247elif test $ac_cv_prog_cxx_g = yes; then
22248 if test "$GXX" = yes; then
22249 CXXFLAGS="-g -O2"
22250 else
22251 CXXFLAGS="-g"
22252 fi
22253else
22254 if test "$GXX" = yes; then
22255 CXXFLAGS="-O2"
22256 else
22257 CXXFLAGS=
22258 fi
22259fi
22260ac_ext=cpp
22261ac_cpp='$CXXCPP $CPPFLAGS'
22262ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22263ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22264ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22265
22266depcc="$CXX" am_compiler_list=
22267
cristy8b350f62009-11-15 23:12:43 +000022268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022269$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022270if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022271 $as_echo_n "(cached) " >&6
22272else
22273 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22274 # We make a subdir and do the tests there. Otherwise we can end up
22275 # making bogus files that we don't know about and never remove. For
22276 # instance it was reported that on HP-UX the gcc test will end up
22277 # making a dummy file named `D' -- because `-MD' means `put the output
22278 # in D'.
22279 mkdir conftest.dir
22280 # Copy depcomp to subdir because otherwise we won't find it if we're
22281 # using a relative directory.
22282 cp "$am_depcomp" conftest.dir
22283 cd conftest.dir
22284 # We will build objects and dependencies in a subdirectory because
22285 # it helps to detect inapplicable dependency modes. For instance
22286 # both Tru64's cc and ICC support -MD to output dependencies as a
22287 # side effect of compilation, but ICC will put the dependencies in
22288 # the current directory while Tru64 will put them in the object
22289 # directory.
22290 mkdir sub
22291
22292 am_cv_CXX_dependencies_compiler_type=none
22293 if test "$am_compiler_list" = ""; then
22294 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22295 fi
22296 am__universal=false
22297 case " $depcc " in #(
22298 *\ -arch\ *\ -arch\ *) am__universal=true ;;
22299 esac
22300
22301 for depmode in $am_compiler_list; do
22302 # Setup a source with many dependencies, because some compilers
22303 # like to wrap large dependency lists on column 80 (with \), and
22304 # we should not choose a depcomp mode which is confused by this.
22305 #
22306 # We need to recreate these files for each test, as the compiler may
22307 # overwrite some of them when testing with obscure command lines.
22308 # This happens at least with the AIX C compiler.
22309 : > sub/conftest.c
22310 for i in 1 2 3 4 5 6; do
22311 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22312 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22313 # Solaris 8's {/usr,}/bin/sh.
22314 touch sub/conftst$i.h
22315 done
22316 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22317
22318 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22319 # mode. It turns out that the SunPro C++ compiler does not properly
22320 # handle `-M -o', and we need to detect this. Also, some Intel
22321 # versions had trouble with output in subdirs
22322 am__obj=sub/conftest.${OBJEXT-o}
22323 am__minus_obj="-o $am__obj"
22324 case $depmode in
22325 gcc)
22326 # This depmode causes a compiler race in universal mode.
22327 test "$am__universal" = false || continue
22328 ;;
22329 nosideeffect)
22330 # after this tag, mechanisms are not by side-effect, so they'll
22331 # only be used when explicitly requested
22332 if test "x$enable_dependency_tracking" = xyes; then
22333 continue
22334 else
22335 break
22336 fi
22337 ;;
22338 msvisualcpp | msvcmsys)
22339 # This compiler won't grok `-c -o', but also, the minuso test has
22340 # not run yet. These depmodes are late enough in the game, and
22341 # so weak that their functioning should not be impacted.
22342 am__obj=conftest.${OBJEXT-o}
22343 am__minus_obj=
22344 ;;
22345 none) break ;;
22346 esac
22347 if depmode=$depmode \
22348 source=sub/conftest.c object=$am__obj \
22349 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22350 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
22351 >/dev/null 2>conftest.err &&
22352 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
22353 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22354 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
22355 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22356 # icc doesn't choke on unknown options, it will just issue warnings
22357 # or remarks (even with -Werror). So we grep stderr for any message
22358 # that says an option was ignored or not supported.
22359 # When given -MP, icc 7.0 and 7.1 complain thusly:
22360 # icc: Command line warning: ignoring option '-M'; no argument required
22361 # The diagnosis changed in icc 8.0:
22362 # icc: Command line remark: option '-MP' not supported
22363 if (grep 'ignoring option' conftest.err ||
22364 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22365 am_cv_CXX_dependencies_compiler_type=$depmode
22366 break
22367 fi
22368 fi
22369 done
22370
22371 cd ..
22372 rm -rf conftest.dir
22373else
22374 am_cv_CXX_dependencies_compiler_type=none
22375fi
22376
22377fi
cristy8b350f62009-11-15 23:12:43 +000022378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022379$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
22380CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
22381
22382 if
22383 test "x$enable_dependency_tracking" != xno \
22384 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
22385 am__fastdepCXX_TRUE=
22386 am__fastdepCXX_FALSE='#'
22387else
22388 am__fastdepCXX_TRUE='#'
22389 am__fastdepCXX_FALSE=
22390fi
22391
22392
cristy8b350f62009-11-15 23:12:43 +000022393 { $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 +000022394$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022395if test "${ac_cv_cxx_have_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022396 $as_echo_n "(cached) " >&6
22397else
22398
22399 ac_ext=cpp
22400ac_cpp='$CXXCPP $CPPFLAGS'
22401ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22402ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22403ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22404
cristy8b350f62009-11-15 23:12:43 +000022405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022406/* end confdefs.h. */
22407
22408int f(int x){return 1;}
22409int f(char x){return 1;}
22410int f(bool x){return 1;}
22411
22412int
22413main ()
22414{
22415bool b = true; return f(b);
22416 ;
22417 return 0;
22418}
22419_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022420if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022421 ac_cv_cxx_have_bool=yes
22422else
cristy8b350f62009-11-15 23:12:43 +000022423 ac_cv_cxx_have_bool=no
cristy3ed852e2009-09-05 21:47:34 +000022424fi
cristy3ed852e2009-09-05 21:47:34 +000022425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22426 ac_ext=cpp
22427ac_cpp='$CXXCPP $CPPFLAGS'
22428ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22429ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22430ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22431
22432
22433fi
cristy8b350f62009-11-15 23:12:43 +000022434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_bool" >&5
cristy3ed852e2009-09-05 21:47:34 +000022435$as_echo "$ac_cv_cxx_have_bool" >&6; }
22436if test "$ac_cv_cxx_have_bool" = yes; then
22437
cristy8b350f62009-11-15 23:12:43 +000022438$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022439
22440fi
22441
cristy8b350f62009-11-15 23:12:43 +000022442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000022443$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022444if test "${ac_cv_cxx_have_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022445 $as_echo_n "(cached) " >&6
22446else
22447
22448 ac_ext=cpp
22449ac_cpp='$CXXCPP $CPPFLAGS'
22450ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22451ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22452ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22453
cristy8b350f62009-11-15 23:12:43 +000022454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022455/* end confdefs.h. */
22456namespace Outer { namespace Inner { int i = 0; }}
22457int
22458main ()
22459{
22460using namespace Outer::Inner; return i;
22461 ;
22462 return 0;
22463}
22464_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022465if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022466 ac_cv_cxx_have_namespaces=yes
22467else
cristy8b350f62009-11-15 23:12:43 +000022468 ac_cv_cxx_have_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000022469fi
cristy3ed852e2009-09-05 21:47:34 +000022470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22471 ac_ext=cpp
22472ac_cpp='$CXXCPP $CPPFLAGS'
22473ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22474ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22475ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22476
22477
22478fi
cristy8b350f62009-11-15 23:12:43 +000022479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000022480$as_echo "$ac_cv_cxx_have_namespaces" >&6; }
22481if test "$ac_cv_cxx_have_namespaces" = yes; then
22482
cristy8b350f62009-11-15 23:12:43 +000022483$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022484
22485fi
22486
cristy8b350f62009-11-15 23:12:43 +000022487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the std namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000022488$as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022489if test "${ac_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022490 $as_echo_n "(cached) " >&6
22491else
22492
22493 ac_ext=cpp
22494ac_cpp='$CXXCPP $CPPFLAGS'
22495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22498
cristy8b350f62009-11-15 23:12:43 +000022499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022500/* end confdefs.h. */
22501#include <iostream>
22502 std::istream& is = std::cin;
22503
22504int
22505main ()
22506{
22507return 0;
22508 ;
22509 return 0;
22510}
22511_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022512if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022513 ac_cv_cxx_have_std_namespace=yes
22514else
cristy8b350f62009-11-15 23:12:43 +000022515 ac_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000022516fi
cristy3ed852e2009-09-05 21:47:34 +000022517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22518 ac_ext=cpp
22519ac_cpp='$CXXCPP $CPPFLAGS'
22520ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22521ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22522ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22523
22524
22525fi
cristy8b350f62009-11-15 23:12:43 +000022526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000022527$as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
22528if test "$ac_cv_cxx_have_std_namespace" = yes; then
22529
cristy8b350f62009-11-15 23:12:43 +000022530$as_echo "#define HAVE_STD_NAMESPACE /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022531
22532fi
22533
cristy8b350f62009-11-15 23:12:43 +000022534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000022535$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022536if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022537 $as_echo_n "(cached) " >&6
22538else
22539
22540
22541 ac_ext=cpp
22542ac_cpp='$CXXCPP $CPPFLAGS'
22543ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22544ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22545ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22546
cristy8b350f62009-11-15 23:12:43 +000022547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022548/* end confdefs.h. */
22549#include <iostream>
22550#include <map>
22551#include <iomanip>
22552#include <cmath>
22553#ifdef HAVE_NAMESPACES
22554using namespace std;
22555#endif
22556int
22557main ()
22558{
22559return 0;
22560 ;
22561 return 0;
22562}
22563_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022564if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022565 ac_cv_cxx_have_std_libs=yes
22566else
cristy8b350f62009-11-15 23:12:43 +000022567 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000022568fi
cristy3ed852e2009-09-05 21:47:34 +000022569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22570 ac_ext=cpp
22571ac_cpp='$CXXCPP $CPPFLAGS'
22572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22575
22576
22577fi
cristy8b350f62009-11-15 23:12:43 +000022578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000022579$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
22580if test "$ac_cv_cxx_have_std_libs" = yes; then
22581
cristy8b350f62009-11-15 23:12:43 +000022582$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022583
22584fi
22585
cristy8b350f62009-11-15 23:12:43 +000022586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000022587$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022588if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022589 $as_echo_n "(cached) " >&6
22590else
22591
22592 ac_ext=cpp
22593ac_cpp='$CXXCPP $CPPFLAGS'
22594ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22595ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22596ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22597
cristy8b350f62009-11-15 23:12:43 +000022598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022599/* end confdefs.h. */
22600const wchar_t* s=L"wide string";
22601_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022602if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022603 ac_cv_cxx_have_lstring=yes
22604else
cristy8b350f62009-11-15 23:12:43 +000022605 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000022606fi
cristy3ed852e2009-09-05 21:47:34 +000022607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22608 ac_ext=cpp
22609ac_cpp='$CXXCPP $CPPFLAGS'
22610ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22611ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22612ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22613
22614
22615fi
cristy8b350f62009-11-15 23:12:43 +000022616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000022617$as_echo "$ac_cv_cxx_have_lstring" >&6; }
22618if test "$ac_cv_cxx_have_lstring" = yes; then
22619
cristy8b350f62009-11-15 23:12:43 +000022620$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022621
22622fi
22623
22624
22625 OPENMP_CXXFLAGS=
22626 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000022627if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022628 enableval=$enable_openmp;
22629fi
22630
22631 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000022632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
22633$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022634if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022635 $as_echo_n "(cached) " >&6
22636else
cristy8b350f62009-11-15 23:12:43 +000022637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22638/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000022639
22640#ifndef _OPENMP
22641 choke me
22642#endif
22643#include <omp.h>
22644int main () { return omp_get_num_threads (); }
22645
22646_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022647if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022648 ac_cv_prog_cxx_openmp='none needed'
22649else
cristy8b350f62009-11-15 23:12:43 +000022650 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000022651 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
22652 ac_save_CXXFLAGS=$CXXFLAGS
22653 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000022654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22655/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000022656
22657#ifndef _OPENMP
22658 choke me
22659#endif
22660#include <omp.h>
22661int main () { return omp_get_num_threads (); }
22662
22663_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022664if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022665 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000022666fi
cristy8b350f62009-11-15 23:12:43 +000022667rm -f core conftest.err conftest.$ac_objext \
22668 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022669 CXXFLAGS=$ac_save_CXXFLAGS
22670 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
22671 break
22672 fi
22673 done
22674fi
cristy8b350f62009-11-15 23:12:43 +000022675rm -f core conftest.err conftest.$ac_objext \
22676 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022677fi
cristy8b350f62009-11-15 23:12:43 +000022678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022679$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
22680 case $ac_cv_prog_cxx_openmp in #(
22681 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000022682 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000022683 *)
cristy8b350f62009-11-15 23:12:43 +000022684 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000022685 esac
22686 fi
22687
22688
22689 ac_ext=c
22690ac_cpp='$CPP $CPPFLAGS'
22691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22693ac_compiler_gnu=$ac_cv_c_compiler_gnu
22694
22695
cristy8b350f62009-11-15 23:12:43 +000022696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000022697$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
22698 if \
22699 test $ac_cv_cxx_have_bool = 'yes' && \
22700 test $ac_cv_cxx_have_lstring = 'yes' && \
22701 test $ac_cv_cxx_have_namespaces = 'yes' && \
22702 test $ac_cv_cxx_have_std_libs = 'yes' && \
22703 test $ac_cv_cxx_have_std_namespace = 'yes'; then
22704 have_magick_plus_plus='yes'
22705 else
22706 have_magick_plus_plus='no (failed tests)'
22707 fi
cristy8b350f62009-11-15 23:12:43 +000022708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000022709$as_echo "$have_magick_plus_plus" >&6; }
22710 LIBS="$OLIBS"
22711fi
22712 if test "$have_magick_plus_plus" = 'yes'; then
22713 WITH_MAGICK_PLUS_PLUS_TRUE=
22714 WITH_MAGICK_PLUS_PLUS_FALSE='#'
22715else
22716 WITH_MAGICK_PLUS_PLUS_TRUE='#'
22717 WITH_MAGICK_PLUS_PLUS_FALSE=
22718fi
22719
22720
22721# Only check for delegate libraries in subdirectories if requested.
22722if test "$enable_delegate_build" != 'no'; then
22723 # Check for delegate sub-directories and add -I & -L options as required.
22724 # This presumes that delegates are installed as detailed in the ImageMagick
22725 # README. If delegates are installed in a standard location where the
22726 # compiler will automatically find them then these options should not be
22727 # required.
22728
22729 #
22730 # Most delegates have includes in the same directory as the library, but not all...
22731 #
22732 # Includes
22733 for dir in bzlib fftw fpx jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
22734 if test -d "$builddir/$dir"; then
22735 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
22736 else
22737 if test -d "$srcdirfull/$dir"; then
22738 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
22739 fi
22740 fi
22741 done
22742
22743 # Libraries
22744 for dir in bzlib fftw fpx jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
22745 if test -d "$builddir/$dir/.libs"; then
22746 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
22747 else
22748 if test -d "$srcdirfull/$dir/.libs"; then
22749 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
22750 fi
22751 fi
22752 if test -d "$builddir/$dir"; then
22753 LDFLAGS="$LDFLAGS -L$builddir/$dir"
22754 else
22755 if test -d "$srcdirfull/$dir"; then
22756 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
22757 fi
22758 fi
22759 done
22760fi
22761
22762# Assume that delegate headers reside under same directory as ImageMagick
22763# installation prefix.
22764MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
22765
22766#
22767# Find the X11 RGB database
22768#
cristy8b350f62009-11-15 23:12:43 +000022769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022770$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022771if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022772 $as_echo_n "(cached) " >&6
22773else
22774 # Look for the header file in a standard set of common directories.
22775# Check X11 before X11Rn because it is often a symlink to the current release.
22776 for ac_dir in \
22777 /lib/usr/lib/X11 \
22778 /usr/X11/lib \
22779 /usr/X11R4/lib \
22780 /usr/X11R5/lib \
22781 /usr/X11R6/lib \
22782 /usr/X11R7/lib \
22783 /usr/X386/lib \
22784 /usr/XFree86/lib/X11 \
22785 /usr/athena/lib \
22786 /usr/lib \
22787 /usr/lib/X11 \
22788 /usr/lib/X11R4 \
22789 /usr/lib/X11R5 \
22790 /usr/lib/X11R6 \
22791 /usr/lib/X11R7 \
22792 /usr/local/X11/lib \
22793 /usr/local/X11R4/lib \
22794 /usr/local/X11R5/lib \
22795 /usr/local/X11R6/lib \
22796 /usr/local/lib \
22797 /usr/local/lib/X11 \
22798 /usr/local/lib/X11R4 \
22799 /usr/local/lib/X11R5 \
22800 /usr/local/lib/X11R6 \
22801 /usr/local/lib/X11R7 \
22802 /usr/local/x11r5/lib \
22803 /usr/lpp/Xamples/lib \
22804 /usr/openwin/lib \
22805 /usr/openwin/share/lib \
22806 /usr/unsupported/lib \
22807 /usr/x386/lib \
22808 ; do
22809 if test -f "$ac_dir/X11/rgb.txt"; then
22810 im_cv_x_configure="$ac_dir/X11/"
22811 break
22812 elif test -f "$ac_dir/rgb.txt"; then
22813 im_cv_x_configure="$ac_dir/"
22814 break
22815 fi
22816
22817 done
22818fi
cristy8b350f62009-11-15 23:12:43 +000022819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000022820$as_echo "$im_cv_x_configure" >&6; }
22821X11_CONFIGURE_PATH="$im_cv_x_configure"
22822case "${build_os}" in
22823 mingw* )
22824 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
22825 ;;
22826esac
22827
22828cat >>confdefs.h <<_ACEOF
22829#define X11_CONFIGURE_PATH "$X11ConfigurePath"
22830_ACEOF
22831
22832
22833#
22834# Find OpenMP library
22835#
22836GOMP_LIBS=''
22837if test "$enable_openmp" != 'no'; then
22838 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000022839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022840$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022841if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022842 $as_echo_n "(cached) " >&6
22843else
22844 ac_check_lib_save_LIBS=$LIBS
22845LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022847/* end confdefs.h. */
22848
22849/* Override any GCC internal prototype to avoid an error.
22850 Use char because int might match the return type of a GCC
22851 builtin and then its argument prototype would still apply. */
22852#ifdef __cplusplus
22853extern "C"
22854#endif
22855char GOMP_parallel_start ();
22856int
22857main ()
22858{
22859return GOMP_parallel_start ();
22860 ;
22861 return 0;
22862}
22863_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022864if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022865 ac_cv_lib_gomp_GOMP_parallel_start=yes
22866else
cristy8b350f62009-11-15 23:12:43 +000022867 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000022868fi
cristy8b350f62009-11-15 23:12:43 +000022869rm -f core conftest.err conftest.$ac_objext \
22870 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022871LIBS=$ac_check_lib_save_LIBS
22872fi
cristy8b350f62009-11-15 23:12:43 +000022873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000022874$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022875if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022876 GOMP_LIBS="-lgomp"
22877fi
22878 # gcc
22879 else
cristy8b350f62009-11-15 23:12:43 +000022880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000022881$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022882if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022883 $as_echo_n "(cached) " >&6
22884else
22885 ac_check_lib_save_LIBS=$LIBS
22886LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022888/* end confdefs.h. */
22889
22890/* Override any GCC internal prototype to avoid an error.
22891 Use char because int might match the return type of a GCC
22892 builtin and then its argument prototype would still apply. */
22893#ifdef __cplusplus
22894extern "C"
22895#endif
22896char sunw_mp_register_warn ();
22897int
22898main ()
22899{
22900return sunw_mp_register_warn ();
22901 ;
22902 return 0;
22903}
22904_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022905if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022906 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
22907else
cristy8b350f62009-11-15 23:12:43 +000022908 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000022909fi
cristy8b350f62009-11-15 23:12:43 +000022910rm -f core conftest.err conftest.$ac_objext \
22911 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022912LIBS=$ac_check_lib_save_LIBS
22913fi
cristy8b350f62009-11-15 23:12:43 +000022914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000022915$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022916if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022917 GOMP_LIBS="-lmtsk"
22918fi
22919 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000022920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022921$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022922if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022923 $as_echo_n "(cached) " >&6
22924else
22925 ac_check_lib_save_LIBS=$LIBS
22926LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022928/* end confdefs.h. */
22929
22930/* Override any GCC internal prototype to avoid an error.
22931 Use char because int might match the return type of a GCC
22932 builtin and then its argument prototype would still apply. */
22933#ifdef __cplusplus
22934extern "C"
22935#endif
22936char _xlsmpFlush ();
22937int
22938main ()
22939{
22940return _xlsmpFlush ();
22941 ;
22942 return 0;
22943}
22944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022945if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022946 ac_cv_lib_xlsmp__xlsmpFlush=yes
22947else
cristy8b350f62009-11-15 23:12:43 +000022948 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000022949fi
cristy8b350f62009-11-15 23:12:43 +000022950rm -f core conftest.err conftest.$ac_objext \
22951 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022952LIBS=$ac_check_lib_save_LIBS
22953fi
cristy8b350f62009-11-15 23:12:43 +000022954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000022955$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022956if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022957 GOMP_LIBS="-lxlsmp"
22958fi
22959 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000022960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022961$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022962if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022963 $as_echo_n "(cached) " >&6
22964else
22965 ac_check_lib_save_LIBS=$LIBS
22966LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022968/* end confdefs.h. */
22969
22970/* Override any GCC internal prototype to avoid an error.
22971 Use char because int might match the return type of a GCC
22972 builtin and then its argument prototype would still apply. */
22973#ifdef __cplusplus
22974extern "C"
22975#endif
22976char mp_destroy ();
22977int
22978main ()
22979{
22980return mp_destroy ();
22981 ;
22982 return 0;
22983}
22984_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022985if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022986 ac_cv_lib_mp_mp_destroy=yes
22987else
cristy8b350f62009-11-15 23:12:43 +000022988 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000022989fi
cristy8b350f62009-11-15 23:12:43 +000022990rm -f core conftest.err conftest.$ac_objext \
22991 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022992LIBS=$ac_check_lib_save_LIBS
22993fi
cristy8b350f62009-11-15 23:12:43 +000022994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000022995$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022996if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022997 GOMP_LIBS="-lmp"
22998fi
22999 # SGI IRIX 6.5 MIPSpro C/C++
23000 fi
23001 LIBS="$GOMP_LIBS $LIBS"
23002fi
23003
23004
23005#
23006# Find Posix threads library
23007#
23008THREAD_LIBS=''
23009if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
23010
23011 if test "x$PTHREAD_LIBS" = "x"; then
23012 case "${host_cpu}-${host_os}" in
23013 *-freebsd*)
23014
23015
23016
23017ac_ext=c
23018ac_cpp='$CPP $CPPFLAGS'
23019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23021ac_compiler_gnu=$ac_cv_c_compiler_gnu
23022
23023magick_pthread_lib_ok=no
23024
23025LIB=-lc_r
23026save_LIBS="$LIBS"
23027LIBS="$LIBS $LIB"
23028
cristy8b350f62009-11-15 23:12:43 +000023029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023030$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023032/* end confdefs.h. */
23033#include <pthread.h>
23034int
23035main ()
23036{
23037 pthread_t th;
23038 pthread_join(th, 0);
23039 pthread_attr_init(0);
23040 pthread_cleanup_push(0, 0);
23041 pthread_create(0,0,0,0);
23042 pthread_cleanup_pop(0);
23043 ;
23044 return 0;
23045}
23046_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023047if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023048 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000023049fi
cristy8b350f62009-11-15 23:12:43 +000023050rm -f core conftest.err conftest.$ac_objext \
23051 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023052
cristy8b350f62009-11-15 23:12:43 +000023053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000023054$as_echo "${magick_pthread_lib_ok}" >&6; }
23055if test "$magick_pthread_lib_ok" = yes
23056then
23057 PTHREAD_LIBS=-lc_r
23058 :
23059else
23060
23061 :
23062fi
23063
23064LIBS="$save_LIBS"
23065
23066ac_ext=c
23067ac_cpp='$CPP $CPPFLAGS'
23068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23070ac_compiler_gnu=$ac_cv_c_compiler_gnu
23071
23072 ;;
23073 esac
23074 fi
23075
23076 for lib in pthread pthreads; do
23077 if test "x$PTHREAD_LIBS" = "x"; then
23078
23079
23080
23081ac_ext=c
23082ac_cpp='$CPP $CPPFLAGS'
23083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23085ac_compiler_gnu=$ac_cv_c_compiler_gnu
23086
23087magick_pthread_lib_ok=no
23088
23089LIB=-l$lib
23090save_LIBS="$LIBS"
23091LIBS="$LIBS $LIB"
23092
cristy8b350f62009-11-15 23:12:43 +000023093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023094$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023096/* end confdefs.h. */
23097#include <pthread.h>
23098int
23099main ()
23100{
23101 pthread_t th;
23102 pthread_join(th, 0);
23103 pthread_attr_init(0);
23104 pthread_cleanup_push(0, 0);
23105 pthread_create(0,0,0,0);
23106 pthread_cleanup_pop(0);
23107 ;
23108 return 0;
23109}
23110_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023111if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023112 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000023113fi
cristy8b350f62009-11-15 23:12:43 +000023114rm -f core conftest.err conftest.$ac_objext \
23115 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023116
cristy8b350f62009-11-15 23:12:43 +000023117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000023118$as_echo "${magick_pthread_lib_ok}" >&6; }
23119if test "$magick_pthread_lib_ok" = yes
23120then
23121 PTHREAD_LIBS=-l$lib
23122 :
23123else
23124
23125 :
23126fi
23127
23128LIBS="$save_LIBS"
23129
23130ac_ext=c
23131ac_cpp='$CPP $CPPFLAGS'
23132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23134ac_compiler_gnu=$ac_cv_c_compiler_gnu
23135
23136
23137 fi
23138 done
23139
23140 THREAD_LIBS="$PTHREAD_LIBS"
23141 LIBS="$LIBS $THREAD_LIBS"
23142fi
23143
23144
23145#
23146# Check for umem.
23147#
23148have_umem='no'
23149UMEM_LIBS=''
23150if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000023151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000023152$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000023154$as_echo "" >&6; }
23155 failed=0
23156 passed=0
cristy8b350f62009-11-15 23:12:43 +000023157 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
23158if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023159 passed=`expr $passed + 1`
23160else
23161 failed=`expr $failed + 1`
23162fi
23163
23164
cristy8b350f62009-11-15 23:12:43 +000023165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000023166$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023167if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023168 $as_echo_n "(cached) " >&6
23169else
23170 ac_check_lib_save_LIBS=$LIBS
23171LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023173/* end confdefs.h. */
23174
23175/* Override any GCC internal prototype to avoid an error.
23176 Use char because int might match the return type of a GCC
23177 builtin and then its argument prototype would still apply. */
23178#ifdef __cplusplus
23179extern "C"
23180#endif
23181char umem_alloc ();
23182int
23183main ()
23184{
23185return umem_alloc ();
23186 ;
23187 return 0;
23188}
23189_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023190if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023191 ac_cv_lib_umem_umem_alloc=yes
23192else
cristy8b350f62009-11-15 23:12:43 +000023193 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000023194fi
cristy8b350f62009-11-15 23:12:43 +000023195rm -f core conftest.err conftest.$ac_objext \
23196 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023197LIBS=$ac_check_lib_save_LIBS
23198fi
cristy8b350f62009-11-15 23:12:43 +000023199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023200$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023201if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023202 passed=`expr $passed + 1`
23203else
23204 failed=`expr $failed + 1`
23205fi
23206
cristy8b350f62009-11-15 23:12:43 +000023207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000023208$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023209if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023210 $as_echo_n "(cached) " >&6
23211else
23212 ac_check_lib_save_LIBS=$LIBS
23213LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023215/* end confdefs.h. */
23216
23217/* Override any GCC internal prototype to avoid an error.
23218 Use char because int might match the return type of a GCC
23219 builtin and then its argument prototype would still apply. */
23220#ifdef __cplusplus
23221extern "C"
23222#endif
23223char umem_free ();
23224int
23225main ()
23226{
23227return umem_free ();
23228 ;
23229 return 0;
23230}
23231_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023232if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023233 ac_cv_lib_umem_umem_free=yes
23234else
cristy8b350f62009-11-15 23:12:43 +000023235 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000023236fi
cristy8b350f62009-11-15 23:12:43 +000023237rm -f core conftest.err conftest.$ac_objext \
23238 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023239LIBS=$ac_check_lib_save_LIBS
23240fi
cristy8b350f62009-11-15 23:12:43 +000023241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000023242$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023243if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023244 passed=`expr $passed + 1`
23245else
23246 failed=`expr $failed + 1`
23247fi
23248
cristy8b350f62009-11-15 23:12:43 +000023249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000023250$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
23251 if test $passed -gt 0; then
23252 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000023253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000023254$as_echo "no -- some components failed test" >&6; }
23255 have_umem='no (failed tests)'
23256 else
23257 UMEM_LIBS='-lumem'
23258 LIBS="$UMEM_LIBS $LIBS"
23259
cristy8b350f62009-11-15 23:12:43 +000023260$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023261
cristy8b350f62009-11-15 23:12:43 +000023262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023263$as_echo "yes" >&6; }
23264 have_umem='yes'
23265 fi
23266 else
cristy8b350f62009-11-15 23:12:43 +000023267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023268$as_echo "no" >&6; }
23269 fi
23270fi
23271 if test "$have_umem" = 'yes'; then
23272 HasUMEM_TRUE=
23273 HasUMEM_FALSE='#'
23274else
23275 HasUMEM_TRUE='#'
23276 HasUMEM_FALSE=
23277fi
23278
23279
23280
23281#
23282# Add support for ccmalloc memory debugging library if requested
23283#
23284have_ccmalloc='no'
23285CCMALLOC_LIBS=''
23286if test "$enable_ccmalloc" = 'yes'; then
23287 # Extract the first word of "ccmalloc", so it can be a program name with args.
23288set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023290$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023291if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023292 $as_echo_n "(cached) " >&6
23293else
23294 case $CCMALLOCDelegate in
23295 [\\/]* | ?:[\\/]*)
23296 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
23297 ;;
23298 *)
23299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23300for as_dir in $PATH
23301do
23302 IFS=$as_save_IFS
23303 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023304 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23306 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000023307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023308 break 2
23309 fi
23310done
cristy8b350f62009-11-15 23:12:43 +000023311 done
cristy3ed852e2009-09-05 21:47:34 +000023312IFS=$as_save_IFS
23313
23314 ;;
23315esac
23316fi
23317CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
23318if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000023319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000023320$as_echo "$CCMALLOCDelegate" >&6; }
23321else
cristy8b350f62009-11-15 23:12:43 +000023322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023323$as_echo "no" >&6; }
23324fi
23325
23326
23327 if test -n "$CCMALLOCDelegate"; then
23328 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
23329 OLIBS="$LIBS"
23330 # Assume that gcc is used with ccmalloc.
23331 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000023332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023333$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023334if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023335 $as_echo_n "(cached) " >&6
23336else
23337 ac_check_lib_save_LIBS=$LIBS
23338LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023340/* end confdefs.h. */
23341
23342/* Override any GCC internal prototype to avoid an error.
23343 Use char because int might match the return type of a GCC
23344 builtin and then its argument prototype would still apply. */
23345#ifdef __cplusplus
23346extern "C"
23347#endif
23348char ccmalloc_malloc ();
23349int
23350main ()
23351{
23352return ccmalloc_malloc ();
23353 ;
23354 return 0;
23355}
23356_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023357if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023358 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
23359else
cristy8b350f62009-11-15 23:12:43 +000023360 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000023361fi
cristy8b350f62009-11-15 23:12:43 +000023362rm -f core conftest.err conftest.$ac_objext \
23363 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023364LIBS=$ac_check_lib_save_LIBS
23365fi
cristy8b350f62009-11-15 23:12:43 +000023366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023367$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023368if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023369 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
23370fi
23371
23372 if test -n "$CCMALLOC_LIBS"; then
23373 LIBS="$OLIBS"
23374 LIBS="$LIBS $CCMALLOC_LIBS"
23375 have_ccmalloc='yes'
23376 else
23377 LIBS="$OLIBS"
23378 fi
23379 fi
23380fi
23381
23382#
23383# Add support for efence memory debugging library if requested
23384#
23385if test "$enable_efence" = 'yes'; then
23386 EFENCE_LIBS='-lefence'
23387 LIBS="$EFENCE_LIBS $LIBS"
23388fi
23389
23390#
23391# Find math library
23392#
23393MATH_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023395$as_echo_n "checking for sqrt in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023396if test "${ac_cv_lib_m_sqrt+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023397 $as_echo_n "(cached) " >&6
23398else
23399 ac_check_lib_save_LIBS=$LIBS
23400LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023402/* end confdefs.h. */
23403
23404/* Override any GCC internal prototype to avoid an error.
23405 Use char because int might match the return type of a GCC
23406 builtin and then its argument prototype would still apply. */
23407#ifdef __cplusplus
23408extern "C"
23409#endif
23410char sqrt ();
23411int
23412main ()
23413{
23414return sqrt ();
23415 ;
23416 return 0;
23417}
23418_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023419if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023420 ac_cv_lib_m_sqrt=yes
23421else
cristy8b350f62009-11-15 23:12:43 +000023422 ac_cv_lib_m_sqrt=no
cristy3ed852e2009-09-05 21:47:34 +000023423fi
cristy8b350f62009-11-15 23:12:43 +000023424rm -f core conftest.err conftest.$ac_objext \
23425 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023426LIBS=$ac_check_lib_save_LIBS
23427fi
cristy8b350f62009-11-15 23:12:43 +000023428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
cristy3ed852e2009-09-05 21:47:34 +000023429$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023430if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023431 MATH_LIBS="-lm"
23432fi
23433
23434LIBS="$MATH_LIBS $LIBS"
23435
23436
23437
23438#
23439# Check for BZLIB
23440#
23441
23442
23443# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000023444if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023445 withval=$with_bzlib; with_bzlib=$withval
23446else
23447 with_bzlib='yes'
23448fi
23449
23450
23451if test "$with_bzlib" != 'yes'; then
23452 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
23453fi
23454
23455have_bzlib='no'
23456if test "$with_bzlib" != 'no'; then
23457 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000023459$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023461$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000023463$as_echo "" >&6; }
23464 failed=0
23465 passed=0
23466 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000023467 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
23468if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023469 passed=`expr $passed + 1`
23470else
23471 failed=`expr $failed + 1`
23472fi
23473
23474
cristy8b350f62009-11-15 23:12:43 +000023475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000023476$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023477if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023478 $as_echo_n "(cached) " >&6
23479else
23480 ac_check_lib_save_LIBS=$LIBS
23481LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023483/* end confdefs.h. */
23484
23485/* Override any GCC internal prototype to avoid an error.
23486 Use char because int might match the return type of a GCC
23487 builtin and then its argument prototype would still apply. */
23488#ifdef __cplusplus
23489extern "C"
23490#endif
23491char BZ2_bzDecompress ();
23492int
23493main ()
23494{
23495return BZ2_bzDecompress ();
23496 ;
23497 return 0;
23498}
23499_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023500if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023501 ac_cv_lib_bz2_BZ2_bzDecompress=yes
23502else
cristy8b350f62009-11-15 23:12:43 +000023503 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000023504fi
cristy8b350f62009-11-15 23:12:43 +000023505rm -f core conftest.err conftest.$ac_objext \
23506 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023507LIBS=$ac_check_lib_save_LIBS
23508fi
cristy8b350f62009-11-15 23:12:43 +000023509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000023510$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023511if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023512 found_libbz=`expr $found_libbz + 1`
23513fi
23514
23515 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000023516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000023517$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023518if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023519 $as_echo_n "(cached) " >&6
23520else
23521 ac_check_lib_save_LIBS=$LIBS
23522LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023524/* end confdefs.h. */
23525
23526/* Override any GCC internal prototype to avoid an error.
23527 Use char because int might match the return type of a GCC
23528 builtin and then its argument prototype would still apply. */
23529#ifdef __cplusplus
23530extern "C"
23531#endif
23532char _imp__BZ2_decompress ();
23533int
23534main ()
23535{
23536return _imp__BZ2_decompress ();
23537 ;
23538 return 0;
23539}
23540_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023541if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023542 ac_cv_lib_bz2__imp__BZ2_decompress=yes
23543else
cristy8b350f62009-11-15 23:12:43 +000023544 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000023545fi
cristy8b350f62009-11-15 23:12:43 +000023546rm -f core conftest.err conftest.$ac_objext \
23547 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023548LIBS=$ac_check_lib_save_LIBS
23549fi
cristy8b350f62009-11-15 23:12:43 +000023550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000023551$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023552if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023553 found_libbz=`expr $found_libbz + 1`
23554fi
23555
23556 fi
23557 if test $found_libbz -gt 0; then
23558 passed=`expr $passed + 1`
23559 else
23560 failed=`expr $failed + 1`
23561 fi
cristy8b350f62009-11-15 23:12:43 +000023562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000023563$as_echo_n "checking if BZLIB package is complete... " >&6; }
23564 if test $passed -gt 0; then
23565 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000023566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000023567$as_echo "no -- some components failed test" >&6; }
23568 have_bzlib='no (failed tests)'
23569 else
23570 BZLIB_LIBS='-lbz2'
23571 LIBS="$BZLIB_LIBS $LIBS"
23572
cristy8b350f62009-11-15 23:12:43 +000023573$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023574
cristy8b350f62009-11-15 23:12:43 +000023575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023576$as_echo "yes" >&6; }
23577 have_bzlib='yes'
23578 fi
23579 else
cristy8b350f62009-11-15 23:12:43 +000023580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023581$as_echo "no" >&6; }
23582 fi
23583fi
23584 if test "$have_bzlib" = 'yes'; then
23585 BZLIB_DELEGATE_TRUE=
23586 BZLIB_DELEGATE_FALSE='#'
23587else
23588 BZLIB_DELEGATE_TRUE='#'
23589 BZLIB_DELEGATE_FALSE=
23590fi
23591
23592
23593
23594#
23595# Find the X11 include and library directories.
23596#
23597IPC_LIBS=''
23598X11_LIBS=''
23599XEXT_LIBS=''
23600XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000023602$as_echo_n "checking for X... " >&6; }
23603
23604
23605# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000023606if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000023607 withval=$with_x;
23608fi
23609
23610# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23611if test "x$with_x" = xno; then
23612 # The user explicitly disabled X.
23613 have_x=disabled
23614else
23615 case $x_includes,$x_libraries in #(
cristy8b350f62009-11-15 23:12:43 +000023616 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
23617 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000023618 $as_echo_n "(cached) " >&6
23619else
23620 # One or both of the vars are not set, and there is no cached value.
23621ac_x_includes=no ac_x_libraries=no
23622rm -f -r conftest.dir
23623if mkdir conftest.dir; then
23624 cd conftest.dir
23625 cat >Imakefile <<'_ACEOF'
23626incroot:
23627 @echo incroot='${INCROOT}'
23628usrlibdir:
23629 @echo usrlibdir='${USRLIBDIR}'
23630libdir:
23631 @echo libdir='${LIBDIR}'
23632_ACEOF
23633 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
23634 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23635 for ac_var in incroot usrlibdir libdir; do
23636 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
23637 done
23638 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23639 for ac_extension in a so sl dylib la dll; do
23640 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
23641 test -f "$ac_im_libdir/libX11.$ac_extension"; then
23642 ac_im_usrlibdir=$ac_im_libdir; break
23643 fi
23644 done
23645 # Screen out bogus values from the imake configuration. They are
23646 # bogus both because they are the default anyway, and because
23647 # using them would break gcc on systems where it needs fixed includes.
23648 case $ac_im_incroot in
23649 /usr/include) ac_x_includes= ;;
23650 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23651 esac
23652 case $ac_im_usrlibdir in
23653 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
23654 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23655 esac
23656 fi
23657 cd ..
23658 rm -f -r conftest.dir
23659fi
23660
23661# Standard set of common directories for X headers.
23662# Check X11 before X11Rn because it is often a symlink to the current release.
23663ac_x_header_dirs='
23664/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000023665/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000023666/usr/X11R6/include
23667/usr/X11R5/include
23668/usr/X11R4/include
23669
23670/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000023671/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000023672/usr/include/X11R6
23673/usr/include/X11R5
23674/usr/include/X11R4
23675
23676/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000023677/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000023678/usr/local/X11R6/include
23679/usr/local/X11R5/include
23680/usr/local/X11R4/include
23681
23682/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000023683/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000023684/usr/local/include/X11R6
23685/usr/local/include/X11R5
23686/usr/local/include/X11R4
23687
23688/usr/X386/include
23689/usr/x386/include
23690/usr/XFree86/include/X11
23691
23692/usr/include
23693/usr/local/include
23694/usr/unsupported/include
23695/usr/athena/include
23696/usr/local/x11r5/include
23697/usr/lpp/Xamples/include
23698
23699/usr/openwin/include
23700/usr/openwin/share/include'
23701
23702if test "$ac_x_includes" = no; then
23703 # Guess where to find include files, by looking for Xlib.h.
23704 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000023705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023706/* end confdefs.h. */
23707#include <X11/Xlib.h>
23708_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023709if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000023710 # We can compile using X headers with no special include directory.
23711ac_x_includes=
23712else
cristyc7083c12009-10-14 03:16:55 +000023713 for ac_dir in $ac_x_header_dirs; do
23714 if test -r "$ac_dir/X11/Xlib.h"; then
23715 ac_x_includes=$ac_dir
23716 break
23717 fi
23718done
23719fi
cristyc7083c12009-10-14 03:16:55 +000023720rm -f conftest.err conftest.$ac_ext
23721fi # $ac_x_includes = no
23722
23723if test "$ac_x_libraries" = no; then
23724 # Check for the libraries.
23725 # See if we find them without any special options.
23726 # Don't add to $LIBS permanently.
23727 ac_save_LIBS=$LIBS
23728 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023730/* end confdefs.h. */
23731#include <X11/Xlib.h>
23732int
23733main ()
23734{
23735XrmInitialize ()
23736 ;
23737 return 0;
23738}
23739_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023740if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000023741 LIBS=$ac_save_LIBS
23742# We can link X programs with no special library path.
23743ac_x_libraries=
23744else
cristy8b350f62009-11-15 23:12:43 +000023745 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000023746for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23747do
23748 # Don't even attempt the hair of trying to link an X program!
23749 for ac_extension in a so sl dylib la dll; do
23750 if test -r "$ac_dir/libX11.$ac_extension"; then
23751 ac_x_libraries=$ac_dir
23752 break 2
23753 fi
23754 done
23755done
23756fi
cristy8b350f62009-11-15 23:12:43 +000023757rm -f core conftest.err conftest.$ac_objext \
23758 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023759fi # $ac_x_libraries = no
23760
23761case $ac_x_includes,$ac_x_libraries in #(
23762 no,* | *,no | *\'*)
23763 # Didn't find X, or a directory has "'" in its name.
23764 ac_cv_have_x="have_x=no";; #(
23765 *)
23766 # Record where we found X for the cache.
23767 ac_cv_have_x="have_x=yes\
23768 ac_x_includes='$ac_x_includes'\
23769 ac_x_libraries='$ac_x_libraries'"
23770esac
23771fi
23772;; #(
23773 *) have_x=yes;;
23774 esac
23775 eval "$ac_cv_have_x"
23776fi # $with_x != no
23777
23778if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000023780$as_echo "$have_x" >&6; }
23781 no_x=yes
23782else
23783 # If each of the values was on the command line, it overrides each guess.
23784 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23785 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23786 # Update the cache value to reflect the command line values.
23787 ac_cv_have_x="have_x=yes\
23788 ac_x_includes='$x_includes'\
23789 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000023790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000023791$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
23792fi
23793
cristy3ed852e2009-09-05 21:47:34 +000023794if test "$no_x" = yes; then
23795 # Not all programs may use this symbol, but it does not hurt to define it.
23796
cristy8b350f62009-11-15 23:12:43 +000023797$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023798
23799 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23800else
23801 if test -n "$x_includes"; then
23802 X_CFLAGS="$X_CFLAGS -I$x_includes"
23803 fi
23804
23805 # It would also be nice to do this for all -L options, not just this one.
23806 if test -n "$x_libraries"; then
23807 X_LIBS="$X_LIBS -L$x_libraries"
23808 # For Solaris; some versions of Sun CC require a space after -R and
23809 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000023810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000023811$as_echo_n "checking whether -R must be followed by a space... " >&6; }
23812 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23813 ac_xsave_c_werror_flag=$ac_c_werror_flag
23814 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000023815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023816/* end confdefs.h. */
23817
23818int
23819main ()
23820{
23821
23822 ;
23823 return 0;
23824}
23825_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023826if ac_fn_c_try_link "$LINENO"; then :
23827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023828$as_echo "no" >&6; }
23829 X_LIBS="$X_LIBS -R$x_libraries"
23830else
cristy8b350f62009-11-15 23:12:43 +000023831 LIBS="$ac_xsave_LIBS -R $x_libraries"
23832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023833/* end confdefs.h. */
23834
23835int
23836main ()
23837{
23838
23839 ;
23840 return 0;
23841}
23842_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023843if ac_fn_c_try_link "$LINENO"; then :
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023845$as_echo "yes" >&6; }
23846 X_LIBS="$X_LIBS -R $x_libraries"
23847else
cristy8b350f62009-11-15 23:12:43 +000023848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023849$as_echo "neither works" >&6; }
23850fi
cristy8b350f62009-11-15 23:12:43 +000023851rm -f core conftest.err conftest.$ac_objext \
23852 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023853fi
cristy8b350f62009-11-15 23:12:43 +000023854rm -f core conftest.err conftest.$ac_objext \
23855 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023856 ac_c_werror_flag=$ac_xsave_c_werror_flag
23857 LIBS=$ac_xsave_LIBS
23858 fi
23859
23860 # Check for system-dependent libraries X programs must link with.
23861 # Do this before checking for the system-independent R6 libraries
23862 # (-lICE), since we may need -lsocket or whatever for X linking.
23863
23864 if test "$ISC" = yes; then
23865 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23866 else
23867 # Martyn Johnson says this is needed for Ultrix, if the X
23868 # libraries were built with DECnet support. And Karl Berry says
23869 # the Alpha needs dnet_stub (dnet does not exist).
23870 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000023871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023872/* end confdefs.h. */
23873
23874/* Override any GCC internal prototype to avoid an error.
23875 Use char because int might match the return type of a GCC
23876 builtin and then its argument prototype would still apply. */
23877#ifdef __cplusplus
23878extern "C"
23879#endif
23880char XOpenDisplay ();
23881int
23882main ()
23883{
23884return XOpenDisplay ();
23885 ;
23886 return 0;
23887}
23888_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023889if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023890
cristy8b350f62009-11-15 23:12:43 +000023891else
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023893$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023894if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023895 $as_echo_n "(cached) " >&6
23896else
23897 ac_check_lib_save_LIBS=$LIBS
23898LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023900/* end confdefs.h. */
23901
23902/* Override any GCC internal prototype to avoid an error.
23903 Use char because int might match the return type of a GCC
23904 builtin and then its argument prototype would still apply. */
23905#ifdef __cplusplus
23906extern "C"
23907#endif
23908char dnet_ntoa ();
23909int
23910main ()
23911{
23912return dnet_ntoa ();
23913 ;
23914 return 0;
23915}
23916_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023917if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023918 ac_cv_lib_dnet_dnet_ntoa=yes
23919else
cristy8b350f62009-11-15 23:12:43 +000023920 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000023921fi
cristy8b350f62009-11-15 23:12:43 +000023922rm -f core conftest.err conftest.$ac_objext \
23923 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023924LIBS=$ac_check_lib_save_LIBS
23925fi
cristy8b350f62009-11-15 23:12:43 +000023926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000023927$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023928if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023929 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23930fi
23931
23932 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000023933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000023934$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023935if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023936 $as_echo_n "(cached) " >&6
23937else
23938 ac_check_lib_save_LIBS=$LIBS
23939LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023941/* end confdefs.h. */
23942
23943/* Override any GCC internal prototype to avoid an error.
23944 Use char because int might match the return type of a GCC
23945 builtin and then its argument prototype would still apply. */
23946#ifdef __cplusplus
23947extern "C"
23948#endif
23949char dnet_ntoa ();
23950int
23951main ()
23952{
23953return dnet_ntoa ();
23954 ;
23955 return 0;
23956}
23957_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023958if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023959 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23960else
cristy8b350f62009-11-15 23:12:43 +000023961 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000023962fi
cristy8b350f62009-11-15 23:12:43 +000023963rm -f core conftest.err conftest.$ac_objext \
23964 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023965LIBS=$ac_check_lib_save_LIBS
23966fi
cristy8b350f62009-11-15 23:12:43 +000023967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000023968$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023969if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023970 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23971fi
23972
23973 fi
23974fi
cristy8b350f62009-11-15 23:12:43 +000023975rm -f core conftest.err conftest.$ac_objext \
23976 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023977 LIBS="$ac_xsave_LIBS"
23978
23979 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23980 # to get the SysV transport functions.
23981 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23982 # needs -lnsl.
23983 # The nsl library prevents programs from opening the X display
23984 # on Irix 5.2, according to T.E. Dickey.
23985 # The functions gethostbyname, getservbyname, and inet_addr are
23986 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000023987 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
23988if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023989
cristy3ed852e2009-09-05 21:47:34 +000023990fi
23991
cristy3ed852e2009-09-05 21:47:34 +000023992 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000023993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000023994$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023995if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023996 $as_echo_n "(cached) " >&6
23997else
23998 ac_check_lib_save_LIBS=$LIBS
23999LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024001/* end confdefs.h. */
24002
24003/* Override any GCC internal prototype to avoid an error.
24004 Use char because int might match the return type of a GCC
24005 builtin and then its argument prototype would still apply. */
24006#ifdef __cplusplus
24007extern "C"
24008#endif
24009char gethostbyname ();
24010int
24011main ()
24012{
24013return gethostbyname ();
24014 ;
24015 return 0;
24016}
24017_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024018if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024019 ac_cv_lib_nsl_gethostbyname=yes
24020else
cristy8b350f62009-11-15 23:12:43 +000024021 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000024022fi
cristy8b350f62009-11-15 23:12:43 +000024023rm -f core conftest.err conftest.$ac_objext \
24024 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024025LIBS=$ac_check_lib_save_LIBS
24026fi
cristy8b350f62009-11-15 23:12:43 +000024027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000024028$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024029if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024030 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24031fi
24032
24033 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000024034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000024035$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024036if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024037 $as_echo_n "(cached) " >&6
24038else
24039 ac_check_lib_save_LIBS=$LIBS
24040LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024042/* end confdefs.h. */
24043
24044/* Override any GCC internal prototype to avoid an error.
24045 Use char because int might match the return type of a GCC
24046 builtin and then its argument prototype would still apply. */
24047#ifdef __cplusplus
24048extern "C"
24049#endif
24050char gethostbyname ();
24051int
24052main ()
24053{
24054return gethostbyname ();
24055 ;
24056 return 0;
24057}
24058_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024059if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024060 ac_cv_lib_bsd_gethostbyname=yes
24061else
cristy8b350f62009-11-15 23:12:43 +000024062 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000024063fi
cristy8b350f62009-11-15 23:12:43 +000024064rm -f core conftest.err conftest.$ac_objext \
24065 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024066LIBS=$ac_check_lib_save_LIBS
24067fi
cristy8b350f62009-11-15 23:12:43 +000024068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000024069$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024070if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024071 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24072fi
24073
24074 fi
24075 fi
24076
24077 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24078 # socket/setsockopt and other routines are undefined under SCO ODT
24079 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24080 # on later versions), says Simon Leinen: it contains gethostby*
24081 # variants that don't use the name server (or something). -lsocket
24082 # must be given before -lnsl if both are needed. We assume that
24083 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000024084 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24085if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024086
cristy3ed852e2009-09-05 21:47:34 +000024087fi
24088
cristy3ed852e2009-09-05 21:47:34 +000024089 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000024090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000024091$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024092if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024093 $as_echo_n "(cached) " >&6
24094else
24095 ac_check_lib_save_LIBS=$LIBS
24096LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024098/* end confdefs.h. */
24099
24100/* Override any GCC internal prototype to avoid an error.
24101 Use char because int might match the return type of a GCC
24102 builtin and then its argument prototype would still apply. */
24103#ifdef __cplusplus
24104extern "C"
24105#endif
24106char connect ();
24107int
24108main ()
24109{
24110return connect ();
24111 ;
24112 return 0;
24113}
24114_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024115if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024116 ac_cv_lib_socket_connect=yes
24117else
cristy8b350f62009-11-15 23:12:43 +000024118 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000024119fi
cristy8b350f62009-11-15 23:12:43 +000024120rm -f core conftest.err conftest.$ac_objext \
24121 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024122LIBS=$ac_check_lib_save_LIBS
24123fi
cristy8b350f62009-11-15 23:12:43 +000024124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000024125$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024126if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024127 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24128fi
24129
24130 fi
24131
24132 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000024133 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24134if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024135
cristy3ed852e2009-09-05 21:47:34 +000024136fi
24137
cristy3ed852e2009-09-05 21:47:34 +000024138 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000024139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000024140$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024141if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024142 $as_echo_n "(cached) " >&6
24143else
24144 ac_check_lib_save_LIBS=$LIBS
24145LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024147/* end confdefs.h. */
24148
24149/* Override any GCC internal prototype to avoid an error.
24150 Use char because int might match the return type of a GCC
24151 builtin and then its argument prototype would still apply. */
24152#ifdef __cplusplus
24153extern "C"
24154#endif
24155char remove ();
24156int
24157main ()
24158{
24159return remove ();
24160 ;
24161 return 0;
24162}
24163_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024164if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024165 ac_cv_lib_posix_remove=yes
24166else
cristy8b350f62009-11-15 23:12:43 +000024167 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000024168fi
cristy8b350f62009-11-15 23:12:43 +000024169rm -f core conftest.err conftest.$ac_objext \
24170 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024171LIBS=$ac_check_lib_save_LIBS
24172fi
cristy8b350f62009-11-15 23:12:43 +000024173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000024174$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024175if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024176 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24177fi
24178
24179 fi
24180
24181 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000024182 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24183if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024184
cristy3ed852e2009-09-05 21:47:34 +000024185fi
24186
cristy3ed852e2009-09-05 21:47:34 +000024187 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000024188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024189$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024190if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024191 $as_echo_n "(cached) " >&6
24192else
24193 ac_check_lib_save_LIBS=$LIBS
24194LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024196/* end confdefs.h. */
24197
24198/* Override any GCC internal prototype to avoid an error.
24199 Use char because int might match the return type of a GCC
24200 builtin and then its argument prototype would still apply. */
24201#ifdef __cplusplus
24202extern "C"
24203#endif
24204char shmat ();
24205int
24206main ()
24207{
24208return shmat ();
24209 ;
24210 return 0;
24211}
24212_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024213if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024214 ac_cv_lib_ipc_shmat=yes
24215else
cristy8b350f62009-11-15 23:12:43 +000024216 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000024217fi
cristy8b350f62009-11-15 23:12:43 +000024218rm -f core conftest.err conftest.$ac_objext \
24219 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024220LIBS=$ac_check_lib_save_LIBS
24221fi
cristy8b350f62009-11-15 23:12:43 +000024222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000024223$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024224if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024225 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24226fi
24227
24228 fi
24229 fi
24230
24231 # Check for libraries that X11R6 Xt/Xaw programs need.
24232 ac_save_LDFLAGS=$LDFLAGS
24233 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24234 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24235 # check for ICE first), but we must link in the order -lSM -lICE or
24236 # we get undefined symbols. So assume we have SM if we have ICE.
24237 # These have to be linked with before -lX11, unlike the other
24238 # libraries we check for below, so use a different variable.
24239 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000024240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000024241$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024242if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024243 $as_echo_n "(cached) " >&6
24244else
24245 ac_check_lib_save_LIBS=$LIBS
24246LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024248/* end confdefs.h. */
24249
24250/* Override any GCC internal prototype to avoid an error.
24251 Use char because int might match the return type of a GCC
24252 builtin and then its argument prototype would still apply. */
24253#ifdef __cplusplus
24254extern "C"
24255#endif
24256char IceConnectionNumber ();
24257int
24258main ()
24259{
24260return IceConnectionNumber ();
24261 ;
24262 return 0;
24263}
24264_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024265if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024266 ac_cv_lib_ICE_IceConnectionNumber=yes
24267else
cristy8b350f62009-11-15 23:12:43 +000024268 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000024269fi
cristy8b350f62009-11-15 23:12:43 +000024270rm -f core conftest.err conftest.$ac_objext \
24271 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024272LIBS=$ac_check_lib_save_LIBS
24273fi
cristy8b350f62009-11-15 23:12:43 +000024274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000024275$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024276if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024277 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24278fi
24279
24280 LDFLAGS=$ac_save_LDFLAGS
24281
24282fi
24283
24284if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024286$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000024288$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024290$as_echo "" >&6; }
24291 LDFLAGS="$LDFLAGS $X_LIBS"
24292 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
24293 LIBS="$X11_LIBS $LIBS"
24294 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
24295
24296
cristy8b350f62009-11-15 23:12:43 +000024297$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024298
24299 #
24300 # Check for X11 shared memory extension
24301 #
24302 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000024303 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
24304if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024305 have_shmctl='yes'
24306fi
24307
24308 if test "$have_shmctl" != 'yes'; then
24309 PERSIST_LIBS=$LIBS
24310 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000024311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024312/* end confdefs.h. */
24313
24314/* Override any GCC internal prototype to avoid an error.
24315 Use char because int might match the return type of a GCC
24316 builtin and then its argument prototype would still apply. */
24317#ifdef __cplusplus
24318extern "C"
24319#endif
24320char shmctl ();
24321int
24322main ()
24323{
24324return shmctl ();
24325 ;
24326 return 0;
24327}
24328_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024329if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024330 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000024331fi
cristy8b350f62009-11-15 23:12:43 +000024332rm -f core conftest.err conftest.$ac_objext \
24333 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024334 LIBS=$PERSIST_LIBS
24335 fi
24336
24337 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024339$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024340if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024341 $as_echo_n "(cached) " >&6
24342else
24343 ac_check_lib_save_LIBS=$LIBS
24344LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024346/* end confdefs.h. */
24347
24348/* Override any GCC internal prototype to avoid an error.
24349 Use char because int might match the return type of a GCC
24350 builtin and then its argument prototype would still apply. */
24351#ifdef __cplusplus
24352extern "C"
24353#endif
24354char XShmAttach ();
24355int
24356main ()
24357{
24358return XShmAttach ();
24359 ;
24360 return 0;
24361}
24362_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024363if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024364 ac_cv_lib_Xext_XShmAttach=yes
24365else
cristy8b350f62009-11-15 23:12:43 +000024366 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000024367fi
cristy8b350f62009-11-15 23:12:43 +000024368rm -f core conftest.err conftest.$ac_objext \
24369 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024370LIBS=$ac_check_lib_save_LIBS
24371fi
cristy8b350f62009-11-15 23:12:43 +000024372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000024373$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024374if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024375 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000024376$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024377
24378fi
24379
24380 fi
24381
24382 #
24383 # Check for X11 shape extension
24384 #
cristy8b350f62009-11-15 23:12:43 +000024385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024386$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024387if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024388 $as_echo_n "(cached) " >&6
24389else
24390 ac_check_lib_save_LIBS=$LIBS
24391LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024393/* end confdefs.h. */
24394
24395/* Override any GCC internal prototype to avoid an error.
24396 Use char because int might match the return type of a GCC
24397 builtin and then its argument prototype would still apply. */
24398#ifdef __cplusplus
24399extern "C"
24400#endif
24401char XShapeCombineMask ();
24402int
24403main ()
24404{
24405return XShapeCombineMask ();
24406 ;
24407 return 0;
24408}
24409_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024410if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024411 ac_cv_lib_Xext_XShapeCombineMask=yes
24412else
cristy8b350f62009-11-15 23:12:43 +000024413 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000024414fi
cristy8b350f62009-11-15 23:12:43 +000024415rm -f core conftest.err conftest.$ac_objext \
24416 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024417LIBS=$ac_check_lib_save_LIBS
24418fi
cristy8b350f62009-11-15 23:12:43 +000024419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000024420$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024421if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024422 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000024423$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024424
24425fi
24426
cristy8b350f62009-11-15 23:12:43 +000024427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000024428$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024429if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024430 $as_echo_n "(cached) " >&6
24431else
24432 ac_check_lib_save_LIBS=$LIBS
24433LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024435/* end confdefs.h. */
24436
24437/* Override any GCC internal prototype to avoid an error.
24438 Use char because int might match the return type of a GCC
24439 builtin and then its argument prototype would still apply. */
24440#ifdef __cplusplus
24441extern "C"
24442#endif
24443char XtSetEventDispatcher ();
24444int
24445main ()
24446{
24447return XtSetEventDispatcher ();
24448 ;
24449 return 0;
24450}
24451_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024452if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024453 ac_cv_lib_Xt_XtSetEventDispatcher=yes
24454else
cristy8b350f62009-11-15 23:12:43 +000024455 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000024456fi
cristy8b350f62009-11-15 23:12:43 +000024457rm -f core conftest.err conftest.$ac_objext \
24458 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024459LIBS=$ac_check_lib_save_LIBS
24460fi
cristy8b350f62009-11-15 23:12:43 +000024461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000024462$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024463if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024464 XT_LIBS='-lXt'
24465fi
24466
24467 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
24468fi
24469if test "$no_x" != 'yes'; then
24470 have_x='yes'
24471else
24472 have_x='no'
24473fi
24474 if test "$have_x" = 'yes'; then
24475 X11_DELEGATE_TRUE=
24476 X11_DELEGATE_FALSE='#'
24477else
24478 X11_DELEGATE_TRUE='#'
24479 X11_DELEGATE_FALSE=
24480fi
24481
24482
24483
24484
24485
24486#
24487# Check for ZLIB
24488#
24489
24490# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000024491if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024492 withval=$with_zlib; with_zlib=$withval
24493else
24494 with_zlib='yes'
24495fi
24496
24497
24498if test "$with_zlib" != 'yes'; then
24499 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
24500fi
24501
24502have_zlib='no'
24503ZLIB_LIBS=''
24504if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024506$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024508$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024510$as_echo "" >&6; }
24511 ZLIB_LIBS=''
24512 failed=0
24513 passed=0
cristy8b350f62009-11-15 23:12:43 +000024514 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
24515if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024516 passed=`expr $passed + 1`
24517else
24518 failed=`expr $failed + 1`
24519fi
24520
24521
cristy8b350f62009-11-15 23:12:43 +000024522 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
24523if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024524 passed=`expr $passed + 1`
24525else
24526 failed=`expr $failed + 1`
24527fi
24528
24529
cristy8b350f62009-11-15 23:12:43 +000024530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024531$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024532if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024533 $as_echo_n "(cached) " >&6
24534else
24535 ac_check_lib_save_LIBS=$LIBS
24536LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024538/* end confdefs.h. */
24539
24540/* Override any GCC internal prototype to avoid an error.
24541 Use char because int might match the return type of a GCC
24542 builtin and then its argument prototype would still apply. */
24543#ifdef __cplusplus
24544extern "C"
24545#endif
24546char compress ();
24547int
24548main ()
24549{
24550return compress ();
24551 ;
24552 return 0;
24553}
24554_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024555if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024556 ac_cv_lib_z_compress=yes
24557else
cristy8b350f62009-11-15 23:12:43 +000024558 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000024559fi
cristy8b350f62009-11-15 23:12:43 +000024560rm -f core conftest.err conftest.$ac_objext \
24561 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024562LIBS=$ac_check_lib_save_LIBS
24563fi
cristy8b350f62009-11-15 23:12:43 +000024564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024565$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024566if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024567 passed=`expr $passed + 1`
24568else
24569 failed=`expr $failed + 1`
24570fi
24571
cristy8b350f62009-11-15 23:12:43 +000024572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024573$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024574if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024575 $as_echo_n "(cached) " >&6
24576else
24577 ac_check_lib_save_LIBS=$LIBS
24578LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024580/* end confdefs.h. */
24581
24582/* Override any GCC internal prototype to avoid an error.
24583 Use char because int might match the return type of a GCC
24584 builtin and then its argument prototype would still apply. */
24585#ifdef __cplusplus
24586extern "C"
24587#endif
24588char uncompress ();
24589int
24590main ()
24591{
24592return uncompress ();
24593 ;
24594 return 0;
24595}
24596_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024597if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024598 ac_cv_lib_z_uncompress=yes
24599else
cristy8b350f62009-11-15 23:12:43 +000024600 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000024601fi
cristy8b350f62009-11-15 23:12:43 +000024602rm -f core conftest.err conftest.$ac_objext \
24603 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024604LIBS=$ac_check_lib_save_LIBS
24605fi
cristy8b350f62009-11-15 23:12:43 +000024606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024607$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024608if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024609 passed=`expr $passed + 1`
24610else
24611 failed=`expr $failed + 1`
24612fi
24613
cristy8b350f62009-11-15 23:12:43 +000024614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024615$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024616if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024617 $as_echo_n "(cached) " >&6
24618else
24619 ac_check_lib_save_LIBS=$LIBS
24620LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024622/* end confdefs.h. */
24623
24624/* Override any GCC internal prototype to avoid an error.
24625 Use char because int might match the return type of a GCC
24626 builtin and then its argument prototype would still apply. */
24627#ifdef __cplusplus
24628extern "C"
24629#endif
24630char deflate ();
24631int
24632main ()
24633{
24634return deflate ();
24635 ;
24636 return 0;
24637}
24638_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024639if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024640 ac_cv_lib_z_deflate=yes
24641else
cristy8b350f62009-11-15 23:12:43 +000024642 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000024643fi
cristy8b350f62009-11-15 23:12:43 +000024644rm -f core conftest.err conftest.$ac_objext \
24645 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024646LIBS=$ac_check_lib_save_LIBS
24647fi
cristy8b350f62009-11-15 23:12:43 +000024648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024649$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024650if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024651 passed=`expr $passed + 1`
24652else
24653 failed=`expr $failed + 1`
24654fi
24655
cristy8b350f62009-11-15 23:12:43 +000024656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024657$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024658if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024659 $as_echo_n "(cached) " >&6
24660else
24661 ac_check_lib_save_LIBS=$LIBS
24662LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024664/* end confdefs.h. */
24665
24666/* Override any GCC internal prototype to avoid an error.
24667 Use char because int might match the return type of a GCC
24668 builtin and then its argument prototype would still apply. */
24669#ifdef __cplusplus
24670extern "C"
24671#endif
24672char inflate ();
24673int
24674main ()
24675{
24676return inflate ();
24677 ;
24678 return 0;
24679}
24680_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024681if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024682 ac_cv_lib_z_inflate=yes
24683else
cristy8b350f62009-11-15 23:12:43 +000024684 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000024685fi
cristy8b350f62009-11-15 23:12:43 +000024686rm -f core conftest.err conftest.$ac_objext \
24687 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024688LIBS=$ac_check_lib_save_LIBS
24689fi
cristy8b350f62009-11-15 23:12:43 +000024690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024691$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024692if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024693 passed=`expr $passed + 1`
24694else
24695 failed=`expr $failed + 1`
24696fi
24697
cristy8b350f62009-11-15 23:12:43 +000024698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024699$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024700if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024701 $as_echo_n "(cached) " >&6
24702else
24703 ac_check_lib_save_LIBS=$LIBS
24704LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024706/* end confdefs.h. */
24707
24708/* Override any GCC internal prototype to avoid an error.
24709 Use char because int might match the return type of a GCC
24710 builtin and then its argument prototype would still apply. */
24711#ifdef __cplusplus
24712extern "C"
24713#endif
24714char gzseek ();
24715int
24716main ()
24717{
24718return gzseek ();
24719 ;
24720 return 0;
24721}
24722_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024723if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024724 ac_cv_lib_z_gzseek=yes
24725else
cristy8b350f62009-11-15 23:12:43 +000024726 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000024727fi
cristy8b350f62009-11-15 23:12:43 +000024728rm -f core conftest.err conftest.$ac_objext \
24729 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024730LIBS=$ac_check_lib_save_LIBS
24731fi
cristy8b350f62009-11-15 23:12:43 +000024732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000024733$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024734if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024735 passed=`expr $passed + 1`
24736else
24737 failed=`expr $failed + 1`
24738fi
24739
cristy8b350f62009-11-15 23:12:43 +000024740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024741$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024742if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024743 $as_echo_n "(cached) " >&6
24744else
24745 ac_check_lib_save_LIBS=$LIBS
24746LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024748/* end confdefs.h. */
24749
24750/* Override any GCC internal prototype to avoid an error.
24751 Use char because int might match the return type of a GCC
24752 builtin and then its argument prototype would still apply. */
24753#ifdef __cplusplus
24754extern "C"
24755#endif
24756char gztell ();
24757int
24758main ()
24759{
24760return gztell ();
24761 ;
24762 return 0;
24763}
24764_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024765if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024766 ac_cv_lib_z_gztell=yes
24767else
cristy8b350f62009-11-15 23:12:43 +000024768 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000024769fi
cristy8b350f62009-11-15 23:12:43 +000024770rm -f core conftest.err conftest.$ac_objext \
24771 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024772LIBS=$ac_check_lib_save_LIBS
24773fi
cristy8b350f62009-11-15 23:12:43 +000024774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000024775$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024776if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024777 passed=`expr $passed + 1`
24778else
24779 failed=`expr $failed + 1`
24780fi
24781
cristy8b350f62009-11-15 23:12:43 +000024782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024783$as_echo_n "checking if ZLIB package is complete... " >&6; }
24784 if test $passed -gt 0; then
24785 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024787$as_echo "no -- some components failed test" >&6; }
24788 have_zlib='no (failed tests)'
24789 else
24790 ZLIB_LIBS='-lz'
24791 LIBS="$ZLIB_LIBS $LIBS"
24792
cristy8b350f62009-11-15 23:12:43 +000024793$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024794
cristy8b350f62009-11-15 23:12:43 +000024795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024796$as_echo "yes" >&6; }
24797 have_zlib='yes'
24798 fi
24799 else
cristy8b350f62009-11-15 23:12:43 +000024800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024801$as_echo "no" >&6; }
24802 fi
24803fi
24804 if test "$have_zlib" = 'yes'; then
24805 ZLIB_DELEGATE_TRUE=
24806 ZLIB_DELEGATE_FALSE='#'
24807else
24808 ZLIB_DELEGATE_TRUE='#'
24809 ZLIB_DELEGATE_FALSE=
24810fi
24811
24812
24813
24814#
24815# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
24816#
24817LIB_DL=''
24818if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000024820$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024821if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024822 $as_echo_n "(cached) " >&6
24823else
24824 ac_check_lib_save_LIBS=$LIBS
24825LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024827/* end confdefs.h. */
24828
24829/* Override any GCC internal prototype to avoid an error.
24830 Use char because int might match the return type of a GCC
24831 builtin and then its argument prototype would still apply. */
24832#ifdef __cplusplus
24833extern "C"
24834#endif
24835char dlopen ();
24836int
24837main ()
24838{
24839return dlopen ();
24840 ;
24841 return 0;
24842}
24843_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024844if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024845 ac_cv_lib_dl_dlopen=yes
24846else
cristy8b350f62009-11-15 23:12:43 +000024847 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000024848fi
cristy8b350f62009-11-15 23:12:43 +000024849rm -f core conftest.err conftest.$ac_objext \
24850 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024851LIBS=$ac_check_lib_save_LIBS
24852fi
cristy8b350f62009-11-15 23:12:43 +000024853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000024854$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024855if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024856 LIB_DL='-ldl'
24857fi
24858
24859 LIBS="$LIB_DL $LIBS"
24860fi
24861
24862
24863
24864#
24865# Check for Autotrace delegate library.
24866#
24867
24868# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000024869if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024870 withval=$with_autotrace; with_autotrace=$withval
24871else
24872 with_autotrace='no'
24873fi
24874
24875
24876if test "$with_autotrace" != 'yes'; then
24877 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
24878fi
24879
24880have_autotrace='no'
24881AUTOTRACE_CFLAGS=""
24882AUTOTRACE_LIBS=""
24883AUTOTRACE_PKG=""
24884if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000024885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024886$as_echo "-------------------------------------------------------------" >&6; }
24887
24888pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000024889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000024890$as_echo_n "checking for AUTOTRACE... " >&6; }
24891
24892if test -n "$AUTOTRACE_CFLAGS"; then
24893 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
24894 elif test -n "$PKG_CONFIG"; then
24895 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000024896 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000024897 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24898 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24900 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000024901 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
24902else
24903 pkg_failed=yes
24904fi
24905 else
24906 pkg_failed=untried
24907fi
24908if test -n "$AUTOTRACE_LIBS"; then
24909 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
24910 elif test -n "$PKG_CONFIG"; then
24911 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000024912 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000024913 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24914 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24916 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000024917 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
24918else
24919 pkg_failed=yes
24920fi
24921 else
24922 pkg_failed=untried
24923fi
24924
24925
24926
24927if test $pkg_failed = yes; then
24928
24929if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24930 _pkg_short_errors_supported=yes
24931else
24932 _pkg_short_errors_supported=no
24933fi
24934 if test $_pkg_short_errors_supported = yes; then
24935 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
24936 else
24937 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
24938 fi
24939 # Put the nasty error message in config.log where it belongs
24940 echo "$AUTOTRACE_PKG_ERRORS" >&5
24941
cristy8b350f62009-11-15 23:12:43 +000024942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024943$as_echo "no" >&6; }
24944 have_autotrace=no
24945elif test $pkg_failed = untried; then
24946 have_autotrace=no
24947else
24948 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
24949 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000024950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024951$as_echo "yes" >&6; }
24952 have_autotrace=yes
24953fi
cristy8b350f62009-11-15 23:12:43 +000024954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024955$as_echo "" >&6; }
24956fi
24957
24958if test "$have_autotrace" = 'yes'; then
24959 failed=0
24960
cristy8b350f62009-11-15 23:12:43 +000024961$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024962
24963 if test "$with_modules" = 'no'; then
24964 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
24965 fi
24966fi
24967
24968 if test "$have_autotrace" = 'yes'; then
24969 AUTOTRACE_DELEGATE_TRUE=
24970 AUTOTRACE_DELEGATE_FALSE='#'
24971else
24972 AUTOTRACE_DELEGATE_TRUE='#'
24973 AUTOTRACE_DELEGATE_FALSE=
24974fi
24975
24976
24977
24978
24979
24980#
24981# Check for Display Postscript delegate library.
24982#
24983
24984# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000024985if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024986 withval=$with_dps; with_dps=$withval
24987else
24988 with_dps='yes'
24989fi
24990
24991
24992if test "$with_dps" != 'yes'; then
24993 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
24994fi
24995
24996have_dps='no'
24997DPS_LIBS=''
24998if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025000$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000025002$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025004$as_echo "" >&6; }
25005 failed=0
25006 passed=0
25007 PERSIST_CPPFLAGS="$CPPFLAGS"
25008 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000025009 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
25010if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025011 passed=`expr $passed + 1`
25012else
25013 failed=`expr $failed + 1`
25014fi
25015
25016
25017 # DPS issues:
25018 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
25019 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
25020 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
25021 # ImageMagick itself doesn't use -lXt.
25022 have_libdps='no'
25023 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000025024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000025025$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025026if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025027 $as_echo_n "(cached) " >&6
25028else
25029 ac_check_lib_save_LIBS=$LIBS
25030LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025032/* end confdefs.h. */
25033
25034/* Override any GCC internal prototype to avoid an error.
25035 Use char because int might match the return type of a GCC
25036 builtin and then its argument prototype would still apply. */
25037#ifdef __cplusplus
25038extern "C"
25039#endif
25040char DPSInitialize ();
25041int
25042main ()
25043{
25044return DPSInitialize ();
25045 ;
25046 return 0;
25047}
25048_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025049if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025050 ac_cv_lib_dps_DPSInitialize=yes
25051else
cristy8b350f62009-11-15 23:12:43 +000025052 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000025053fi
cristy8b350f62009-11-15 23:12:43 +000025054rm -f core conftest.err conftest.$ac_objext \
25055 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025056LIBS=$ac_check_lib_save_LIBS
25057fi
cristy8b350f62009-11-15 23:12:43 +000025058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000025059$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025060if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025061 have_libdps='yes'
25062else
25063 have_libdps='no'
25064fi
25065
25066 if test "$have_libdps" != 'yes'; then
25067 # Unset cache variable so we can try again.
25068 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000025069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000025070$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025071if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025072 $as_echo_n "(cached) " >&6
25073else
25074 ac_check_lib_save_LIBS=$LIBS
25075LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025077/* end confdefs.h. */
25078
25079/* Override any GCC internal prototype to avoid an error.
25080 Use char because int might match the return type of a GCC
25081 builtin and then its argument prototype would still apply. */
25082#ifdef __cplusplus
25083extern "C"
25084#endif
25085char DPSInitialize ();
25086int
25087main ()
25088{
25089return DPSInitialize ();
25090 ;
25091 return 0;
25092}
25093_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025094if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025095 ac_cv_lib_dps_DPSInitialize=yes
25096else
cristy8b350f62009-11-15 23:12:43 +000025097 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000025098fi
cristy8b350f62009-11-15 23:12:43 +000025099rm -f core conftest.err conftest.$ac_objext \
25100 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025101LIBS=$ac_check_lib_save_LIBS
25102fi
cristy8b350f62009-11-15 23:12:43 +000025103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000025104$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025105if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025106 have_libdps='yes'
25107else
25108 have_libdps='no'
25109fi
25110
25111 if test "$have_libdps" = 'yes'; then
25112 LIBDPS_XT='-lXt'
25113 fi
25114 fi
25115 if test "$have_libdps" = 'yes'; then
25116 passed=`expr $passed + 1`
25117 else
25118 failed=`expr $failed + 1`
25119 fi
cristy8b350f62009-11-15 23:12:43 +000025120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025121$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025122if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025123 $as_echo_n "(cached) " >&6
25124else
25125 ac_check_lib_save_LIBS=$LIBS
25126LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025128/* end confdefs.h. */
25129
25130/* Override any GCC internal prototype to avoid an error.
25131 Use char because int might match the return type of a GCC
25132 builtin and then its argument prototype would still apply. */
25133#ifdef __cplusplus
25134extern "C"
25135#endif
25136char XDPSPixelsPerPoint ();
25137int
25138main ()
25139{
25140return XDPSPixelsPerPoint ();
25141 ;
25142 return 0;
25143}
25144_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025145if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025146 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
25147else
cristy8b350f62009-11-15 23:12:43 +000025148 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000025149fi
cristy8b350f62009-11-15 23:12:43 +000025150rm -f core conftest.err conftest.$ac_objext \
25151 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025152LIBS=$ac_check_lib_save_LIBS
25153fi
cristy8b350f62009-11-15 23:12:43 +000025154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000025155$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025156if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025157 passed=`expr $passed + 1`
25158else
25159 failed=`expr $failed + 1`
25160fi
25161
cristy8b350f62009-11-15 23:12:43 +000025162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025163$as_echo_n "checking if DPS package is complete... " >&6; }
25164 if test $passed -gt 0; then
25165 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025167$as_echo "no -- some components failed test" >&6; }
25168 have_dps='no (failed tests)'
25169 CPPFLAGS="$PERSIST_CPPFLAGS"
25170 else
25171 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
25172 LIBS="$DPS_LIBS $LIBS"
25173
cristy8b350f62009-11-15 23:12:43 +000025174$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025175
cristy8b350f62009-11-15 23:12:43 +000025176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025177$as_echo "yes" >&6; }
25178 have_dps='yes'
25179 fi
25180 else
cristy8b350f62009-11-15 23:12:43 +000025181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025182$as_echo "no" >&6; }
25183 CPPFLAGS=$PERSIST_CPPFLAGS
25184 fi
25185fi
25186 if test "$have_dps" = 'yes'; then
25187 DPS_DELEGATE_TRUE=
25188 DPS_DELEGATE_FALSE='#'
25189else
25190 DPS_DELEGATE_TRUE='#'
25191 DPS_DELEGATE_FALSE=
25192fi
25193
25194
25195
25196
25197#
25198# Check for DJVU delegate library.
25199#
25200
25201# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000025202if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025203 withval=$with_djvu; with_djvu=$withval
25204else
25205 with_djvu='yes'
25206fi
25207
25208
25209if test "$with_djvu" != 'yes'; then
25210 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
25211fi
25212
25213have_djvu='no'
25214DJVU_LIBS=''
25215if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025217$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000025219$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025221$as_echo "" >&6; }
25222 failed=0
25223 passed=0
cristy8b350f62009-11-15 23:12:43 +000025224 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
25225if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025226 passed=`expr $passed + 1`
25227else
25228 failed=`expr $failed + 1`
25229fi
25230
25231
cristy8b350f62009-11-15 23:12:43 +000025232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000025233$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025234if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025235 $as_echo_n "(cached) " >&6
25236else
25237 ac_check_lib_save_LIBS=$LIBS
25238LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025240/* end confdefs.h. */
25241
25242/* Override any GCC internal prototype to avoid an error.
25243 Use char because int might match the return type of a GCC
25244 builtin and then its argument prototype would still apply. */
25245#ifdef __cplusplus
25246extern "C"
25247#endif
25248char ddjvu_context_create ();
25249int
25250main ()
25251{
25252return ddjvu_context_create ();
25253 ;
25254 return 0;
25255}
25256_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025257if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025258 ac_cv_lib_djvulibre_ddjvu_context_create=yes
25259else
cristy8b350f62009-11-15 23:12:43 +000025260 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000025261fi
cristy8b350f62009-11-15 23:12:43 +000025262rm -f core conftest.err conftest.$ac_objext \
25263 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025264LIBS=$ac_check_lib_save_LIBS
25265fi
cristy8b350f62009-11-15 23:12:43 +000025266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000025267$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025268if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025269 passed=`expr $passed + 1`
25270else
25271 failed=`expr $failed + 1`
25272fi
25273
cristy8b350f62009-11-15 23:12:43 +000025274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025275$as_echo_n "checking if DJVU package is complete... " >&6; }
25276 if test $passed -gt 0; then
25277 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025279$as_echo "no -- some components failed test" >&6; }
25280 have_djvu='no (failed tests)'
25281 else
25282 DJVU_LIBS='-ldjvulibre'
25283 LIBS="$DJVU_LIBS $LIBS"
25284
cristy8b350f62009-11-15 23:12:43 +000025285$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025286
cristy8b350f62009-11-15 23:12:43 +000025287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025288$as_echo "yes" >&6; }
25289 have_djvu='yes'
25290 fi
25291 else
cristy8b350f62009-11-15 23:12:43 +000025292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025293$as_echo "no" >&6; }
25294 fi
25295fi
25296 if test "$have_djvu" = 'yes'; then
25297 DJVU_DELEGATE_TRUE=
25298 DJVU_DELEGATE_FALSE='#'
25299else
25300 DJVU_DELEGATE_TRUE='#'
25301 DJVU_DELEGATE_FALSE=
25302fi
25303
25304
25305
25306
25307#
25308# Check for FFTW delegate library.
25309#
25310
25311# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000025312if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025313 withval=$with_fftw; with_fftw=$withval
25314else
25315 with_fftw='yes'
25316fi
25317
25318
25319if test "$with_fftw" != 'yes'; then
25320 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
25321fi
25322
25323have_fftw='no'
25324FFTW_LIBS=''
25325if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025327$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000025329$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025331$as_echo "" >&6; }
25332 failed=0
25333 passed=0
cristy8b350f62009-11-15 23:12:43 +000025334 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
25335if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025336 passed=`expr $passed + 1`
25337else
25338 failed=`expr $failed + 1`
25339fi
25340
25341
cristy8b350f62009-11-15 23:12:43 +000025342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000025343$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025344if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025345 $as_echo_n "(cached) " >&6
25346else
25347 ac_check_lib_save_LIBS=$LIBS
25348LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025350/* end confdefs.h. */
25351
25352/* Override any GCC internal prototype to avoid an error.
25353 Use char because int might match the return type of a GCC
25354 builtin and then its argument prototype would still apply. */
25355#ifdef __cplusplus
25356extern "C"
25357#endif
25358char fftw_execute ();
25359int
25360main ()
25361{
25362return fftw_execute ();
25363 ;
25364 return 0;
25365}
25366_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025367if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025368 ac_cv_lib_fftw3_fftw_execute=yes
25369else
cristy8b350f62009-11-15 23:12:43 +000025370 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000025371fi
cristy8b350f62009-11-15 23:12:43 +000025372rm -f core conftest.err conftest.$ac_objext \
25373 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025374LIBS=$ac_check_lib_save_LIBS
25375fi
cristy8b350f62009-11-15 23:12:43 +000025376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000025377$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025378if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025379 passed=`expr $passed + 1`
25380else
25381 failed=`expr $failed + 1`
25382fi
25383
cristy8b350f62009-11-15 23:12:43 +000025384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025385$as_echo_n "checking if FFTW package is complete... " >&6; }
25386 if test $passed -gt 0; then
25387 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025389$as_echo "no -- some components failed test" >&6; }
25390 have_fftw='no (failed tests)'
25391 else
25392 FFTW_LIBS='-lfftw3'
25393 LIBS="$FFTW_LIBS $LIBS"
25394
cristy8b350f62009-11-15 23:12:43 +000025395$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025396
cristy8b350f62009-11-15 23:12:43 +000025397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025398$as_echo "yes" >&6; }
25399 have_fftw='yes'
25400 fi
25401 else
cristy8b350f62009-11-15 23:12:43 +000025402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025403$as_echo "no" >&6; }
25404 fi
25405fi
25406 if test "$have_fftw" = 'yes'; then
25407 FFTW_DELEGATE_TRUE=
25408 FFTW_DELEGATE_FALSE='#'
25409else
25410 FFTW_DELEGATE_TRUE='#'
25411 FFTW_DELEGATE_FALSE=
25412fi
25413
25414
25415
25416
25417#
25418# Check for FlashPIX delegate library.
25419#
25420
25421# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000025422if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025423 withval=$with_fpx; with_fpx=$withval
25424else
25425 with_fpx='yes'
25426fi
25427
25428
25429if test "$with_fpx" != 'yes'; then
25430 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
25431fi
25432
25433have_fpx='no'
25434FPX_LIBS=''
25435if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025437$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025439$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025441$as_echo "" >&6; }
25442 failed=0
25443 passed=0
25444 ac_ext=cpp
25445ac_cpp='$CXXCPP $CPPFLAGS'
25446ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25447ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25448ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25449
25450
cristy8b350f62009-11-15 23:12:43 +000025451ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
25452if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025453 passed=`expr $passed + 1`
25454else
25455 failed=`expr $failed + 1`
25456fi
25457
25458
cristy8b350f62009-11-15 23:12:43 +000025459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000025460$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025461if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025462 $as_echo_n "(cached) " >&6
25463else
25464 ac_check_lib_save_LIBS=$LIBS
25465LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025467/* end confdefs.h. */
25468
25469/* Override any GCC internal prototype to avoid an error.
25470 Use char because int might match the return type of a GCC
25471 builtin and then its argument prototype would still apply. */
25472#ifdef __cplusplus
25473extern "C"
25474#endif
25475char FPX_OpenImageByFilename ();
25476int
25477main ()
25478{
25479return FPX_OpenImageByFilename ();
25480 ;
25481 return 0;
25482}
25483_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025484if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025485 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
25486else
cristy8b350f62009-11-15 23:12:43 +000025487 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000025488fi
cristy8b350f62009-11-15 23:12:43 +000025489rm -f core conftest.err conftest.$ac_objext \
25490 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025491LIBS=$ac_check_lib_save_LIBS
25492fi
cristy8b350f62009-11-15 23:12:43 +000025493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000025494$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025495if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025496 passed=`expr $passed + 1`
25497else
25498 failed=`expr $failed + 1`
25499fi
25500
25501 ac_ext=c
25502ac_cpp='$CPP $CPPFLAGS'
25503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25505ac_compiler_gnu=$ac_cv_c_compiler_gnu
25506
cristy8b350f62009-11-15 23:12:43 +000025507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025508$as_echo_n "checking if FlashPIX package is complete... " >&6; }
25509 if test $passed -gt 0; then
25510 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025512$as_echo "no -- some components failed test" >&6; }
25513 have_fpx='no (failed tests)'
25514 else
25515 FPX_LIBS='-lfpx'
25516
cristy8b350f62009-11-15 23:12:43 +000025517$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025518
cristy8b350f62009-11-15 23:12:43 +000025519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025520$as_echo "yes" >&6; }
25521 have_fpx='yes'
25522 PERLMAINCC="$CXX"
25523 fi
25524 else
cristy8b350f62009-11-15 23:12:43 +000025525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025526$as_echo "no" >&6; }
25527 fi
25528fi
25529 if test "$have_fpx" = 'yes'; then
25530 FPX_DELEGATE_TRUE=
25531 FPX_DELEGATE_FALSE='#'
25532else
25533 FPX_DELEGATE_TRUE='#'
25534 FPX_DELEGATE_FALSE=
25535fi
25536
25537
25538
25539
25540#
25541# Check for fontconfig delegate library.
25542#
25543
25544# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000025545if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025546 withval=$with_fontconfig; with_fontconfig=$withval
25547else
25548 with_fontconfig=$have_x
25549fi
25550
25551
25552if test "$with_fontconfig" != 'yes'; then
25553 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
25554fi
25555
25556have_fontconfig='no'
25557FONTCONFIG_CFLAGS=""
25558FONTCONFIG_LIBS=""
25559FONTCONFIG_PKG=""
25560if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000025561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025562$as_echo "-------------------------------------------------------------" >&6; }
25563
25564pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000025565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000025566$as_echo_n "checking for FONTCONFIG... " >&6; }
25567
25568if test -n "$FONTCONFIG_CFLAGS"; then
25569 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
25570 elif test -n "$PKG_CONFIG"; then
25571 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025572 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025573 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25574 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25576 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025577 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
25578else
25579 pkg_failed=yes
25580fi
25581 else
25582 pkg_failed=untried
25583fi
25584if test -n "$FONTCONFIG_LIBS"; then
25585 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
25586 elif test -n "$PKG_CONFIG"; then
25587 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025588 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025589 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25590 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25592 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025593 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
25594else
25595 pkg_failed=yes
25596fi
25597 else
25598 pkg_failed=untried
25599fi
25600
25601
25602
25603if test $pkg_failed = yes; then
25604
25605if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25606 _pkg_short_errors_supported=yes
25607else
25608 _pkg_short_errors_supported=no
25609fi
25610 if test $_pkg_short_errors_supported = yes; then
25611 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
25612 else
25613 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
25614 fi
25615 # Put the nasty error message in config.log where it belongs
25616 echo "$FONTCONFIG_PKG_ERRORS" >&5
25617
cristy8b350f62009-11-15 23:12:43 +000025618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025619$as_echo "no" >&6; }
25620 have_fontconfig=no
25621elif test $pkg_failed = untried; then
25622 have_fontconfig=no
25623else
25624 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
25625 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000025626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025627$as_echo "yes" >&6; }
25628 have_fontconfig=yes
25629fi
cristy8b350f62009-11-15 23:12:43 +000025630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025631$as_echo "" >&6; }
25632fi
25633
25634if test "$have_fontconfig" = 'yes'; then
25635
cristy8b350f62009-11-15 23:12:43 +000025636$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025637
25638 if test "$with_modules" = 'no'; then
25639 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
25640 fi
25641fi
25642
25643 if test "$have_fontconfig" = 'yes'; then
25644 FONTCONFIG_DELEGATE_TRUE=
25645 FONTCONFIG_DELEGATE_FALSE='#'
25646else
25647 FONTCONFIG_DELEGATE_TRUE='#'
25648 FONTCONFIG_DELEGATE_FALSE=
25649fi
25650
25651
25652
25653
25654
25655#
25656# Check for freetype delegate library.
25657#
25658
25659# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000025660if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025661 withval=$with_freetype; with_freetype=$withval
25662else
25663 with_freetype='yes'
25664fi
25665
25666
25667
25668if test "$with_freetype" != 'yes'; then
25669 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
25670fi
25671
25672have_freetype='no'
25673FREETYPE_LIBS=''
25674if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025676$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000025678$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025680$as_echo "" >&6; }
25681 failed=0
25682 passed=0
cristy66291112009-10-03 22:44:36 +000025683 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000025684 PERSIST_CPPFLAGS="$CPPFLAGS"
25685 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
25686 :
25687 else
25688 freetype_config=''
25689 for ac_prog in freetype-config
25690do
25691 # Extract the first word of "$ac_prog", so it can be a program name with args.
25692set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025694$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025695if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025696 $as_echo_n "(cached) " >&6
25697else
25698 if test -n "$freetype_config"; then
25699 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
25700else
25701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25702for as_dir in $PATH
25703do
25704 IFS=$as_save_IFS
25705 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025706 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25708 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025710 break 2
25711 fi
25712done
cristy8b350f62009-11-15 23:12:43 +000025713 done
cristy3ed852e2009-09-05 21:47:34 +000025714IFS=$as_save_IFS
25715
25716fi
25717fi
25718freetype_config=$ac_cv_prog_freetype_config
25719if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000025720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000025721$as_echo "$freetype_config" >&6; }
25722else
cristy8b350f62009-11-15 23:12:43 +000025723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025724$as_echo "no" >&6; }
25725fi
25726
25727
25728 test -n "$freetype_config" && break
25729done
25730 if test -n "$freetype_config"; then
25731 freetype_cflags=`$freetype_config --cflags`
25732 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000025733 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000025734 CPPFLAGS="$freetype_cflags $CPPFLAGS"
25735 fi
25736 fi
25737
25738 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000025739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000025740$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025741if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025742 $as_echo_n "(cached) " >&6
25743else
25744 ac_check_lib_save_LIBS=$LIBS
25745LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025747/* end confdefs.h. */
25748
25749/* Override any GCC internal prototype to avoid an error.
25750 Use char because int might match the return type of a GCC
25751 builtin and then its argument prototype would still apply. */
25752#ifdef __cplusplus
25753extern "C"
25754#endif
25755char FT_Init_FreeType ();
25756int
25757main ()
25758{
25759return FT_Init_FreeType ();
25760 ;
25761 return 0;
25762}
25763_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025764if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025765 ac_cv_lib_freetype_FT_Init_FreeType=yes
25766else
cristy8b350f62009-11-15 23:12:43 +000025767 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000025768fi
cristy8b350f62009-11-15 23:12:43 +000025769rm -f core conftest.err conftest.$ac_objext \
25770 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025771LIBS=$ac_check_lib_save_LIBS
25772fi
cristy8b350f62009-11-15 23:12:43 +000025773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000025774$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025775if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025776 FREETYPE_LIBS='-lfreetype'
25777fi
25778
25779 if test "$FREETYPE_LIBS" != ''; then
25780 passed=`expr $passed + 1`
25781 else
25782 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000025783 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000025784 fi
25785 fi
25786
cristy8b350f62009-11-15 23:12:43 +000025787 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
25788if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025789 FT2BUILD_H='#include <ft2build.h>'
25790else
25791 ft2build=''
25792fi
25793
25794
cristy8b350f62009-11-15 23:12:43 +000025795 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
25796"
25797if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025798 have_freetype_h='yes'
25799else
25800 have_freetype_h='no'
25801fi
25802
25803
25804 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
25805 passed=`expr $passed + 1`
25806 else
25807 failed=`expr $failed + 1`
25808 CPPFLAGS="$PERSIST_CPPFLAGS"
25809 fi
25810
cristy8b350f62009-11-15 23:12:43 +000025811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025812$as_echo_n "checking if FreeType package is complete... " >&6; }
25813 if test $passed -gt 0; then
25814 if test $failed -gt 0; then
25815 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025817$as_echo "no -- some components failed test" >&6; }
25818 have_freetype='no (failed tests)'
25819 else
25820 LIBS="$FREETYPE_LIBS $LIBS"
25821
cristy8b350f62009-11-15 23:12:43 +000025822$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025823
25824 if test "$ac_cv_header_ft2build_h" = 'yes'; then
25825
cristy8b350f62009-11-15 23:12:43 +000025826$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025827
25828 fi
cristy8b350f62009-11-15 23:12:43 +000025829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025830$as_echo "yes" >&6; }
25831 have_freetype='yes'
25832 fi
25833 else
cristy8b350f62009-11-15 23:12:43 +000025834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025835$as_echo "no" >&6; }
25836 fi
25837fi
25838 if test "$have_freetype" = 'yes'; then
25839 FREETYPE_DELEGATE_TRUE=
25840 FREETYPE_DELEGATE_FALSE='#'
25841else
25842 FREETYPE_DELEGATE_TRUE='#'
25843 FREETYPE_DELEGATE_FALSE=
25844fi
25845
25846
25847
25848
25849
25850#
25851# Check for Ghostscript library or framework.
25852#
25853# Test for iapi.h & test for gsapi_new_instance in -lgs
25854# or -framework Ghostscript
25855
25856
25857# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000025858if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025859 withval=$with_gslib; with_gslib=$withval
25860else
25861 with_gslib='no'
25862fi
25863
25864
cristyb7931f12009-09-25 10:22:21 +000025865gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000025866if test "$with_gslib" != 'yes'; then
25867 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
25868fi
25869
25870have_gslib='no'
25871GS_LIBS=''
25872if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025874$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000025876$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025878$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000025879 framework=0
cristy3ed852e2009-09-05 21:47:34 +000025880 failed=0
25881 passed=0
cristy8b350f62009-11-15 23:12:43 +000025882 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
25883if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025884 passed=`expr $passed + 1`
25885else
25886 failed=`expr $failed + 1`
25887fi
25888
25889
cristy8b350f62009-11-15 23:12:43 +000025890 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
25891if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025892 passed=`expr $passed + 1`
25893else
25894 failed=`expr $failed + 1`
25895fi
25896
25897
cristy8b350f62009-11-15 23:12:43 +000025898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000025899$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025900if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025901 $as_echo_n "(cached) " >&6
25902else
25903 ac_check_framework_save_LIBS=$LIBS
25904LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025906/* end confdefs.h. */
25907
25908/* Override any GCC internal prototype to avoid an error.
25909 Use char because int might match the return type of a GCC
25910 builtin and then its argument prototype would still apply. */
25911#ifdef __cplusplus
25912extern "C"
25913#endif
25914char gsapi_new_instance ();
25915int
25916main ()
25917{
25918return gsapi_new_instance ();
25919 ;
25920 return 0;
25921}
25922_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025923if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025924 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
25925else
cristy8b350f62009-11-15 23:12:43 +000025926 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000025927fi
cristy8b350f62009-11-15 23:12:43 +000025928rm -f core conftest.err conftest.$ac_objext \
25929 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025930LIBS=$ac_check_framework_save_LIBS
25931fi
cristy8b350f62009-11-15 23:12:43 +000025932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000025933$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025934if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025935 framework=`expr $framework + 1`
25936else
cristy8b350f62009-11-15 23:12:43 +000025937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000025938$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025939if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025940 $as_echo_n "(cached) " >&6
25941else
25942 ac_check_lib_save_LIBS=$LIBS
25943LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025945/* end confdefs.h. */
25946
25947/* Override any GCC internal prototype to avoid an error.
25948 Use char because int might match the return type of a GCC
25949 builtin and then its argument prototype would still apply. */
25950#ifdef __cplusplus
25951extern "C"
25952#endif
25953char gsapi_new_instance ();
25954int
25955main ()
25956{
25957return gsapi_new_instance ();
25958 ;
25959 return 0;
25960}
25961_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025962if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025963 ac_cv_lib_gs_gsapi_new_instance=yes
25964else
cristy8b350f62009-11-15 23:12:43 +000025965 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000025966fi
cristy8b350f62009-11-15 23:12:43 +000025967rm -f core conftest.err conftest.$ac_objext \
25968 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025969LIBS=$ac_check_lib_save_LIBS
25970fi
cristy8b350f62009-11-15 23:12:43 +000025971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000025972$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025973if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025974 passed=`expr $passed + 1`
25975else
25976 failed=`expr $failed + 1`
25977fi
25978
25979fi
cristy8b350f62009-11-15 23:12:43 +000025980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025981$as_echo_n "checking if Ghostscript package is complete... " >&6; }
25982 if test $passed -gt 0; then
25983 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025985$as_echo "no -- some components failed test" >&6; }
25986 have_gslib='no (failed tests)'
25987 else
25988 if test $framework -gt 0; then
25989 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000025990 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000025991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000025992$as_echo "yes, using framework." >&6; }
25993 else
cristy8b350f62009-11-15 23:12:43 +000025994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000025995$as_echo "yes, using library." >&6; }
25996 GS_LIBS='-lgs'
25997 fi
25998 LIBS="$GS_LIBS $LIBS"
25999
cristy8b350f62009-11-15 23:12:43 +000026000$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026001
26002 have_gslib='yes'
26003 fi
26004 else
cristy8b350f62009-11-15 23:12:43 +000026005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026006$as_echo "no" >&6; }
26007 fi
26008fi
26009 if test "$have_gslib" = 'yes'; then
26010 GS_DELEGATE_TRUE=
26011 GS_DELEGATE_FALSE='#'
26012else
26013 GS_DELEGATE_TRUE='#'
26014 GS_DELEGATE_FALSE=
26015fi
26016
26017
26018
26019# Set default font search path
26020
26021# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000026022if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026023 withval=$with_fontpath; with_fontpath=$withval
26024else
26025 with_fontpath=''
26026fi
26027
26028
26029if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
26030 with_fontpath=''
26031else
26032
26033cat >>confdefs.h <<_ACEOF
26034#define MAGICK_FONT_PATH "$with_fontpath"
26035_ACEOF
26036
26037fi
26038if test "$with_fontpath=" != ''; then
26039 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
26040fi
26041
26042# Set Ghostscript font directory
26043
26044# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000026045if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026046 withval=$with_gs_font_dir; with_gs_font_dir=$withval
26047else
26048 with_gs_font_dir='default'
26049fi
26050
26051
26052if test "$with_gs_font_dir" != 'default'; then
26053 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
26054fi
26055
26056
26057#
26058# Check for GVC delegate library.
26059#
26060
26061# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000026062if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026063 withval=$with_gvc; with_gvc=$withval
26064else
26065 with_gvc='yes'
26066fi
26067
26068
26069if test "$with_gvc" != 'yes'; then
26070 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
26071fi
26072
26073GVC_PKG=""
26074if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026076$as_echo "-------------------------------------------------------------" >&6; }
26077
26078pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000026080$as_echo_n "checking for GVC... " >&6; }
26081
26082if test -n "$GVC_CFLAGS"; then
26083 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
26084 elif test -n "$PKG_CONFIG"; then
26085 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026086 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026087 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26088 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26090 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026091 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
26092else
26093 pkg_failed=yes
26094fi
26095 else
26096 pkg_failed=untried
26097fi
26098if test -n "$GVC_LIBS"; then
26099 pkg_cv_GVC_LIBS="$GVC_LIBS"
26100 elif test -n "$PKG_CONFIG"; then
26101 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026102 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026103 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26104 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26106 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026107 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
26108else
26109 pkg_failed=yes
26110fi
26111 else
26112 pkg_failed=untried
26113fi
26114
26115
26116
26117if test $pkg_failed = yes; then
26118
26119if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26120 _pkg_short_errors_supported=yes
26121else
26122 _pkg_short_errors_supported=no
26123fi
26124 if test $_pkg_short_errors_supported = yes; then
26125 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
26126 else
26127 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
26128 fi
26129 # Put the nasty error message in config.log where it belongs
26130 echo "$GVC_PKG_ERRORS" >&5
26131
cristy8b350f62009-11-15 23:12:43 +000026132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026133$as_echo "no" >&6; }
26134 have_gvc=no
26135elif test $pkg_failed = untried; then
26136 have_gvc=no
26137else
26138 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
26139 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000026140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026141$as_echo "yes" >&6; }
26142 have_gvc=yes
26143fi
cristy8b350f62009-11-15 23:12:43 +000026144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026145$as_echo "" >&6; }
26146fi
26147
26148if test "$have_gvc" = 'yes'; then
26149
cristy8b350f62009-11-15 23:12:43 +000026150$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026151
26152 if test "$with_modules" = 'no'; then
26153 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
26154 fi
26155fi
26156
26157 if test "$have_gvc" = 'yes'; then
26158 GVC_DELEGATE_TRUE=
26159 GVC_DELEGATE_FALSE='#'
26160else
26161 GVC_DELEGATE_TRUE='#'
26162 GVC_DELEGATE_FALSE=
26163fi
26164
26165
26166
26167
26168
26169#
26170# Check for JBIG delegate library.
26171#
26172
26173
26174# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000026175if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026176 withval=$with_jbig; with_jbig=$withval
26177else
26178 with_jbig='yes'
26179fi
26180
26181
26182have_jbig='no'
26183JBIG_LIBS=''
26184if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026186$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026188$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026190$as_echo "" >&6; }
26191 failed=0
26192 passed=0
cristy8b350f62009-11-15 23:12:43 +000026193 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
26194if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026195 passed=`expr $passed + 1`
26196else
26197 failed=`expr $failed + 1`
26198fi
26199
26200
cristy8b350f62009-11-15 23:12:43 +000026201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000026202$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026203if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026204 $as_echo_n "(cached) " >&6
26205else
26206 ac_check_lib_save_LIBS=$LIBS
26207LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026209/* end confdefs.h. */
26210
26211/* Override any GCC internal prototype to avoid an error.
26212 Use char because int might match the return type of a GCC
26213 builtin and then its argument prototype would still apply. */
26214#ifdef __cplusplus
26215extern "C"
26216#endif
26217char jbg_dec_init ();
26218int
26219main ()
26220{
26221return jbg_dec_init ();
26222 ;
26223 return 0;
26224}
26225_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026226if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026227 ac_cv_lib_jbig_jbg_dec_init=yes
26228else
cristy8b350f62009-11-15 23:12:43 +000026229 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000026230fi
cristy8b350f62009-11-15 23:12:43 +000026231rm -f core conftest.err conftest.$ac_objext \
26232 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026233LIBS=$ac_check_lib_save_LIBS
26234fi
cristy8b350f62009-11-15 23:12:43 +000026235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000026236$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026237if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026238 passed=`expr $passed + 1`
26239else
26240 failed=`expr $failed + 1`
26241fi
26242
cristy8b350f62009-11-15 23:12:43 +000026243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026244$as_echo_n "checking if JBIG package is complete... " >&6; }
26245 if test $passed -gt 0; then
26246 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026248$as_echo "no -- some components failed test" >&6; }
26249 have_jbig='no (failed tests)'
26250 else
26251 JBIG_LIBS='-ljbig'
26252 LIBS="$JBIG_LIBS $LIBS"
26253
cristy8b350f62009-11-15 23:12:43 +000026254$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026255
cristy8b350f62009-11-15 23:12:43 +000026256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026257$as_echo "yes" >&6; }
26258 have_jbig='yes'
26259 fi
26260 else
cristy8b350f62009-11-15 23:12:43 +000026261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026262$as_echo "no" >&6; }
26263 fi
26264fi
26265 if test "$have_jbig" = 'yes'; then
26266 JBIG_DELEGATE_TRUE=
26267 JBIG_DELEGATE_FALSE='#'
26268else
26269 JBIG_DELEGATE_TRUE='#'
26270 JBIG_DELEGATE_FALSE=
26271fi
26272
26273
26274
26275
26276#
26277# Check for JPEG delegate library.
26278#
26279
26280# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000026281if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026282 withval=$with_jpeg; with_jpeg=$withval
26283else
26284 with_jpeg='yes'
26285fi
26286
26287
26288if test "$with_jpeg" != 'yes'; then
26289 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
26290fi
26291
26292have_jpeg='no'
26293JPEG_LIBS=''
26294if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026296$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026298$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026300$as_echo "" >&6; }
26301 failed=0
26302 passed=0
cristy8b350f62009-11-15 23:12:43 +000026303 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
26304if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026305 passed=`expr $passed + 1`
26306else
26307 failed=`expr $failed + 1`
26308fi
26309
26310
cristy8b350f62009-11-15 23:12:43 +000026311 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
26312if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026313 passed=`expr $passed + 1`
26314else
26315 failed=`expr $failed + 1`
26316fi
26317
26318
cristy8b350f62009-11-15 23:12:43 +000026319 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
26320if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026321 passed=`expr $passed + 1`
26322else
26323 failed=`expr $failed + 1`
26324fi
26325
26326
cristy8b350f62009-11-15 23:12:43 +000026327 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
26328if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026329 passed=`expr $passed + 1`
26330else
26331 failed=`expr $failed + 1`
26332fi
26333
26334
cristy8b350f62009-11-15 23:12:43 +000026335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000026336$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026337if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026338 $as_echo_n "(cached) " >&6
26339else
26340 ac_check_lib_save_LIBS=$LIBS
26341LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026343/* end confdefs.h. */
26344
26345/* Override any GCC internal prototype to avoid an error.
26346 Use char because int might match the return type of a GCC
26347 builtin and then its argument prototype would still apply. */
26348#ifdef __cplusplus
26349extern "C"
26350#endif
26351char jpeg_read_header ();
26352int
26353main ()
26354{
26355return jpeg_read_header ();
26356 ;
26357 return 0;
26358}
26359_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026360if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026361 ac_cv_lib_jpeg_jpeg_read_header=yes
26362else
cristy8b350f62009-11-15 23:12:43 +000026363 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000026364fi
cristy8b350f62009-11-15 23:12:43 +000026365rm -f core conftest.err conftest.$ac_objext \
26366 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026367LIBS=$ac_check_lib_save_LIBS
26368fi
cristy8b350f62009-11-15 23:12:43 +000026369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000026370$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026371if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026372 passed=`expr $passed + 1`
26373else
26374 failed=`expr $failed + 1`
26375fi
26376
26377
26378# Test for compatible JPEG library
26379if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000026381$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026382if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026383 $as_echo_n "(cached) " >&6
26384else
cristy8b350f62009-11-15 23:12:43 +000026385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026386/* end confdefs.h. */
26387#include <stdio.h>
26388#include <stdlib.h>
26389#include <jpeglib.h>
26390
26391int
26392main ()
26393{
26394
26395#if JPEG_LIB_VERSION < 62
26396#error IJG JPEG library must be version 6b or newer!
26397#endif
26398return 0;
26399
26400 ;
26401 return 0;
26402}
26403_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026404if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026405 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
26406else
cristy8b350f62009-11-15 23:12:43 +000026407 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000026408fi
cristy3ed852e2009-09-05 21:47:34 +000026409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26410fi
cristy8b350f62009-11-15 23:12:43 +000026411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000026412$as_echo "$ac_cv_jpeg_version_ok" >&6; }
26413fi
cristy8b350f62009-11-15 23:12:43 +000026414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026415$as_echo_n "checking if JPEG package is complete... " >&6; }
26416 if test $passed -gt 0; then
26417 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026419$as_echo "no -- some components failed test" >&6; }
26420 have_jpeg='no (failed tests)'
26421 else
26422 JPEG_LIBS='-ljpeg'
26423 LIBS="$JPEG_LIBS $LIBS"
26424
cristy8b350f62009-11-15 23:12:43 +000026425$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026426
cristy8b350f62009-11-15 23:12:43 +000026427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026428$as_echo "yes" >&6; }
26429 have_jpeg='yes'
26430 fi
26431 else
cristy8b350f62009-11-15 23:12:43 +000026432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026433$as_echo "no" >&6; }
26434 fi
26435fi
26436 if test "$have_jpeg" = 'yes'; then
26437 JPEG_DELEGATE_TRUE=
26438 JPEG_DELEGATE_FALSE='#'
26439else
26440 JPEG_DELEGATE_TRUE='#'
26441 JPEG_DELEGATE_FALSE=
26442fi
26443
26444
26445
26446
26447#
26448# Check for JPEG Version 2 delegate library.
26449#
26450
26451# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000026452if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026453 withval=$with_jp2; with_jp2=$withval
26454else
26455 with_jp2='yes'
26456fi
26457
26458
26459if test "$with_jp2" != 'yes'; then
26460 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
26461fi
26462
26463have_jp2='no'
26464JP2_LIBS=''
26465if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026467$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026469$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026471$as_echo "" >&6; }
26472 failed=0
26473 passed=0
cristy8b350f62009-11-15 23:12:43 +000026474 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
26475if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026476 passed=`expr $passed + 1`
26477else
26478 failed=`expr $failed + 1`
26479fi
26480
26481
cristy8b350f62009-11-15 23:12:43 +000026482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000026483$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026484if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026485 $as_echo_n "(cached) " >&6
26486else
26487 ac_check_lib_save_LIBS=$LIBS
26488LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026490/* end confdefs.h. */
26491
26492/* Override any GCC internal prototype to avoid an error.
26493 Use char because int might match the return type of a GCC
26494 builtin and then its argument prototype would still apply. */
26495#ifdef __cplusplus
26496extern "C"
26497#endif
26498char jas_stream_fopen ();
26499int
26500main ()
26501{
26502return jas_stream_fopen ();
26503 ;
26504 return 0;
26505}
26506_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026507if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026508 ac_cv_lib_jasper_jas_stream_fopen=yes
26509else
cristy8b350f62009-11-15 23:12:43 +000026510 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000026511fi
cristy8b350f62009-11-15 23:12:43 +000026512rm -f core conftest.err conftest.$ac_objext \
26513 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026514LIBS=$ac_check_lib_save_LIBS
26515fi
cristy8b350f62009-11-15 23:12:43 +000026516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026517$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026518if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026519 passed=`expr $passed + 1`
26520else
26521 failed=`expr $failed + 1`
26522fi
26523
cristy8b350f62009-11-15 23:12:43 +000026524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026525$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
26526 if test $passed -gt 0; then
26527 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026529$as_echo "no -- some components failed test" >&6; }
26530 have_jp2='no (failed tests)'
26531 else
26532 JP2_LIBS='-ljasper'
26533 LIBS="$JP2_LIBS $LIBS"
26534
cristy8b350f62009-11-15 23:12:43 +000026535$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026536
cristy8b350f62009-11-15 23:12:43 +000026537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026538$as_echo "yes" >&6; }
26539 have_jp2='yes'
26540 fi
26541 else
cristy8b350f62009-11-15 23:12:43 +000026542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026543$as_echo "no" >&6; }
26544 fi
26545fi
26546 if test "$have_jp2" = 'yes'; then
26547 JP2_DELEGATE_TRUE=
26548 JP2_DELEGATE_FALSE='#'
26549else
26550 JP2_DELEGATE_TRUE='#'
26551 JP2_DELEGATE_FALSE=
26552fi
26553
26554
26555
26556
26557#
26558# Check for LCMS delegate library.
26559#
26560
26561# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000026562if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026563 withval=$with_lcms; with_lcms=$withval
26564else
26565 with_lcms='yes'
26566fi
26567
26568
26569if test "$with_lcms" != 'yes'; then
26570 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
26571fi
26572
26573have_lcms='no'
26574LCMS_LIBS=''
26575if test "$with_lcms" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026577$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026579$as_echo_n "checking for LCMS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026581$as_echo "" >&6; }
26582 failed=0
26583 passed=0
26584 have_lcms_header='no'
cristy8b350f62009-11-15 23:12:43 +000026585 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
26586if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026587 have_lcms_header='yes'
26588fi
26589
26590
26591 if test "$have_lcms_header" = 'yes'; then
26592 passed=`expr $passed + 1`
26593
cristy8b350f62009-11-15 23:12:43 +000026594$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026595
26596 else
cristy8b350f62009-11-15 23:12:43 +000026597 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
26598if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026599 have_lcms_header='yes'
26600fi
26601
26602
26603 if test "$have_lcms_header" = 'yes'; then
26604 passed=`expr $passed + 1`
26605
cristy8b350f62009-11-15 23:12:43 +000026606$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026607
26608 else
26609 failed=`expr $failed + 1`
26610 fi
26611 fi
cristy8b350f62009-11-15 23:12:43 +000026612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
cristy3ed852e2009-09-05 21:47:34 +000026613$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026614if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026615 $as_echo_n "(cached) " >&6
26616else
26617 ac_check_lib_save_LIBS=$LIBS
26618LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026620/* end confdefs.h. */
26621
26622/* Override any GCC internal prototype to avoid an error.
26623 Use char because int might match the return type of a GCC
26624 builtin and then its argument prototype would still apply. */
26625#ifdef __cplusplus
26626extern "C"
26627#endif
26628char cmsOpenProfileFromMem ();
26629int
26630main ()
26631{
26632return cmsOpenProfileFromMem ();
26633 ;
26634 return 0;
26635}
26636_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026637if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026638 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
26639else
cristy8b350f62009-11-15 23:12:43 +000026640 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
cristy3ed852e2009-09-05 21:47:34 +000026641fi
cristy8b350f62009-11-15 23:12:43 +000026642rm -f core conftest.err conftest.$ac_objext \
26643 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026644LIBS=$ac_check_lib_save_LIBS
26645fi
cristy8b350f62009-11-15 23:12:43 +000026646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026647$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026648if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026649 passed=`expr $passed + 1`
26650else
26651 failed=`expr $failed + 1`
26652fi
26653
cristy8b350f62009-11-15 23:12:43 +000026654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026655$as_echo_n "checking if LCMS package is complete... " >&6; }
26656 if test $passed -gt 0; then
26657 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026659$as_echo "no -- some components failed test" >&6; }
26660 have_lcms='no (failed tests)'
26661 else
26662 LCMS_LIBS='-llcms'
26663 LIBS="$LCMS_LIBS $LIBS"
26664
cristy8b350f62009-11-15 23:12:43 +000026665$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026666
cristy8b350f62009-11-15 23:12:43 +000026667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026668$as_echo "yes" >&6; }
26669 have_lcms='yes'
26670 fi
26671 else
cristy8b350f62009-11-15 23:12:43 +000026672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026673$as_echo "no" >&6; }
26674 fi
26675fi
26676 if test "$have_lcms" = 'yes'; then
26677 LCMS_DELEGATE_TRUE=
26678 LCMS_DELEGATE_FALSE='#'
26679else
26680 LCMS_DELEGATE_TRUE='#'
26681 LCMS_DELEGATE_FALSE=
26682fi
26683
26684
26685
26686
26687#
26688# Check for the LQR (Liquid Rescale) delegate library.
26689#
26690
26691# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000026692if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026693 withval=$with_lqr; with_lqr=$withval
26694else
26695 with_lqr='yes'
26696fi
26697
26698
26699if test "$with_lqr" != 'yes'; then
26700 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
26701fi
26702
26703have_lqr='no'
26704LQR_CFLAGS=""
26705LQR_LIBS=""
26706LQR_PKG=""
26707if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026709$as_echo "-------------------------------------------------------------" >&6; }
26710
26711pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000026713$as_echo_n "checking for LQR... " >&6; }
26714
26715if test -n "$LQR_CFLAGS"; then
26716 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
26717 elif test -n "$PKG_CONFIG"; then
26718 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026719 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026720 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26721 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26723 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026724 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
26725else
26726 pkg_failed=yes
26727fi
26728 else
26729 pkg_failed=untried
26730fi
26731if test -n "$LQR_LIBS"; then
26732 pkg_cv_LQR_LIBS="$LQR_LIBS"
26733 elif test -n "$PKG_CONFIG"; then
26734 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026735 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026736 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26737 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26739 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026740 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
26741else
26742 pkg_failed=yes
26743fi
26744 else
26745 pkg_failed=untried
26746fi
26747
26748
26749
26750if test $pkg_failed = yes; then
26751
26752if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26753 _pkg_short_errors_supported=yes
26754else
26755 _pkg_short_errors_supported=no
26756fi
26757 if test $_pkg_short_errors_supported = yes; then
26758 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
26759 else
26760 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
26761 fi
26762 # Put the nasty error message in config.log where it belongs
26763 echo "$LQR_PKG_ERRORS" >&5
26764
cristy8b350f62009-11-15 23:12:43 +000026765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026766$as_echo "no" >&6; }
26767 have_lqr=no
26768elif test $pkg_failed = untried; then
26769 have_lqr=no
26770else
26771 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
26772 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000026773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026774$as_echo "yes" >&6; }
26775 have_lqr=yes
26776fi
cristy8b350f62009-11-15 23:12:43 +000026777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026778$as_echo "" >&6; }
26779fi
26780
26781if test "$have_lqr" = 'yes'; then
26782
cristy8b350f62009-11-15 23:12:43 +000026783$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026784
26785 CFLAGS="$LQR_CFLAGS $CFLAGS"
26786fi
26787
26788 if test "$have_lqr" = 'yes'; then
26789 LQR_DELEGATE_TRUE=
26790 LQR_DELEGATE_FALSE='#'
26791else
26792 LQR_DELEGATE_TRUE='#'
26793 LQR_DELEGATE_FALSE=
26794fi
26795
26796
26797
26798
26799
26800#
26801# Check for the OpenEXR delegate library.
26802#
26803
26804# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000026805if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026806 withval=$with_openexr; with_openexr=$withval
26807else
26808 with_openexr='yes'
26809fi
26810
26811
26812if test "$with_openexr" != 'yes'; then
26813 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
26814fi
26815
26816have_openexr='no'
26817OPENEXR_CFLAGS=""
26818OPENEXR_LIBS=""
26819OPENEXR_PKG=""
26820if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026822$as_echo "-------------------------------------------------------------" >&6; }
26823
26824pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000026826$as_echo_n "checking for OPENEXR... " >&6; }
26827
26828if test -n "$OPENEXR_CFLAGS"; then
26829 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
26830 elif test -n "$PKG_CONFIG"; then
26831 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026832 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026833 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26834 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26836 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026837 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
26838else
26839 pkg_failed=yes
26840fi
26841 else
26842 pkg_failed=untried
26843fi
26844if test -n "$OPENEXR_LIBS"; then
26845 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
26846 elif test -n "$PKG_CONFIG"; then
26847 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026848 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026849 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26850 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26852 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026853 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
26854else
26855 pkg_failed=yes
26856fi
26857 else
26858 pkg_failed=untried
26859fi
26860
26861
26862
26863if test $pkg_failed = yes; then
26864
26865if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26866 _pkg_short_errors_supported=yes
26867else
26868 _pkg_short_errors_supported=no
26869fi
26870 if test $_pkg_short_errors_supported = yes; then
26871 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
26872 else
26873 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
26874 fi
26875 # Put the nasty error message in config.log where it belongs
26876 echo "$OPENEXR_PKG_ERRORS" >&5
26877
cristy8b350f62009-11-15 23:12:43 +000026878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026879$as_echo "no" >&6; }
26880 have_openexr=no
26881elif test $pkg_failed = untried; then
26882 have_openexr=no
26883else
26884 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
26885 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000026886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026887$as_echo "yes" >&6; }
26888 have_openexr=yes
26889fi
cristy8b350f62009-11-15 23:12:43 +000026890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026891$as_echo "" >&6; }
26892fi
26893
26894if test "$have_openexr" = 'yes'; then
26895
cristy8b350f62009-11-15 23:12:43 +000026896$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026897
26898 if test "$with_modules" = 'no'; then
26899 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
26900 fi
26901fi
26902
26903 if test "$have_openexr" = 'yes'; then
26904 OPENEXR_DELEGATE_TRUE=
26905 OPENEXR_DELEGATE_FALSE='#'
26906else
26907 OPENEXR_DELEGATE_TRUE='#'
26908 OPENEXR_DELEGATE_FALSE=
26909fi
26910
26911
26912
26913
26914
26915#
26916# Check for PNG delegate library.
26917#
26918
26919# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000026920if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026921 withval=$with_png; with_png=$withval
26922else
26923 with_png='yes'
26924fi
26925
26926
26927if test "$with_png" != 'yes'; then
26928 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
26929fi
26930
26931have_png='no'
26932PNG_LIBS=''
26933if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026935$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026937$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026939$as_echo "" >&6; }
26940 failed=0
26941 passed=0
cristy8b350f62009-11-15 23:12:43 +000026942 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
26943if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026944 passed=`expr $passed + 1`
26945else
26946 failed=`expr $failed + 1`
26947fi
26948
26949
cristy8b350f62009-11-15 23:12:43 +000026950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000026951$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026952if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026953 $as_echo_n "(cached) " >&6
26954else
26955 ac_check_lib_save_LIBS=$LIBS
26956LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026958/* end confdefs.h. */
26959
26960/* Override any GCC internal prototype to avoid an error.
26961 Use char because int might match the return type of a GCC
26962 builtin and then its argument prototype would still apply. */
26963#ifdef __cplusplus
26964extern "C"
26965#endif
26966char png_get_io_ptr ();
26967int
26968main ()
26969{
26970return png_get_io_ptr ();
26971 ;
26972 return 0;
26973}
26974_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026975if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026976 ac_cv_lib_png_png_get_io_ptr=yes
26977else
cristy8b350f62009-11-15 23:12:43 +000026978 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000026979fi
cristy8b350f62009-11-15 23:12:43 +000026980rm -f core conftest.err conftest.$ac_objext \
26981 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026982LIBS=$ac_check_lib_save_LIBS
26983fi
cristy8b350f62009-11-15 23:12:43 +000026984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000026985$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026986if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026987 passed=`expr $passed + 1`
26988else
26989 failed=`expr $failed + 1`
26990fi
26991
cristy8b350f62009-11-15 23:12:43 +000026992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026993$as_echo_n "checking if PNG package is complete... " >&6; }
26994 if test $passed -gt 0; then
26995 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026997$as_echo "no -- some components failed test" >&6; }
26998 have_png='no (failed tests)'
26999 else
27000 PNG_LIBS='-lpng'
27001 LIBS="$PNG_LIBS $LIBS"
27002
cristy8b350f62009-11-15 23:12:43 +000027003$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027004
cristy8b350f62009-11-15 23:12:43 +000027005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027006$as_echo "yes" >&6; }
27007 have_png='yes'
27008 fi
27009 else
cristy8b350f62009-11-15 23:12:43 +000027010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027011$as_echo "no" >&6; }
27012 fi
27013fi
27014 if test "$have_png" = 'yes'; then
27015 PNG_DELEGATE_TRUE=
27016 PNG_DELEGATE_FALSE='#'
27017else
27018 PNG_DELEGATE_TRUE='#'
27019 PNG_DELEGATE_FALSE=
27020fi
27021
27022
27023
27024
27025#
27026# Check for RSVG delegate library.
27027#
27028
27029# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000027030if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027031 withval=$with_rsvg; with_rsvg=$withval
27032else
27033 with_rsvg=$have_x
27034fi
27035
27036
27037if test "$with_rsvg" != 'yes'; then
27038 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
27039fi
27040
27041have_rsvg='no'
27042have_cairo='no'
27043RSVG_CFLAGS=""
27044RSVG_LIBS=""
27045RSVG_PKG=""
27046if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027048$as_echo "-------------------------------------------------------------" >&6; }
27049
27050pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027052$as_echo_n "checking for RSVG... " >&6; }
27053
27054if test -n "$RSVG_CFLAGS"; then
27055 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
27056 elif test -n "$PKG_CONFIG"; then
27057 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027058 { { $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 +000027059 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
27060 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27062 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027063 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
27064else
27065 pkg_failed=yes
27066fi
27067 else
27068 pkg_failed=untried
27069fi
27070if test -n "$RSVG_LIBS"; then
27071 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
27072 elif test -n "$PKG_CONFIG"; then
27073 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027074 { { $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 +000027075 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
27076 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27078 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027079 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
27080else
27081 pkg_failed=yes
27082fi
27083 else
27084 pkg_failed=untried
27085fi
27086
27087
27088
27089if test $pkg_failed = yes; then
27090
27091if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27092 _pkg_short_errors_supported=yes
27093else
27094 _pkg_short_errors_supported=no
27095fi
27096 if test $_pkg_short_errors_supported = yes; then
27097 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27098 else
27099 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27100 fi
27101 # Put the nasty error message in config.log where it belongs
27102 echo "$RSVG_PKG_ERRORS" >&5
27103
cristy8b350f62009-11-15 23:12:43 +000027104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027105$as_echo "no" >&6; }
27106 have_rsvg=no
27107elif test $pkg_failed = untried; then
27108 have_rsvg=no
27109else
27110 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
27111 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027113$as_echo "yes" >&6; }
27114 have_rsvg=yes
27115fi
cristy8b350f62009-11-15 23:12:43 +000027116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027117$as_echo "" >&6; }
27118
27119pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027121$as_echo_n "checking for CAIRO_SVG... " >&6; }
27122
27123if test -n "$CAIRO_SVG_CFLAGS"; then
27124 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
27125 elif test -n "$PKG_CONFIG"; then
27126 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027127 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027128 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27129 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27131 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027132 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
27133else
27134 pkg_failed=yes
27135fi
27136 else
27137 pkg_failed=untried
27138fi
27139if test -n "$CAIRO_SVG_LIBS"; then
27140 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
27141 elif test -n "$PKG_CONFIG"; then
27142 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027143 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027144 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27145 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27147 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027148 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
27149else
27150 pkg_failed=yes
27151fi
27152 else
27153 pkg_failed=untried
27154fi
27155
27156
27157
27158if test $pkg_failed = yes; then
27159
27160if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27161 _pkg_short_errors_supported=yes
27162else
27163 _pkg_short_errors_supported=no
27164fi
27165 if test $_pkg_short_errors_supported = yes; then
27166 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
27167 else
27168 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
27169 fi
27170 # Put the nasty error message in config.log where it belongs
27171 echo "$CAIRO_SVG_PKG_ERRORS" >&5
27172
cristy8b350f62009-11-15 23:12:43 +000027173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027174$as_echo "no" >&6; }
27175 have_cairo=no
27176elif test $pkg_failed = untried; then
27177 have_cairo=no
27178else
27179 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
27180 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027182$as_echo "yes" >&6; }
27183 have_cairo=yes
27184fi
cristy8b350f62009-11-15 23:12:43 +000027185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027186$as_echo "" >&6; }
27187fi
27188
27189if test "$have_rsvg" = 'yes'; then
27190
cristy8b350f62009-11-15 23:12:43 +000027191$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027192
27193 if test "$with_modules" = 'no'; then
27194 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
27195 fi
27196fi
27197
27198if test "$have_cairo" = 'yes'; then
27199
cristy8b350f62009-11-15 23:12:43 +000027200$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027201
27202 if test "$with_modules" = 'no'; then
27203 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
27204 fi
27205fi
27206
27207 if test "$have_rsvg" = 'yes'; then
27208 RSVG_DELEGATE_TRUE=
27209 RSVG_DELEGATE_FALSE='#'
27210else
27211 RSVG_DELEGATE_TRUE='#'
27212 RSVG_DELEGATE_FALSE=
27213fi
27214
27215 if test "$have_cairo" = 'yes'; then
27216 CAIRO_DELEGATE_TRUE=
27217 CAIRO_DELEGATE_FALSE='#'
27218else
27219 CAIRO_DELEGATE_TRUE='#'
27220 CAIRO_DELEGATE_FALSE=
27221fi
27222
27223
27224
27225
27226
27227#
27228# Check for TIFF delegate library.
27229#
27230
27231# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000027232if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027233 withval=$with_tiff; with_tiff=$withval
27234else
27235 with_tiff='yes'
27236fi
27237
27238
27239if test "$with_tiff" != 'yes'; then
27240 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
27241fi
27242
27243have_tiff='no'
27244TIFF_LIBS=''
27245if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027247$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000027249$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027251$as_echo "" >&6; }
27252 failed=0
27253 passed=0
cristy8b350f62009-11-15 23:12:43 +000027254 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
27255if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027256 passed=`expr $passed + 1`
27257else
27258 failed=`expr $failed + 1`
27259fi
27260
27261
cristy8b350f62009-11-15 23:12:43 +000027262 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
27263if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027264 passed=`expr $passed + 1`
27265else
27266 failed=`expr $failed + 1`
27267fi
27268
27269
cristy8b350f62009-11-15 23:12:43 +000027270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027271$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027272if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027273 $as_echo_n "(cached) " >&6
27274else
27275 ac_check_lib_save_LIBS=$LIBS
27276LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027278/* end confdefs.h. */
27279
27280/* Override any GCC internal prototype to avoid an error.
27281 Use char because int might match the return type of a GCC
27282 builtin and then its argument prototype would still apply. */
27283#ifdef __cplusplus
27284extern "C"
27285#endif
27286char TIFFOpen ();
27287int
27288main ()
27289{
27290return TIFFOpen ();
27291 ;
27292 return 0;
27293}
27294_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027295if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027296 ac_cv_lib_tiff_TIFFOpen=yes
27297else
cristy8b350f62009-11-15 23:12:43 +000027298 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000027299fi
cristy8b350f62009-11-15 23:12:43 +000027300rm -f core conftest.err conftest.$ac_objext \
27301 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027302LIBS=$ac_check_lib_save_LIBS
27303fi
cristy8b350f62009-11-15 23:12:43 +000027304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027305$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027306if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027307 passed=`expr $passed + 1`
27308else
27309 failed=`expr $failed + 1`
27310fi
27311
cristy8b350f62009-11-15 23:12:43 +000027312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027313$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027314if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027315 $as_echo_n "(cached) " >&6
27316else
27317 ac_check_lib_save_LIBS=$LIBS
27318LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027320/* end confdefs.h. */
27321
27322/* Override any GCC internal prototype to avoid an error.
27323 Use char because int might match the return type of a GCC
27324 builtin and then its argument prototype would still apply. */
27325#ifdef __cplusplus
27326extern "C"
27327#endif
27328char TIFFClientOpen ();
27329int
27330main ()
27331{
27332return TIFFClientOpen ();
27333 ;
27334 return 0;
27335}
27336_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027337if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027338 ac_cv_lib_tiff_TIFFClientOpen=yes
27339else
cristy8b350f62009-11-15 23:12:43 +000027340 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000027341fi
cristy8b350f62009-11-15 23:12:43 +000027342rm -f core conftest.err conftest.$ac_objext \
27343 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027344LIBS=$ac_check_lib_save_LIBS
27345fi
cristy8b350f62009-11-15 23:12:43 +000027346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027347$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027348if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027349 passed=`expr $passed + 1`
27350else
27351 failed=`expr $failed + 1`
27352fi
27353
cristy8b350f62009-11-15 23:12:43 +000027354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027355$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027356if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027357 $as_echo_n "(cached) " >&6
27358else
27359 ac_check_lib_save_LIBS=$LIBS
27360LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027362/* end confdefs.h. */
27363
27364/* Override any GCC internal prototype to avoid an error.
27365 Use char because int might match the return type of a GCC
27366 builtin and then its argument prototype would still apply. */
27367#ifdef __cplusplus
27368extern "C"
27369#endif
27370char TIFFIsByteSwapped ();
27371int
27372main ()
27373{
27374return TIFFIsByteSwapped ();
27375 ;
27376 return 0;
27377}
27378_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027379if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027380 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
27381else
cristy8b350f62009-11-15 23:12:43 +000027382 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000027383fi
cristy8b350f62009-11-15 23:12:43 +000027384rm -f core conftest.err conftest.$ac_objext \
27385 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027386LIBS=$ac_check_lib_save_LIBS
27387fi
cristy8b350f62009-11-15 23:12:43 +000027388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000027389$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027390if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027391 passed=`expr $passed + 1`
27392else
27393 failed=`expr $failed + 1`
27394fi
27395
cristy8b350f62009-11-15 23:12:43 +000027396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027397$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027398if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027399 $as_echo_n "(cached) " >&6
27400else
27401 ac_check_lib_save_LIBS=$LIBS
27402LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027404/* end confdefs.h. */
27405
27406/* Override any GCC internal prototype to avoid an error.
27407 Use char because int might match the return type of a GCC
27408 builtin and then its argument prototype would still apply. */
27409#ifdef __cplusplus
27410extern "C"
27411#endif
27412char TIFFReadRGBATile ();
27413int
27414main ()
27415{
27416return TIFFReadRGBATile ();
27417 ;
27418 return 0;
27419}
27420_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027421if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027422 ac_cv_lib_tiff_TIFFReadRGBATile=yes
27423else
cristy8b350f62009-11-15 23:12:43 +000027424 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000027425fi
cristy8b350f62009-11-15 23:12:43 +000027426rm -f core conftest.err conftest.$ac_objext \
27427 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027428LIBS=$ac_check_lib_save_LIBS
27429fi
cristy8b350f62009-11-15 23:12:43 +000027430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000027431$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027432if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027433 passed=`expr $passed + 1`
27434else
27435 failed=`expr $failed + 1`
27436fi
27437
cristy8b350f62009-11-15 23:12:43 +000027438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027439$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027440if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027441 $as_echo_n "(cached) " >&6
27442else
27443 ac_check_lib_save_LIBS=$LIBS
27444LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027446/* end confdefs.h. */
27447
27448/* Override any GCC internal prototype to avoid an error.
27449 Use char because int might match the return type of a GCC
27450 builtin and then its argument prototype would still apply. */
27451#ifdef __cplusplus
27452extern "C"
27453#endif
27454char TIFFReadRGBAStrip ();
27455int
27456main ()
27457{
27458return TIFFReadRGBAStrip ();
27459 ;
27460 return 0;
27461}
27462_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027463if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027464 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
27465else
cristy8b350f62009-11-15 23:12:43 +000027466 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000027467fi
cristy8b350f62009-11-15 23:12:43 +000027468rm -f core conftest.err conftest.$ac_objext \
27469 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027470LIBS=$ac_check_lib_save_LIBS
27471fi
cristy8b350f62009-11-15 23:12:43 +000027472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000027473$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027474if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027475 passed=`expr $passed + 1`
27476else
27477 failed=`expr $failed + 1`
27478fi
27479
cristy8b350f62009-11-15 23:12:43 +000027480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027481$as_echo_n "checking if TIFF package is complete... " >&6; }
27482 if test $passed -gt 0; then
27483 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027485$as_echo "no -- some components failed test" >&6; }
27486 have_tiff='no (failed tests)'
27487 else
27488 TIFF_LIBS='-ltiff'
27489 LIBS="$TIFF_LIBS $LIBS"
27490
cristy8b350f62009-11-15 23:12:43 +000027491$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027492
cristy8b350f62009-11-15 23:12:43 +000027493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027494$as_echo "yes" >&6; }
27495 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000027496 for ac_header in tiffconf.h
27497do :
27498 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
27499if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027500 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027501#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000027502_ACEOF
27503
27504fi
27505
27506done
27507
cristy8b350f62009-11-15 23:12:43 +000027508 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000027509 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
27510 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000027511do :
27512 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27513ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27514eval as_val=\$$as_ac_var
27515 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027516 cat >>confdefs.h <<_ACEOF
27517#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27518_ACEOF
27519
27520fi
27521done
27522
27523 fi
27524 else
cristy8b350f62009-11-15 23:12:43 +000027525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027526$as_echo "no" >&6; }
27527 fi
27528fi
27529 if test "$have_tiff" = 'yes'; then
27530 TIFF_DELEGATE_TRUE=
27531 TIFF_DELEGATE_FALSE='#'
27532else
27533 TIFF_DELEGATE_TRUE='#'
27534 TIFF_DELEGATE_FALSE=
27535fi
27536
27537
27538
27539
27540#
27541# Set Windows font directory.
27542#
27543
27544# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027545if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027546 withval=$with_windows_font_dir; with_windows_font_dir=$withval
27547else
27548 with_windows_font_dir=''
27549fi
27550
27551if test "$with_windows_font_dir" != '' ; then
27552 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
27553fi
27554
27555
27556#
27557# Check for WMF delegate library.
27558#
27559
27560# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000027561if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027562 withval=$with_wmf; with_wmf=$withval
27563else
27564 with_wmf=$with_modules
27565fi
27566
27567
27568if test "$with_wmf" != 'yes'; then
27569 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
27570fi
27571
27572have_wmf='no'
27573WMF_LIBS=''
27574WMF_LIBS_DEPS=''
27575OLIBS="$LIBS"
27576if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027578$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000027580$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027582$as_echo "" >&6; }
27583 have_libwmf='no'
27584 have_libwmflite='no'
27585 have_libwmf_ipa_h='no'
27586
cristy8b350f62009-11-15 23:12:43 +000027587 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
27588"
27589if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027590 have_libwmf_ipa_h='yes'
27591fi
27592
27593
27594 if test "$have_libwmf_ipa_h" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
cristy3ed852e2009-09-05 21:47:34 +000027596$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027597if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027598 $as_echo_n "(cached) " >&6
27599else
27600 ac_check_lib_save_LIBS=$LIBS
27601LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027603/* end confdefs.h. */
27604
27605/* Override any GCC internal prototype to avoid an error.
27606 Use char because int might match the return type of a GCC
27607 builtin and then its argument prototype would still apply. */
27608#ifdef __cplusplus
27609extern "C"
27610#endif
27611char wmf_lite_create ();
27612int
27613main ()
27614{
27615return wmf_lite_create ();
27616 ;
27617 return 0;
27618}
27619_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027620if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027621 ac_cv_lib_wmflite_wmf_lite_create=yes
27622else
cristy8b350f62009-11-15 23:12:43 +000027623 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000027624fi
cristy8b350f62009-11-15 23:12:43 +000027625rm -f core conftest.err conftest.$ac_objext \
27626 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027627LIBS=$ac_check_lib_save_LIBS
27628fi
cristy8b350f62009-11-15 23:12:43 +000027629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027630$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027631if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027632 have_libwmflite='yes'
27633fi
27634
27635 if test "$have_libwmflite" = 'yes'; then
27636
cristy8b350f62009-11-15 23:12:43 +000027637$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027638
27639 WMF_LIBS='-lwmflite'
27640 LIBS="$WMF_LIBS $LIBS"
27641 have_wmf='yes'
27642 else
27643 WMF_LIBS_DEPS=''
27644 WMF_CONFIG_LIBS=`libwmf-config --libs`
27645 for lib in xml2 expat freetype jpeg png z; do
27646 testlib="-l${lib}"
27647 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
27648 done
cristy8b350f62009-11-15 23:12:43 +000027649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
cristy3ed852e2009-09-05 21:47:34 +000027650$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027651if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027652 $as_echo_n "(cached) " >&6
27653else
27654 ac_check_lib_save_LIBS=$LIBS
27655LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027657/* end confdefs.h. */
27658
27659/* Override any GCC internal prototype to avoid an error.
27660 Use char because int might match the return type of a GCC
27661 builtin and then its argument prototype would still apply. */
27662#ifdef __cplusplus
27663extern "C"
27664#endif
27665char wmf_api_create ();
27666int
27667main ()
27668{
27669return wmf_api_create ();
27670 ;
27671 return 0;
27672}
27673_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027674if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027675 ac_cv_lib_wmf_wmf_api_create=yes
27676else
cristy8b350f62009-11-15 23:12:43 +000027677 ac_cv_lib_wmf_wmf_api_create=no
cristy3ed852e2009-09-05 21:47:34 +000027678fi
cristy8b350f62009-11-15 23:12:43 +000027679rm -f core conftest.err conftest.$ac_objext \
27680 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027681LIBS=$ac_check_lib_save_LIBS
27682fi
cristy8b350f62009-11-15 23:12:43 +000027683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027684$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027685if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027686 have_libwmf='yes'
27687fi
27688
27689 if test "$have_libwmf" = 'yes'; then
27690
cristy8b350f62009-11-15 23:12:43 +000027691$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027692
27693 WMF_LIBS='-lwmf'
27694 LIBS="$WMF_LIBS $LIBS"
27695 have_wmf='yes'
27696 else
cristy8b350f62009-11-15 23:12:43 +000027697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027698$as_echo "no -- some components failed test" >&6; }
27699 have_wmf='no (failed tests)'
27700 have_wmflite='no (failed tests)'
27701 LIBS="$OLIBS"
27702 WMF_LIBS=''
27703 fi
27704 fi
27705 fi
cristy8b350f62009-11-15 23:12:43 +000027706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027707$as_echo_n "checking if WMF package is complete... " >&6; }
27708 if test "$have_wmf" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027710$as_echo "yes" >&6; }
27711 else
cristy8b350f62009-11-15 23:12:43 +000027712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027713$as_echo "no" >&6; }
27714 fi
27715fi
27716 if test "$have_wmf" = 'yes'; then
27717 WMF_DELEGATE_TRUE=
27718 WMF_DELEGATE_FALSE='#'
27719else
27720 WMF_DELEGATE_TRUE='#'
27721 WMF_DELEGATE_FALSE=
27722fi
27723
27724
27725
27726
27727
27728#
27729# Check for XML delegate library.
27730#
27731
27732# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000027733if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027734 withval=$with_xml; with_xml=$withval
27735else
27736 with_xml=$have_x
27737fi
27738
27739
27740if test "$with_xml" != 'yes' ; then
27741 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
27742fi
27743
27744have_xml='no'
27745XML_LIBS=''
27746if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027748$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000027750$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027752$as_echo "" >&6; }
27753 PERSIST_LDFLAGS=$LDFLAGS
27754 PERSIST_CPPFLAGS=$CPPFLAGS
27755 xml2_config=''
27756 for ac_prog in xml2-config
27757do
27758 # Extract the first word of "$ac_prog", so it can be a program name with args.
27759set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027761$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027762if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027763 $as_echo_n "(cached) " >&6
27764else
27765 if test -n "$xml2_config"; then
27766 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
27767else
27768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27769for as_dir in $PATH
27770do
27771 IFS=$as_save_IFS
27772 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027773 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27775 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027777 break 2
27778 fi
27779done
cristy8b350f62009-11-15 23:12:43 +000027780 done
cristy3ed852e2009-09-05 21:47:34 +000027781IFS=$as_save_IFS
27782
27783fi
27784fi
27785xml2_config=$ac_cv_prog_xml2_config
27786if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000027787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027788$as_echo "$xml2_config" >&6; }
27789else
cristy8b350f62009-11-15 23:12:43 +000027790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027791$as_echo "no" >&6; }
27792fi
27793
27794
27795 test -n "$xml2_config" && break
27796done
27797 if test -n "$xml2_config"; then
27798 # Debian installs libxml headers under /usr/include/libxml2/libxml with
27799 # the shared library installed under /usr/lib, whereas the package
27800 # installs itself under $prefix/libxml and $prefix/lib.
27801 xml2_prefix=`xml2-config --prefix`
27802 if test -d "${xml2_prefix}/include/libxml2"; then
27803 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
27804 fi
27805 if test "${xml2_prefix}" != '/usr'; then
27806 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
27807 fi
27808 fi
27809 failed=0
27810 passed=0
cristy8b350f62009-11-15 23:12:43 +000027811 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
27812if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027813 passed=`expr $passed + 1`
27814else
27815 failed=`expr $failed + 1`
27816fi
27817
27818
cristy8b350f62009-11-15 23:12:43 +000027819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027820$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027821if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027822 $as_echo_n "(cached) " >&6
27823else
27824 ac_check_lib_save_LIBS=$LIBS
27825LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027827/* end confdefs.h. */
27828
27829/* Override any GCC internal prototype to avoid an error.
27830 Use char because int might match the return type of a GCC
27831 builtin and then its argument prototype would still apply. */
27832#ifdef __cplusplus
27833extern "C"
27834#endif
27835char xmlParseExternalEntity ();
27836int
27837main ()
27838{
27839return xmlParseExternalEntity ();
27840 ;
27841 return 0;
27842}
27843_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027844if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027845 ac_cv_lib_xml2_xmlParseExternalEntity=yes
27846else
cristy8b350f62009-11-15 23:12:43 +000027847 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000027848fi
cristy8b350f62009-11-15 23:12:43 +000027849rm -f core conftest.err conftest.$ac_objext \
27850 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027851LIBS=$ac_check_lib_save_LIBS
27852fi
cristy8b350f62009-11-15 23:12:43 +000027853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000027854$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027855if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027856 passed=`expr $passed + 1`
27857else
27858 failed=`expr $failed + 1`
27859fi
27860
cristy8b350f62009-11-15 23:12:43 +000027861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027862$as_echo_n "checking if XML package is complete... " >&6; }
27863 if test $passed -gt 0; then
27864 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027866$as_echo "no -- some components failed test" >&6; }
27867 have_xml='no (failed tests)'
27868 LDFLAGS="$PERSIST_LDFLAGS"
27869 CPPFLAGS="$PERSIST_CPPFLAGS"
27870 else
27871 XML_LIBS='-lxml2'
27872 LIBS="$XML_LIBS $LIBS"
27873
cristy8b350f62009-11-15 23:12:43 +000027874$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027875
cristy8b350f62009-11-15 23:12:43 +000027876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027877$as_echo "yes" >&6; }
27878 have_xml='yes'
27879 fi
27880 else
cristy8b350f62009-11-15 23:12:43 +000027881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027882$as_echo "no" >&6; }
27883 fi
27884fi
27885 if test "$have_xml" = 'yes'; then
27886 XML_DELEGATE_TRUE=
27887 XML_DELEGATE_FALSE='#'
27888else
27889 XML_DELEGATE_TRUE='#'
27890 XML_DELEGATE_FALSE=
27891fi
27892
27893
27894
27895
27896# Substitute compiler name to build/link PerlMagick
27897#
27898
27899
27900#
27901# Configure install Paths
27902#
27903
27904# Subdirectory under lib to place ImageMagick lib files
27905LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27906
27907cat >>confdefs.h <<_ACEOF
27908#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
27909_ACEOF
27910
27911
27912# Path to ImageMagick bin directory
27913EXECUTABLE_PATH="${BIN_DIR}"
27914DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
27915case "${build_os}" in
27916 mingw* )
27917 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
27918 ;;
27919esac
27920
27921cat >>confdefs.h <<_ACEOF
27922#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
27923_ACEOF
27924
27925
27926
27927# Path to ImageMagick lib
27928LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
27929DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
27930case "${build_os}" in
27931 mingw* )
27932 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
27933 ;;
27934esac
27935
27936cat >>confdefs.h <<_ACEOF
27937#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
27938_ACEOF
27939
27940
27941
27942# Subdirectory under lib to place ImageMagick configuration files
27943CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
27944
27945cat >>confdefs.h <<_ACEOF
27946#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
27947_ACEOF
27948
27949CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27950DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27951case "${build_os}" in
27952 mingw* )
27953 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
27954 ;;
27955esac
27956
27957cat >>confdefs.h <<_ACEOF
27958#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
27959_ACEOF
27960
27961
27962
27963#
27964# Subdirectory under lib to place ImageMagick coder module files
27965CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
27966
27967cat >>confdefs.h <<_ACEOF
27968#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
27969_ACEOF
27970
27971CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
27972DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
27973case "${build_os}" in
27974 mingw* )
27975 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
27976 ;;
27977esac
27978
27979cat >>confdefs.h <<_ACEOF
27980#define CODER_PATH "$DEFINE_CODER_PATH"
27981_ACEOF
27982
27983
27984
27985#
27986# Subdirectory under lib to place ImageMagick filter module files
27987FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
27988
27989cat >>confdefs.h <<_ACEOF
27990#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
27991_ACEOF
27992
27993FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
27994DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
27995case "${build_os}" in
27996 mingw* )
27997 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
27998 ;;
27999esac
28000
28001cat >>confdefs.h <<_ACEOF
28002#define FILTER_PATH "$DEFINE_FILTER_PATH"
28003_ACEOF
28004
28005
28006
28007#
28008# Path to ImageMagick documentation files
28009DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28010DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
28011DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
28012case "${build_os}" in
28013 mingw* )
28014 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
28015 ;;
28016esac
28017
28018cat >>confdefs.h <<_ACEOF
28019#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
28020_ACEOF
28021
28022
28023
28024#
28025# Path to ImageMagick share files
28026SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28027SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
28028DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
28029case "${build_os}" in
28030 mingw* )
28031 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
28032 ;;
28033esac
28034
28035cat >>confdefs.h <<_ACEOF
28036#define SHARE_PATH "$DEFINE_SHARE_PATH"
28037_ACEOF
28038
28039
28040
28041# Subdirectory under share to place ImageMagick configuration files
28042SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
28043
28044cat >>confdefs.h <<_ACEOF
28045#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
28046_ACEOF
28047
28048SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
28049DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
28050case "${build_os}" in
28051 mingw* )
28052 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
28053 ;;
28054esac
28055
28056cat >>confdefs.h <<_ACEOF
28057#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
28058_ACEOF
28059
28060
28061
28062#
28063# program_transform_name is formed for use in a Makefile, so create a
28064# modified version for use in a shell script.
28065configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
28066
28067# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000028068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028069$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028071$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028073$as_echo "" >&6; }
28074AutotraceDecodeDelegateDefault='autotrace'
28075AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000028076BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000028077BZIPDelegateDefault='bzip2'
28078BrowseDelegateDefault='xdg-open'
28079CGMDecodeDelegateDefault='ralcgm'
28080CatDelegateDefault='cat'
28081DNGDecodeDelegateDefault='ufraw-batch'
28082GVCDecodeDelegateDefault='dot'
28083DVIDecodeDelegateDefault='dvips'
28084EchoDelegateDefault='echo'
28085EditorDelegateDefault='xterm'
28086FIGDecodeDelegateDefault='fig2dev'
28087ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
28088DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
28089MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
28090GnuplotDecodeDelegateDefault='gnuplot'
28091HDRDecodeDelegateDefault='ra_pfm'
28092HPGLDecodeDelegateDefault='hp2xx'
28093HTMLDecodeDelegateDefault='html2ps'
28094ILBMDecodeDelegateDefault='ilbmtoppm'
28095ILBMEncodeDelegateDefault='ppmtoilbm'
28096LPDelegateDefault='lp'
28097LPRDelegateDefault='lpr'
28098LZWDecodeDelegateDefault='uncompress'
28099LZWEncodeDelegateDefault='compress'
28100LaunchDelegateDefault='gimp'
28101MANDelegateDefault='groff'
28102MPEGDecodeDelegateDefault='ffmpeg'
28103MPEGEncodeDelegateDefault='ffmpeg'
28104MVDelegateDefault='mv'
28105PCLDelegateDefault='pcl6'
28106PGPDecodeDelegateDefault='pgpv'
28107POVDelegateDefault='povray'
28108if test "$native_win32_build" = 'yes'; then
28109 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000028110elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028111 PSDelegateDefault='gsc'
28112else
28113 PSDelegateDefault='gs'
28114fi
28115RLEEncodeDelegateDefault='rawtorle'
28116RMDelegateDefault='rm'
28117SCANDecodeDelegateDefault='scanimage'
28118TXTDelegateDefault='enscript'
28119WMFDecodeDelegateDefault='wmf2eps'
28120WWWDecodeDelegateDefault='curl'
28121XPSDelegateDefault='gxps'
28122ZipDelegateDefault='gzip'
28123
28124# Search for delegates
28125# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
28126set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028128$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028129if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028130 $as_echo_n "(cached) " >&6
28131else
28132 case $AutotraceDecodeDelegate in
28133 [\\/]* | ?:[\\/]*)
28134 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
28135 ;;
28136 *)
28137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28138for as_dir in $PATH
28139do
28140 IFS=$as_save_IFS
28141 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028142 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28144 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028146 break 2
28147 fi
28148done
cristy8b350f62009-11-15 23:12:43 +000028149 done
cristy3ed852e2009-09-05 21:47:34 +000028150IFS=$as_save_IFS
28151
28152 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
28153 ;;
28154esac
28155fi
28156AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
28157if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028159$as_echo "$AutotraceDecodeDelegate" >&6; }
28160else
cristy8b350f62009-11-15 23:12:43 +000028161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028162$as_echo "no" >&6; }
28163fi
28164
28165
28166# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
28167set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028169$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028170if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028171 $as_echo_n "(cached) " >&6
28172else
28173 case $AVIDecodeDelegate in
28174 [\\/]* | ?:[\\/]*)
28175 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
28176 ;;
28177 *)
28178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28179for as_dir in $PATH
28180do
28181 IFS=$as_save_IFS
28182 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028183 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28185 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028187 break 2
28188 fi
28189done
cristy8b350f62009-11-15 23:12:43 +000028190 done
cristy3ed852e2009-09-05 21:47:34 +000028191IFS=$as_save_IFS
28192
28193 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
28194 ;;
28195esac
28196fi
28197AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
28198if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028200$as_echo "$AVIDecodeDelegate" >&6; }
28201else
cristy8b350f62009-11-15 23:12:43 +000028202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028203$as_echo "no" >&6; }
28204fi
28205
28206
28207# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
28208set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028210$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028211if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028212 $as_echo_n "(cached) " >&6
28213else
28214 case $BlenderDecodeDelegate in
28215 [\\/]* | ?:[\\/]*)
28216 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
28217 ;;
28218 *)
28219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28220for as_dir in $PATH
28221do
28222 IFS=$as_save_IFS
28223 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028224 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28226 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028228 break 2
28229 fi
28230done
cristy8b350f62009-11-15 23:12:43 +000028231 done
cristy3ed852e2009-09-05 21:47:34 +000028232IFS=$as_save_IFS
28233
28234 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
28235 ;;
28236esac
28237fi
28238BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
28239if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028241$as_echo "$BlenderDecodeDelegate" >&6; }
28242else
cristy8b350f62009-11-15 23:12:43 +000028243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028244$as_echo "no" >&6; }
28245fi
28246
28247
28248# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
28249set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028251$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028252if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028253 $as_echo_n "(cached) " >&6
28254else
28255 case $BZIPDelegate in
28256 [\\/]* | ?:[\\/]*)
28257 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
28258 ;;
28259 *)
28260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28261for as_dir in $PATH
28262do
28263 IFS=$as_save_IFS
28264 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028265 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28267 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028269 break 2
28270 fi
28271done
cristy8b350f62009-11-15 23:12:43 +000028272 done
cristy3ed852e2009-09-05 21:47:34 +000028273IFS=$as_save_IFS
28274
28275 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
28276 ;;
28277esac
28278fi
28279BZIPDelegate=$ac_cv_path_BZIPDelegate
28280if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028282$as_echo "$BZIPDelegate" >&6; }
28283else
cristy8b350f62009-11-15 23:12:43 +000028284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028285$as_echo "no" >&6; }
28286fi
28287
28288
28289# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
28290set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028292$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028293if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028294 $as_echo_n "(cached) " >&6
28295else
28296 case $BrowseDelegate in
28297 [\\/]* | ?:[\\/]*)
28298 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
28299 ;;
28300 *)
28301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28302for as_dir in $PATH
28303do
28304 IFS=$as_save_IFS
28305 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028306 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28308 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028310 break 2
28311 fi
28312done
cristy8b350f62009-11-15 23:12:43 +000028313 done
cristy3ed852e2009-09-05 21:47:34 +000028314IFS=$as_save_IFS
28315
28316 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
28317 ;;
28318esac
28319fi
28320BrowseDelegate=$ac_cv_path_BrowseDelegate
28321if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028323$as_echo "$BrowseDelegate" >&6; }
28324else
cristy8b350f62009-11-15 23:12:43 +000028325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028326$as_echo "no" >&6; }
28327fi
28328
28329
28330# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
28331set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028333$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028334if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028335 $as_echo_n "(cached) " >&6
28336else
28337 case $CGMDecodeDelegate in
28338 [\\/]* | ?:[\\/]*)
28339 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
28340 ;;
28341 *)
28342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28343for as_dir in $PATH
28344do
28345 IFS=$as_save_IFS
28346 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028347 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28349 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028351 break 2
28352 fi
28353done
cristy8b350f62009-11-15 23:12:43 +000028354 done
cristy3ed852e2009-09-05 21:47:34 +000028355IFS=$as_save_IFS
28356
28357 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
28358 ;;
28359esac
28360fi
28361CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
28362if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028364$as_echo "$CGMDecodeDelegate" >&6; }
28365else
cristy8b350f62009-11-15 23:12:43 +000028366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028367$as_echo "no" >&6; }
28368fi
28369
28370
28371# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
28372set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028374$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028375if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028376 $as_echo_n "(cached) " >&6
28377else
28378 case $CatDelegate in
28379 [\\/]* | ?:[\\/]*)
28380 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
28381 ;;
28382 *)
28383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28384for as_dir in $PATH
28385do
28386 IFS=$as_save_IFS
28387 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028388 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28390 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028392 break 2
28393 fi
28394done
cristy8b350f62009-11-15 23:12:43 +000028395 done
cristy3ed852e2009-09-05 21:47:34 +000028396IFS=$as_save_IFS
28397
28398 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
28399 ;;
28400esac
28401fi
28402CatDelegate=$ac_cv_path_CatDelegate
28403if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028405$as_echo "$CatDelegate" >&6; }
28406else
cristy8b350f62009-11-15 23:12:43 +000028407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028408$as_echo "no" >&6; }
28409fi
28410
28411
28412# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
28413set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028415$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028416if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028417 $as_echo_n "(cached) " >&6
28418else
28419 case $DNGDecodeDelegate in
28420 [\\/]* | ?:[\\/]*)
28421 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
28422 ;;
28423 *)
28424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28425for as_dir in $PATH
28426do
28427 IFS=$as_save_IFS
28428 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028429 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28431 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028433 break 2
28434 fi
28435done
cristy8b350f62009-11-15 23:12:43 +000028436 done
cristy3ed852e2009-09-05 21:47:34 +000028437IFS=$as_save_IFS
28438
28439 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
28440 ;;
28441esac
28442fi
28443DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
28444if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028446$as_echo "$DNGDecodeDelegate" >&6; }
28447else
cristy8b350f62009-11-15 23:12:43 +000028448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028449$as_echo "no" >&6; }
28450fi
28451
28452
28453# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
28454set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028456$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028457if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028458 $as_echo_n "(cached) " >&6
28459else
28460 case $GVCDecodeDelegate in
28461 [\\/]* | ?:[\\/]*)
28462 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
28463 ;;
28464 *)
28465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28466for as_dir in $PATH
28467do
28468 IFS=$as_save_IFS
28469 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028470 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28472 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028474 break 2
28475 fi
28476done
cristy8b350f62009-11-15 23:12:43 +000028477 done
cristy3ed852e2009-09-05 21:47:34 +000028478IFS=$as_save_IFS
28479
28480 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
28481 ;;
28482esac
28483fi
28484GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
28485if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028487$as_echo "$GVCDecodeDelegate" >&6; }
28488else
cristy8b350f62009-11-15 23:12:43 +000028489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028490$as_echo "no" >&6; }
28491fi
28492
28493
28494# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
28495set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028497$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028498if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028499 $as_echo_n "(cached) " >&6
28500else
28501 case $DVIDecodeDelegate in
28502 [\\/]* | ?:[\\/]*)
28503 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
28504 ;;
28505 *)
28506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28507for as_dir in $PATH
28508do
28509 IFS=$as_save_IFS
28510 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028511 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28513 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028515 break 2
28516 fi
28517done
cristy8b350f62009-11-15 23:12:43 +000028518 done
cristy3ed852e2009-09-05 21:47:34 +000028519IFS=$as_save_IFS
28520
28521 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
28522 ;;
28523esac
28524fi
28525DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
28526if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028528$as_echo "$DVIDecodeDelegate" >&6; }
28529else
cristy8b350f62009-11-15 23:12:43 +000028530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028531$as_echo "no" >&6; }
28532fi
28533
28534
28535# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
28536set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028538$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028539if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028540 $as_echo_n "(cached) " >&6
28541else
28542 case $EchoDelegate in
28543 [\\/]* | ?:[\\/]*)
28544 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
28545 ;;
28546 *)
28547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28548for as_dir in $PATH
28549do
28550 IFS=$as_save_IFS
28551 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028552 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28554 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028556 break 2
28557 fi
28558done
cristy8b350f62009-11-15 23:12:43 +000028559 done
cristy3ed852e2009-09-05 21:47:34 +000028560IFS=$as_save_IFS
28561
28562 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
28563 ;;
28564esac
28565fi
28566EchoDelegate=$ac_cv_path_EchoDelegate
28567if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028569$as_echo "$EchoDelegate" >&6; }
28570else
cristy8b350f62009-11-15 23:12:43 +000028571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028572$as_echo "no" >&6; }
28573fi
28574
28575
28576# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
28577set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028579$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028580if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028581 $as_echo_n "(cached) " >&6
28582else
28583 case $EditorDelegate in
28584 [\\/]* | ?:[\\/]*)
28585 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
28586 ;;
28587 *)
28588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28589for as_dir in $PATH
28590do
28591 IFS=$as_save_IFS
28592 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028593 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28595 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028597 break 2
28598 fi
28599done
cristy8b350f62009-11-15 23:12:43 +000028600 done
cristy3ed852e2009-09-05 21:47:34 +000028601IFS=$as_save_IFS
28602
28603 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
28604 ;;
28605esac
28606fi
28607EditorDelegate=$ac_cv_path_EditorDelegate
28608if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028610$as_echo "$EditorDelegate" >&6; }
28611else
cristy8b350f62009-11-15 23:12:43 +000028612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028613$as_echo "no" >&6; }
28614fi
28615
28616
28617# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
28618set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028620$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028621if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028622 $as_echo_n "(cached) " >&6
28623else
28624 case $FIGDecodeDelegate in
28625 [\\/]* | ?:[\\/]*)
28626 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
28627 ;;
28628 *)
28629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28630for as_dir in $PATH
28631do
28632 IFS=$as_save_IFS
28633 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028634 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28636 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028638 break 2
28639 fi
28640done
cristy8b350f62009-11-15 23:12:43 +000028641 done
cristy3ed852e2009-09-05 21:47:34 +000028642IFS=$as_save_IFS
28643
28644 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
28645 ;;
28646esac
28647fi
28648FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
28649if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028651$as_echo "$FIGDecodeDelegate" >&6; }
28652else
cristy8b350f62009-11-15 23:12:43 +000028653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028654$as_echo "no" >&6; }
28655fi
28656
28657
28658# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
28659set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028661$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028662if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028663 $as_echo_n "(cached) " >&6
28664else
28665 case $ConvertDelegate in
28666 [\\/]* | ?:[\\/]*)
28667 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
28668 ;;
28669 *)
28670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28671for as_dir in $PATH
28672do
28673 IFS=$as_save_IFS
28674 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028675 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28677 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028679 break 2
28680 fi
28681done
cristy8b350f62009-11-15 23:12:43 +000028682 done
cristy3ed852e2009-09-05 21:47:34 +000028683IFS=$as_save_IFS
28684
28685 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
28686 ;;
28687esac
28688fi
28689ConvertDelegate=$ac_cv_path_ConvertDelegate
28690if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028692$as_echo "$ConvertDelegate" >&6; }
28693else
cristy8b350f62009-11-15 23:12:43 +000028694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028695$as_echo "no" >&6; }
28696fi
28697
28698
28699# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
28700set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028702$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028703if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028704 $as_echo_n "(cached) " >&6
28705else
28706 case $DisplayDelegate in
28707 [\\/]* | ?:[\\/]*)
28708 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
28709 ;;
28710 *)
28711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28712for as_dir in $PATH
28713do
28714 IFS=$as_save_IFS
28715 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028716 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28718 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028720 break 2
28721 fi
28722done
cristy8b350f62009-11-15 23:12:43 +000028723 done
cristy3ed852e2009-09-05 21:47:34 +000028724IFS=$as_save_IFS
28725
28726 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
28727 ;;
28728esac
28729fi
28730DisplayDelegate=$ac_cv_path_DisplayDelegate
28731if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028733$as_echo "$DisplayDelegate" >&6; }
28734else
cristy8b350f62009-11-15 23:12:43 +000028735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028736$as_echo "no" >&6; }
28737fi
28738
28739
28740# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
28741set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028743$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028744if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028745 $as_echo_n "(cached) " >&6
28746else
28747 case $MogrifyDelegate in
28748 [\\/]* | ?:[\\/]*)
28749 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
28750 ;;
28751 *)
28752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28753for as_dir in $PATH
28754do
28755 IFS=$as_save_IFS
28756 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028757 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28759 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028761 break 2
28762 fi
28763done
cristy8b350f62009-11-15 23:12:43 +000028764 done
cristy3ed852e2009-09-05 21:47:34 +000028765IFS=$as_save_IFS
28766
28767 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
28768 ;;
28769esac
28770fi
28771MogrifyDelegate=$ac_cv_path_MogrifyDelegate
28772if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028774$as_echo "$MogrifyDelegate" >&6; }
28775else
cristy8b350f62009-11-15 23:12:43 +000028776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028777$as_echo "no" >&6; }
28778fi
28779
28780
28781# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
28782set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028784$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028785if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028786 $as_echo_n "(cached) " >&6
28787else
28788 case $GnuplotDecodeDelegate in
28789 [\\/]* | ?:[\\/]*)
28790 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
28791 ;;
28792 *)
28793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28794for as_dir in $PATH
28795do
28796 IFS=$as_save_IFS
28797 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028798 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28800 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028802 break 2
28803 fi
28804done
cristy8b350f62009-11-15 23:12:43 +000028805 done
cristy3ed852e2009-09-05 21:47:34 +000028806IFS=$as_save_IFS
28807
28808 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
28809 ;;
28810esac
28811fi
28812GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
28813if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028815$as_echo "$GnuplotDecodeDelegate" >&6; }
28816else
cristy8b350f62009-11-15 23:12:43 +000028817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028818$as_echo "no" >&6; }
28819fi
28820
28821
28822# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
28823set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028825$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028826if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028827 $as_echo_n "(cached) " >&6
28828else
28829 case $HDRDecodeDelegate in
28830 [\\/]* | ?:[\\/]*)
28831 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
28832 ;;
28833 *)
28834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28835for as_dir in $PATH
28836do
28837 IFS=$as_save_IFS
28838 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028839 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28841 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028843 break 2
28844 fi
28845done
cristy8b350f62009-11-15 23:12:43 +000028846 done
cristy3ed852e2009-09-05 21:47:34 +000028847IFS=$as_save_IFS
28848
28849 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
28850 ;;
28851esac
28852fi
28853HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
28854if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028856$as_echo "$HDRDecodeDelegate" >&6; }
28857else
cristy8b350f62009-11-15 23:12:43 +000028858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028859$as_echo "no" >&6; }
28860fi
28861
28862
28863# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
28864set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028866$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028867if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028868 $as_echo_n "(cached) " >&6
28869else
28870 case $HPGLDecodeDelegate in
28871 [\\/]* | ?:[\\/]*)
28872 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
28873 ;;
28874 *)
28875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28876for as_dir in $PATH
28877do
28878 IFS=$as_save_IFS
28879 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028880 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28882 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028884 break 2
28885 fi
28886done
cristy8b350f62009-11-15 23:12:43 +000028887 done
cristy3ed852e2009-09-05 21:47:34 +000028888IFS=$as_save_IFS
28889
28890 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
28891 ;;
28892esac
28893fi
28894HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
28895if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028897$as_echo "$HPGLDecodeDelegate" >&6; }
28898else
cristy8b350f62009-11-15 23:12:43 +000028899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028900$as_echo "no" >&6; }
28901fi
28902
28903
28904# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
28905set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028907$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028908if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028909 $as_echo_n "(cached) " >&6
28910else
28911 case $HTMLDecodeDelegate in
28912 [\\/]* | ?:[\\/]*)
28913 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
28914 ;;
28915 *)
28916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28917for as_dir in $PATH
28918do
28919 IFS=$as_save_IFS
28920 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028921 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28923 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028925 break 2
28926 fi
28927done
cristy8b350f62009-11-15 23:12:43 +000028928 done
cristy3ed852e2009-09-05 21:47:34 +000028929IFS=$as_save_IFS
28930
28931 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
28932 ;;
28933esac
28934fi
28935HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
28936if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028938$as_echo "$HTMLDecodeDelegate" >&6; }
28939else
cristy8b350f62009-11-15 23:12:43 +000028940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028941$as_echo "no" >&6; }
28942fi
28943
28944
28945# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
28946set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028948$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028949if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028950 $as_echo_n "(cached) " >&6
28951else
28952 case $ILBMDecodeDelegate in
28953 [\\/]* | ?:[\\/]*)
28954 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
28955 ;;
28956 *)
28957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28958for as_dir in $PATH
28959do
28960 IFS=$as_save_IFS
28961 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028962 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28964 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028966 break 2
28967 fi
28968done
cristy8b350f62009-11-15 23:12:43 +000028969 done
cristy3ed852e2009-09-05 21:47:34 +000028970IFS=$as_save_IFS
28971
28972 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
28973 ;;
28974esac
28975fi
28976ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
28977if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028979$as_echo "$ILBMDecodeDelegate" >&6; }
28980else
cristy8b350f62009-11-15 23:12:43 +000028981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028982$as_echo "no" >&6; }
28983fi
28984
28985
28986# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
28987set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028989$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028990if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028991 $as_echo_n "(cached) " >&6
28992else
28993 case $ILBMEncodeDelegate in
28994 [\\/]* | ?:[\\/]*)
28995 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
28996 ;;
28997 *)
28998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28999for as_dir in $PATH
29000do
29001 IFS=$as_save_IFS
29002 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029003 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29005 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029007 break 2
29008 fi
29009done
cristy8b350f62009-11-15 23:12:43 +000029010 done
cristy3ed852e2009-09-05 21:47:34 +000029011IFS=$as_save_IFS
29012
29013 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
29014 ;;
29015esac
29016fi
29017ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
29018if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029020$as_echo "$ILBMEncodeDelegate" >&6; }
29021else
cristy8b350f62009-11-15 23:12:43 +000029022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029023$as_echo "no" >&6; }
29024fi
29025
29026
29027# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
29028set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029030$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029031if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029032 $as_echo_n "(cached) " >&6
29033else
29034 case $LPDelegate in
29035 [\\/]* | ?:[\\/]*)
29036 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
29037 ;;
29038 *)
29039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29040for as_dir in $PATH
29041do
29042 IFS=$as_save_IFS
29043 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029044 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29046 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029048 break 2
29049 fi
29050done
cristy8b350f62009-11-15 23:12:43 +000029051 done
cristy3ed852e2009-09-05 21:47:34 +000029052IFS=$as_save_IFS
29053
29054 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
29055 ;;
29056esac
29057fi
29058LPDelegate=$ac_cv_path_LPDelegate
29059if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029061$as_echo "$LPDelegate" >&6; }
29062else
cristy8b350f62009-11-15 23:12:43 +000029063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029064$as_echo "no" >&6; }
29065fi
29066
29067
29068# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
29069set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029071$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029072if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029073 $as_echo_n "(cached) " >&6
29074else
29075 case $LPRDelegate in
29076 [\\/]* | ?:[\\/]*)
29077 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
29078 ;;
29079 *)
29080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29081for as_dir in $PATH
29082do
29083 IFS=$as_save_IFS
29084 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029085 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29087 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029089 break 2
29090 fi
29091done
cristy8b350f62009-11-15 23:12:43 +000029092 done
cristy3ed852e2009-09-05 21:47:34 +000029093IFS=$as_save_IFS
29094
29095 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
29096 ;;
29097esac
29098fi
29099LPRDelegate=$ac_cv_path_LPRDelegate
29100if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029102$as_echo "$LPRDelegate" >&6; }
29103else
cristy8b350f62009-11-15 23:12:43 +000029104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029105$as_echo "no" >&6; }
29106fi
29107
29108
29109# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
29110set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029112$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029113if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029114 $as_echo_n "(cached) " >&6
29115else
29116 case $LZWDecodeDelegate in
29117 [\\/]* | ?:[\\/]*)
29118 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
29119 ;;
29120 *)
29121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29122for as_dir in $PATH
29123do
29124 IFS=$as_save_IFS
29125 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029126 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29128 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029130 break 2
29131 fi
29132done
cristy8b350f62009-11-15 23:12:43 +000029133 done
cristy3ed852e2009-09-05 21:47:34 +000029134IFS=$as_save_IFS
29135
29136 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
29137 ;;
29138esac
29139fi
29140LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
29141if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029143$as_echo "$LZWDecodeDelegate" >&6; }
29144else
cristy8b350f62009-11-15 23:12:43 +000029145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029146$as_echo "no" >&6; }
29147fi
29148
29149
29150# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
29151set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029153$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029154if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029155 $as_echo_n "(cached) " >&6
29156else
29157 case $LZWEncodeDelegate in
29158 [\\/]* | ?:[\\/]*)
29159 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
29160 ;;
29161 *)
29162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29163for as_dir in $PATH
29164do
29165 IFS=$as_save_IFS
29166 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029167 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29169 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029171 break 2
29172 fi
29173done
cristy8b350f62009-11-15 23:12:43 +000029174 done
cristy3ed852e2009-09-05 21:47:34 +000029175IFS=$as_save_IFS
29176
29177 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
29178 ;;
29179esac
29180fi
29181LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
29182if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029184$as_echo "$LZWEncodeDelegate" >&6; }
29185else
cristy8b350f62009-11-15 23:12:43 +000029186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029187$as_echo "no" >&6; }
29188fi
29189
29190
29191# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
29192set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029194$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029195if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029196 $as_echo_n "(cached) " >&6
29197else
29198 case $LaunchDelegate in
29199 [\\/]* | ?:[\\/]*)
29200 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
29201 ;;
29202 *)
29203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29204for as_dir in $PATH
29205do
29206 IFS=$as_save_IFS
29207 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029208 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29210 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029212 break 2
29213 fi
29214done
cristy8b350f62009-11-15 23:12:43 +000029215 done
cristy3ed852e2009-09-05 21:47:34 +000029216IFS=$as_save_IFS
29217
29218 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
29219 ;;
29220esac
29221fi
29222LaunchDelegate=$ac_cv_path_LaunchDelegate
29223if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029225$as_echo "$LaunchDelegate" >&6; }
29226else
cristy8b350f62009-11-15 23:12:43 +000029227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029228$as_echo "no" >&6; }
29229fi
29230
29231
29232# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
29233set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029235$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029236if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029237 $as_echo_n "(cached) " >&6
29238else
29239 case $MANDelegate in
29240 [\\/]* | ?:[\\/]*)
29241 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
29242 ;;
29243 *)
29244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29245for as_dir in $PATH
29246do
29247 IFS=$as_save_IFS
29248 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029249 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29251 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029253 break 2
29254 fi
29255done
cristy8b350f62009-11-15 23:12:43 +000029256 done
cristy3ed852e2009-09-05 21:47:34 +000029257IFS=$as_save_IFS
29258
29259 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
29260 ;;
29261esac
29262fi
29263MANDelegate=$ac_cv_path_MANDelegate
29264if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029266$as_echo "$MANDelegate" >&6; }
29267else
cristy8b350f62009-11-15 23:12:43 +000029268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029269$as_echo "no" >&6; }
29270fi
29271
29272
29273# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
29274set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029276$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029277if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029278 $as_echo_n "(cached) " >&6
29279else
29280 case $MPEGDecodeDelegate in
29281 [\\/]* | ?:[\\/]*)
29282 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
29283 ;;
29284 *)
29285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29286for as_dir in $PATH
29287do
29288 IFS=$as_save_IFS
29289 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029290 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29292 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029294 break 2
29295 fi
29296done
cristy8b350f62009-11-15 23:12:43 +000029297 done
cristy3ed852e2009-09-05 21:47:34 +000029298IFS=$as_save_IFS
29299
29300 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
29301 ;;
29302esac
29303fi
29304MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
29305if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029307$as_echo "$MPEGDecodeDelegate" >&6; }
29308else
cristy8b350f62009-11-15 23:12:43 +000029309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029310$as_echo "no" >&6; }
29311fi
29312
29313
29314# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
29315set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029317$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029318if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029319 $as_echo_n "(cached) " >&6
29320else
29321 case $MPEGEncodeDelegate in
29322 [\\/]* | ?:[\\/]*)
29323 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
29324 ;;
29325 *)
29326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29327for as_dir in $PATH
29328do
29329 IFS=$as_save_IFS
29330 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029331 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29333 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029335 break 2
29336 fi
29337done
cristy8b350f62009-11-15 23:12:43 +000029338 done
cristy3ed852e2009-09-05 21:47:34 +000029339IFS=$as_save_IFS
29340
29341 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
29342 ;;
29343esac
29344fi
29345MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
29346if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029348$as_echo "$MPEGEncodeDelegate" >&6; }
29349else
cristy8b350f62009-11-15 23:12:43 +000029350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029351$as_echo "no" >&6; }
29352fi
29353
29354
29355# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
29356set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029358$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029359if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029360 $as_echo_n "(cached) " >&6
29361else
29362 case $MVDelegate in
29363 [\\/]* | ?:[\\/]*)
29364 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
29365 ;;
29366 *)
29367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29368for as_dir in $PATH
29369do
29370 IFS=$as_save_IFS
29371 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029372 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29374 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029376 break 2
29377 fi
29378done
cristy8b350f62009-11-15 23:12:43 +000029379 done
cristy3ed852e2009-09-05 21:47:34 +000029380IFS=$as_save_IFS
29381
29382 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
29383 ;;
29384esac
29385fi
29386MVDelegate=$ac_cv_path_MVDelegate
29387if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029389$as_echo "$MVDelegate" >&6; }
29390else
cristy8b350f62009-11-15 23:12:43 +000029391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029392$as_echo "no" >&6; }
29393fi
29394
29395
29396# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
29397set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029399$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029400if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029401 $as_echo_n "(cached) " >&6
29402else
29403 case $PCLDelegate in
29404 [\\/]* | ?:[\\/]*)
29405 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
29406 ;;
29407 *)
29408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29409for as_dir in $PATH
29410do
29411 IFS=$as_save_IFS
29412 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029413 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29415 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029417 break 2
29418 fi
29419done
cristy8b350f62009-11-15 23:12:43 +000029420 done
cristy3ed852e2009-09-05 21:47:34 +000029421IFS=$as_save_IFS
29422
29423 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
29424 ;;
29425esac
29426fi
29427PCLDelegate=$ac_cv_path_PCLDelegate
29428if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029430$as_echo "$PCLDelegate" >&6; }
29431else
cristy8b350f62009-11-15 23:12:43 +000029432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029433$as_echo "no" >&6; }
29434fi
29435
29436
29437# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
29438set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029440$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029441if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029442 $as_echo_n "(cached) " >&6
29443else
29444 case $PGPDecodeDelegate in
29445 [\\/]* | ?:[\\/]*)
29446 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
29447 ;;
29448 *)
29449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29450for as_dir in $PATH
29451do
29452 IFS=$as_save_IFS
29453 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029454 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29456 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029458 break 2
29459 fi
29460done
cristy8b350f62009-11-15 23:12:43 +000029461 done
cristy3ed852e2009-09-05 21:47:34 +000029462IFS=$as_save_IFS
29463
29464 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
29465 ;;
29466esac
29467fi
29468PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
29469if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029471$as_echo "$PGPDecodeDelegate" >&6; }
29472else
cristy8b350f62009-11-15 23:12:43 +000029473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029474$as_echo "no" >&6; }
29475fi
29476
29477
29478# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
29479set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029481$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029482if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029483 $as_echo_n "(cached) " >&6
29484else
29485 case $POVDelegate in
29486 [\\/]* | ?:[\\/]*)
29487 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
29488 ;;
29489 *)
29490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29491for as_dir in $PATH
29492do
29493 IFS=$as_save_IFS
29494 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029495 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29497 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029499 break 2
29500 fi
29501done
cristy8b350f62009-11-15 23:12:43 +000029502 done
cristy3ed852e2009-09-05 21:47:34 +000029503IFS=$as_save_IFS
29504
29505 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
29506 ;;
29507esac
29508fi
29509POVDelegate=$ac_cv_path_POVDelegate
29510if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029512$as_echo "$POVDelegate" >&6; }
29513else
cristy8b350f62009-11-15 23:12:43 +000029514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029515$as_echo "no" >&6; }
29516fi
29517
29518
29519for ac_prog in gsx gsc "$PSDelegateDefault"
29520do
29521 # Extract the first word of "$ac_prog", so it can be a program name with args.
29522set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029524$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029525if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029526 $as_echo_n "(cached) " >&6
29527else
29528 case $PSDelegate in
29529 [\\/]* | ?:[\\/]*)
29530 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
29531 ;;
29532 *)
29533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29534for as_dir in $PATH
29535do
29536 IFS=$as_save_IFS
29537 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029538 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29540 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029542 break 2
29543 fi
29544done
cristy8b350f62009-11-15 23:12:43 +000029545 done
cristy3ed852e2009-09-05 21:47:34 +000029546IFS=$as_save_IFS
29547
29548 ;;
29549esac
29550fi
29551PSDelegate=$ac_cv_path_PSDelegate
29552if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029554$as_echo "$PSDelegate" >&6; }
29555else
cristy8b350f62009-11-15 23:12:43 +000029556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029557$as_echo "no" >&6; }
29558fi
29559
29560
29561 test -n "$PSDelegate" && break
29562done
29563test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
29564
29565# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
29566set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029568$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029569if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029570 $as_echo_n "(cached) " >&6
29571else
29572 case $RLEEncodeDelegate in
29573 [\\/]* | ?:[\\/]*)
29574 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
29575 ;;
29576 *)
29577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29578for as_dir in $PATH
29579do
29580 IFS=$as_save_IFS
29581 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029582 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29584 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029586 break 2
29587 fi
29588done
cristy8b350f62009-11-15 23:12:43 +000029589 done
cristy3ed852e2009-09-05 21:47:34 +000029590IFS=$as_save_IFS
29591
29592 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
29593 ;;
29594esac
29595fi
29596RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
29597if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029599$as_echo "$RLEEncodeDelegate" >&6; }
29600else
cristy8b350f62009-11-15 23:12:43 +000029601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029602$as_echo "no" >&6; }
29603fi
29604
29605
29606# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
29607set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029609$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029610if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029611 $as_echo_n "(cached) " >&6
29612else
29613 case $RMDelegate in
29614 [\\/]* | ?:[\\/]*)
29615 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
29616 ;;
29617 *)
29618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29619for as_dir in $PATH
29620do
29621 IFS=$as_save_IFS
29622 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029623 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29625 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029627 break 2
29628 fi
29629done
cristy8b350f62009-11-15 23:12:43 +000029630 done
cristy3ed852e2009-09-05 21:47:34 +000029631IFS=$as_save_IFS
29632
29633 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
29634 ;;
29635esac
29636fi
29637RMDelegate=$ac_cv_path_RMDelegate
29638if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029640$as_echo "$RMDelegate" >&6; }
29641else
cristy8b350f62009-11-15 23:12:43 +000029642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029643$as_echo "no" >&6; }
29644fi
29645
29646
29647# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
29648set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029650$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029651if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029652 $as_echo_n "(cached) " >&6
29653else
29654 case $SCANDecodeDelegate in
29655 [\\/]* | ?:[\\/]*)
29656 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
29657 ;;
29658 *)
29659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29660for as_dir in $PATH
29661do
29662 IFS=$as_save_IFS
29663 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029664 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29666 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029668 break 2
29669 fi
29670done
cristy8b350f62009-11-15 23:12:43 +000029671 done
cristy3ed852e2009-09-05 21:47:34 +000029672IFS=$as_save_IFS
29673
29674 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
29675 ;;
29676esac
29677fi
29678SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
29679if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029681$as_echo "$SCANDecodeDelegate" >&6; }
29682else
cristy8b350f62009-11-15 23:12:43 +000029683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029684$as_echo "no" >&6; }
29685fi
29686
29687
29688# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
29689set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029691$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029692if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029693 $as_echo_n "(cached) " >&6
29694else
29695 case $TXTDelegate in
29696 [\\/]* | ?:[\\/]*)
29697 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
29698 ;;
29699 *)
29700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29701for as_dir in $PATH
29702do
29703 IFS=$as_save_IFS
29704 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029705 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29707 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029709 break 2
29710 fi
29711done
cristy8b350f62009-11-15 23:12:43 +000029712 done
cristy3ed852e2009-09-05 21:47:34 +000029713IFS=$as_save_IFS
29714
29715 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
29716 ;;
29717esac
29718fi
29719TXTDelegate=$ac_cv_path_TXTDelegate
29720if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029722$as_echo "$TXTDelegate" >&6; }
29723else
cristy8b350f62009-11-15 23:12:43 +000029724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029725$as_echo "no" >&6; }
29726fi
29727
29728
29729# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
29730set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029732$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029733if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029734 $as_echo_n "(cached) " >&6
29735else
29736 case $WMFDecodeDelegate in
29737 [\\/]* | ?:[\\/]*)
29738 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
29739 ;;
29740 *)
29741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29742for as_dir in $PATH
29743do
29744 IFS=$as_save_IFS
29745 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029746 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29748 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029750 break 2
29751 fi
29752done
cristy8b350f62009-11-15 23:12:43 +000029753 done
cristy3ed852e2009-09-05 21:47:34 +000029754IFS=$as_save_IFS
29755
29756 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
29757 ;;
29758esac
29759fi
29760WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
29761if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029763$as_echo "$WMFDecodeDelegate" >&6; }
29764else
cristy8b350f62009-11-15 23:12:43 +000029765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029766$as_echo "no" >&6; }
29767fi
29768
29769
29770# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
29771set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029773$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029774if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029775 $as_echo_n "(cached) " >&6
29776else
29777 case $WWWDecodeDelegate in
29778 [\\/]* | ?:[\\/]*)
29779 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
29780 ;;
29781 *)
29782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29783for as_dir in $PATH
29784do
29785 IFS=$as_save_IFS
29786 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029787 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29789 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029791 break 2
29792 fi
29793done
cristy8b350f62009-11-15 23:12:43 +000029794 done
cristy3ed852e2009-09-05 21:47:34 +000029795IFS=$as_save_IFS
29796
29797 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
29798 ;;
29799esac
29800fi
29801WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
29802if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029804$as_echo "$WWWDecodeDelegate" >&6; }
29805else
cristy8b350f62009-11-15 23:12:43 +000029806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029807$as_echo "no" >&6; }
29808fi
29809
29810
29811# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
29812set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029814$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029815if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029816 $as_echo_n "(cached) " >&6
29817else
29818 case $XPSDelegate in
29819 [\\/]* | ?:[\\/]*)
29820 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
29821 ;;
29822 *)
29823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29824for as_dir in $PATH
29825do
29826 IFS=$as_save_IFS
29827 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029828 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29830 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029832 break 2
29833 fi
29834done
cristy8b350f62009-11-15 23:12:43 +000029835 done
cristy3ed852e2009-09-05 21:47:34 +000029836IFS=$as_save_IFS
29837
29838 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
29839 ;;
29840esac
29841fi
29842XPSDelegate=$ac_cv_path_XPSDelegate
29843if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029845$as_echo "$XPSDelegate" >&6; }
29846else
cristy8b350f62009-11-15 23:12:43 +000029847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029848$as_echo "no" >&6; }
29849fi
29850
29851
29852# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
29853set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029855$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029856if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029857 $as_echo_n "(cached) " >&6
29858else
29859 case $ZipDelegate in
29860 [\\/]* | ?:[\\/]*)
29861 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
29862 ;;
29863 *)
29864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29865for as_dir in $PATH
29866do
29867 IFS=$as_save_IFS
29868 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029869 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29871 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029873 break 2
29874 fi
29875done
cristy8b350f62009-11-15 23:12:43 +000029876 done
cristy3ed852e2009-09-05 21:47:34 +000029877IFS=$as_save_IFS
29878
29879 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
29880 ;;
29881esac
29882fi
29883ZipDelegate=$ac_cv_path_ZipDelegate
29884if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029886$as_echo "$ZipDelegate" >&6; }
29887else
cristy8b350f62009-11-15 23:12:43 +000029888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029889$as_echo "no" >&6; }
29890fi
29891
29892
29893
29894# Prefer lpr to lp; lp needs options tacked on.
29895if test "$LPRDelegate" != no; then
29896 PrintDelegate="$LPRDelegate"
29897else
29898 PrintDelegate="$LPDelegate -c -s"
29899fi
29900
29901
29902# Installed ImageMagick utiltity paths
29903ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
29904DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
29905MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
29906
29907# Set delegate booleans
29908have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
29909have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
29910have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
29911have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
29912have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
29913have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
29914have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
29915have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
29916have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
29917have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
29918have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
29919
29920#
29921# Test for font directories
29922#
29923type_include_files=''
29924
29925# Windows
29926windows_font_dir=''
29927if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
29928 windows_font_dir="${with_windows_font_dir}/"
29929fi
29930if test -n "$windows_font_dir"; then
29931 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
29932 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
29933 fi
29934 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
29935 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
29936 fi
29937 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
29938 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
29939 fi
29940fi
29941if test -n "$windows_font_dir"; then
29942 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
29943fi
29944
29945
29946# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000029947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000029948$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
29949ghostscript_font_dir=''
29950if test "${with_gs_font_dir}" != 'default'; then
29951 ghostscript_font_dir="${with_gs_font_dir}/"
29952else
29953 if test "${native_win32_build}" = 'yes'; then
29954 # Native Windows Build
29955 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
29956 if test -f "${font_dir}a010013l.pfb"; then
29957 ghostscript_font_dir="$font_dir"
29958 break 1
29959 fi
29960 done
29961 if test "${PSDelegate}" != 'gswin32c'; then
29962 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
29963 fi
29964 else
29965 # Linux / Mac OS X / Unix Build
29966 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
29967 if test -f "${font_dir}a010013l.pfb"; then
29968 ghostscript_font_dir="${font_dir}"
29969 break 1
29970 fi
29971 done
29972 if test "${ghostscript_font_dir}x" = 'x'; then
29973 if test "$PSDelegate" != 'gs'; then
29974 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
29975 fi
29976 fi
29977 fi
29978fi
29979if test "${ghostscript_font_dir}x" != 'x'; then
29980 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000029981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000029982$as_echo "$ghostscript_font_dir" >&6; }
29983else
cristy8b350f62009-11-15 23:12:43 +000029984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000029985$as_echo "not found!" >&6; };
29986fi
29987
29988case "${build_os}" in
29989 mingw* )
29990 PSDelegate=`$WinPathScript "$PSDelegate" 1`
29991 ;;
29992esac
29993
29994
29995
29996#
29997# Handle case where user doesn't want frozen paths
29998#
29999if test "$with_frozenpaths" != 'yes'; then
30000 # Re-set delegate definitions to default (no paths)
30001 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
30002 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
30003 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
30004 BZIPDelegate="$BZIPDelegateDefault"
30005 BrowseDelegate="$BrowseDelegateDefault"
30006 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
30007 CatDelegate="$CatDelegateDefault"
30008 ConvertDelegate="$ConvertDelegateDefault"
30009 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
30010 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
30011 EchoDelegate="$EchoDelegateDefault"
30012 EditorDelegate="$EditorDelegateDefault"
30013 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
30014 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
30015 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
30016 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
30017 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
30018 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
30019 LPDelegate="$LPDelegateDefault"
30020 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
30021 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
30022 LaunchDelegate="$LaunchDelegateDefault"
30023 MANDelegate="$MANDelegateDefault"
30024 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
30025 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
30026 MVDelegate="$MVDelegateDefault"
30027 MogrifyDelegate="$MogrifyDelegateDefault"
30028 PCLDelegate="$PCLDelegateDefault"
30029 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
30030 POVDelegate="$POVDelegateDefault"
30031 PSDelegate="$PSDelegateDefault"
30032 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
30033 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
30034 RMDelegate="$RMDelegateDefault"
30035 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
30036 ShowImageDelegate="$ShowImageDelegateDefault"
30037 TXTDelegate="$TXTDelegateDefault"
30038 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
30039 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
30040 XPSDelegate="$XPSDelegateDefault"
30041 ZipDelegate="$ZipDelegateDefault"
30042fi
30043
30044# Delegate substitutions
30045
30046
30047
30048
30049
30050
30051
30052
30053
30054
30055
30056
30057
30058
30059
30060
30061
30062
30063
30064
30065
30066
30067
30068
30069
30070
30071
30072
30073
30074
30075
30076
30077
30078
30079
30080
30081
30082
30083
30084
30085
30086
30087#
30088# RPM support.
30089#
30090RPM=''
30091for ac_prog in gnutar gtar tar
30092do
30093 # Extract the first word of "$ac_prog", so it can be a program name with args.
30094set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030096$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030097if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030098 $as_echo_n "(cached) " >&6
30099else
30100 if test -n "$TAR"; then
30101 ac_cv_prog_TAR="$TAR" # Let the user override the test.
30102else
30103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30104for as_dir in $PATH
30105do
30106 IFS=$as_save_IFS
30107 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030108 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30110 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030112 break 2
30113 fi
30114done
cristy8b350f62009-11-15 23:12:43 +000030115 done
cristy3ed852e2009-09-05 21:47:34 +000030116IFS=$as_save_IFS
30117
30118fi
30119fi
30120TAR=$ac_cv_prog_TAR
30121if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000030122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000030123$as_echo "$TAR" >&6; }
30124else
cristy8b350f62009-11-15 23:12:43 +000030125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030126$as_echo "no" >&6; }
30127fi
30128
30129
30130 test -n "$TAR" && break
30131done
30132
30133for ac_prog in perl
30134do
30135 # Extract the first word of "$ac_prog", so it can be a program name with args.
30136set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030138$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030139if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030140 $as_echo_n "(cached) " >&6
30141else
30142 if test -n "$PERL"; then
30143 ac_cv_prog_PERL="$PERL" # Let the user override the test.
30144else
30145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30146for as_dir in $PATH
30147do
30148 IFS=$as_save_IFS
30149 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030150 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30152 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030154 break 2
30155 fi
30156done
cristy8b350f62009-11-15 23:12:43 +000030157 done
cristy3ed852e2009-09-05 21:47:34 +000030158IFS=$as_save_IFS
30159
30160fi
30161fi
30162PERL=$ac_cv_prog_PERL
30163if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030165$as_echo "$PERL" >&6; }
30166else
cristy8b350f62009-11-15 23:12:43 +000030167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030168$as_echo "no" >&6; }
30169fi
30170
30171
30172 test -n "$PERL" && break
30173done
30174
30175for ac_prog in rpmbuild rpm
30176do
30177 # Extract the first word of "$ac_prog", so it can be a program name with args.
30178set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030180$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030181if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030182 $as_echo_n "(cached) " >&6
30183else
30184 if test -n "$RPM"; then
30185 ac_cv_prog_RPM="$RPM" # Let the user override the test.
30186else
30187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30188for as_dir in $PATH
30189do
30190 IFS=$as_save_IFS
30191 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030192 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30194 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030196 break 2
30197 fi
30198done
cristy8b350f62009-11-15 23:12:43 +000030199 done
cristy3ed852e2009-09-05 21:47:34 +000030200IFS=$as_save_IFS
30201
30202fi
30203fi
30204RPM=$ac_cv_prog_RPM
30205if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000030206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000030207$as_echo "$RPM" >&6; }
30208else
cristy8b350f62009-11-15 23:12:43 +000030209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030210$as_echo "no" >&6; }
30211fi
30212
30213
30214 test -n "$RPM" && break
30215done
30216
30217
30218ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
30219
30220
30221AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
30222
30223
30224AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
30225
30226
30227AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
30228
30229
30230 if test "x$RPM" != "x" ; then
30231 RPM_DELEGATE_TRUE=
30232 RPM_DELEGATE_FALSE='#'
30233else
30234 RPM_DELEGATE_TRUE='#'
30235 RPM_DELEGATE_FALSE=
30236fi
30237
30238
30239#
30240# 7ZIP support (http://p7zip.sourceforge.net/)
30241#
30242P7ZIP=''
30243for ac_prog in 7za
30244do
30245 # Extract the first word of "$ac_prog", so it can be a program name with args.
30246set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030248$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030249if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030250 $as_echo_n "(cached) " >&6
30251else
30252 if test -n "$P7ZIP"; then
30253 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
30254else
30255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30256for as_dir in $PATH
30257do
30258 IFS=$as_save_IFS
30259 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030260 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30262 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030264 break 2
30265 fi
30266done
cristy8b350f62009-11-15 23:12:43 +000030267 done
cristy3ed852e2009-09-05 21:47:34 +000030268IFS=$as_save_IFS
30269
30270fi
30271fi
30272P7ZIP=$ac_cv_prog_P7ZIP
30273if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000030274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000030275$as_echo "$P7ZIP" >&6; }
30276else
cristy8b350f62009-11-15 23:12:43 +000030277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030278$as_echo "no" >&6; }
30279fi
30280
30281
30282 test -n "$P7ZIP" && break
30283done
30284
30285
30286 if test "x$P7ZIP" != "x" ; then
30287 P7ZIP_DELEGATE_TRUE=
30288 P7ZIP_DELEGATE_FALSE='#'
30289else
30290 P7ZIP_DELEGATE_TRUE='#'
30291 P7ZIP_DELEGATE_FALSE=
30292fi
30293
30294
30295#
30296# ZIP support (http://www.info-zip.org/Zip.html)
30297#
30298ZIP=''
30299for ac_prog in zip
30300do
30301 # Extract the first word of "$ac_prog", so it can be a program name with args.
30302set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030304$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030305if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030306 $as_echo_n "(cached) " >&6
30307else
30308 if test -n "$ZIP"; then
30309 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
30310else
30311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30312for as_dir in $PATH
30313do
30314 IFS=$as_save_IFS
30315 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030316 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30318 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030320 break 2
30321 fi
30322done
cristy8b350f62009-11-15 23:12:43 +000030323 done
cristy3ed852e2009-09-05 21:47:34 +000030324IFS=$as_save_IFS
30325
30326fi
30327fi
30328ZIP=$ac_cv_prog_ZIP
30329if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000030330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000030331$as_echo "$ZIP" >&6; }
30332else
cristy8b350f62009-11-15 23:12:43 +000030333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030334$as_echo "no" >&6; }
30335fi
30336
30337
30338 test -n "$ZIP" && break
30339done
30340
30341
30342 if test "x$ZIP" != "x" ; then
30343 ZIP_DELEGATE_TRUE=
30344 ZIP_DELEGATE_FALSE='#'
30345else
30346 ZIP_DELEGATE_TRUE='#'
30347 ZIP_DELEGATE_FALSE=
30348fi
30349
30350
30351#
30352# GhostPCL related configuration.
30353#
30354PCLColorDevice=ppmraw
30355PCLCMYKDevice=bmpsep8
30356PCLMonoDevice=pbmraw
30357if test -z "$PCLVersion"; then
30358 PCLVersion='unknown'
30359fi
30360if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030362$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030364$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030366$as_echo "" >&6; }
30367 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000030368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030369$as_echo_n "checking for pcl color device... " >&6; }
30370 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30371 :
30372 else
30373 PCLColorDevice=ppmraw
30374 fi
cristy8b350f62009-11-15 23:12:43 +000030375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030376$as_echo "$PCLColorDevice" >&6; }
30377
30378 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030380$as_echo_n "checking for pcl CMYK device... " >&6; }
30381 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30382 :
30383 else
30384 PCLCMYKDevice=$PCLColorDevice
30385 fi
cristy8b350f62009-11-15 23:12:43 +000030386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030387$as_echo "$PCLCMYKDevice" >&6; }
30388
30389 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030391$as_echo_n "checking for pcl mono device... " >&6; }
30392 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30393 :
30394 else
30395 PCLMonoDevice=$PCLColorDevice
30396 fi
cristy8b350f62009-11-15 23:12:43 +000030397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030398$as_echo "$PCLMonoDevice" >&6; }
30399fi
30400
30401
30402
30403
30404
30405
30406#
30407# GhostXPS related configuration.
30408#
30409XPSColorDevice=ppmraw
30410XPSCMYKDevice=bmpsep8
30411XPSMonoDevice=pbmraw
30412if test -z "$XPSVersion"; then
30413 XPSVersion='unknown'
30414fi
30415if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030417$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000030419$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030421$as_echo "" >&6; }
30422 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000030423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030424$as_echo_n "checking for xps color device... " >&6; }
30425 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30426 :
30427 else
30428 XPSColorDevice=ppmraw
30429 fi
cristy8b350f62009-11-15 23:12:43 +000030430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030431$as_echo "$XPSColorDevice" >&6; }
30432
30433 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030435$as_echo_n "checking for xps CMYK device... " >&6; }
30436 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30437 :
30438 else
30439 XPSCMYKDevice=$XPSColorDevice
30440 fi
cristy8b350f62009-11-15 23:12:43 +000030441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030442$as_echo "$XPSCMYKDevice" >&6; }
30443
30444 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030446$as_echo_n "checking for xps mono device... " >&6; }
30447 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30448 :
30449 else
30450 XPSMonoDevice=$XPSColorDevice
30451 fi
cristy8b350f62009-11-15 23:12:43 +000030452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030453$as_echo "$XPSMonoDevice" >&6; }
30454fi
30455
30456
30457
30458
30459
30460
30461#
30462# Ghostscript related configuration.
30463#
30464if test "$have_png" = 'yes'; then
30465 GSAlphaDevice=pngalpha
30466else
30467 GSAlphaDevice=pnmraw
30468fi
30469GSColorDevice=pnmraw
30470GSCMYKDevice=pam
30471GSMonoDevice=pbmraw
30472GSPDFDevice=pdfwrite
30473GSPSDevice=pswrite
30474GSEPSDevice=epswrite
30475GSVersion='unknown'
30476if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030478$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000030480$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030482$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000030484$as_echo_n "checking for Ghostscript version... " >&6; }
30485 if GSVersion=`$PSDelegate --version`; then
30486 :
30487 else
30488 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
30489 fi
cristy8b350f62009-11-15 23:12:43 +000030490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000030491$as_echo "$GSVersion" >&6; }
30492
30493 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000030494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030495$as_echo_n "checking for gs alpha device... " >&6; }
30496 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30497 :
30498 else
30499 GSAlphaDevice=pnmraw
30500 fi
cristy8b350f62009-11-15 23:12:43 +000030501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030502$as_echo "$GSAlphaDevice" >&6; }
30503
30504 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000030505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030506$as_echo_n "checking for gs color device... " >&6; }
30507 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30508 :
30509 else
30510 GSColorDevice=pnmraw
30511 fi
cristy8b350f62009-11-15 23:12:43 +000030512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030513$as_echo "$GSColorDevice" >&6; }
30514
30515 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030517$as_echo_n "checking for gs CMYK device... " >&6; }
30518 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30519 :
30520 else
30521 GSCMYKDevice=bmpsep8
30522 fi
cristy8b350f62009-11-15 23:12:43 +000030523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030524$as_echo "$GSCMYKDevice" >&6; }
30525
30526 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030528$as_echo_n "checking for gs mono device... " >&6; }
30529 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30530 :
30531 else
30532 GSMonoDevice=$GSColorDevice
30533 fi
cristy8b350f62009-11-15 23:12:43 +000030534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030535$as_echo "$GSMonoDevice" >&6; }
30536
30537 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000030538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030539$as_echo_n "checking for gs PDF writing device... " >&6; }
30540 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30541 :
30542 else
30543 GSPDFDevice=nodevice
30544 fi
cristy8b350f62009-11-15 23:12:43 +000030545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030546$as_echo "$GSPDFDevice" >&6; }
30547
30548 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000030549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030550$as_echo_n "checking for gs PS writing device... " >&6; }
30551 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30552 :
30553 else
30554 GSPSDevice=nodevice
30555 fi
cristy8b350f62009-11-15 23:12:43 +000030556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030557$as_echo "$GSPSDevice" >&6; }
30558
30559 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000030560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030561$as_echo_n "checking for gs EPS writing device... " >&6; }
30562 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30563 :
30564 else
30565 GSEPSDevice=nodevice
30566 fi
cristy8b350f62009-11-15 23:12:43 +000030567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030568$as_echo "$GSEPSDevice" >&6; }
30569fi
30570
30571
30572
30573
30574
30575
30576
30577
30578
30579
30580#
30581# PerlMagick-related configuration
30582#
30583
30584# Look for PERL if PerlMagick requested
30585# If name/path of desired PERL interpreter is specified, look for that one first
30586have_perl='no'
30587if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030589$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030591$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030593$as_echo "" >&6; }
30594 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030596$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030597if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030598 $as_echo_n "(cached) " >&6
30599else
30600 ac_cv_path_PERL="$with_perl"
30601fi
cristy8b350f62009-11-15 23:12:43 +000030602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030603$as_echo "$ac_cv_path_PERL" >&6; };
30604 PERL=$ac_cv_path_PERL
30605 have_perl="$ac_cv_path_PERL"
30606 else
30607 for ac_prog in perl perl5
30608do
30609 # Extract the first word of "$ac_prog", so it can be a program name with args.
30610set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030612$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030613if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030614 $as_echo_n "(cached) " >&6
30615else
30616 case $PERL in
30617 [\\/]* | ?:[\\/]*)
30618 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
30619 ;;
30620 *)
30621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30622for as_dir in $PATH
30623do
30624 IFS=$as_save_IFS
30625 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030626 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30628 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030630 break 2
30631 fi
30632done
cristy8b350f62009-11-15 23:12:43 +000030633 done
cristy3ed852e2009-09-05 21:47:34 +000030634IFS=$as_save_IFS
30635
30636 ;;
30637esac
30638fi
30639PERL=$ac_cv_path_PERL
30640if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030642$as_echo "$PERL" >&6; }
30643else
cristy8b350f62009-11-15 23:12:43 +000030644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030645$as_echo "no" >&6; }
30646fi
30647
30648
30649 test -n "$PERL" && break
30650done
30651 if test "$ac_cv_path_PERL"; then
30652 have_perl="$ac_cv_path_PERL"
30653 fi
30654 fi
30655fi
30656
30657with_perl_static='no'
30658with_perl_dynamic='no'
30659if test "$have_perl" != 'no'; then
30660 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
30661 with_perl_static='yes'
30662 fi
30663 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
30664 with_perl_dynamic='yes'
30665 fi
30666 # Is PERL's MakeMaker new enough to support DESTDIR?
30667 # Make sure we have perl
30668if test -z "$PERL"; then
30669# Extract the first word of "perl", so it can be a program name with args.
30670set dummy perl; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030672$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030673if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030674 $as_echo_n "(cached) " >&6
30675else
30676 if test -n "$PERL"; then
30677 ac_cv_prog_PERL="$PERL" # Let the user override the test.
30678else
30679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30680for as_dir in $PATH
30681do
30682 IFS=$as_save_IFS
30683 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030684 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30686 ac_cv_prog_PERL="perl"
cristy8b350f62009-11-15 23:12:43 +000030687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030688 break 2
30689 fi
30690done
cristy8b350f62009-11-15 23:12:43 +000030691 done
cristy3ed852e2009-09-05 21:47:34 +000030692IFS=$as_save_IFS
30693
30694fi
30695fi
30696PERL=$ac_cv_prog_PERL
30697if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030699$as_echo "$PERL" >&6; }
30700else
cristy8b350f62009-11-15 23:12:43 +000030701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030702$as_echo "no" >&6; }
30703fi
30704
30705
30706fi
30707
30708# Check if version of Perl is sufficient
30709ac_perl_version="5.8.1"
30710
30711if test "x$PERL" != "x"; then
cristy8b350f62009-11-15 23:12:43 +000030712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
cristy3ed852e2009-09-05 21:47:34 +000030713$as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
30714 # NB: It would be nice to log the error if there is one, but we cannot rely
30715 # on autoconf internals
30716 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
30717 if test $? -ne 0; then
cristy8b350f62009-11-15 23:12:43 +000030718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030719$as_echo "no" >&6; };
30720 PERL_SUPPORTS_DESTDIR='no'
30721 else
cristy8b350f62009-11-15 23:12:43 +000030722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030723$as_echo "ok" >&6; };
30724 PERL_SUPPORTS_DESTDIR='yes'
30725 fi
30726else
cristy8b350f62009-11-15 23:12:43 +000030727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030728$as_echo "$as_me: WARNING: could not find perl" >&2;}
30729fi
30730
30731fi
30732 if test "$have_perl" != 'no'; then
30733 WITH_PERL_TRUE=
30734 WITH_PERL_FALSE='#'
30735else
30736 WITH_PERL_TRUE='#'
30737 WITH_PERL_FALSE=
30738fi
30739
30740 if test $with_perl_static = 'yes'; then
30741 WITH_PERL_STATIC_TRUE=
30742 WITH_PERL_STATIC_FALSE='#'
30743else
30744 WITH_PERL_STATIC_TRUE='#'
30745 WITH_PERL_STATIC_FALSE=
30746fi
30747
30748 if test $with_perl_dynamic = 'yes'; then
30749 WITH_PERL_DYNAMIC_TRUE=
30750 WITH_PERL_DYNAMIC_FALSE='#'
30751else
30752 WITH_PERL_DYNAMIC_TRUE='#'
30753 WITH_PERL_DYNAMIC_FALSE=
30754fi
30755
30756
30757
30758# Determine path to pick up MagickCore library from for use with building PerlMagick
30759MAGICKCORE_PATH="${LIB_DIR}"
30760if test $with_perl_static = 'yes'; then
30761 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
30762 libtool_objdir=$objdir
30763
30764 # Linker search path to library, followed by -lMagickCore
30765 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
30766fi
30767
30768
30769# Create a simple string containing format names for all delegate libraries
30770DELEGATES=''
30771if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
30772if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
30773if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
30774if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
30775if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
30776if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
30777if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
30778if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
30779if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
30780if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
30781if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
30782if test "$have_jpeg" = 'yes'; then
30783 DELEGATES="$DELEGATES jpeg";
30784 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
30785fi
30786if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
30787if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
30788if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
30789if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
30790if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
30791if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
30792if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
30793if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
30794if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
30795if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
30796if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
30797if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
30798
30799
30800
30801#
30802# Handle special compiler flags
30803#
30804
30805# Add '-p' if prof source profiling support enabled
30806if test "$enable_prof" = 'yes'; then
30807 CFLAGS="-p $CFLAGS"
30808 CXXFLAGS="-p $CXXFLAGS"
30809 LDFLAGS="-p $LDFLAGS"
30810fi
30811
30812# Add '-pg' if gprof source profiling support enabled
30813if test "$enable_gprof" = 'yes'; then
30814 CFLAGS="-pg $CFLAGS"
30815 CXXFLAGS="-pg $CXXFLAGS"
30816 LDFLAGS="-pg $LDFLAGS"
30817fi
30818
30819# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
30820# This is a gcc-specific feature
30821if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000030823$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030824if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030825 $as_echo_n "(cached) " >&6
30826else
30827 ac_check_lib_save_LIBS=$LIBS
30828LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030830/* end confdefs.h. */
30831
30832/* Override any GCC internal prototype to avoid an error.
30833 Use char because int might match the return type of a GCC
30834 builtin and then its argument prototype would still apply. */
30835#ifdef __cplusplus
30836extern "C"
30837#endif
30838char _gcov_init ();
30839int
30840main ()
30841{
30842return _gcov_init ();
30843 ;
30844 return 0;
30845}
30846_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030847if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030848 ac_cv_lib_gcov__gcov_init=yes
30849else
cristy8b350f62009-11-15 23:12:43 +000030850 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000030851fi
cristy8b350f62009-11-15 23:12:43 +000030852rm -f core conftest.err conftest.$ac_objext \
30853 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030854LIBS=$ac_check_lib_save_LIBS
30855fi
cristy8b350f62009-11-15 23:12:43 +000030856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030857$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030858if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000030859 cat >>confdefs.h <<_ACEOF
30860#define HAVE_LIBGCOV 1
30861_ACEOF
30862
30863 LIBS="-lgcov $LIBS"
30864
30865fi
30866
cristy8b350f62009-11-15 23:12:43 +000030867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000030868$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030869if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030870 $as_echo_n "(cached) " >&6
30871else
30872 ac_check_lib_save_LIBS=$LIBS
30873LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030875/* end confdefs.h. */
30876
30877/* Override any GCC internal prototype to avoid an error.
30878 Use char because int might match the return type of a GCC
30879 builtin and then its argument prototype would still apply. */
30880#ifdef __cplusplus
30881extern "C"
30882#endif
30883char __gcov_init ();
30884int
30885main ()
30886{
30887return __gcov_init ();
30888 ;
30889 return 0;
30890}
30891_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030892if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030893 ac_cv_lib_gcov___gcov_init=yes
30894else
cristy8b350f62009-11-15 23:12:43 +000030895 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000030896fi
cristy8b350f62009-11-15 23:12:43 +000030897rm -f core conftest.err conftest.$ac_objext \
30898 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030899LIBS=$ac_check_lib_save_LIBS
30900fi
cristy8b350f62009-11-15 23:12:43 +000030901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030902$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030903if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000030904 cat >>confdefs.h <<_ACEOF
30905#define HAVE_LIBGCOV 1
30906_ACEOF
30907
30908 LIBS="-lgcov $LIBS"
30909
30910fi
30911
30912 case "$target_os" in
30913 darwin*)
30914 OSX_GCOV_LDFLAG="-Wl,-single_module"
30915 ;;
30916 *)
30917 OSX_GCOV_LDFLAG=""
30918 ;;
30919 esac
30920
30921 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
30922 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
30923 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
30924fi
30925
30926#
30927# Build library dependency list for libMagickCore
30928#
30929
30930MAGICK_LIBLTDL='' # Libltdl for build
30931MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
30932MAGICK_LTDLDEPS='' # extra libltdl dependencies
30933if test "$with_ltdl" != 'no'
30934then
30935 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
30936 MAGICK_API_LIBLTDL='-lltdl'
30937 fi
30938 MAGICK_LIBLTDL=${LIBLTDL}
30939 MAGICK_LTDLDEPS=${LTDLDEPS}
30940fi
30941
30942
30943
30944if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000030945 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 +000030946else
cristy2e8b51d2009-10-17 18:26:15 +000030947 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 +000030948fi
30949
30950
30951#
30952# Remove extraneous spaces from output variables (asthetic)
30953#
30954X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
30955X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
30956X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
30957X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
30958
30959CC=`echo $CC | sed -e 's/ */ /g'`
30960CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
30961CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
30962CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
30963DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
30964DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
30965LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
30966TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
30967MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
30968#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
30969
30970# Pass only user-provided LIBS as "global" libraries
30971LIBS=$USER_LIBS
30972
30973#AC_SUBST(CPPFLAGS)
30974
30975#AC_SUBST(LDFLAGS)
30976#AC_SUBST(X_PRE_LIBS)
30977#AC_SUBST(X_LIBS)
30978#AC_SUBST(X_EXTRA_LIBS)
30979
30980MAGICK_CFLAGS=$CFLAGS
30981MAGICK_CXXFLAGS="$CXXFLAGS"
30982MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
30983MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
30984MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
30985MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
30986
30987
30988
30989
30990
30991
30992
30993
30994# Set configured scripts to executable.
30995ac_config_commands="$ac_config_commands default"
30996
30997ac_config_commands="$ac_config_commands MagickCore-config.in"
30998
30999ac_config_commands="$ac_config_commands Magick-config.in"
31000
31001ac_config_commands="$ac_config_commands MagickWand-config.in"
31002
31003ac_config_commands="$ac_config_commands Wand-config.in"
31004
31005ac_config_commands="$ac_config_commands Magick++-config.in"
31006
31007ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
31008
31009
cristy8b350f62009-11-15 23:12:43 +000031010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031011$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000031013$as_echo "Update ImageMagick configuration" >&6; }
31014cat >confcache <<\_ACEOF
31015# This file is a shell script that caches the results of configure
31016# tests run on this system so they can be shared between configure
31017# scripts and configure runs, see configure's option --config-cache.
31018# It is not useful on other systems. If it contains results you don't
31019# want to keep, you may remove or edit it.
31020#
31021# config.status only pays attention to the cache file if you give it
31022# the --recheck option to rerun configure.
31023#
31024# `ac_cv_env_foo' variables (set or unset) will be overridden when
31025# loading this file, other *unset* `ac_cv_foo' will be assigned the
31026# following values.
31027
31028_ACEOF
31029
31030# The following way of writing the cache mishandles newlines in values,
31031# but we know of no workaround that is simple, portable, and efficient.
31032# So, we kill variables containing newlines.
31033# Ultrix sh set writes to stderr and can't be redirected directly,
31034# and sets the high bit in the cache file unless we assign to the vars.
31035(
31036 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31037 eval ac_val=\$$ac_var
31038 case $ac_val in #(
31039 *${as_nl}*)
31040 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000031041 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000031042$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31043 esac
31044 case $ac_var in #(
31045 _ | IFS | as_nl) ;; #(
31046 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000031047 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000031048 esac ;;
31049 esac
31050 done
31051
31052 (set) 2>&1 |
31053 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31054 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000031055 # `set' does not quote correctly, so add quotes: double-quote
31056 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000031057 sed -n \
31058 "s/'/'\\\\''/g;
31059 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31060 ;; #(
31061 *)
31062 # `set' quotes correctly as required by POSIX, so do not add quotes.
31063 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31064 ;;
31065 esac |
31066 sort
31067) |
31068 sed '
31069 /^ac_cv_env_/b end
31070 t clear
31071 :clear
31072 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31073 t end
31074 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31075 :end' >>confcache
31076if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31077 if test -w "$cache_file"; then
31078 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000031079 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000031080$as_echo "$as_me: updating cache $cache_file" >&6;}
31081 cat confcache >$cache_file
31082 else
cristy8b350f62009-11-15 23:12:43 +000031083 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000031084$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31085 fi
31086fi
31087rm -f confcache
31088
31089test "x$prefix" = xNONE && prefix=$ac_default_prefix
31090# Let make expand exec_prefix.
31091test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31092
31093DEFS=-DHAVE_CONFIG_H
31094
31095ac_libobjs=
31096ac_ltlibobjs=
31097for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31098 # 1. Remove the extension, and $U if already installed.
31099 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31100 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31101 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31102 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000031103 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31104 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000031105done
31106LIBOBJS=$ac_libobjs
31107
31108LTLIBOBJS=$ac_ltlibobjs
31109
31110
31111 if test -n "$EXEEXT"; then
31112 am__EXEEXT_TRUE=
31113 am__EXEEXT_FALSE='#'
31114else
31115 am__EXEEXT_TRUE='#'
31116 am__EXEEXT_FALSE=
31117fi
31118
31119if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031120 as_fn_error "conditional \"AMDEP\" was never defined.
31121Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031122fi
31123if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031124 as_fn_error "conditional \"am__fastdepCC\" was never defined.
31125Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031126fi
31127if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031128 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31129Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031130fi
31131if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031132 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
31133Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031134fi
31135if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031136 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
31137Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031138fi
31139if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031140 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
31141Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031142fi
31143if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031144 as_fn_error "conditional \"USING_CL\" was never defined.
31145Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031146fi
cristy18304f92009-11-22 15:48:26 +000031147if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31148 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31149Usually this means the macro was only invoked conditionally." "$LINENO" 5
31150fi
cristy3ed852e2009-09-05 21:47:34 +000031151if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031152 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
31153Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031154fi
31155if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031156 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
31157Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031158fi
31159LT_CONFIG_H=config/config.h
31160
31161 _ltdl_libobjs=
31162 _ltdl_ltlibobjs=
31163 if test -n "$_LT_LIBOBJS"; then
31164 # Remove the extension.
31165 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
31166 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
31167 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
31168 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
31169 done
31170 fi
31171 ltdl_LIBOBJS=$_ltdl_libobjs
31172
31173 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
31174
31175
31176if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031177 as_fn_error "conditional \"WITH_MODULES\" was never defined.
31178Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031179fi
31180if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031181 as_fn_error "conditional \"WITH_LTDL\" was never defined.
31182Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031183fi
31184if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031185 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
31186Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031187fi
31188
31189if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031190 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31191Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031192fi
31193if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031194 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
31195Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031196fi
31197if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031198 as_fn_error "conditional \"HasUMEM\" was never defined.
31199Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031200fi
31201if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031202 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
31203Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031204fi
31205if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031206 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
31207Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031208fi
31209if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031210 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
31211Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031212fi
31213if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031214 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
31215Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031216fi
31217if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031218 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
31219Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031220fi
31221if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031222 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
31223Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031224fi
31225if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031226 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
31227Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031228fi
31229if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031230 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
31231Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031232fi
31233if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031234 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
31235Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031236fi
31237if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031238 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
31239Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031240fi
31241if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031242 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
31243Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031244fi
31245if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031246 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
31247Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031248fi
31249if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031250 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
31251Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031252fi
31253if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031254 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
31255Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031256fi
31257if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031258 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
31259Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031260fi
31261if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031262 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
31263Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031264fi
31265if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031266 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
31267Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031268fi
31269if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031270 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
31271Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031272fi
31273if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031274 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
31275Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031276fi
31277if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031278 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
31279Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031280fi
31281if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031282 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
31283Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031284fi
31285if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031286 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
31287Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031288fi
31289if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031290 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
31291Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031292fi
31293if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031294 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
31295Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031296fi
31297if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031298 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
31299Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031300fi
31301if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031302 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
31303Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031304fi
31305if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031306 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
31307Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031308fi
31309if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031310 as_fn_error "conditional \"WITH_PERL\" was never defined.
31311Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031312fi
31313if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031314 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
31315Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031316fi
31317if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031318 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
31319Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031320fi
31321
31322: ${CONFIG_STATUS=./config.status}
31323ac_write_fail=0
31324ac_clean_files_save=$ac_clean_files
31325ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000031326{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031327$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031328as_write_fail=0
31329cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000031330#! $SHELL
31331# Generated by $as_me.
31332# Run this file to recreate the current configuration.
31333# Compiler output produced by configure, useful for debugging
31334# configure, is in config.log if it exists.
31335
31336debug=false
31337ac_cs_recheck=false
31338ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000031339
cristy8b350f62009-11-15 23:12:43 +000031340SHELL=\${CONFIG_SHELL-$SHELL}
31341export SHELL
31342_ASEOF
31343cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31344## -------------------- ##
31345## M4sh Initialization. ##
31346## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000031347
31348# Be more Bourne compatible
31349DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000031350if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000031351 emulate sh
31352 NULLCMD=:
31353 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31354 # is contrary to our usage. Disable this feature.
31355 alias -g '${1+"$@"}'='"$@"'
31356 setopt NO_GLOB_SUBST
31357else
cristy8b350f62009-11-15 23:12:43 +000031358 case `(set -o) 2>/dev/null` in #(
31359 *posix*) :
31360 set -o posix ;; #(
31361 *) :
31362 ;;
cristy3ed852e2009-09-05 21:47:34 +000031363esac
cristy3ed852e2009-09-05 21:47:34 +000031364fi
31365
31366
cristy3ed852e2009-09-05 21:47:34 +000031367as_nl='
31368'
31369export as_nl
31370# Printing a long string crashes Solaris 7 /usr/bin/printf.
31371as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31372as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31373as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000031374# Prefer a ksh shell builtin over an external printf program on Solaris,
31375# but without wasting forks for bash or zsh.
31376if test -z "$BASH_VERSION$ZSH_VERSION" \
31377 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31378 as_echo='print -r --'
31379 as_echo_n='print -rn --'
31380elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000031381 as_echo='printf %s\n'
31382 as_echo_n='printf %s'
31383else
31384 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31385 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31386 as_echo_n='/usr/ucb/echo -n'
31387 else
31388 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31389 as_echo_n_body='eval
31390 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000031391 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000031392 *"$as_nl"*)
31393 expr "X$arg" : "X\\(.*\\)$as_nl";
31394 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31395 esac;
31396 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31397 '
31398 export as_echo_n_body
31399 as_echo_n='sh -c $as_echo_n_body as_echo'
31400 fi
31401 export as_echo_body
31402 as_echo='sh -c $as_echo_body as_echo'
31403fi
31404
31405# The user is always right.
31406if test "${PATH_SEPARATOR+set}" != set; then
31407 PATH_SEPARATOR=:
31408 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31409 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31410 PATH_SEPARATOR=';'
31411 }
31412fi
31413
cristy3ed852e2009-09-05 21:47:34 +000031414
31415# IFS
31416# We need space, tab and new line, in precisely that order. Quoting is
31417# there to prevent editors from complaining about space-tab.
31418# (If _AS_PATH_WALK were called with IFS unset, it would disable word
31419# splitting by setting IFS to empty value.)
31420IFS=" "" $as_nl"
31421
31422# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000031423case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000031424 *[\\/]* ) as_myself=$0 ;;
31425 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31426for as_dir in $PATH
31427do
31428 IFS=$as_save_IFS
31429 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031430 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31431 done
cristy3ed852e2009-09-05 21:47:34 +000031432IFS=$as_save_IFS
31433
31434 ;;
31435esac
31436# We did not find ourselves, most probably we were run as `sh COMMAND'
31437# in which case we are not to be found in the path.
31438if test "x$as_myself" = x; then
31439 as_myself=$0
31440fi
31441if test ! -f "$as_myself"; then
31442 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000031443 exit 1
cristy3ed852e2009-09-05 21:47:34 +000031444fi
31445
cristy8b350f62009-11-15 23:12:43 +000031446# Unset variables that we do not need and which cause bugs (e.g. in
31447# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31448# suppresses any "Segmentation fault" message there. '((' could
31449# trigger a bug in pdksh 5.2.14.
31450for as_var in BASH_ENV ENV MAIL MAILPATH
31451do eval test x\${$as_var+set} = xset \
31452 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000031453done
31454PS1='$ '
31455PS2='> '
31456PS4='+ '
31457
31458# NLS nuisances.
31459LC_ALL=C
31460export LC_ALL
31461LANGUAGE=C
31462export LANGUAGE
31463
cristy8b350f62009-11-15 23:12:43 +000031464# CDPATH.
31465(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31466
31467
31468# as_fn_error ERROR [LINENO LOG_FD]
31469# ---------------------------------
31470# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31471# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31472# script with status $?, using 1 if that was 0.
31473as_fn_error ()
31474{
31475 as_status=$?; test $as_status -eq 0 && as_status=1
31476 if test "$3"; then
31477 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31478 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
31479 fi
31480 $as_echo "$as_me: error: $1" >&2
31481 as_fn_exit $as_status
31482} # as_fn_error
31483
31484
31485# as_fn_set_status STATUS
31486# -----------------------
31487# Set $? to STATUS, without forking.
31488as_fn_set_status ()
31489{
31490 return $1
31491} # as_fn_set_status
31492
31493# as_fn_exit STATUS
31494# -----------------
31495# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31496as_fn_exit ()
31497{
31498 set +e
31499 as_fn_set_status $1
31500 exit $1
31501} # as_fn_exit
31502
31503# as_fn_unset VAR
31504# ---------------
31505# Portably unset VAR.
31506as_fn_unset ()
31507{
31508 { eval $1=; unset $1;}
31509}
31510as_unset=as_fn_unset
31511# as_fn_append VAR VALUE
31512# ----------------------
31513# Append the text in VALUE to the end of the definition contained in VAR. Take
31514# advantage of any shell optimizations that allow amortized linear growth over
31515# repeated appends, instead of the typical quadratic growth present in naive
31516# implementations.
31517if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31518 eval 'as_fn_append ()
31519 {
31520 eval $1+=\$2
31521 }'
31522else
31523 as_fn_append ()
31524 {
31525 eval $1=\$$1\$2
31526 }
31527fi # as_fn_append
31528
31529# as_fn_arith ARG...
31530# ------------------
31531# Perform arithmetic evaluation on the ARGs, and store the result in the
31532# global $as_val. Take advantage of shells that can avoid forks. The arguments
31533# must be portable across $(()) and expr.
31534if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31535 eval 'as_fn_arith ()
31536 {
31537 as_val=$(( $* ))
31538 }'
31539else
31540 as_fn_arith ()
31541 {
31542 as_val=`expr "$@" || test $? -eq 1`
31543 }
31544fi # as_fn_arith
31545
31546
cristy3ed852e2009-09-05 21:47:34 +000031547if expr a : '\(a\)' >/dev/null 2>&1 &&
31548 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31549 as_expr=expr
31550else
31551 as_expr=false
31552fi
31553
31554if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31555 as_basename=basename
31556else
31557 as_basename=false
31558fi
31559
cristy8b350f62009-11-15 23:12:43 +000031560if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31561 as_dirname=dirname
31562else
31563 as_dirname=false
31564fi
cristy3ed852e2009-09-05 21:47:34 +000031565
cristy3ed852e2009-09-05 21:47:34 +000031566as_me=`$as_basename -- "$0" ||
31567$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31568 X"$0" : 'X\(//\)$' \| \
31569 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31570$as_echo X/"$0" |
31571 sed '/^.*\/\([^/][^/]*\)\/*$/{
31572 s//\1/
31573 q
31574 }
31575 /^X\/\(\/\/\)$/{
31576 s//\1/
31577 q
31578 }
31579 /^X\/\(\/\).*/{
31580 s//\1/
31581 q
31582 }
31583 s/.*/./; q'`
31584
cristy8b350f62009-11-15 23:12:43 +000031585# Avoid depending upon Character Ranges.
31586as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31587as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31588as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31589as_cr_digits='0123456789'
31590as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000031591
31592ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000031593case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000031594-n*)
cristy8b350f62009-11-15 23:12:43 +000031595 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000031596 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000031597 xy) ECHO_C='\c';;
31598 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31599 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000031600 esac;;
31601*)
31602 ECHO_N='-n';;
31603esac
cristy3ed852e2009-09-05 21:47:34 +000031604
31605rm -f conf$$ conf$$.exe conf$$.file
31606if test -d conf$$.dir; then
31607 rm -f conf$$.dir/conf$$.file
31608else
31609 rm -f conf$$.dir
31610 mkdir conf$$.dir 2>/dev/null
31611fi
31612if (echo >conf$$.file) 2>/dev/null; then
31613 if ln -s conf$$.file conf$$ 2>/dev/null; then
31614 as_ln_s='ln -s'
31615 # ... but there are two gotchas:
31616 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31617 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31618 # In both cases, we have to default to `cp -p'.
31619 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31620 as_ln_s='cp -p'
31621 elif ln conf$$.file conf$$ 2>/dev/null; then
31622 as_ln_s=ln
31623 else
31624 as_ln_s='cp -p'
31625 fi
31626else
31627 as_ln_s='cp -p'
31628fi
31629rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31630rmdir conf$$.dir 2>/dev/null
31631
cristy8b350f62009-11-15 23:12:43 +000031632
31633# as_fn_mkdir_p
31634# -------------
31635# Create "$as_dir" as a directory, including parents if necessary.
31636as_fn_mkdir_p ()
31637{
31638
31639 case $as_dir in #(
31640 -*) as_dir=./$as_dir;;
31641 esac
31642 test -d "$as_dir" || eval $as_mkdir_p || {
31643 as_dirs=
31644 while :; do
31645 case $as_dir in #(
31646 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31647 *) as_qdir=$as_dir;;
31648 esac
31649 as_dirs="'$as_qdir' $as_dirs"
31650 as_dir=`$as_dirname -- "$as_dir" ||
31651$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31652 X"$as_dir" : 'X\(//\)[^/]' \| \
31653 X"$as_dir" : 'X\(//\)$' \| \
31654 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31655$as_echo X"$as_dir" |
31656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31657 s//\1/
31658 q
31659 }
31660 /^X\(\/\/\)[^/].*/{
31661 s//\1/
31662 q
31663 }
31664 /^X\(\/\/\)$/{
31665 s//\1/
31666 q
31667 }
31668 /^X\(\/\).*/{
31669 s//\1/
31670 q
31671 }
31672 s/.*/./; q'`
31673 test -d "$as_dir" && break
31674 done
31675 test -z "$as_dirs" || eval "mkdir $as_dirs"
31676 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
31677
31678
31679} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000031680if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000031681 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000031682else
31683 test -d ./-p && rmdir ./-p
31684 as_mkdir_p=false
31685fi
31686
31687if test -x / >/dev/null 2>&1; then
31688 as_test_x='test -x'
31689else
31690 if ls -dL / >/dev/null 2>&1; then
31691 as_ls_L_option=L
31692 else
31693 as_ls_L_option=
31694 fi
31695 as_test_x='
31696 eval sh -c '\''
31697 if test -d "$1"; then
31698 test -d "$1/.";
31699 else
cristy8b350f62009-11-15 23:12:43 +000031700 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000031701 -*)set "./$1";;
31702 esac;
cristy8b350f62009-11-15 23:12:43 +000031703 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000031704 ???[sx]*):;;*)false;;esac;fi
31705 '\'' sh
31706 '
31707fi
31708as_executable_p=$as_test_x
31709
31710# Sed expression to map a string onto a valid CPP name.
31711as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31712
31713# Sed expression to map a string onto a valid variable name.
31714as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31715
31716
31717exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000031718## ----------------------------------- ##
31719## Main body of $CONFIG_STATUS script. ##
31720## ----------------------------------- ##
31721_ASEOF
31722test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000031723
cristy8b350f62009-11-15 23:12:43 +000031724cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31725# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000031726# report actual input values of CONFIG_FILES etc. instead of their
31727# values after options handling.
31728ac_log="
cristy89effd22009-11-24 20:56:45 +000031729This file was extended by ImageMagick $as_me 6.5.8, which was
cristycd4c5312009-11-22 01:19:08 +000031730generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000031731
31732 CONFIG_FILES = $CONFIG_FILES
31733 CONFIG_HEADERS = $CONFIG_HEADERS
31734 CONFIG_LINKS = $CONFIG_LINKS
31735 CONFIG_COMMANDS = $CONFIG_COMMANDS
31736 $ $0 $@
31737
31738on `(hostname || uname -n) 2>/dev/null | sed 1q`
31739"
31740
31741_ACEOF
31742
31743case $ac_config_files in *"
31744"*) set x $ac_config_files; shift; ac_config_files=$*;;
31745esac
31746
31747case $ac_config_headers in *"
31748"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31749esac
31750
31751
31752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31753# Files that config.status was made for.
31754config_files="$ac_config_files"
31755config_headers="$ac_config_headers"
31756config_commands="$ac_config_commands"
31757
31758_ACEOF
31759
31760cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31761ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000031762\`$as_me' instantiates files and other configuration actions
31763from templates according to the current configuration. Unless the files
31764and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000031765
cristy8b350f62009-11-15 23:12:43 +000031766Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000031767
31768 -h, --help print this help, then exit
31769 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000031770 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000031771 -q, --quiet, --silent
31772 do not print progress messages
31773 -d, --debug don't remove temporary files
31774 --recheck update $as_me by reconfiguring in the same conditions
31775 --file=FILE[:TEMPLATE]
31776 instantiate the configuration file FILE
31777 --header=FILE[:TEMPLATE]
31778 instantiate the configuration header FILE
31779
31780Configuration files:
31781$config_files
31782
31783Configuration headers:
31784$config_headers
31785
31786Configuration commands:
31787$config_commands
31788
cristy8b350f62009-11-15 23:12:43 +000031789Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000031790
31791_ACEOF
31792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000031793ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000031794ac_cs_version="\\
cristy89effd22009-11-24 20:56:45 +000031795ImageMagick config.status 6.5.8
cristycd4c5312009-11-22 01:19:08 +000031796configured by $0, generated by GNU Autoconf 2.65,
31797 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000031798
cristy8b350f62009-11-15 23:12:43 +000031799Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000031800This config.status script is free software; the Free Software Foundation
31801gives unlimited permission to copy, distribute and modify it."
31802
31803ac_pwd='$ac_pwd'
31804srcdir='$srcdir'
31805INSTALL='$INSTALL'
31806MKDIR_P='$MKDIR_P'
31807AWK='$AWK'
31808test -n "\$AWK" || AWK=awk
31809_ACEOF
31810
31811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31812# The default lists apply if the user does not specify any file.
31813ac_need_defaults=:
31814while test $# != 0
31815do
31816 case $1 in
31817 --*=*)
31818 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31819 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31820 ac_shift=:
31821 ;;
31822 *)
31823 ac_option=$1
31824 ac_optarg=$2
31825 ac_shift=shift
31826 ;;
31827 esac
31828
31829 case $ac_option in
31830 # Handling of the options.
31831 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31832 ac_cs_recheck=: ;;
31833 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31834 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000031835 --config | --confi | --conf | --con | --co | --c )
31836 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000031837 --debug | --debu | --deb | --de | --d | -d )
31838 debug=: ;;
31839 --file | --fil | --fi | --f )
31840 $ac_shift
31841 case $ac_optarg in
31842 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31843 esac
cristy8b350f62009-11-15 23:12:43 +000031844 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000031845 ac_need_defaults=false;;
31846 --header | --heade | --head | --hea )
31847 $ac_shift
31848 case $ac_optarg in
31849 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31850 esac
cristy8b350f62009-11-15 23:12:43 +000031851 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000031852 ac_need_defaults=false;;
31853 --he | --h)
31854 # Conflict between --help and --header
cristy8b350f62009-11-15 23:12:43 +000031855 as_fn_error "ambiguous option: \`$1'
31856Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000031857 --help | --hel | -h )
31858 $as_echo "$ac_cs_usage"; exit ;;
31859 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31860 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31861 ac_cs_silent=: ;;
31862
31863 # This is an error.
cristy8b350f62009-11-15 23:12:43 +000031864 -*) as_fn_error "unrecognized option: \`$1'
31865Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000031866
cristy8b350f62009-11-15 23:12:43 +000031867 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000031868 ac_need_defaults=false ;;
31869
31870 esac
31871 shift
31872done
31873
31874ac_configure_extra_args=
31875
31876if $ac_cs_silent; then
31877 exec 6>/dev/null
31878 ac_configure_extra_args="$ac_configure_extra_args --silent"
31879fi
31880
31881_ACEOF
31882cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31883if \$ac_cs_recheck; then
31884 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31885 shift
31886 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31887 CONFIG_SHELL='$SHELL'
31888 export CONFIG_SHELL
31889 exec "\$@"
31890fi
31891
31892_ACEOF
31893cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31894exec 5>>config.log
31895{
31896 echo
31897 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31898## Running $as_me. ##
31899_ASBOX
31900 $as_echo "$ac_log"
31901} >&5
31902
31903_ACEOF
31904cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31905#
31906# INIT-COMMANDS
31907#
31908PACKAGE="$PACKAGE"
31909AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31910
31911
31912# The HP-UX ksh and POSIX shell print the target directory to stdout
31913# if CDPATH is set.
31914(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31915
31916sed_quote_subst='$sed_quote_subst'
31917double_quote_subst='$double_quote_subst'
31918delay_variable_subst='$delay_variable_subst'
cristy18304f92009-11-22 15:48:26 +000031919SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
31920Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
31921GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
31922EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
31923FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
31924LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
31925macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
31926macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
31927AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
31928DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31929OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
31930enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
31931enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
31932pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
31933enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
31934host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
31935host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
31936host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
31937build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
31938build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
31939build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
31940NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
31941LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
31942max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
31943ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
31944exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
31945lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
31946lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
31947lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
31948reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
31949reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31950deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
31951file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
31952AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
31953AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31954STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
31955RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
31956old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31957old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31958old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31959CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
31960CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31961compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
31962GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
31963lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
31964lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
31965lt_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"`'
31966lt_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"`'
31967objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
31968SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
31969ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
31970MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
31971lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
31972lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
31973lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
31974lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
31975lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
31976need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
31977DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
31978NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
31979LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
31980OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31981OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
31982libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
31983shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31984extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31985archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
31986enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
31987export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31988whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31989compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
31990old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31991old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31992archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31993archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31994module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31995module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31996with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
31997allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31998no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31999hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
32000hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
32001hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
32002hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
32003hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
32004hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
32005hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32006hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
32007inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
32008link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
32009fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
32010always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
32011export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32012exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
32013include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
32014prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32015file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
32016variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
32017need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
32018need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
32019version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
32020runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32021shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32022shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
32023libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
32024library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
32025soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
32026postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32027postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32028finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32029finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
32030hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
32031sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
32032sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
32033hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
32034enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
32035enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
32036enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
32037old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
32038striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
32039compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
32040predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
32041postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
32042predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
32043postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
32044compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
32045LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32046old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32047compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32048GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32049lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32050lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32051lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32052lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32053lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32054archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32055enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32056export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32057whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32058compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32059old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32060old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32061archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32062archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32063module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32064module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32065with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32066allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32067no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32068hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32069hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32070hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32071hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32072hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32073hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32074hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32075hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32076inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32077link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32078fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32079always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32080export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32081exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32082include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32083prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32084file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32085hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32086compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32087predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32088postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32089predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32090postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32091compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000032092
32093LTCC='$LTCC'
32094LTCFLAGS='$LTCFLAGS'
32095compiler='$compiler_DEFAULT'
32096
32097# Quote evaled strings.
32098for var in SED \
32099GREP \
32100EGREP \
32101FGREP \
32102LD \
32103NM \
32104LN_S \
32105lt_SP2NL \
32106lt_NL2SP \
32107reload_flag \
32108deplibs_check_method \
32109file_magic_cmd \
32110AR \
32111AR_FLAGS \
32112STRIP \
32113RANLIB \
32114CC \
32115CFLAGS \
32116compiler \
32117lt_cv_sys_global_symbol_pipe \
32118lt_cv_sys_global_symbol_to_cdecl \
32119lt_cv_sys_global_symbol_to_c_name_address \
32120lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy18304f92009-11-22 15:48:26 +000032121SHELL \
32122ECHO \
cristy3ed852e2009-09-05 21:47:34 +000032123lt_prog_compiler_no_builtin_flag \
32124lt_prog_compiler_wl \
32125lt_prog_compiler_pic \
32126lt_prog_compiler_static \
32127lt_cv_prog_compiler_c_o \
32128need_locks \
32129DSYMUTIL \
32130NMEDIT \
32131LIPO \
32132OTOOL \
32133OTOOL64 \
32134shrext_cmds \
32135export_dynamic_flag_spec \
32136whole_archive_flag_spec \
32137compiler_needs_object \
32138with_gnu_ld \
32139allow_undefined_flag \
32140no_undefined_flag \
32141hardcode_libdir_flag_spec \
32142hardcode_libdir_flag_spec_ld \
32143hardcode_libdir_separator \
32144fix_srcfile_path \
32145exclude_expsyms \
32146include_expsyms \
32147file_list_spec \
32148variables_saved_for_relink \
32149libname_spec \
32150library_names_spec \
32151soname_spec \
32152finish_eval \
32153old_striplib \
32154striplib \
32155compiler_lib_search_dirs \
32156predep_objects \
32157postdep_objects \
32158predeps \
32159postdeps \
32160compiler_lib_search_path \
32161LD_CXX \
32162compiler_CXX \
32163lt_prog_compiler_no_builtin_flag_CXX \
32164lt_prog_compiler_wl_CXX \
32165lt_prog_compiler_pic_CXX \
32166lt_prog_compiler_static_CXX \
32167lt_cv_prog_compiler_c_o_CXX \
32168export_dynamic_flag_spec_CXX \
32169whole_archive_flag_spec_CXX \
32170compiler_needs_object_CXX \
32171with_gnu_ld_CXX \
32172allow_undefined_flag_CXX \
32173no_undefined_flag_CXX \
32174hardcode_libdir_flag_spec_CXX \
32175hardcode_libdir_flag_spec_ld_CXX \
32176hardcode_libdir_separator_CXX \
32177fix_srcfile_path_CXX \
32178exclude_expsyms_CXX \
32179include_expsyms_CXX \
32180file_list_spec_CXX \
32181compiler_lib_search_dirs_CXX \
32182predep_objects_CXX \
32183postdep_objects_CXX \
32184predeps_CXX \
32185postdeps_CXX \
32186compiler_lib_search_path_CXX; do
cristy18304f92009-11-22 15:48:26 +000032187 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000032188 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000032189 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000032190 ;;
32191 *)
32192 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32193 ;;
32194 esac
32195done
32196
32197# Double-quote double-evaled strings.
32198for var in reload_cmds \
32199old_postinstall_cmds \
32200old_postuninstall_cmds \
32201old_archive_cmds \
32202extract_expsyms_cmds \
32203old_archive_from_new_cmds \
32204old_archive_from_expsyms_cmds \
32205archive_cmds \
32206archive_expsym_cmds \
32207module_cmds \
32208module_expsym_cmds \
32209export_symbols_cmds \
32210prelink_cmds \
32211postinstall_cmds \
32212postuninstall_cmds \
32213finish_cmds \
32214sys_lib_search_path_spec \
32215sys_lib_dlsearch_path_spec \
32216old_archive_cmds_CXX \
32217old_archive_from_new_cmds_CXX \
32218old_archive_from_expsyms_cmds_CXX \
32219archive_cmds_CXX \
32220archive_expsym_cmds_CXX \
32221module_cmds_CXX \
32222module_expsym_cmds_CXX \
32223export_symbols_cmds_CXX \
32224prelink_cmds_CXX; do
cristy18304f92009-11-22 15:48:26 +000032225 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000032226 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000032227 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 +000032228 ;;
32229 *)
32230 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32231 ;;
32232 esac
32233done
32234
cristy18304f92009-11-22 15:48:26 +000032235# Fix-up fallback echo if it was mangled by the above quoting rules.
32236case \$lt_ECHO in
32237*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
32238 ;;
32239esac
32240
cristy3ed852e2009-09-05 21:47:34 +000032241ac_aux_dir='$ac_aux_dir'
32242xsi_shell='$xsi_shell'
32243lt_shell_append='$lt_shell_append'
32244
32245# See if we are running on zsh, and set the options which allow our
32246# commands through without removal of \ escapes INIT.
32247if test -n "\${ZSH_VERSION+set}" ; then
32248 setopt NO_GLOB_SUBST
32249fi
32250
32251
32252 PACKAGE='$PACKAGE'
32253 VERSION='$VERSION'
32254 TIMESTAMP='$TIMESTAMP'
32255 RM='$RM'
32256 ofile='$ofile'
32257
32258
32259
32260
32261
32262
32263_ACEOF
32264
32265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32266
32267# Handling of arguments.
32268for ac_config_target in $ac_config_targets
32269do
32270 case $ac_config_target in
32271 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
32272 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
32273 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
32274 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
32275 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
32276 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
32277 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
32278 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
32279 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
32280 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
32281 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
32282 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
32283 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
32284 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
32285 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
32286 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
32287 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
32288 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
32289 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
32290 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32291 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
32292 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
32293 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
32294 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
32295 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
32296 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
32297 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
32298 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
32299 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
32300 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
32301 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
32302 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
32303 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
32304 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
32305 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
32306 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
32307 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
32308 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
32309 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
32310 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
32311 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32312 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32313 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32314 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
32315 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
32316 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
32317 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
32318 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
32319 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
32320
cristy8b350f62009-11-15 23:12:43 +000032321 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032322 esac
32323done
32324
32325
32326# If the user did not use the arguments to specify the items to instantiate,
32327# then the envvar interface is used. Set only those that are not.
32328# We use the long form for the default assignment because of an extremely
32329# bizarre bug on SunOS 4.1.3.
32330if $ac_need_defaults; then
32331 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32332 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32333 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32334fi
32335
32336# Have a temporary directory for convenience. Make it in the build tree
32337# simply because there is no reason against having it here, and in addition,
32338# creating and moving files from /tmp can sometimes cause problems.
32339# Hook for its removal unless debugging.
32340# Note that there is a small window in which the directory will not be cleaned:
32341# after its creation but before its name has been assigned to `$tmp'.
32342$debug ||
32343{
32344 tmp=
32345 trap 'exit_status=$?
32346 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32347' 0
cristy8b350f62009-11-15 23:12:43 +000032348 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000032349}
32350# Create a (secure) tmp directory for tmp files.
32351
32352{
32353 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32354 test -n "$tmp" && test -d "$tmp"
32355} ||
32356{
32357 tmp=./conf$$-$RANDOM
32358 (umask 077 && mkdir "$tmp")
cristy8b350f62009-11-15 23:12:43 +000032359} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032360
32361# Set up the scripts for CONFIG_FILES section.
32362# No need to generate them if there are no CONFIG_FILES.
32363# This happens for instance with `./config.status config.h'.
32364if test -n "$CONFIG_FILES"; then
32365
32366
cristy8b350f62009-11-15 23:12:43 +000032367ac_cr=`echo X | tr X '\015'`
32368# On cygwin, bash can eat \r inside `` if the user requested igncr.
32369# But we know of no other shell where ac_cr would be empty at this
32370# point, so we can use a bashism as a fallback.
32371if test "x$ac_cr" = x; then
32372 eval ac_cr=\$\'\\r\'
32373fi
cristy3ed852e2009-09-05 21:47:34 +000032374ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32375if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy8b350f62009-11-15 23:12:43 +000032376 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000032377else
32378 ac_cs_awk_cr=$ac_cr
32379fi
32380
32381echo 'BEGIN {' >"$tmp/subs1.awk" &&
32382_ACEOF
32383
32384
32385{
32386 echo "cat >conf$$subs.awk <<_ACEOF" &&
32387 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32388 echo "_ACEOF"
32389} >conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000032390 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032391ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
32392ac_delim='%!_!# '
32393for ac_last_try in false false false false false :; do
32394 . ./conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000032395 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032396
32397 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32398 if test $ac_delim_n = $ac_delim_num; then
32399 break
32400 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000032401 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032402 else
32403 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32404 fi
32405done
32406rm -f conf$$subs.sh
32407
32408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32409cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
32410_ACEOF
32411sed -n '
32412h
32413s/^/S["/; s/!.*/"]=/
32414p
32415g
32416s/^[^!]*!//
32417:repl
32418t repl
32419s/'"$ac_delim"'$//
32420t delim
32421:nl
32422h
cristycd4c5312009-11-22 01:19:08 +000032423s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000032424t more1
32425s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32426p
32427n
32428b repl
32429:more1
32430s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32431p
32432g
32433s/.\{148\}//
32434t nl
32435:delim
32436h
cristycd4c5312009-11-22 01:19:08 +000032437s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000032438t more2
32439s/["\\]/\\&/g; s/^/"/; s/$/"/
32440p
32441b
32442:more2
32443s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32444p
32445g
32446s/.\{148\}//
32447t delim
32448' <conf$$subs.awk | sed '
32449/^[^""]/{
32450 N
32451 s/\n//
32452}
32453' >>$CONFIG_STATUS || ac_write_fail=1
32454rm -f conf$$subs.awk
32455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32456_ACAWK
32457cat >>"\$tmp/subs1.awk" <<_ACAWK &&
32458 for (key in S) S_is_set[key] = 1
32459 FS = ""
32460
32461}
32462{
32463 line = $ 0
32464 nfields = split(line, field, "@")
32465 substed = 0
32466 len = length(field[1])
32467 for (i = 2; i < nfields; i++) {
32468 key = field[i]
32469 keylen = length(key)
32470 if (S_is_set[key]) {
32471 value = S[key]
32472 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32473 len += length(value) + length(field[++i])
32474 substed = 1
32475 } else
32476 len += 1 + keylen
32477 }
32478
32479 print line
32480}
32481
32482_ACAWK
32483_ACEOF
32484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32485if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32486 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32487else
32488 cat
32489fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy8b350f62009-11-15 23:12:43 +000032490 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032491_ACEOF
32492
32493# VPATH may cause trouble with some makes, so we remove $(srcdir),
32494# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32495# trailing colons and then remove the whole line if VPATH becomes empty
32496# (actually we leave an empty line to preserve line numbers).
32497if test "x$srcdir" = x.; then
32498 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32499s/:*\$(srcdir):*/:/
32500s/:*\${srcdir}:*/:/
32501s/:*@srcdir@:*/:/
32502s/^\([^=]*=[ ]*\):*/\1/
32503s/:*$//
32504s/^[^=]*=[ ]*$//
32505}'
32506fi
32507
32508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32509fi # test -n "$CONFIG_FILES"
32510
32511# Set up the scripts for CONFIG_HEADERS section.
32512# No need to generate them if there are no CONFIG_HEADERS.
32513# This happens for instance with `./config.status Makefile'.
32514if test -n "$CONFIG_HEADERS"; then
32515cat >"$tmp/defines.awk" <<\_ACAWK ||
32516BEGIN {
32517_ACEOF
32518
32519# Transform confdefs.h into an awk script `defines.awk', embedded as
32520# here-document in config.status, that substitutes the proper values into
32521# config.h.in to produce config.h.
32522
32523# Create a delimiter string that does not exist in confdefs.h, to ease
32524# handling of long lines.
32525ac_delim='%!_!# '
32526for ac_last_try in false false :; do
32527 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
32528 if test -z "$ac_t"; then
32529 break
32530 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000032531 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032532 else
32533 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32534 fi
32535done
32536
32537# For the awk script, D is an array of macro values keyed by name,
32538# likewise P contains macro parameters if any. Preserve backslash
32539# newline sequences.
32540
32541ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32542sed -n '
32543s/.\{148\}/&'"$ac_delim"'/g
32544t rset
32545:rset
32546s/^[ ]*#[ ]*define[ ][ ]*/ /
32547t def
32548d
32549:def
32550s/\\$//
32551t bsnl
32552s/["\\]/\\&/g
32553s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32554D["\1"]=" \3"/p
32555s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32556d
32557:bsnl
32558s/["\\]/\\&/g
32559s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32560D["\1"]=" \3\\\\\\n"\\/p
32561t cont
32562s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32563t cont
32564d
32565:cont
32566n
32567s/.\{148\}/&'"$ac_delim"'/g
32568t clear
32569:clear
32570s/\\$//
32571t bsnlc
32572s/["\\]/\\&/g; s/^/"/; s/$/"/p
32573d
32574:bsnlc
32575s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32576b cont
32577' <confdefs.h | sed '
32578s/'"$ac_delim"'/"\\\
32579"/g' >>$CONFIG_STATUS || ac_write_fail=1
32580
32581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32582 for (key in D) D_is_set[key] = 1
32583 FS = ""
32584}
32585/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32586 line = \$ 0
32587 split(line, arg, " ")
32588 if (arg[1] == "#") {
32589 defundef = arg[2]
32590 mac1 = arg[3]
32591 } else {
32592 defundef = substr(arg[1], 2)
32593 mac1 = arg[2]
32594 }
32595 split(mac1, mac2, "(") #)
32596 macro = mac2[1]
32597 prefix = substr(line, 1, index(line, defundef) - 1)
32598 if (D_is_set[macro]) {
32599 # Preserve the white space surrounding the "#".
32600 print prefix "define", macro P[macro] D[macro]
32601 next
32602 } else {
32603 # Replace #undef with comments. This is necessary, for example,
32604 # in the case of _POSIX_SOURCE, which is predefined and required
32605 # on some systems where configure will not decide to define it.
32606 if (defundef == "undef") {
32607 print "/*", prefix defundef, macro, "*/"
32608 next
32609 }
32610 }
32611}
32612{ print }
32613_ACAWK
32614_ACEOF
32615cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy8b350f62009-11-15 23:12:43 +000032616 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032617fi # test -n "$CONFIG_HEADERS"
32618
32619
32620eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32621shift
32622for ac_tag
32623do
32624 case $ac_tag in
32625 :[FHLC]) ac_mode=$ac_tag; continue;;
32626 esac
32627 case $ac_mode$ac_tag in
32628 :[FHL]*:*);;
cristy8b350f62009-11-15 23:12:43 +000032629 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032630 :[FH]-) ac_tag=-:-;;
32631 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32632 esac
32633 ac_save_IFS=$IFS
32634 IFS=:
32635 set x $ac_tag
32636 IFS=$ac_save_IFS
32637 shift
32638 ac_file=$1
32639 shift
32640
32641 case $ac_mode in
32642 :L) ac_source=$1;;
32643 :[FH])
32644 ac_file_inputs=
32645 for ac_f
32646 do
32647 case $ac_f in
32648 -) ac_f="$tmp/stdin";;
32649 *) # Look for the file first in the build tree, then in the source tree
32650 # (if the path is not absolute). The absolute path cannot be DOS-style,
32651 # because $ac_f cannot contain `:'.
32652 test -f "$ac_f" ||
32653 case $ac_f in
32654 [\\/$]*) false;;
32655 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32656 esac ||
cristy8b350f62009-11-15 23:12:43 +000032657 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032658 esac
32659 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000032660 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000032661 done
32662
32663 # Let's still pretend it is `configure' which instantiates (i.e., don't
32664 # use $as_me), people would be surprised to read:
32665 # /* config.h. Generated by config.status. */
32666 configure_input='Generated from '`
32667 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32668 `' by configure.'
32669 if test x"$ac_file" != x-; then
32670 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000032671 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032672$as_echo "$as_me: creating $ac_file" >&6;}
32673 fi
32674 # Neutralize special characters interpreted by sed in replacement strings.
32675 case $configure_input in #(
32676 *\&* | *\|* | *\\* )
32677 ac_sed_conf_input=`$as_echo "$configure_input" |
32678 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32679 *) ac_sed_conf_input=$configure_input;;
32680 esac
32681
32682 case $ac_tag in
32683 *:-:* | *:-) cat >"$tmp/stdin" \
cristy8b350f62009-11-15 23:12:43 +000032684 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000032685 esac
32686 ;;
32687 esac
32688
32689 ac_dir=`$as_dirname -- "$ac_file" ||
32690$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32691 X"$ac_file" : 'X\(//\)[^/]' \| \
32692 X"$ac_file" : 'X\(//\)$' \| \
32693 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32694$as_echo X"$ac_file" |
32695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32696 s//\1/
32697 q
32698 }
32699 /^X\(\/\/\)[^/].*/{
32700 s//\1/
32701 q
32702 }
32703 /^X\(\/\/\)$/{
32704 s//\1/
32705 q
32706 }
32707 /^X\(\/\).*/{
32708 s//\1/
32709 q
32710 }
32711 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000032712 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032713 ac_builddir=.
32714
32715case "$ac_dir" in
32716.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32717*)
32718 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32719 # A ".." for each directory in $ac_dir_suffix.
32720 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32721 case $ac_top_builddir_sub in
32722 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32723 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32724 esac ;;
32725esac
32726ac_abs_top_builddir=$ac_pwd
32727ac_abs_builddir=$ac_pwd$ac_dir_suffix
32728# for backward compatibility:
32729ac_top_builddir=$ac_top_build_prefix
32730
32731case $srcdir in
32732 .) # We are building in place.
32733 ac_srcdir=.
32734 ac_top_srcdir=$ac_top_builddir_sub
32735 ac_abs_top_srcdir=$ac_pwd ;;
32736 [\\/]* | ?:[\\/]* ) # Absolute name.
32737 ac_srcdir=$srcdir$ac_dir_suffix;
32738 ac_top_srcdir=$srcdir
32739 ac_abs_top_srcdir=$srcdir ;;
32740 *) # Relative name.
32741 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32742 ac_top_srcdir=$ac_top_build_prefix$srcdir
32743 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32744esac
32745ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32746
32747
32748 case $ac_mode in
32749 :F)
32750 #
32751 # CONFIG_FILE
32752 #
32753
32754 case $INSTALL in
32755 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32756 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32757 esac
32758 ac_MKDIR_P=$MKDIR_P
32759 case $MKDIR_P in
32760 [\\/$]* | ?:[\\/]* ) ;;
32761 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32762 esac
32763_ACEOF
32764
32765cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32766# If the template does not know about datarootdir, expand it.
32767# FIXME: This hack should be removed a few years after 2.60.
32768ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000032769ac_sed_dataroot='
32770/datarootdir/ {
32771 p
32772 q
32773}
32774/@datadir@/p
32775/@docdir@/p
32776/@infodir@/p
32777/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000032778/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000032779case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32780*datarootdir*) ac_datarootdir_seen=yes;;
32781*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000032782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000032783$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32784_ACEOF
32785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32786 ac_datarootdir_hack='
32787 s&@datadir@&$datadir&g
32788 s&@docdir@&$docdir&g
32789 s&@infodir@&$infodir&g
32790 s&@localedir@&$localedir&g
32791 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000032792 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000032793esac
32794_ACEOF
32795
32796# Neutralize VPATH when `$srcdir' = `.'.
32797# Shell code in configure.ac might set extrasub.
32798# FIXME: do we really want to maintain this feature?
32799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32800ac_sed_extra="$ac_vpsub
32801$extrasub
32802_ACEOF
32803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32804:t
32805/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32806s|@configure_input@|$ac_sed_conf_input|;t t
32807s&@top_builddir@&$ac_top_builddir_sub&;t t
32808s&@top_build_prefix@&$ac_top_build_prefix&;t t
32809s&@srcdir@&$ac_srcdir&;t t
32810s&@abs_srcdir@&$ac_abs_srcdir&;t t
32811s&@top_srcdir@&$ac_top_srcdir&;t t
32812s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32813s&@builddir@&$ac_builddir&;t t
32814s&@abs_builddir@&$ac_abs_builddir&;t t
32815s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32816s&@INSTALL@&$ac_INSTALL&;t t
32817s&@MKDIR_P@&$ac_MKDIR_P&;t t
32818$ac_datarootdir_hack
32819"
32820eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy8b350f62009-11-15 23:12:43 +000032821 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032822
32823test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32824 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32825 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000032826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy3ed852e2009-09-05 21:47:34 +000032827which seems to be undefined. Please make sure it is defined." >&5
32828$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32829which seems to be undefined. Please make sure it is defined." >&2;}
32830
32831 rm -f "$tmp/stdin"
32832 case $ac_file in
32833 -) cat "$tmp/out" && rm -f "$tmp/out";;
32834 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32835 esac \
cristy8b350f62009-11-15 23:12:43 +000032836 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032837 ;;
32838 :H)
32839 #
32840 # CONFIG_HEADER
32841 #
32842 if test x"$ac_file" != x-; then
32843 {
32844 $as_echo "/* $configure_input */" \
32845 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32846 } >"$tmp/config.h" \
cristy8b350f62009-11-15 23:12:43 +000032847 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032848 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000032849 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000032850$as_echo "$as_me: $ac_file is unchanged" >&6;}
32851 else
32852 rm -f "$ac_file"
32853 mv "$tmp/config.h" "$ac_file" \
cristy8b350f62009-11-15 23:12:43 +000032854 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032855 fi
32856 else
32857 $as_echo "/* $configure_input */" \
32858 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy8b350f62009-11-15 23:12:43 +000032859 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032860 fi
32861# Compute "$ac_file"'s index in $config_headers.
32862_am_arg="$ac_file"
32863_am_stamp_count=1
32864for _am_header in $config_headers :; do
32865 case $_am_header in
32866 $_am_arg | $_am_arg:* )
32867 break ;;
32868 * )
32869 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32870 esac
32871done
32872echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32873$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32874 X"$_am_arg" : 'X\(//\)[^/]' \| \
32875 X"$_am_arg" : 'X\(//\)$' \| \
32876 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32877$as_echo X"$_am_arg" |
32878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32879 s//\1/
32880 q
32881 }
32882 /^X\(\/\/\)[^/].*/{
32883 s//\1/
32884 q
32885 }
32886 /^X\(\/\/\)$/{
32887 s//\1/
32888 q
32889 }
32890 /^X\(\/\).*/{
32891 s//\1/
32892 q
32893 }
32894 s/.*/./; q'`/stamp-h$_am_stamp_count
32895 ;;
32896
cristy8b350f62009-11-15 23:12:43 +000032897 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000032898$as_echo "$as_me: executing $ac_file commands" >&6;}
32899 ;;
32900 esac
32901
32902
32903 case $ac_file$ac_mode in
32904 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
32905ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
32906ac_prefix_conf_PKG=`echo MagickCore`
32907ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
32908ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
32909ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
32910if test ".$ac_prefix_conf_INP" = "."; then
32911 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
32912 case "$ac_file" in
32913 *.h) ac_prefix_conf_INP=$ac_file ;;
32914 *)
32915 esac
32916 test ".$ac_prefix_conf_INP" != "." && break
32917 done
32918fi
32919if test ".$ac_prefix_conf_INP" = "."; then
32920 case "$ac_prefix_conf_OUT" in
32921 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
32922 ;;
32923 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
32924 ;;
32925 *) ac_prefix_conf_INP=config.h
32926 ;;
32927 esac
32928fi
32929if test -z "$ac_prefix_conf_PKG" ; then
cristy8b350f62009-11-15 23:12:43 +000032930 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032931else
32932 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
32933 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
32934 fi fi
cristy8b350f62009-11-15 23:12:43 +000032935 { $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 +000032936$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
32937 if test -f $ac_prefix_conf_INP ; then
32938 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
32939 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
32940 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
32941 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
32942 echo "#endif/" >>conftest.prefix
32943 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
32944 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
32945 echo "#endif/" >> conftest.prefix
32946 # now executing _script on _DEF input to create _OUT output file
32947 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
32948 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
32949 echo ' ' >>$tmp/pconfig.h
32950 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
32951
32952 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
32953 echo ' ' >>$tmp/pconfig.h
32954 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
32955 echo "#endif" >>$tmp/pconfig.h
32956 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000032957 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000032958$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
32959 else
32960 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
32961$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32962 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
32963 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
32964 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
32965$as_echo X"$ac_prefix_conf_OUT" |
32966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32967 s//\1/
32968 q
32969 }
32970 /^X\(\/\/\)[^/].*/{
32971 s//\1/
32972 q
32973 }
32974 /^X\(\/\/\)$/{
32975 s//\1/
32976 q
32977 }
32978 /^X\(\/\).*/{
32979 s//\1/
32980 q
32981 }
32982 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000032983 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032984 rm -f "$ac_prefix_conf_OUT"
32985 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
32986 fi
32987 cp conftest.prefix _configs.sed
32988 else
cristy8b350f62009-11-15 23:12:43 +000032989 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 +000032990 fi
32991 rm -f conftest.*
32992fi
32993 ;;
32994 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
32995 # Autoconf 2.62 quotes --file arguments for eval, but not when files
32996 # are listed without --file. Let's play safe and only enable the eval
32997 # if we detect the quoting.
32998 case $CONFIG_FILES in
32999 *\'*) eval set x "$CONFIG_FILES" ;;
33000 *) set x $CONFIG_FILES ;;
33001 esac
33002 shift
33003 for mf
33004 do
33005 # Strip MF so we end up with the name of the file.
33006 mf=`echo "$mf" | sed -e 's/:.*$//'`
33007 # Check whether this is an Automake generated Makefile or not.
33008 # We used to match only the files named `Makefile.in', but
33009 # some people rename them; so instead we look at the file content.
33010 # Grep'ing the first line is not enough: some people post-process
33011 # each Makefile.in and add a new line on top of each file to say so.
33012 # Grep'ing the whole file is not good either: AIX grep has a line
33013 # limit of 2048, but all sed's we know have understand at least 4000.
33014 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
33015 dirpart=`$as_dirname -- "$mf" ||
33016$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33017 X"$mf" : 'X\(//\)[^/]' \| \
33018 X"$mf" : 'X\(//\)$' \| \
33019 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33020$as_echo X"$mf" |
33021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33022 s//\1/
33023 q
33024 }
33025 /^X\(\/\/\)[^/].*/{
33026 s//\1/
33027 q
33028 }
33029 /^X\(\/\/\)$/{
33030 s//\1/
33031 q
33032 }
33033 /^X\(\/\).*/{
33034 s//\1/
33035 q
33036 }
33037 s/.*/./; q'`
33038 else
33039 continue
33040 fi
33041 # Extract the definition of DEPDIR, am__include, and am__quote
33042 # from the Makefile without running `make'.
33043 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33044 test -z "$DEPDIR" && continue
33045 am__include=`sed -n 's/^am__include = //p' < "$mf"`
33046 test -z "am__include" && continue
33047 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33048 # When using ansi2knr, U may be empty or an underscore; expand it
33049 U=`sed -n 's/^U = //p' < "$mf"`
33050 # Find all dependency output files, they are included files with
33051 # $(DEPDIR) in their names. We invoke sed twice because it is the
33052 # simplest approach to changing $(DEPDIR) to its actual value in the
33053 # expansion.
33054 for file in `sed -n "
33055 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33056 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33057 # Make sure the directory exists.
33058 test -f "$dirpart/$file" && continue
33059 fdir=`$as_dirname -- "$file" ||
33060$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33061 X"$file" : 'X\(//\)[^/]' \| \
33062 X"$file" : 'X\(//\)$' \| \
33063 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33064$as_echo X"$file" |
33065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33066 s//\1/
33067 q
33068 }
33069 /^X\(\/\/\)[^/].*/{
33070 s//\1/
33071 q
33072 }
33073 /^X\(\/\/\)$/{
33074 s//\1/
33075 q
33076 }
33077 /^X\(\/\).*/{
33078 s//\1/
33079 q
33080 }
33081 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000033082 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033083 # echo "creating $dirpart/$file"
33084 echo '# dummy' > "$dirpart/$file"
33085 done
33086 done
33087}
33088 ;;
33089 "libtool":C)
33090
33091 # See if we are running on zsh, and set the options which allow our
33092 # commands through without removal of \ escapes.
33093 if test -n "${ZSH_VERSION+set}" ; then
33094 setopt NO_GLOB_SUBST
33095 fi
33096
33097 cfgfile="${ofile}T"
33098 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33099 $RM "$cfgfile"
33100
33101 cat <<_LT_EOF >> "$cfgfile"
33102#! $SHELL
33103
33104# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
33105# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
33106# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33107# NOTE: Changes made to this file will be lost: look at ltmain.sh.
33108#
33109# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy18304f92009-11-22 15:48:26 +000033110# 2006, 2007, 2008 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033111# Written by Gordon Matzigkeit, 1996
33112#
33113# This file is part of GNU Libtool.
33114#
33115# GNU Libtool is free software; you can redistribute it and/or
33116# modify it under the terms of the GNU General Public License as
33117# published by the Free Software Foundation; either version 2 of
33118# the License, or (at your option) any later version.
33119#
33120# As a special exception to the GNU General Public License,
33121# if you distribute this file as part of a program or library that
33122# is built using GNU Libtool, you may include this file under the
33123# same distribution terms that you use for the rest of that program.
33124#
33125# GNU Libtool is distributed in the hope that it will be useful,
33126# but WITHOUT ANY WARRANTY; without even the implied warranty of
33127# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33128# GNU General Public License for more details.
33129#
33130# You should have received a copy of the GNU General Public License
33131# along with GNU Libtool; see the file COPYING. If not, a copy
33132# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33133# obtained by writing to the Free Software Foundation, Inc.,
33134# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33135
33136
33137# The names of the tagged configurations supported by this script.
33138available_tags="CXX "
33139
33140# ### BEGIN LIBTOOL CONFIG
33141
33142# A sed program that does not truncate output.
33143SED=$lt_SED
33144
33145# Sed that helps us avoid accidentally triggering echo(1) options like -n.
33146Xsed="\$SED -e 1s/^X//"
33147
33148# A grep program that handles long lines.
33149GREP=$lt_GREP
33150
33151# An ERE matcher.
33152EGREP=$lt_EGREP
33153
33154# A literal string matcher.
33155FGREP=$lt_FGREP
33156
33157# Which release of libtool.m4 was used?
33158macro_version=$macro_version
33159macro_revision=$macro_revision
33160
33161# Assembler program.
cristy18304f92009-11-22 15:48:26 +000033162AS=$AS
cristy3ed852e2009-09-05 21:47:34 +000033163
33164# DLL creation program.
cristy18304f92009-11-22 15:48:26 +000033165DLLTOOL=$DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000033166
33167# Object dumper program.
cristy18304f92009-11-22 15:48:26 +000033168OBJDUMP=$OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000033169
33170# Whether or not to build shared libraries.
33171build_libtool_libs=$enable_shared
33172
33173# Whether or not to build static libraries.
33174build_old_libs=$enable_static
33175
33176# What type of objects to build.
33177pic_mode=$pic_mode
33178
33179# Whether or not to optimize for fast installation.
33180fast_install=$enable_fast_install
33181
33182# The host system.
33183host_alias=$host_alias
33184host=$host
33185host_os=$host_os
33186
33187# The build system.
33188build_alias=$build_alias
33189build=$build
33190build_os=$build_os
33191
33192# A BSD- or MS-compatible name lister.
33193NM=$lt_NM
33194
33195# Whether we need soft or hard links.
33196LN_S=$lt_LN_S
33197
33198# What is the maximum length of a command?
33199max_cmd_len=$max_cmd_len
33200
33201# Object file suffix (normally "o").
33202objext=$ac_objext
33203
33204# Executable file suffix (normally "").
33205exeext=$exeext
33206
33207# whether the shell understands "unset".
33208lt_unset=$lt_unset
33209
33210# turn spaces into newlines.
33211SP2NL=$lt_lt_SP2NL
33212
33213# turn newlines into spaces.
33214NL2SP=$lt_lt_NL2SP
33215
cristy18304f92009-11-22 15:48:26 +000033216# How to create reloadable object files.
33217reload_flag=$lt_reload_flag
33218reload_cmds=$lt_reload_cmds
33219
cristy3ed852e2009-09-05 21:47:34 +000033220# Method to check whether dependent libraries are shared objects.
33221deplibs_check_method=$lt_deplibs_check_method
33222
33223# Command to use when deplibs_check_method == "file_magic".
33224file_magic_cmd=$lt_file_magic_cmd
33225
33226# The archiver.
33227AR=$lt_AR
33228AR_FLAGS=$lt_AR_FLAGS
33229
33230# A symbol stripping program.
33231STRIP=$lt_STRIP
33232
33233# Commands used to install an old-style archive.
33234RANLIB=$lt_RANLIB
33235old_postinstall_cmds=$lt_old_postinstall_cmds
33236old_postuninstall_cmds=$lt_old_postuninstall_cmds
33237
33238# A C compiler.
33239LTCC=$lt_CC
33240
33241# LTCC compiler flags.
33242LTCFLAGS=$lt_CFLAGS
33243
33244# Take the output of nm and produce a listing of raw symbols and C names.
33245global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33246
33247# Transform the output of nm in a proper C declaration.
33248global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33249
33250# Transform the output of nm in a C name address pair.
33251global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33252
33253# Transform the output of nm in a C name address pair when lib prefix is needed.
33254global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33255
33256# The name of the directory that contains temporary libtool files.
33257objdir=$objdir
33258
cristy18304f92009-11-22 15:48:26 +000033259# Shell to use when invoking shell scripts.
33260SHELL=$lt_SHELL
33261
33262# An echo program that does not interpret backslashes.
33263ECHO=$lt_ECHO
33264
cristy3ed852e2009-09-05 21:47:34 +000033265# Used to examine libraries when file_magic_cmd begins with "file".
33266MAGIC_CMD=$MAGIC_CMD
33267
33268# Must we lock files when doing compilation?
33269need_locks=$lt_need_locks
33270
33271# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33272DSYMUTIL=$lt_DSYMUTIL
33273
33274# Tool to change global to local symbols on Mac OS X.
33275NMEDIT=$lt_NMEDIT
33276
33277# Tool to manipulate fat objects and archives on Mac OS X.
33278LIPO=$lt_LIPO
33279
33280# ldd/readelf like tool for Mach-O binaries on Mac OS X.
33281OTOOL=$lt_OTOOL
33282
33283# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33284OTOOL64=$lt_OTOOL64
33285
33286# Old archive suffix (normally "a").
33287libext=$libext
33288
33289# Shared library suffix (normally ".so").
33290shrext_cmds=$lt_shrext_cmds
33291
33292# The commands to extract the exported symbol list from a shared archive.
33293extract_expsyms_cmds=$lt_extract_expsyms_cmds
33294
33295# Variables whose values should be saved in libtool wrapper scripts and
33296# restored at link time.
33297variables_saved_for_relink=$lt_variables_saved_for_relink
33298
33299# Do we need the "lib" prefix for modules?
33300need_lib_prefix=$need_lib_prefix
33301
33302# Do we need a version for libraries?
33303need_version=$need_version
33304
33305# Library versioning type.
33306version_type=$version_type
33307
33308# Shared library runtime path variable.
33309runpath_var=$runpath_var
33310
33311# Shared library path variable.
33312shlibpath_var=$shlibpath_var
33313
33314# Is shlibpath searched before the hard-coded library search path?
33315shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33316
33317# Format of library name prefix.
33318libname_spec=$lt_libname_spec
33319
33320# List of archive names. First name is the real one, the rest are links.
33321# The last name is the one that the linker finds with -lNAME
33322library_names_spec=$lt_library_names_spec
33323
33324# The coded name of the library, if different from the real name.
33325soname_spec=$lt_soname_spec
33326
33327# Command to use after installation of a shared archive.
33328postinstall_cmds=$lt_postinstall_cmds
33329
33330# Command to use after uninstallation of a shared archive.
33331postuninstall_cmds=$lt_postuninstall_cmds
33332
33333# Commands used to finish a libtool library installation in a directory.
33334finish_cmds=$lt_finish_cmds
33335
33336# As "finish_cmds", except a single script fragment to be evaled but
33337# not shown.
33338finish_eval=$lt_finish_eval
33339
33340# Whether we should hardcode library paths into libraries.
33341hardcode_into_libs=$hardcode_into_libs
33342
33343# Compile-time system search path for libraries.
33344sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33345
33346# Run-time system search path for libraries.
33347sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33348
33349# Whether dlopen is supported.
33350dlopen_support=$enable_dlopen
33351
33352# Whether dlopen of programs is supported.
33353dlopen_self=$enable_dlopen_self
33354
33355# Whether dlopen of statically linked programs is supported.
33356dlopen_self_static=$enable_dlopen_self_static
33357
33358# Commands to strip libraries.
33359old_striplib=$lt_old_striplib
33360striplib=$lt_striplib
33361
33362
33363# The linker used to build libraries.
33364LD=$lt_LD
33365
33366# Commands used to build an old-style archive.
33367old_archive_cmds=$lt_old_archive_cmds
33368
33369# A language specific compiler.
33370CC=$lt_compiler
33371
33372# Is the compiler the GNU compiler?
33373with_gcc=$GCC
33374
33375# Compiler flag to turn off builtin functions.
33376no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33377
33378# How to pass a linker flag through the compiler.
33379wl=$lt_lt_prog_compiler_wl
33380
33381# Additional compiler flags for building library objects.
33382pic_flag=$lt_lt_prog_compiler_pic
33383
33384# Compiler flag to prevent dynamic linking.
33385link_static_flag=$lt_lt_prog_compiler_static
33386
33387# Does compiler simultaneously support -c and -o options?
33388compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33389
33390# Whether or not to add -lc for building shared libraries.
33391build_libtool_need_lc=$archive_cmds_need_lc
33392
33393# Whether or not to disallow shared libs when runtime libs are static.
33394allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33395
33396# Compiler flag to allow reflexive dlopens.
33397export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33398
33399# Compiler flag to generate shared objects directly from archives.
33400whole_archive_flag_spec=$lt_whole_archive_flag_spec
33401
33402# Whether the compiler copes with passing no objects directly.
33403compiler_needs_object=$lt_compiler_needs_object
33404
33405# Create an old-style archive from a shared archive.
33406old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33407
33408# Create a temporary old-style archive to link instead of a shared archive.
33409old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33410
33411# Commands used to build a shared archive.
33412archive_cmds=$lt_archive_cmds
33413archive_expsym_cmds=$lt_archive_expsym_cmds
33414
33415# Commands used to build a loadable module if different from building
33416# a shared archive.
33417module_cmds=$lt_module_cmds
33418module_expsym_cmds=$lt_module_expsym_cmds
33419
33420# Whether we are building with GNU ld or not.
33421with_gnu_ld=$lt_with_gnu_ld
33422
33423# Flag that allows shared libraries with undefined symbols to be built.
33424allow_undefined_flag=$lt_allow_undefined_flag
33425
33426# Flag that enforces no undefined symbols.
33427no_undefined_flag=$lt_no_undefined_flag
33428
33429# Flag to hardcode \$libdir into a binary during linking.
33430# This must work even if \$libdir does not exist
33431hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33432
33433# If ld is used when linking, flag to hardcode \$libdir into a binary
33434# during linking. This must work even if \$libdir does not exist.
33435hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33436
33437# Whether we need a single "-rpath" flag with a separated argument.
33438hardcode_libdir_separator=$lt_hardcode_libdir_separator
33439
33440# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33441# DIR into the resulting binary.
33442hardcode_direct=$hardcode_direct
33443
33444# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33445# DIR into the resulting binary and the resulting library dependency is
33446# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33447# library is relocated.
33448hardcode_direct_absolute=$hardcode_direct_absolute
33449
33450# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33451# into the resulting binary.
33452hardcode_minus_L=$hardcode_minus_L
33453
33454# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33455# into the resulting binary.
33456hardcode_shlibpath_var=$hardcode_shlibpath_var
33457
33458# Set to "yes" if building a shared library automatically hardcodes DIR
33459# into the library and all subsequent libraries and executables linked
33460# against it.
33461hardcode_automatic=$hardcode_automatic
33462
33463# Set to yes if linker adds runtime paths of dependent libraries
33464# to runtime path list.
33465inherit_rpath=$inherit_rpath
33466
33467# Whether libtool must link a program against all its dependency libraries.
33468link_all_deplibs=$link_all_deplibs
33469
33470# Fix the shell variable \$srcfile for the compiler.
33471fix_srcfile_path=$lt_fix_srcfile_path
33472
33473# Set to "yes" if exported symbols are required.
33474always_export_symbols=$always_export_symbols
33475
33476# The commands to list exported symbols.
33477export_symbols_cmds=$lt_export_symbols_cmds
33478
33479# Symbols that should not be listed in the preloaded symbols.
33480exclude_expsyms=$lt_exclude_expsyms
33481
33482# Symbols that must always be exported.
33483include_expsyms=$lt_include_expsyms
33484
33485# Commands necessary for linking programs (against libraries) with templates.
33486prelink_cmds=$lt_prelink_cmds
33487
33488# Specify filename containing input files.
33489file_list_spec=$lt_file_list_spec
33490
33491# How to hardcode a shared library path into an executable.
33492hardcode_action=$hardcode_action
33493
33494# The directories searched by this compiler when creating a shared library.
33495compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33496
33497# Dependencies to place before and after the objects being linked to
33498# create a shared library.
33499predep_objects=$lt_predep_objects
33500postdep_objects=$lt_postdep_objects
33501predeps=$lt_predeps
33502postdeps=$lt_postdeps
33503
33504# The library search path used internally by the compiler when linking
33505# a shared library.
33506compiler_lib_search_path=$lt_compiler_lib_search_path
33507
33508# ### END LIBTOOL CONFIG
33509
33510_LT_EOF
33511
33512 case $host_os in
33513 aix3*)
33514 cat <<\_LT_EOF >> "$cfgfile"
33515# AIX sometimes has problems with the GCC collect2 program. For some
33516# reason, if we set the COLLECT_NAMES environment variable, the problems
33517# vanish in a puff of smoke.
33518if test "X${COLLECT_NAMES+set}" != Xset; then
33519 COLLECT_NAMES=
33520 export COLLECT_NAMES
33521fi
33522_LT_EOF
33523 ;;
33524 esac
33525
33526
33527ltmain="$ac_aux_dir/ltmain.sh"
33528
33529
33530 # We use sed instead of cat because bash on DJGPP gets confused if
33531 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33532 # text mode, it properly converts lines to CR/LF. This bash problem
33533 # is reportedly fixed, but why not run on old versions too?
33534 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
33535 || (rm -f "$cfgfile"; exit 1)
33536
33537 case $xsi_shell in
33538 yes)
33539 cat << \_LT_EOF >> "$cfgfile"
33540
33541# func_dirname file append nondir_replacement
33542# Compute the dirname of FILE. If nonempty, add APPEND to the result,
33543# otherwise set result to NONDIR_REPLACEMENT.
33544func_dirname ()
33545{
33546 case ${1} in
33547 */*) func_dirname_result="${1%/*}${2}" ;;
33548 * ) func_dirname_result="${3}" ;;
33549 esac
33550}
33551
33552# func_basename file
33553func_basename ()
33554{
33555 func_basename_result="${1##*/}"
33556}
33557
33558# func_dirname_and_basename file append nondir_replacement
33559# perform func_basename and func_dirname in a single function
33560# call:
33561# dirname: Compute the dirname of FILE. If nonempty,
33562# add APPEND to the result, otherwise set result
33563# to NONDIR_REPLACEMENT.
33564# value returned in "$func_dirname_result"
33565# basename: Compute filename of FILE.
33566# value retuned in "$func_basename_result"
33567# Implementation must be kept synchronized with func_dirname
33568# and func_basename. For efficiency, we do not delegate to
33569# those functions but instead duplicate the functionality here.
33570func_dirname_and_basename ()
33571{
33572 case ${1} in
33573 */*) func_dirname_result="${1%/*}${2}" ;;
33574 * ) func_dirname_result="${3}" ;;
33575 esac
33576 func_basename_result="${1##*/}"
33577}
33578
33579# func_stripname prefix suffix name
33580# strip PREFIX and SUFFIX off of NAME.
33581# PREFIX and SUFFIX must not contain globbing or regex special
33582# characters, hashes, percent signs, but SUFFIX may contain a leading
33583# dot (in which case that matches only a dot).
33584func_stripname ()
33585{
33586 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
33587 # positional parameters, so assign one to ordinary parameter first.
33588 func_stripname_result=${3}
33589 func_stripname_result=${func_stripname_result#"${1}"}
33590 func_stripname_result=${func_stripname_result%"${2}"}
33591}
33592
33593# func_opt_split
33594func_opt_split ()
33595{
33596 func_opt_split_opt=${1%%=*}
33597 func_opt_split_arg=${1#*=}
33598}
33599
33600# func_lo2o object
33601func_lo2o ()
33602{
33603 case ${1} in
33604 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
33605 *) func_lo2o_result=${1} ;;
33606 esac
33607}
33608
33609# func_xform libobj-or-source
33610func_xform ()
33611{
33612 func_xform_result=${1%.*}.lo
33613}
33614
33615# func_arith arithmetic-term...
33616func_arith ()
33617{
33618 func_arith_result=$(( $* ))
33619}
33620
33621# func_len string
33622# STRING may not start with a hyphen.
33623func_len ()
33624{
33625 func_len_result=${#1}
33626}
33627
33628_LT_EOF
33629 ;;
33630 *) # Bourne compatible functions.
33631 cat << \_LT_EOF >> "$cfgfile"
33632
33633# func_dirname file append nondir_replacement
33634# Compute the dirname of FILE. If nonempty, add APPEND to the result,
33635# otherwise set result to NONDIR_REPLACEMENT.
33636func_dirname ()
33637{
33638 # Extract subdirectory from the argument.
cristy18304f92009-11-22 15:48:26 +000033639 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000033640 if test "X$func_dirname_result" = "X${1}"; then
33641 func_dirname_result="${3}"
33642 else
33643 func_dirname_result="$func_dirname_result${2}"
33644 fi
33645}
33646
33647# func_basename file
33648func_basename ()
33649{
cristy18304f92009-11-22 15:48:26 +000033650 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000033651}
33652
33653
33654# func_stripname prefix suffix name
33655# strip PREFIX and SUFFIX off of NAME.
33656# PREFIX and SUFFIX must not contain globbing or regex special
33657# characters, hashes, percent signs, but SUFFIX may contain a leading
33658# dot (in which case that matches only a dot).
33659# func_strip_suffix prefix name
33660func_stripname ()
33661{
33662 case ${2} in
cristy18304f92009-11-22 15:48:26 +000033663 .*) func_stripname_result=`$ECHO "X${3}" \
33664 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
33665 *) func_stripname_result=`$ECHO "X${3}" \
33666 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000033667 esac
33668}
33669
33670# sed scripts:
33671my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
33672my_sed_long_arg='1s/^-[^=]*=//'
33673
33674# func_opt_split
33675func_opt_split ()
33676{
cristy18304f92009-11-22 15:48:26 +000033677 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
33678 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000033679}
33680
33681# func_lo2o object
33682func_lo2o ()
33683{
cristy18304f92009-11-22 15:48:26 +000033684 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000033685}
33686
33687# func_xform libobj-or-source
33688func_xform ()
33689{
cristy18304f92009-11-22 15:48:26 +000033690 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000033691}
33692
33693# func_arith arithmetic-term...
33694func_arith ()
33695{
33696 func_arith_result=`expr "$@"`
33697}
33698
33699# func_len string
33700# STRING may not start with a hyphen.
33701func_len ()
33702{
33703 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
33704}
33705
33706_LT_EOF
33707esac
33708
33709case $lt_shell_append in
33710 yes)
33711 cat << \_LT_EOF >> "$cfgfile"
33712
33713# func_append var value
33714# Append VALUE to the end of shell variable VAR.
33715func_append ()
33716{
33717 eval "$1+=\$2"
33718}
33719_LT_EOF
33720 ;;
33721 *)
33722 cat << \_LT_EOF >> "$cfgfile"
33723
33724# func_append var value
33725# Append VALUE to the end of shell variable VAR.
33726func_append ()
33727{
33728 eval "$1=\$$1\$2"
33729}
33730
33731_LT_EOF
33732 ;;
33733 esac
33734
33735
33736 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
33737 || (rm -f "$cfgfile"; exit 1)
33738
33739 mv -f "$cfgfile" "$ofile" ||
33740 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33741 chmod +x "$ofile"
33742
33743
33744 cat <<_LT_EOF >> "$ofile"
33745
33746# ### BEGIN LIBTOOL TAG CONFIG: CXX
33747
33748# The linker used to build libraries.
33749LD=$lt_LD_CXX
33750
33751# Commands used to build an old-style archive.
33752old_archive_cmds=$lt_old_archive_cmds_CXX
33753
33754# A language specific compiler.
33755CC=$lt_compiler_CXX
33756
33757# Is the compiler the GNU compiler?
33758with_gcc=$GCC_CXX
33759
33760# Compiler flag to turn off builtin functions.
33761no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33762
33763# How to pass a linker flag through the compiler.
33764wl=$lt_lt_prog_compiler_wl_CXX
33765
33766# Additional compiler flags for building library objects.
33767pic_flag=$lt_lt_prog_compiler_pic_CXX
33768
33769# Compiler flag to prevent dynamic linking.
33770link_static_flag=$lt_lt_prog_compiler_static_CXX
33771
33772# Does compiler simultaneously support -c and -o options?
33773compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33774
33775# Whether or not to add -lc for building shared libraries.
33776build_libtool_need_lc=$archive_cmds_need_lc_CXX
33777
33778# Whether or not to disallow shared libs when runtime libs are static.
33779allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33780
33781# Compiler flag to allow reflexive dlopens.
33782export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33783
33784# Compiler flag to generate shared objects directly from archives.
33785whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33786
33787# Whether the compiler copes with passing no objects directly.
33788compiler_needs_object=$lt_compiler_needs_object_CXX
33789
33790# Create an old-style archive from a shared archive.
33791old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33792
33793# Create a temporary old-style archive to link instead of a shared archive.
33794old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33795
33796# Commands used to build a shared archive.
33797archive_cmds=$lt_archive_cmds_CXX
33798archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33799
33800# Commands used to build a loadable module if different from building
33801# a shared archive.
33802module_cmds=$lt_module_cmds_CXX
33803module_expsym_cmds=$lt_module_expsym_cmds_CXX
33804
33805# Whether we are building with GNU ld or not.
33806with_gnu_ld=$lt_with_gnu_ld_CXX
33807
33808# Flag that allows shared libraries with undefined symbols to be built.
33809allow_undefined_flag=$lt_allow_undefined_flag_CXX
33810
33811# Flag that enforces no undefined symbols.
33812no_undefined_flag=$lt_no_undefined_flag_CXX
33813
33814# Flag to hardcode \$libdir into a binary during linking.
33815# This must work even if \$libdir does not exist
33816hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33817
33818# If ld is used when linking, flag to hardcode \$libdir into a binary
33819# during linking. This must work even if \$libdir does not exist.
33820hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33821
33822# Whether we need a single "-rpath" flag with a separated argument.
33823hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33824
33825# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33826# DIR into the resulting binary.
33827hardcode_direct=$hardcode_direct_CXX
33828
33829# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33830# DIR into the resulting binary and the resulting library dependency is
33831# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33832# library is relocated.
33833hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33834
33835# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33836# into the resulting binary.
33837hardcode_minus_L=$hardcode_minus_L_CXX
33838
33839# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33840# into the resulting binary.
33841hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33842
33843# Set to "yes" if building a shared library automatically hardcodes DIR
33844# into the library and all subsequent libraries and executables linked
33845# against it.
33846hardcode_automatic=$hardcode_automatic_CXX
33847
33848# Set to yes if linker adds runtime paths of dependent libraries
33849# to runtime path list.
33850inherit_rpath=$inherit_rpath_CXX
33851
33852# Whether libtool must link a program against all its dependency libraries.
33853link_all_deplibs=$link_all_deplibs_CXX
33854
33855# Fix the shell variable \$srcfile for the compiler.
33856fix_srcfile_path=$lt_fix_srcfile_path_CXX
33857
33858# Set to "yes" if exported symbols are required.
33859always_export_symbols=$always_export_symbols_CXX
33860
33861# The commands to list exported symbols.
33862export_symbols_cmds=$lt_export_symbols_cmds_CXX
33863
33864# Symbols that should not be listed in the preloaded symbols.
33865exclude_expsyms=$lt_exclude_expsyms_CXX
33866
33867# Symbols that must always be exported.
33868include_expsyms=$lt_include_expsyms_CXX
33869
33870# Commands necessary for linking programs (against libraries) with templates.
33871prelink_cmds=$lt_prelink_cmds_CXX
33872
33873# Specify filename containing input files.
33874file_list_spec=$lt_file_list_spec_CXX
33875
33876# How to hardcode a shared library path into an executable.
33877hardcode_action=$hardcode_action_CXX
33878
33879# The directories searched by this compiler when creating a shared library.
33880compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33881
33882# Dependencies to place before and after the objects being linked to
33883# create a shared library.
33884predep_objects=$lt_predep_objects_CXX
33885postdep_objects=$lt_postdep_objects_CXX
33886predeps=$lt_predeps_CXX
33887postdeps=$lt_postdeps_CXX
33888
33889# The library search path used internally by the compiler when linking
33890# a shared library.
33891compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33892
33893# ### END LIBTOOL TAG CONFIG: CXX
33894_LT_EOF
33895
33896 ;;
33897 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
33898 "Magick-config.in":C) chmod +x magick/Magick-config ;;
33899 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
33900 "Wand-config.in":C) chmod +x wand/Wand-config ;;
33901 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
33902 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
33903
33904 esac
33905done # for ac_tag
33906
33907
cristy8b350f62009-11-15 23:12:43 +000033908as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000033909_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000033910ac_clean_files=$ac_clean_files_save
33911
33912test $ac_write_fail = 0 ||
cristy8b350f62009-11-15 23:12:43 +000033913 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033914
33915
33916# configure is writing to config.log, and then calls config.status.
33917# config.status does its own redirection, appending to config.log.
33918# Unfortunately, on DOS this fails, as config.log is still kept open
33919# by configure, so config.status won't be able to write to it; its
33920# output is simply discarded. So we exec the FD to /dev/null,
33921# effectively closing config.log, so it can be properly (re)opened and
33922# appended to by config.status. When coming back to configure, we
33923# need to make the FD available again.
33924if test "$no_create" != yes; then
33925 ac_cs_success=:
33926 ac_config_status_args=
33927 test "$silent" = yes &&
33928 ac_config_status_args="$ac_config_status_args --quiet"
33929 exec 5>/dev/null
33930 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33931 exec 5>>config.log
33932 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33933 # would make configure fail if this is the last instruction.
cristy8b350f62009-11-15 23:12:43 +000033934 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000033935fi
33936if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000033937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000033938$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33939fi
33940
33941
33942rm -f magick-version
33943
33944result_ghostscript_font_dir='none'
33945if test "${ghostscript_font_dir}x" != 'x'; then
33946 result_ghostscript_font_dir=$ghostscript_font_dir
33947fi
33948
33949result_windows_font_dir='none'
33950if test "${windows_font_dir}x" != 'x'; then
33951 result_windows_font_dir=${windows_font_dir}
33952fi
33953
cristy8b350f62009-11-15 23:12:43 +000033954{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000033955ImageMagick is configured as follows. Please verify that this configuration
33956matches your expectations.
33957
33958Host system type: $host
33959Build system type: $build
33960
33961 Option Value
33962-------------------------------------------------------------------------------
33963Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
33964Static libraries --enable-static=$enable_static $libtool_build_static_libs
33965Module support --with-modules=$with_modules $with_modules
33966GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
33967Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
33968High Dynamic Range Imagery
33969 --enable-hdri=$enable_hdri $enable_hdri
33970
33971Delegate Configuration:
33972BZLIB --with-bzlib=$with_bzlib $have_bzlib
33973Autotrace --with-autotrace=$with_autotrace $have_autotrace
33974DJVU --with-djvu=$with_djvu $have_djvu
33975DPS --with-dps=$with_dps $have_dps
33976FFTW --with-fftw=$with_fftw $have_fftw
33977FlashPIX --with-fpx=$with_fpx $have_fpx
33978FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
33979FreeType --with-freetype=$with_freetype $have_freetype
33980GhostPCL None $PCLDelegate ($PCLVersion)
33981GhostXPS None $XPSDelegate ($XPSVersion)
33982Ghostscript None $PSDelegate ($GSVersion)
33983Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
33984Ghostscript lib --with-gslib=$with_gslib $have_gslib
33985Graphviz --with-gvc=$with_gvc $have_gvc
33986JBIG --with-jbig=$with_jbig $have_jbig
33987JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
33988JPEG-2000 --with-jp2=$with_jp2 $have_jp2
33989LCMS --with-lcms=$with_lcms $have_lcms
33990LQR --with-lqr=$with_lqr $have_lqr
33991Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
33992OpenEXR --with-openexr=$with_openexr $have_openexr
33993PERL --with-perl=$with_perl $have_perl
33994PNG --with-png=$with_png $have_png
33995RSVG --with-rsvg=$with_rsvg $have_rsvg
33996TIFF --with-tiff=$with_tiff $have_tiff
33997Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
33998WMF --with-wmf=$with_wmf $have_wmf
33999X11 --with-x=$with_x $have_x
34000XML --with-xml=$with_xml $have_xml
34001ZLIB --with-zlib=$with_zlib $have_zlib
34002
34003X11 Configuration:
34004 X_CFLAGS = $X_CFLAGS
34005 X_PRE_LIBS = $X_PRE_LIBS
34006 X_LIBS = $X_LIBS
34007 X_EXTRA_LIBS = $X_EXTRA_LIBS
34008
34009Options used to compile and link:
34010 PREFIX = $PREFIX_DIR
34011 EXEC-PREFIX = $EXEC_PREFIX_DIR
34012 VERSION = $PACKAGE_VERSION
34013 CC = $CC
34014 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000034015 CPPFLAGS = $MAGICK_CPPFLAGS
34016 PCFLAGS = $MAGICK_PCFLAGS
34017 DEFS = $DEFS
34018 LDFLAGS = $LDFLAGS
34019 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
34020 LIBS = $MAGICK_LIBS
34021 CXX = $CXX
34022 CXXFLAGS = $CXXFLAGS
34023" >&5
34024$as_echo "
34025ImageMagick is configured as follows. Please verify that this configuration
34026matches your expectations.
34027
34028Host system type: $host
34029Build system type: $build
34030
34031 Option Value
34032-------------------------------------------------------------------------------
34033Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
34034Static libraries --enable-static=$enable_static $libtool_build_static_libs
34035Module support --with-modules=$with_modules $with_modules
34036GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
34037Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
34038High Dynamic Range Imagery
34039 --enable-hdri=$enable_hdri $enable_hdri
34040
34041Delegate Configuration:
34042BZLIB --with-bzlib=$with_bzlib $have_bzlib
34043Autotrace --with-autotrace=$with_autotrace $have_autotrace
34044DJVU --with-djvu=$with_djvu $have_djvu
34045DPS --with-dps=$with_dps $have_dps
34046FFTW --with-fftw=$with_fftw $have_fftw
34047FlashPIX --with-fpx=$with_fpx $have_fpx
34048FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
34049FreeType --with-freetype=$with_freetype $have_freetype
34050GhostPCL None $PCLDelegate ($PCLVersion)
34051GhostXPS None $XPSDelegate ($XPSVersion)
34052Ghostscript None $PSDelegate ($GSVersion)
34053Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
34054Ghostscript lib --with-gslib=$with_gslib $have_gslib
34055Graphviz --with-gvc=$with_gvc $have_gvc
34056JBIG --with-jbig=$with_jbig $have_jbig
34057JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
34058JPEG-2000 --with-jp2=$with_jp2 $have_jp2
34059LCMS --with-lcms=$with_lcms $have_lcms
34060LQR --with-lqr=$with_lqr $have_lqr
34061Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
34062OpenEXR --with-openexr=$with_openexr $have_openexr
34063PERL --with-perl=$with_perl $have_perl
34064PNG --with-png=$with_png $have_png
34065RSVG --with-rsvg=$with_rsvg $have_rsvg
34066TIFF --with-tiff=$with_tiff $have_tiff
34067Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
34068WMF --with-wmf=$with_wmf $have_wmf
34069X11 --with-x=$with_x $have_x
34070XML --with-xml=$with_xml $have_xml
34071ZLIB --with-zlib=$with_zlib $have_zlib
34072
34073X11 Configuration:
34074 X_CFLAGS = $X_CFLAGS
34075 X_PRE_LIBS = $X_PRE_LIBS
34076 X_LIBS = $X_LIBS
34077 X_EXTRA_LIBS = $X_EXTRA_LIBS
34078
34079Options used to compile and link:
34080 PREFIX = $PREFIX_DIR
34081 EXEC-PREFIX = $EXEC_PREFIX_DIR
34082 VERSION = $PACKAGE_VERSION
34083 CC = $CC
34084 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000034085 CPPFLAGS = $MAGICK_CPPFLAGS
34086 PCFLAGS = $MAGICK_PCFLAGS
34087 DEFS = $DEFS
34088 LDFLAGS = $LDFLAGS
34089 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
34090 LIBS = $MAGICK_LIBS
34091 CXX = $CXX
34092 CXXFLAGS = $CXXFLAGS
34093" >&6; }